diff --git a/litescope/software/driver/analyzer.py b/litescope/software/driver/analyzer.py index 4ce8743..e9ad421 100644 --- a/litescope/software/driver/analyzer.py +++ b/litescope/software/driver/analyzer.py @@ -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()