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

cannot load leon2 registers file #29

Open
bat52 opened this issue Oct 27, 2021 · 1 comment
Open

cannot load leon2 registers file #29

bat52 opened this issue Oct 27, 2021 · 1 comment

Comments

@bat52
Copy link

bat52 commented Oct 27, 2021

loading leon2 register description file
https://github.com/bat52/cheap_pie/blob/master/devices/leon2_creg.xml
fails with this error

ValueError: invalid literal for int() with base 10: '4 * (2 ** 10)'

@olofk
Copy link
Owner

olofk commented Dec 14, 2023

In order to evaluate these expressions, we need to have a full systemverilog expression parser within ipyxact, which we don't. There are basically three ways to handle this.

  1. Write a full systemverilog expression parser in Python. This is probably a terrible idea that would require an insane amount of work
  2. Integrate an existing systemverilog expression parser. Perhaps we can use e.g. verible, surelog or verilator for this, but I haven't looked into how hard it would be to extract the expression parser from any of those.
  3. Handle this on a case-by-case basis and just keep adding support when we encounter issues. Long-term, this would be terrible, but might be a reasonable path forward short-term

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

No branches or pull requests

2 participants