mirror of
https://github.com/enjoy-digital/litescope.git
synced 2025-01-04 09:52:27 -05:00
Merge pull request #12 from xobs/default-length
analyzer-driver: use default depth from config
This commit is contained in:
commit
686db4f3cd
1 changed files with 3 additions and 1 deletions
|
@ -91,7 +91,9 @@ class LiteScopeAnalyzerDriver:
|
|||
def configure_subsampler(self, value):
|
||||
self.subsampler_value.write(value-1)
|
||||
|
||||
def run(self, offset, length):
|
||||
def run(self, offset = 0, length = None):
|
||||
if length is None:
|
||||
length = self.depth
|
||||
assert offset < self.depth
|
||||
assert length <= self.depth
|
||||
if self.debug:
|
||||
|
|
Loading…
Reference in a new issue