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

fusesoc sim de0_nano fails #126

Closed
berndca opened this issue Nov 22, 2016 · 2 comments
Closed

fusesoc sim de0_nano fails #126

berndca opened this issue Nov 22, 2016 · 2 comments

Comments

@berndca
Copy link

berndca commented Nov 22, 2016

I'm trying to simulate de0_nano using the icarus simulator. I'm getting the following messages:

INFO: Running /home/bernd/.local/share/orpsoc-cores/cores/elf-loader/check_libelf.sh
INFO: Running /home/bernd/.local/share/orpsoc-cores/systems/de0_nano/legacy_symlink.sh
/home/bernd/PycharmProjects/mix/workspace/de0_nano/build/de0_nano/src/de0_nano
/home/bernd/PycharmProjects/mix/workspace/de0_nano/build/de0_nano/src/de0_nano_0
Compiling /home/bernd/PycharmProjects/mix/workspace/de0_nano/build/de0_nano/src/elf-loader/elf-loader.c...
Compiling /home/bernd/PycharmProjects/mix/workspace/de0_nano/build/de0_nano/src/elf-loader/vpi_wrapper.c...
Making elf-loader.vpi from elf-loader.o vpi_wrapper.o...
Compiling /home/bernd/PycharmProjects/mix/workspace/de0_nano/build/de0_nano/src/jtag_vpi-r2/jtag_vpi.c...
Making jtag_vpi-r2.vpi from jtag_vpi.o...
warning: Found both default and timescale based delays. Use -Wtimescale to find the module(s) with no timescale.
../src/s25fl064p-1.7/s25fl064p.v:729: error: Unable to bind wire/reg/memory tdevice_DP' in orpsoc_tb.spi_flash.TDPr'
../src/s25fl064p-1.7/s25fl064p.v:738: error: Unable to bind wire/reg/memory tdevice_RES' in orpsoc_tb.spi_flash.TRESr'
../src/s25fl064p-1.7/s25fl064p.v:1352: error: Unable to bind wire/reg/memory tdevice_PP' in orpsoc_tb.spi_flash.pdone_process'
../src/s25fl064p-1.7/s25fl064p.v:1374: error: Unable to bind wire/reg/memory tdevice_WR' in orpsoc_tb.spi_flash.wdone_process'
../src/s25fl064p-1.7/s25fl064p.v:1390: error: Unable to bind wire/reg/memory tdevice_BE' in orpsoc_tb.spi_flash.erase'
../src/s25fl064p-1.7/s25fl064p.v:1394: error: Unable to bind wire/reg/memory tdevice_PE' in orpsoc_tb.spi_flash.erase'
../src/s25fl064p-1.7/s25fl064p.v:1398: error: Unable to bind wire/reg/memory tdevice_SE' in orpsoc_tb.spi_flash.erase'
7 error(s) during elaboration.
ERROR: Failed to build simulation model
ERROR: Failed to compile Icarus Simulation model

Please advise.
Thanks, Bernd

@olofk
Copy link
Owner

olofk commented Nov 22, 2016

Not entirely sure, but I've seen people reporting similar problems quite recently. I think it could be that your Icarus version is too old. Which version are you using? Could you try to update it, or run with modelsim (by supplying --sim=modelsim after the sim command)

@berndca
Copy link
Author

berndca commented Nov 22, 2016

Good point. Failed with iverilog v0.9.7 installed with apt-get. Worked with v10.1 installed from github repo.

@berndca berndca closed this as completed Nov 22, 2016
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