litescope/core: set default csr_csv to csr_csv="analyzer.csv".

Simplify creating basic analyzer:

from litescope import LiteScopeAnalyzer
analyzer_signals = [...]
self.submodules.analyzer = LiteScopeAnalyzer(analyzer_signals, depth=512)
self.add_csr("analyzer")
This commit is contained in:
Florent Kermarrec 2020-11-30 15:04:09 +01:00
parent 0a67448ce9
commit c8b7e1a922
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ class _Storage(Module, AutoCSR):
class LiteScopeAnalyzer(Module, AutoCSR):
def __init__(self, groups, depth, clock_domain="sys", trigger_depth=16, csr_csv=None):
def __init__(self, groups, depth, clock_domain="sys", trigger_depth=16, csr_csv="analyzer.csv"):
self.groups = groups = self.format_groups(groups)
self.depth = depth