cvw/sim/verilate

17 lines
686 B
Plaintext
Raw Normal View History

2023-05-22 17:30:39 +00:00
#!/bin/bash
# simulate with Verilator
export PATH=$PATH:/usr/local/bin/
verilator=`which verilator`
basepath=$(dirname $0)/..
#for config in rv32e rv64gc rv32gc rv32imc rv32i rv64i rv64fpquad; do
for config in rv64gc; do
echo "$config simulating..."
2023-11-04 10:21:07 +00:00
if !($verilator --timescale "1ns/1ns" --timing --exe --cc "$@" --top-module testbench "-I$basepath/config/shared" "-I$basepath/config/$config" $basepath/src/cvw.sv $basepath/testbench/testbench.sv $basepath/testbench/common/*.sv $basepath/src/*/*.sv $basepath/src/*/*/*.sv --relative-includes ); then
2023-05-22 17:30:39 +00:00
echo "Exiting after $config lint due to errors or warnings"
exit 1
fi
done
2023-11-04 10:21:07 +00:00
echo "Verilation complete"