litescope/core: add function to clear scope
The analyzer driver can be reused for further capturing by calling the clear() function.
This commit is contained in:
parent
72c9930705
commit
fab60ab5e0
|
@ -134,6 +134,13 @@ class LiteScopeAnalyzerDriver:
|
|||
self.storage_enable.write(1)
|
||||
self.trigger_enable.write(1)
|
||||
|
||||
def clear(self):
|
||||
self.data = DumpData(self.data_width)
|
||||
self.offset = 0
|
||||
self.length = None
|
||||
self.trigger_enable.write(0)
|
||||
self.storage_enable.write(0)
|
||||
|
||||
def done(self):
|
||||
return self.storage_done.read()
|
||||
|
||||
|
|
Loading…
Reference in New Issue