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

Problem when emulating on nexys #323

Open
Clay-Cui opened this issue Sep 19, 2023 · 3 comments
Open

Problem when emulating on nexys #323

Clay-Cui opened this issue Sep 19, 2023 · 3 comments

Comments

@Clay-Cui
Copy link

Hi, I followed the readme file and try to use
make nexys-emul
to generate the bitfile for the nexys board.
However, I keep getting this error
ERROR: Setup failed : Cannot find emulation/core-v-mcu-nexys/rtl/core_v_mcu_nexys.v in . cp ./build/openhwgroup.org_systems_core-v-mcu_0/nexys-a7-100t-vivado/openhwgroup.org_systems_core-v-mcu_0.runs/impl_1/core_v_mcu_nexys.bit emulation/core_v_mcu_nexys.bit cp: cannot stat './build/openhwgroup.org_systems_core-v-mcu_0/nexys-a7-100t-vivado/openhwgroup.org_systems_core-v-mcu_0.runs/impl_1/core_v_mcu_nexys.bit': No such file or directory Makefile:122: recipe for target 'nexys-emul' failed

I looked into ./build/openhwgroup.org_systems_core-v-mcu_0/nexys-a7-100t-vivado/ there is only a subfolder called src, no folder is called run. How should I fix this?
And in the readme file, I don't quite get how to install latest board-parts with the core_v_nexys_200122.bit?

Thank you in advance for any help!

@gmartin102
Copy link
Contributor

I see an oversight on the Makefile when building the nexys target, It creates the top level file with an incorrect name "emulation/core-v-mcu-nexys/rtl/core_v_mcu_util.v" instead of "emulation/core-v-mcu-nexys/rtl/core_v_mcu_nexys.v"
A quick solution would be to
cp emulation/core-v-mcu-nexys/rtl/core_v_mcu_util.v emulation/core-v-mcu-nexys/rtl/core_v_mcu_nexys.v
make nexys-emul

@Clay-Cui
Copy link
Author

Clay-Cui commented Sep 20, 2023

Thank you very much for your reply.
I copied the file and found another error.
Traceback (most recent call last): assert loader is not None, "A loader was not found for the package." AssertionError: A loader was not found for the package.

Seems like an error regarding to the jinja2? I didn't change anything in the source code... Or does my environment is wrongly configured?

Thank you very much!

Edit: I think I found out the problem. It's the jinja version. I'm using Ubuntu18.04 which comes with python 3.6. Jinja2 droped python 3.6 support since jinja2 3.1. So I the latest i can get is install jinja2 3.0.3. And it gave me such error. If i use python version greater than 3.6, install the latest jinja2, the error is gone. And I'm waiting for the vivado to finish. Thank you for your help!

@MikeOpenHWGroup
Copy link
Member

Glad to hear you've resolved the issue @Clay-Cui. Would you be willing to contribute a pull-request to this repo to ensure the fix is available to everyone? Thanks!

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

3 participants