From 71ffaa7484a93715618d3152f594c5c96256034f Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 7 Jun 2018 17:00:40 +0800 Subject: [PATCH] add trigger depth option --- litescope/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litescope/core.py b/litescope/core.py index ac7b8cb..a58ed7e 100644 --- a/litescope/core.py +++ b/litescope/core.py @@ -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