- 
                Notifications
    You must be signed in to change notification settings 
- Fork 9
picker with annotation #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|  | @@ -52,34 +52,101 @@ def __del__(self): | |||||
| # User APIs # | ||||||
| ################################ | ||||||
| def InitClock(self, name: str): | ||||||
| """ | ||||||
| Initialize the clock, bind the 'XClock' in the DUT to the corresponding pin | ||||||
|  | ||||||
| Args: | ||||||
| name(str): the name of 'XClock' | ||||||
| """ | ||||||
| self.xclock.Add(self.xport[name]) | ||||||
|  | ||||||
| def Step(self, i:int = 1): | ||||||
| """ | ||||||
| Push the timing circuit by i clock cycles. | ||||||
|  | ||||||
| Args: | ||||||
| i(int): Push by i clock cycles(Default is 1) | ||||||
| """ | ||||||
| self.xclock.Step(i) | ||||||
|  | ||||||
| def StepRis(self, callback, args=(), kwargs={}): | ||||||
| """ | ||||||
| Set a callback function triggered on the rising edge | ||||||
|  | ||||||
| The callback function will be called every time the clock rises | ||||||
|  | ||||||
| Args: | ||||||
| callback: the callback function triggered on the rising edge | ||||||
| args: the args of the callback function | ||||||
| kwargs: the keyword args of the callback function | ||||||
| """ | ||||||
| self.xclock.StepRis(callback, args, kwargs) | ||||||
|  | ||||||
| def StepFal(self, callback, args=(), kwargs={}): | ||||||
| """ | ||||||
| Set a callback function triggered on the falling edge | ||||||
|  | ||||||
| The callback function will be called every time the clock falls | ||||||
|  | ||||||
| Args: | ||||||
| callback: the callback function triggered on the falling edge | ||||||
| args: the args of the callback function | ||||||
| kwargs: the keyword args of the callback function | ||||||
| """ | ||||||
| self.xclock.StepFal(callback, args, kwargs) | ||||||
|  | ||||||
| def ResumeWaveformDump(self): | ||||||
| """ | ||||||
| Restart waveform export and return 1 | ||||||
|  | ||||||
| Returns: | ||||||
| bool: return 1 when restart successfully | ||||||
| """ | ||||||
| return self.dut.ResumeWaveformDump() | ||||||
|  | ||||||
| def PauseWaveformDump(self): | ||||||
| """ | ||||||
| Pause waveform export and return 1 | ||||||
|  | ||||||
| Returns: | ||||||
| bool: return 1 when pause successfully | ||||||
| """ | ||||||
| return self.dut.PauseWaveformDump() | ||||||
|  | ||||||
| def WaveformPaused(self) -> int: | ||||||
| """ Returns 1 if waveform export is paused """ | ||||||
| """ | ||||||
| Check if the waveform export has been paused | ||||||
|  | ||||||
| Returns: | ||||||
| bool: return 1 if waveform export is paused | ||||||
| """ | ||||||
| return self.dut.WaveformPaused() | ||||||
|  | ||||||
| def GetXPort(self): | ||||||
| """ | ||||||
| Get the information of XPort | ||||||
|  | ||||||
| Returns: | ||||||
| XPort: the XPort of dut | ||||||
| """ | ||||||
| return self.xport | ||||||
|  | ||||||
| def GetXClock(self): | ||||||
| """ | ||||||
| Get the information of XClock | ||||||
|  | ||||||
| Returns: | ||||||
| XClock: the XClock of dut | ||||||
| 
     | ||||||
| XClock: the XClock of dut | |
| XClock: the XClock of dut | 
    
      
    
      Copilot
AI
    
    
    
      Sep 25, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after colon and trailing spaces after 'file' in the parameter description.
    
      
    
      Copilot
AI
    
    
    
      Sep 25, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after colon and trailing spaces after 'file' in the parameter description.
    
      
    
      Copilot
AI
    
    
    
      Sep 25, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are trailing spaces after 'file' in the parameter description.
    
      
    
      Copilot
AI
    
    
    
      Sep 25, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are trailing spaces after 'file' in the parameter description.
| name(str): the name of file | |
| name(str): the name of file | 
    
      
    
      Copilot
AI
    
    
    
      Sep 25, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter description for 'index' is incomplete. It should explain what the index parameter is used for.
| index(int): | |
| index(int): the index of the internal signal to retrieve. Use a non-negative value to select a specific element for non-array signals; for array signals or VPI signals, index must be negative (typically -1). | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are trailing spaces after 'dut' in the return type description.