Merge pull request #36 from DurandA/clear-scope

litescope/core: add function to clear scope
This commit is contained in:
enjoy-digital 2021-08-25 13:16:43 +02:00 committed by GitHub
commit ea431069f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -134,6 +134,13 @@ class LiteScopeAnalyzerDriver:
self.storage_enable.write(1) self.storage_enable.write(1)
self.trigger_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): def done(self):
return self.storage_done.read() return self.storage_done.read()