mirror of
https://github.com/enjoy-digital/litescope.git
synced 2025-01-04 09:52:27 -05:00
software/driver/analyzer: add assertions
This commit is contained in:
parent
3efaefaae2
commit
af5bfd131f
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ class LiteScopeAnalyzerDriver:
|
|||
self.subsampler_value.write(value-1)
|
||||
|
||||
def run(self, offset, length):
|
||||
assert offset < self.depth
|
||||
assert length <= self.depth
|
||||
if self.debug:
|
||||
print("[running]...")
|
||||
self.storage_offset.write(offset)
|
||||
|
|
Loading…
Reference in a new issue