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

Issue while running riscv_config_gen.py for configuration cv64a60ax #2827

Open
1 task done
khandelwaltanuj opened this issue Mar 13, 2025 · 1 comment
Open
1 task done
Labels
Component:Tool-and-build For issues in the tool and build flow (e.g. Makefile, FuseSoc, etc.) notCV32A65X It is not an CV32A65X issue

Comments

@khandelwaltanuj
Copy link
Contributor

Is there an existing CVA6 bug for this?

  • I have searched the existing bug issues

Bug Description

Hello,

I am doing following steps to generate different view of CV64a60ax configuration.

1st Step: (run riscv-config)

cd cva6/config/riscv-config
riscv-config --custom_spec cv64a60ax/spec/custom_spec.yaml --debug_spec cv64a60ax/spec/debug_spec.yaml --isa_spec cv64a60ax/spec/isa_spec.yaml --platform_spec cv64a60ax/spec/platform_spec.yaml --work_dir ../riscv-config/cv64a60ax/generated

It passes correctly and generates following files
cd cva6/config/riscv-config/cv64a60ax/generated
ls
custom_spec_checked.yaml debug_spec_checked.yaml isa_spec_checked.yaml platform_spec_checked.yaml

2nd Step: (run riscv_config_gen.py)
cd cva6/config/gen_from_riscv_config

python3 scripts/riscv_config_gen.py -s ../riscv-config/cv64a60ax/generated/isa_spec_checked.yaml -c ../riscv-config/cv64a60ax/generated/custom_spec_checked.yaml -d ../riscv-config/cv64a60ax/generated/debug_spec_checked.yaml -t cv64a60ax

And I am getting following error
Traceback (most recent call last):
File "/home/560.1.429-MOSAIC/users/tk223379/cva6/config/gen_from_riscv_config/scripts/riscv_config_gen.py", line 74, in
document = e.returnDocument()
^^^^^^^^^^^^^^^^^^
File "/home/560.1.429-MOSAIC/users/tk223379/cva6/config/gen_from_riscv_config/scripts/libs/utils.py", line 1276, in returnDocument
reset = hex(RegElement.get("reset-val", ""))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'str' object cannot be interpreted as an integer

I am not sure what is causing this issue. Can you please take a look at it ?

Thanks and Regards
Tanuj Khandelwla

@khandelwaltanuj khandelwaltanuj added the Component:Tool-and-build For issues in the tool and build flow (e.g. Makefile, FuseSoc, etc.) label Mar 13, 2025
@khandelwaltanuj
Copy link
Contributor Author

The new configuration (cva6/config/riscv-config) is merged within the master branch of CVA6.

@JeanRochCoulon JeanRochCoulon added the notCV32A65X It is not an CV32A65X issue label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:Tool-and-build For issues in the tool and build flow (e.g. Makefile, FuseSoc, etc.) notCV32A65X It is not an CV32A65X issue
Projects
None yet
Development

No branches or pull requests

2 participants