构建 sodor 模拟器时出错,riscv-sodor

Error while building sodor emulators, riscv-sodor

我安装了 riscv、riscv-gnu-toolchain 和 riscv-tools 并想要获取 riscv-sodor。为此,我按照 https://github.com/librecores/riscv-sodor 中的步骤,成功安装了 verilator 和前端服务器,但之后我必须构建 sodor 模拟器,并且在执行 make 命令的第一步我得到了这个错误

make -C emulator/rv32_1stage/
make[1]: Entering directory '/home/nemanja/riscv-sodor/emulator/rv32_1stage'
verilator --cc --exe  --top-module Top +define+PRINTF_COND=$c\(\"verbose\"\) --assert --output-split 20000 --x-assign unique -I/home/nemanja/riscv-sodor/vsrc -O3 -CFLAGS " -O1 -std=c++11  -g -I/home/nemanja/riscv-sodor/emulator/common -I/home/nemanja/riscv-sodor/riscv-fesvr  -L/opt/riscv/lib -Wl,-rpath,/opt/riscv/lib -L. -lpthread -DVERILATOR -include /home/nemanja/riscv-sodor/emulator/common/verilator.h" \
-o /home/nemanja/riscv-sodor/emulator/rv32_1stage/emulator generated-src/Top.v /home/nemanja/riscv-sodor/vsrc/SimDTM.v -LDFLAGS " -L/opt/riscv/lib -Wl,-rpath,/opt/riscv/lib -L. -lpthread" /home/nemanja/riscv-sodor/emulator/common/emulator.cpp /home/nemanja/riscv-sodor/riscv-fesvr/build/libfesvr.so /home/nemanja/riscv-sodor/emulator/rv32_1stage/SimDTM.o
/bin/sh: 1: verilator: not found
/home/nemanja/riscv-sodor/emulator/common/Makefile.include:83: recipe for target 'emulator' failed
make[1]: *** [emulator] Error 127
make[1]: Leaving directory '/home/nemanja/riscv-sodor/emulator/rv32_1stage'
Makefile:104: recipe for target 'emulator/rv32_1stage/emulator' failed
make: *** [emulator/rv32_1stage/emulator] Error 2

因为我对这一切真的很陌生,所以我不知道会出现什么问题。 我将不胜感激任何可能的故障排除帮助...

谢谢。

该特定错误是由于 verilator 未安装在您的 $PATH 上。

/bin/sh: 1: verilator: not found

一旦你为你的操作系统安装了它,你就应该解决这个特定的问题。