software/driver/analyzer: add assertions
This commit is contained in:
parent
3efaefaae2
commit
af5bfd131f
|
@ -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 New Issue