diff --git a/bin/libppa.pl b/bin/libppa.pl index bb3d4b729..eddfc3686 100755 --- a/bin/libppa.pl +++ b/bin/libppa.pl @@ -43,7 +43,7 @@ my @cr; my @cf; my @rt; my @ft; my $libpath; my $libbase; my $cellname; my @corners; # Sky130 -$libpath ="/opt/riscv/cad/lib/sky130_osu_sc_t12/12T_ms/lib"; +$libpath ="$ENV{RISCV}/cad/lib/sky130_osu_sc_t12/12T_ms/lib"; $libbase = "sky130_osu_sc_12T_ms_"; $cellname = "sky130_osu_sc_12T_ms__inv_1"; @corners = ("TT_1P8_25C.ccs", "tt_1P80_25C.ccs", "tt_1P62_25C.ccs", "tt_1P89_25C.ccs", "ss_1P60_-40C.ccs", "ss_1P60_100C.ccs", "ss_1P60_150C.ccs", "ff_1P95_-40C.ccs", "ff_1P95_100C.ccs", "ff_1P95_150C.ccs"); @@ -53,7 +53,7 @@ foreach my $corner (@corners) { } # Sky90 -$libpath ="/opt/riscv/cad/lib/sky90/sky90_sc/V1.7.4/lib"; +$libpath ="$ENV{RISCV}/cad/lib/sky90/sky90_sc/V1.7.4/lib"; $libbase = "scc9gena_"; $cellname = "scc9gena_inv_1"; @corners = ("tt_1.2v_25C", "tt_1.08v_25C", "tt_1.32v_25C", "tt_1.2v_-40C", "tt_1.2v_85C", "tt_1.2v_125C", "ss_1.2v_25C", "ss_1.08v_-40C", "ss_1.08v_25C", "ss_1.08v_125C", "ff_1.2v_25C", "ff_1.32v_-40C", "ff_1.32v_25C", "ff_1.32v_125C"); diff --git a/linux/sdcard/Makefile b/linux/sdcard/Makefile index 7c6c012f9..643514815 100644 --- a/linux/sdcard/Makefile +++ b/linux/sdcard/Makefile @@ -1,5 +1,3 @@ -RISCV := /opt/riscv - .PHONY: all clean all: diff --git a/linux/sdcard/flash-sd.sh b/linux/sdcard/flash-sd.sh index 7019611a9..7a2c58d42 100755 --- a/linux/sdcard/flash-sd.sh +++ b/linux/sdcard/flash-sd.sh @@ -25,7 +25,6 @@ ERRORTEXT="$BOLDRED"ERROR:"$NC" WARNINGTEXT="$BOLDYELLOW"Warning:"$NC" # Default values for buildroot and device tree -RISCV=/opt/riscv BUILDROOT=$RISCV/buildroot DEVICE_TREE=wally-vcu108.dtb MNT_DIR=wallyimg diff --git a/linux/sdcard/make-img.sh b/linux/sdcard/make-img.sh index 12a9084d4..df6193f16 100755 --- a/linux/sdcard/make-img.sh +++ b/linux/sdcard/make-img.sh @@ -9,7 +9,6 @@ NC='\033[0m' NAME="$GREEN"${0:2}"$NC" # File location variables -RISCV=/opt/riscv IMAGES=$RISCV/buildroot/output/images FW_JUMP=$IMAGES/fw_jump.bin LINUX_KERNEL=$IMAGES/Image diff --git a/sim/Makefile b/sim/Makefile index 5635431ff..1807a280f 100644 --- a/sim/Makefile +++ b/sim/Makefile @@ -34,9 +34,9 @@ QuestaCodeCoverage: questa/ucdb/rv64gc_arch64i.ucdb imperasdv_cov: touch ${SIM}/seed0.txt echo "0" > ${SIM}/seed0.txt -# /opt/riscv/ImperasDV-OpenHW/scripts/cvw/run-elf-cov.bash --verbose --seed 0 --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m -# /opt/riscv/ImperasDV-OpenHW/scripts/cvw/run-elf-cov.bash --elf ${WALLY}/tests/riscof/work/riscv-arch-test/rv64i_m/I/src/add-01.S/dut/my.elf --seed ${SIM}/seed0.txt --coverdb ${SIM}/cov/rv64gc_arch64i.ucdb --verbose -# /opt/riscv/ImperasDV-OpenHW/scripts/cvw/run-elf-cov.bash --elf ${WALLY}/tests/riscof/work/riscv-arch-test/rv64i_m/I/src/add-01.S/dut/my.elf --seed ${SIM}/seed0.txt --coverdb ${SIM}/questa/riscv.ucdb --verbose +# ${RISCV}/ImperasDV-OpenHW/scripts/cvw/run-elf-cov.bash --verbose --seed 0 --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m +# ${RISCV}/ImperasDV-OpenHW/scripts/cvw/run-elf-cov.bash --elf ${WALLY}/tests/riscof/work/riscv-arch-test/rv64i_m/I/src/add-01.S/dut/my.elf --seed ${SIM}/seed0.txt --coverdb ${SIM}/cov/rv64gc_arch64i.ucdb --verbose +# ${RISCV}/ImperasDV-OpenHW/scripts/cvw/run-elf-cov.bash --elf ${WALLY}/tests/riscof/work/riscv-arch-test/rv64i_m/I/src/add-01.S/dut/my.elf --seed ${SIM}/seed0.txt --coverdb ${SIM}/questa/riscv.ucdb --verbose run-elf-cov.bash --elf ${WALLY}/tests/riscvdv/asm_test/riscv_arithmetic_basic_test_0.elf --seed ${SIM}/questa/seed0.txt --coverdb ${SIM}/questa/riscv.ucdb --verbose vcover report -details -html ${SIM}/questa/riscv.ucdb diff --git a/sim/buildrootBugFinder.py b/sim/buildrootBugFinder.py index 55613e64b..ee9fe0603 100755 --- a/sim/buildrootBugFinder.py +++ b/sim/buildrootBugFinder.py @@ -2,9 +2,10 @@ import sys, os, subprocess def main(): + RISCV = os.environ.get("RISCV") maxGoodCount = 400e6 # num instrs that execute sucessfully starting from 0 currInstrCount = maxGoodCount - linuxTestvectors = "/opt/riscv/linux-testvectors" + linuxTestvectors = RISCV+"/linux-testvectors" if not os.path.exists(linuxTestvectors): sys.stderr.write("Error: Linux testvectors not found at "+linuxTestvectors+"\n") exit(1) @@ -22,7 +23,7 @@ def main(): break checkpoint = checkpointList[0] logFile = logDir+"checkpoint"+str(checkpoint)+".log" - runCommand="{\nvsim -c <