software/driver/analyzer: add assertions

This commit is contained in:
Florent Kermarrec 2018-06-04 10:10:03 +02:00
parent 3efaefaae2
commit af5bfd131f
1 changed files with 2 additions and 0 deletions

View File

@ -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)