lowRISC / lowrisc-chip

The root repo for lowRISC project and FPGA demos.
http://www.lowrisc.org/
Other
594 stars 148 forks source link

Verilator error #46

Closed ninode closed 7 years ago

ninode commented 7 years ago

Hello,

when trying to run make sim in ~lowrisc-chip/vsim (untether-v2.0), I get the following error:

alpha@alpha-VirtualBox:~/lowrisc-chip/vsim$ make sim
cd verilator && make -f Vchip_top.mk
/bin/bash: line 0: cd: verilator: No such file or directory
make: *** [DefaultConfig-sim] Error 1

My environment variables are:

alpha@alpha-VirtualBox:~/lowrisc-chip/vsim$ which verilator
/usr/bin/verilator

Can anyone please tell why this isn't working ?

Thank you !

jrrk commented 7 years ago

Our simulator requires a version of verilator which is much newer than comes with most distributions.

Follow the instructions on our website lowrisc.org to install verilator first, including setting the correct

environment variable. You may need to run git clean in the vsim directory as well after a failure of this kind.

On 05/03/2017 02:22 PM, ninode wrote:

Hello,

when trying to run make sim in ~lowrisc-chip/vsim (untether-v2.0), I get the following error:

|alpha@alpha-VirtualBox:~/lowrisc-chip/vsim$ make sim cd verilator && make -f Vchip_top.mk /bin/bash: line 0: cd: verilator: No such file or directory make: *** [DefaultConfig-sim] Error 1 |

My environment variables are:

|alpha@alpha-VirtualBox:~/lowrisc-chip/vsim$ which verilator /usr/bin/verilator |

Can anyone please tell why this isn't working ?

Thank you !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lowRISC/lowrisc-chip/issues/46, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgF1wNhv9wtELwerJFUW_DoUg8kCW1Lks5r2H-MgaJpZM4NPY9b.

wsong83 commented 7 years ago

If you get an error during the make process, for example a syntax error or compiler error, after you have fixed the error, you probably need to make clean before make again.

The issue here is that, ventilator.log is always generated but the verilator directory is only created if the make runs ok.

baemyoungsub commented 6 years ago

I have suffered from the same problem. This is Text of verilator.log : sh: 1: /local/tool/verilator/verilator_bin: not found %Error: Command Failed /local/tool/verilator/verilator_bin --cc /home/bae/lowRISC/lowrisc-chip/src/main/verilog/chip_top.sv /home/bae/lowRISC/lowrisc-chip/vsim/generated-src/Top.DefaultConfig.v /home/bae/lowRISC/lowrisc-chip/src/test/verilog/nasti_ram_behav.sv /home/bae/lowRISC/lowrisc-chip/src/test/verilog/host_behav.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/channel.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/lite_nasti_reader.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/lite_nasti_writer.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_buf.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_combiner.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_crossbar.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_demux.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_lite_bridge.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_lite_reader.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_lite_writer.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_mux.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_slicer.sv /home/bae/lowRISC/lowrisc-chip/socip/util/arbiter.sv /home/bae/lowRISC/lowrisc-chip/src/test/cxx/common/globals.cpp /home/bae/lowRISC/lowrisc-chip/src/test/cxx/common/dpi_ram_behav.cpp /home/bae/lowRISC/lowrisc-chip/src/test/cxx/common/dpi_host_behav.cpp /home/bae/lowRISC/lowrisc-chip/src/test/cxx/veri/veri_top.cc -DVERILATOR_GCC +incdir+/home/bae/lowRISC/lowrisc-chip/vsim/generated-src +incdir+/home/bae/lowRISC/lowrisc-chip/src/main/verilog --top-module chip_top --unroll-count 256 --trace -Wno-lint -Wno-style -Wno-STMTDLY -CFLAGS '-std=c++11' -CFLAGS '-I/home/bae/lowRISC/lowrisc-chip/src/test/cxx/common -I/home/bae/lowRISC/lowrisc-chip/src/test/cxx/veri' --exe --assert --Mdir ./verilator -O3 -CFLAGS -O1 -o ../DefaultConfig-sim

and this is verilator/bin dirctory verilator verilator_difftree verilator_profcfunc verilator_coverage verilator_includer I don't know what went wrong. PLEASE, somebody tell me solution....

jrrk commented 6 years ago

It looks like you did not follow the instructions for installing Verilator correctly. When the documentation refers to

/local/tool it really means "the directory you decided to install verilator", which by default will be /usr/local, but you can choose a suitable

directory when you install verilator. For example a user without admin privileges might choose /home/$USER/verilator.

Also be sure to attend to the creation of the links as explained in the documentation on lowrisc.org.

Do not attempt to use the system version of verilator, on most distributions it will be far too old to understand the latest syntax that we use.

You also need to create an environment variable, example:

export VERILATOR_ROOT=/usr/local/share/verilator # or wherever you put it

On 25/10/17 09:19, baemyoungsub wrote:

I have suffered from the same problem. This is Text of verilator.log : |sh: 1: /local/tool/verilator/verilator_bin: not found %Error: Command Failed /local/tool/verilator/verilator_bin --cc /home/bae/lowRISC/lowrisc-chip/src/main/verilog/chip_top.sv /home/bae/lowRISC/lowrisc-chip/vsim/generated-src/Top.DefaultConfig.v /home/bae/lowRISC/lowrisc-chip/src/test/verilog/nasti_ram_behav.sv /home/bae/lowRISC/lowrisc-chip/src/test/verilog/host_behav.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/channel.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/lite_nasti_reader.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/lite_nasti_writer.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_buf.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_combiner.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_crossbar.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_demux.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_lite_bridge.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_lite_reader.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_lite_writer.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_mux.sv /home/bae/lowRISC/lowrisc-chip/socip/nasti/nasti_slicer.sv /home/bae/lowRISC/lowrisc-chip/socip/util/arbiter.sv /home/bae/lowRISC/lowrisc-chip/src/test/cxx/common/globals.cpp /home/bae/lowRISC/lowrisc-chip/src/test/cxx/common/dpi_ram_behav.cpp /home/bae/lowRISC/lowrisc-chip/src/test/cxx/common/dpi_host_behav.cpp /home/bae/lowRISC/lowrisc-chip/src/test/cxx/veri/veri_top.cc -DVERILATOR_GCC +incdir+/home/bae/lowRISC/lowrisc-chip/vsim/generated-src +incdir+/home/bae/lowRISC/lowrisc-chip/src/main/verilog --top-module chip_top --unroll-count 256 --trace -Wno-lint -Wno-style -Wno-STMTDLY -CFLAGS '-std=c++11' -CFLAGS '-I/home/bae/lowRISC/lowrisc-chip/src/test/cxx/common -I/home/bae/lowRISC/lowrisc-chip/src/test/cxx/veri' --exe --assert --Mdir ./verilator -O3 -CFLAGS -O1 -o ../DefaultConfig-sim|

and this is verilator/bin dirctory |verilator verilator_difftree verilator_profcfunc verilator_coverage verilator_includer| I don't know what went wrong. PLEASE, somebody tell me solution....

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lowRISC/lowrisc-chip/issues/46#issuecomment-339252496, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgF17nTisW1BfRz8nLEMKWFUMbY3qhjks5svu8ggaJpZM4NPY9b.

baemyoungsub commented 6 years ago

jrrk : thank you for your answer. I reinstalled ubuntu and packages because my computer was totally mess up. so now I faced same error comment. i don't understand your first answer "Our simulator requires a version of verilator which is much newer than comes with most distributions.". I use verilator-3.914. (Oct 14 2017) version. This is latest version of verilaor i found and i used. May i asy you how can i download satisfied version for RTL simulation??

asb commented 6 years ago

Jonathan was just pointing out that if you're using a distribution like Ubuntu 16.04 LTS you might find that the distribution-provided verilator is too old. A version from October should be just fine.

codelec commented 6 years ago

wget http://mirrors.kernel.org/ubuntu/pool/universe/v/verilator/verilator_3.914-2_amd64.deb sudo dpkg -i verilator_3.914-2_amd64.deb

jrrk commented 6 years ago

If you install from binary dpkg the instructions on our website need to be modified. In particular you need to run verilator in a verbose mode to find the VERILATOR_ROOT that’s expected. You might also need to recompile some library files such as verilated.o and friends. With this type of tool a universal binary version is not practical. On the other hand if you compile from source (which is slow but not hard) our instructions should apply.

Sent from my iPhone

On 11 Nov 2017, at 11:24, kritik bhimani notifications@github.com wrote:

wget http://mirrors.kernel.org/ubuntu/pool/universe/v/verilator/verilator_3.914-2_amd64.deb sudo dpkg -i verilator_3.914-2_amd64.deb

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

baemyoungsub commented 6 years ago

asb I currently use verilator-3.914 (Oct 14 2017). The error still appears to me. This is my problem

FranDuqueAyachi commented 2 years ago

asb I currently use verilator-3.914 (Oct 14 2017). The error still appears to me. This is my problem

Hi, I have the same Issue, did u fix it ?

jrrk commented 2 years ago

I’m sorry, there is no maintainer on this project any more. It is highly likely to fail as tools and operating systems move on.