Merge pull request #11 from xobs/add-trigger-depth

add trigger depth option
This commit is contained in:
enjoy-digital 2018-08-02 10:49:50 +02:00 committed by GitHub
commit f26e36ef23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ class _Storage(Module, AutoCSR):
class LiteScopeAnalyzer(Module, AutoCSR):
def __init__(self, groups, depth, cd="sys"):
def __init__(self, groups, depth, cd="sys", trigger_depth=16):
self.groups = groups = self.format_groups(groups)
self.depth = depth
@ -249,7 +249,7 @@ class LiteScopeAnalyzer(Module, AutoCSR):
]
# frontend
self.submodules.trigger = _Trigger(data_width)
self.submodules.trigger = _Trigger(data_width, depth=trigger_depth)
self.submodules.subsampler = _SubSampler(data_width)
# storage