Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing csr.csv does not trigger an explicit error in LiteScopeAnalyzerDriver #15

Open
Acathla-fr opened this issue Jan 22, 2020 · 1 comment

Comments

@Acathla-fr
Copy link

Error reported when instantiating LiteScopeAnalyzerDriver(wb.regs, "build_dir/analyzer", debug=True) :

File "litex/litescope/litescope/software/driver/analyzer.py", line 33, in __init__
    self.trigger_enable.write(0)
AttributeError: 'LiteScopeAnalyzerDriver' object has no attribute 'trigger_enable'

Solved by adding config_csv=build_dir/csr.csv to the options.

Line of code where the check probably should be done:

csv_reader = csv.reader(open(self.config_csv), delimiter=',', quotechar='#')

@Acathla-fr
Copy link
Author

Wrong analysis. csr.csv has nothing to do here. The right line should be :

analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", config_csv="build_dir/analyzer.csv", debug=True)

The second parameter, name, should not include a path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants