software/driver/logic_analyzer: fix case when config_csv is provided as a parameter
This commit is contained in:
parent
83e06cad80
commit
88c4e2d126
|
@ -9,7 +9,8 @@ class LiteScopeLogicAnalyzerDriver():
|
||||||
def __init__(self, regs, name, config_csv=None, clk_freq=None, debug=False):
|
def __init__(self, regs, name, config_csv=None, clk_freq=None, debug=False):
|
||||||
self.regs = regs
|
self.regs = regs
|
||||||
self.name = name
|
self.name = name
|
||||||
if config_csv is None:
|
self.config_csv = config_csv
|
||||||
|
if self.config_csv is None:
|
||||||
self.config_csv = name + ".csv"
|
self.config_csv = name + ".csv"
|
||||||
if clk_freq is None:
|
if clk_freq is None:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue