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)
|
self.subsampler_value.write(value-1)
|
||||||
|
|
||||||
def run(self, offset, length):
|
def run(self, offset, length):
|
||||||
|
assert offset < self.depth
|
||||||
|
assert length <= self.depth
|
||||||
if self.debug:
|
if self.debug:
|
||||||
print("[running]...")
|
print("[running]...")
|
||||||
self.storage_offset.write(offset)
|
self.storage_offset.write(offset)
|
||||||
|
|
Loading…
Reference in New Issue