mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +00:00
Remove hardcoded /opt/riscv
This commit is contained in:
parent
37046f4ff3
commit
790f566eaa
@ -43,7 +43,7 @@ my @cr; my @cf; my @rt; my @ft;
|
|||||||
my $libpath; my $libbase; my $cellname; my @corners;
|
my $libpath; my $libbase; my $cellname; my @corners;
|
||||||
|
|
||||||
# Sky130
|
# 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_";
|
$libbase = "sky130_osu_sc_12T_ms_";
|
||||||
$cellname = "sky130_osu_sc_12T_ms__inv_1";
|
$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");
|
@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
|
# 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_";
|
$libbase = "scc9gena_";
|
||||||
$cellname = "scc9gena_inv_1";
|
$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");
|
@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");
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
RISCV := /opt/riscv
|
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
@ -25,7 +25,6 @@ ERRORTEXT="$BOLDRED"ERROR:"$NC"
|
|||||||
WARNINGTEXT="$BOLDYELLOW"Warning:"$NC"
|
WARNINGTEXT="$BOLDYELLOW"Warning:"$NC"
|
||||||
|
|
||||||
# Default values for buildroot and device tree
|
# Default values for buildroot and device tree
|
||||||
RISCV=/opt/riscv
|
|
||||||
BUILDROOT=$RISCV/buildroot
|
BUILDROOT=$RISCV/buildroot
|
||||||
DEVICE_TREE=wally-vcu108.dtb
|
DEVICE_TREE=wally-vcu108.dtb
|
||||||
MNT_DIR=wallyimg
|
MNT_DIR=wallyimg
|
||||||
|
@ -9,7 +9,6 @@ NC='\033[0m'
|
|||||||
NAME="$GREEN"${0:2}"$NC"
|
NAME="$GREEN"${0:2}"$NC"
|
||||||
|
|
||||||
# File location variables
|
# File location variables
|
||||||
RISCV=/opt/riscv
|
|
||||||
IMAGES=$RISCV/buildroot/output/images
|
IMAGES=$RISCV/buildroot/output/images
|
||||||
FW_JUMP=$IMAGES/fw_jump.bin
|
FW_JUMP=$IMAGES/fw_jump.bin
|
||||||
LINUX_KERNEL=$IMAGES/Image
|
LINUX_KERNEL=$IMAGES/Image
|
||||||
|
@ -34,9 +34,9 @@ QuestaCodeCoverage: questa/ucdb/rv64gc_arch64i.ucdb
|
|||||||
imperasdv_cov:
|
imperasdv_cov:
|
||||||
touch ${SIM}/seed0.txt
|
touch ${SIM}/seed0.txt
|
||||||
echo "0" > ${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
|
# ${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
|
# ${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 --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
|
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
|
vcover report -details -html ${SIM}/questa/riscv.ucdb
|
||||||
|
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
import sys, os, subprocess
|
import sys, os, subprocess
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
RISCV = os.environ.get("RISCV")
|
||||||
maxGoodCount = 400e6 # num instrs that execute sucessfully starting from 0
|
maxGoodCount = 400e6 # num instrs that execute sucessfully starting from 0
|
||||||
currInstrCount = maxGoodCount
|
currInstrCount = maxGoodCount
|
||||||
linuxTestvectors = "/opt/riscv/linux-testvectors"
|
linuxTestvectors = RISCV+"/linux-testvectors"
|
||||||
if not os.path.exists(linuxTestvectors):
|
if not os.path.exists(linuxTestvectors):
|
||||||
sys.stderr.write("Error: Linux testvectors not found at "+linuxTestvectors+"\n")
|
sys.stderr.write("Error: Linux testvectors not found at "+linuxTestvectors+"\n")
|
||||||
exit(1)
|
exit(1)
|
||||||
@ -22,7 +23,7 @@ def main():
|
|||||||
break
|
break
|
||||||
checkpoint = checkpointList[0]
|
checkpoint = checkpointList[0]
|
||||||
logFile = logDir+"checkpoint"+str(checkpoint)+".log"
|
logFile = logDir+"checkpoint"+str(checkpoint)+".log"
|
||||||
runCommand="{\nvsim -c <<!\ndo wally-batch.do buildroot buildroot /opt/riscv 0 "+str(checkpoint+1)+" "+str(checkpoint)+"\n!\n} | tee "+logFile
|
runCommand="{\nvsim -c <<!\ndo wally-batch.do buildroot buildroot "+RISCV+" 0 "+str(checkpoint+1)+" "+str(checkpoint)+"\n!\n} | tee "+logFile
|
||||||
print(runCommand)
|
print(runCommand)
|
||||||
os.system(runCommand)
|
os.system(runCommand)
|
||||||
try:
|
try:
|
||||||
|
@ -53,14 +53,14 @@ module testbench;
|
|||||||
|
|
||||||
`ifdef VERILATOR
|
`ifdef VERILATOR
|
||||||
import "DPI-C" function string getenvval(input string env_name);
|
import "DPI-C" function string getenvval(input string env_name);
|
||||||
string RISCV_DIR = getenvval("RISCV"); // "/opt/riscv";
|
string RISCV_DIR = getenvval("RISCV");
|
||||||
string WALLY_DIR = getenvval("WALLY"); // ~/cvw typical
|
string WALLY_DIR = getenvval("WALLY"); // ~/cvw typical
|
||||||
`elsif VCS
|
`elsif VCS
|
||||||
import "DPI-C" function string getenv(input string env_name);
|
import "DPI-C" function string getenv(input string env_name);
|
||||||
string RISCV_DIR = getenv("RISCV"); // "/opt/riscv";
|
string RISCV_DIR = getenv("RISCV");
|
||||||
string WALLY_DIR = getenv("WALLY");
|
string WALLY_DIR = getenv("WALLY");
|
||||||
`else
|
`else
|
||||||
string RISCV_DIR = "$RISCV"; // "/opt/riscv";
|
string RISCV_DIR = "$RISCV";
|
||||||
string WALLY_DIR = "$WALLY";
|
string WALLY_DIR = "$WALLY";
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user