Skip to content

Commit

Permalink
Install Verilator only if DV_SIMULATORS == veri-testharness
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanRochCoulon committed Oct 23, 2024
1 parent 9ceab19 commit 61c38ea
Show file tree
Hide file tree
Showing 16 changed files with 93 additions and 79 deletions.
12 changes: 7 additions & 5 deletions verif/regress/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ if [ -z "$RISCV" ]; then
return
fi

if [ -z "$DV_SIMULATORS" ]; then
DV_SIMULATORS=veri-testharness,spike
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

source ./verif/sim/setup-env.sh

if [ -z "$DV_SIMULATORS" ]; then
DV_SIMULATORS=veri-testharness,spike
fi

if [ -z "$DV_TARGET" ]; then
DV_TARGET=cv64a6_imafdc_sv39
fi
Expand Down
12 changes: 7 additions & 5 deletions verif/regress/coremark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

source ./verif/sim/setup-env.sh

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi

if ! [ -n "$DV_HWCONFIG_OPTS" ]; then
DV_HWCONFIG_OPTS="cv32a65x"
fi
Expand Down
11 changes: 6 additions & 5 deletions verif/regress/cv32a6_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

# install the required test suites
Expand All @@ -27,10 +32,6 @@ source ./verif/sim/setup-env.sh

echo "$SPIKE_INSTALL_DIR$"

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

if ! [ -n "$DV_TARGET" ]; then
DV_TARGET=cv32a65x
fi
Expand Down
11 changes: 6 additions & 5 deletions verif/regress/cv64a6_imafdc_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

# install the required test suites
Expand All @@ -30,10 +35,6 @@ source ./verif/sim/setup-env.sh

echo "$SPIKE_INSTALL_DIR$"

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

if ! [ -n "$DV_TARGET" ]; then
DV_TARGET=cv64a6_imafdc_sv39_hpdcache
fi
Expand Down
12 changes: 7 additions & 5 deletions verif/regress/cvxif_verif_regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

# setup sim env
source ./verif/sim/setup-env.sh

echo "$SPIKE_INSTALL_DIR$"

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

if ! [ -n "$UVM_VERBOSITY" ]; then
export UVM_VERBOSITY=UVM_NONE
fi
Expand Down
12 changes: 7 additions & 5 deletions verif/regress/dhrystone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

source ./verif/sim/setup-env.sh

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi

if ! [ -n "$DV_HWCONFIG_OPTS" ]; then
DV_HWCONFIG_OPTS="cv32a65x"
fi
Expand Down
12 changes: 7 additions & 5 deletions verif/regress/dhrystone_smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

source ./verif/sim/setup-env.sh

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi

make clean
make -C verif/sim clean_all

Expand Down
12 changes: 7 additions & 5 deletions verif/regress/dv-csr-embedded-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm,spike
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

source ./verif/sim/setup-env.sh
Expand All @@ -26,10 +32,6 @@ if ! [ -n "$DV_TARGET" ]; then
DV_TARGET=cv32a65x
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm,spike
fi

cd verif/sim/
python3 cva6.py --testlist=../tests/testlist_csr_embedded.yaml --iss_yaml cva6.yaml --target $DV_TARGET --iss=$DV_SIMULATORS $DV_OPTS --priv=m --iss_timeout 600 --linker=../../config/gen_from_riscv_config/$DV_TARGET/linker/link.ld

Expand Down
5 changes: 0 additions & 5 deletions verif/regress/dv-generated-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ if ! [ -n "$RISCV" ]; then
fi

# install the required tools
source ./verif/regress/install-verilator.sh
source ./verif/regress/install-spike.sh

source ./verif/sim/setup-env.sh
Expand All @@ -27,10 +26,6 @@ if ! [ -n "$DV_TARGET" ]; then
DV_TARGET=cv32a65x
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm,spike
fi

if ! [ -n "$list_num" ]; then
list_num=1 #default test list
fi
Expand Down
5 changes: 0 additions & 5 deletions verif/regress/dv-generated-xif-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ if ! [ -n "$RISCV" ]; then
fi

# install the required tools
source ./verif/regress/install-verilator.sh
source ./verif/regress/install-spike.sh

source ./verif/sim/setup-env.sh
Expand All @@ -27,10 +26,6 @@ if ! [ -n "$DV_TARGET" ]; then
DV_TARGET=cv32a65x
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm,spike
fi

if ! [ -n "$list_num" ]; then
list_num=1 #default test list
fi
Expand Down
12 changes: 7 additions & 5 deletions verif/regress/dv-riscv-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=veri-testharness,spike
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh
source verif/regress/install-riscv-tests.sh

Expand All @@ -24,10 +30,6 @@ if ! [ -n "$DV_TARGET" ]; then
DV_TARGET=cv64a6_imafdc_sv39
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=veri-testharness,spike
fi

if ! [ -n "$DV_TESTLISTS" ]; then
DV_TESTLISTS="../tests/testlist_riscv-tests-$DV_TARGET-p.yaml \
../tests/testlist_riscv-tests-$DV_TARGET-v.yaml"
Expand Down
12 changes: 7 additions & 5 deletions verif/regress/hwconfig_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

source ./verif/sim/setup-env.sh

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi

if ! [ -n "$DV_TARGET" ]; then
DV_TARGET=cv32a65x
fi
Expand Down
12 changes: 7 additions & 5 deletions verif/regress/smoke-gen_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

source verif/sim/setup-env.sh
Expand All @@ -27,10 +33,6 @@ if ! [ -n "$DV_TARGET" ]; then
DV_TARGET=cv32a65x
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-uvm
fi

cd verif/sim/
cp ../env/corev-dv/custom/riscv_custom_instr_enum.sv ./dv/src/isa/custom/
python3 cva6.py --testlist=cva6_base_testlist.yaml --test riscv_arithmetic_basic_test_comp --iss_yaml cva6.yaml --target $DV_TARGET -cs ../env/corev-dv/target/rv32imcb/ --mabi ilp32 --isa rv32imc --isa_extension="zba,zbb,zbc,zbs,zcb" --simulator_yaml ../env/corev-dv/simulator.yaml --iss=$DV_SIMULATORS $DV_OPTS --priv=m -i 1 --iss_timeout 300
Expand Down
10 changes: 6 additions & 4 deletions verif/regress/smoke-tests-cv32a65x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

# install the required tools
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

# setup sim env
source ./verif/sim/setup-env.sh

echo "$SPIKE_INSTALL_DIR$"

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

if ! [ -n "$UVM_VERBOSITY" ]; then
export UVM_VERBOSITY=UVM_NONE
fi
Expand Down
11 changes: 6 additions & 5 deletions verif/regress/smoke-tests-cv32a6_imac_sv32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

# install the required test suites
Expand All @@ -28,10 +33,6 @@ source ./verif/sim/setup-env.sh

echo "$SPIKE_INSTALL_DIR$"

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

if ! [ -n "$UVM_VERBOSITY" ]; then
export UVM_VERBOSITY=UVM_NONE
fi
Expand Down
11 changes: 6 additions & 5 deletions verif/regress/smoke-tests-cv64a6_imafdc_sv39.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ if ! [ -n "$RISCV" ]; then
return
fi

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

# install the required tools
source ./verif/regress/install-verilator.sh
if [[ "$DV_SIMULATORS" == *"veri-testharness"* ]]; then
source ./verif/regress/install-verilator.sh
fi
source ./verif/regress/install-spike.sh

# install the required test suites
Expand All @@ -28,10 +33,6 @@ source ./verif/sim/setup-env.sh

echo "$SPIKE_INSTALL_DIR$"

if ! [ -n "$DV_SIMULATORS" ]; then
DV_SIMULATORS=vcs-testharness,spike
fi

if ! [ -n "$UVM_VERBOSITY" ]; then
export UVM_VERBOSITY=UVM_NONE
fi
Expand Down

0 comments on commit 61c38ea

Please sign in to comment.