Closed Siris-Li closed 10 months ago
I've found one previous issue #1631 that encountered the same problems as mine. I will list how I solved this problem below.
Install the RISC-V GCC toolchain by following util/gcc-toolchain-builder/README.md
, here is my code:
$ export RISCV=</riscv/toolchain/path>
$ cd util/gcc-toolchain-builder
$ sh get-toolchain.sh
$ sh build-toolchain.sh $RISCV
Install a custom Spike and Verilator through verif/regress/smoke-tests.sh
.
Before running this script, help2man, device-tree-compiler
should be installed by apt-get install
if the OS is Ubuntu, others are similar.
help2man
is needed for Verilator installation, and device-tree-compiler
is needed for Spike installation.
Run bash verif/regress/smoke-tests.sh
.
Remember to export DV_SIMULATORS=veri-testharness,spike
before running smoke-tests.
Everything works after the above three steps.
Thanks for the information. @valentinThomazic will maybe add this information to the README.md.
It has been added to the README, thank you @Siris-Limx for pointing that out. If you are ok with the changes, please close your issue.
If you are ok with the changes, please close your issue.
Thanks for your changes, I close this issue right now.
Hello! I've found a bug in the first run of bash verif/regress/smoke-tests.sh
to install spike.
Here is the code segment of verif/regress/install-spike.sh
:
# Build and install Spike (including extensions).
mkdir -p build
cd build
if [[ ! -f config.log ]]; then
../configure --prefix="$SPIKE_INSTALL_DIR"
fi
make -j${NUM_JOBS}
echo "Installing Spike in '$SPIKE_INSTALL_DIR'..."
make install
cd $CALLER_DIR
Here, I think we should add sudo
before make install
, that is sudo make install
just as the README
recommended in spike original repository, otherwise there may exists some permission denied
error.
@Siris-Limx Your first github issue cannot be reused for another issue. That's why I close definitively this one and please open another one with your new issue. That's the way to use "github issue". Thank you
Is there an existing CVA6 bug for this?
Bug Description
Hello! I'm new to deploy CVA6 and met with some problems when I simulated the CVA6 by using
verif/sim/cva6.py
. I carefully followed theREADME.md
and successfully installed the GCC toolchain and Verilator.However, when I tried to simulate the CVA6 by running either
verif/regress/*.sh
orverif/sim/cva6.py
directly, I will get such error:I've also referred to the log file: