olofk / fusesoc

Package manager and build abstraction tool for FPGA/ASIC development
BSD 2-Clause "Simplified" License
1.16k stars 242 forks source link

fusesoc sim de0_nano fails #126

Closed berndca closed 7 years ago

berndca commented 7 years ago

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 notimescale. ../src/s25fl064p-1.7/s25fl064p.v:729: error: Unable to bind wire/reg/memory tdevice_DP' inorpsoc_tb.spi_flash.TDPr' ../src/s25fl064p-1.7/s25fl064p.v:738: error: Unable to bind wire/reg/memory tdevice_RES' inorpsoc_tb.spi_flash.TRESr' ../src/s25fl064p-1.7/s25fl064p.v:1352: error: Unable to bind wire/reg/memory tdevice_PP' inorpsoc_tb.spi_flash.pdone_process' ../src/s25fl064p-1.7/s25fl064p.v:1374: error: Unable to bind wire/reg/memory tdevice_WR' inorpsoc_tb.spi_flash.wdone_process' ../src/s25fl064p-1.7/s25fl064p.v:1390: error: Unable to bind wire/reg/memory tdevice_BE' inorpsoc_tb.spi_flash.erase' ../src/s25fl064p-1.7/s25fl064p.v:1394: error: Unable to bind wire/reg/memory tdevice_PE' inorpsoc_tb.spi_flash.erase' ../src/s25fl064p-1.7/s25fl064p.v:1398: error: Unable to bind wire/reg/memory tdevice_SE' inorpsoc_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 commented 7 years ago

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 commented 7 years ago

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