mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
commit
c6ecc15d51
@ -14,6 +14,9 @@
|
|||||||
--override cpu/add_implicit_Extensions=B
|
--override cpu/add_implicit_Extensions=B
|
||||||
--override cpu/bitmanip_version=1.0.0
|
--override cpu/bitmanip_version=1.0.0
|
||||||
|
|
||||||
|
# ????
|
||||||
|
--override cpu/Zicbom=T
|
||||||
|
|
||||||
# clarify
|
# clarify
|
||||||
#--override refRoot/cpu/mtvec_sext=F
|
#--override refRoot/cpu/mtvec_sext=F
|
||||||
|
|
||||||
|
@ -32,11 +32,13 @@ vlog +incdir+../config/$1 \
|
|||||||
+incdir+$env(IMPERAS_HOME)/ImpProprietary/include/host \
|
+incdir+$env(IMPERAS_HOME)/ImpProprietary/include/host \
|
||||||
$env(IMPERAS_HOME)/ImpPublic/source/host/rvvi/rvviApiPkg.sv \
|
$env(IMPERAS_HOME)/ImpPublic/source/host/rvvi/rvviApiPkg.sv \
|
||||||
$env(IMPERAS_HOME)/ImpPublic/source/host/rvvi/rvviTrace.sv \
|
$env(IMPERAS_HOME)/ImpPublic/source/host/rvvi/rvviTrace.sv \
|
||||||
|
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/idvApiPkg.sv \
|
||||||
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/idvPkg.sv \
|
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/idvPkg.sv \
|
||||||
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/idvApiPkg.sv \
|
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/idvApiPkg.sv \
|
||||||
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/trace2api.sv \
|
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/trace2api.sv \
|
||||||
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/trace2log.sv \
|
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/trace2log.sv \
|
||||||
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/trace2cov.sv \
|
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/trace2cov.sv \
|
||||||
|
$env(IMPERAS_HOME)/ImpProprietary/source/host/idv/trace2bin.sv \
|
||||||
../src/cvw.sv \
|
../src/cvw.sv \
|
||||||
../testbench/testbench_imperas.sv \
|
../testbench/testbench_imperas.sv \
|
||||||
../testbench/common/*.sv \
|
../testbench/common/*.sv \
|
||||||
|
@ -307,11 +307,12 @@ module testbench;
|
|||||||
initial begin
|
initial begin
|
||||||
int iter;
|
int iter;
|
||||||
#1;
|
#1;
|
||||||
IDV_MAX_ERRS = 3;
|
IDV_MAX_ERRORS = 3;
|
||||||
|
|
||||||
// Initialize REF (do this before initializing the DUT)
|
// Initialize REF (do this before initializing the DUT)
|
||||||
if (!rvviVersionCheck(RVVI_API_VERSION)) begin
|
if (!rvviVersionCheck(RVVI_API_VERSION)) begin
|
||||||
msgfatal($sformatf("%m @ t=%0t: Expecting RVVI API version %0d.", $time, RVVI_API_VERSION));
|
$display($sformatf("%m @ t=%0t: Expecting RVVI API version %0d.", $time, RVVI_API_VERSION));
|
||||||
|
$fatal;
|
||||||
end
|
end
|
||||||
|
|
||||||
void'(rvviRefConfigSetString(IDV_CONFIG_MODEL_VENDOR, "riscv.ovpworld.org"));
|
void'(rvviRefConfigSetString(IDV_CONFIG_MODEL_VENDOR, "riscv.ovpworld.org"));
|
||||||
@ -321,7 +322,8 @@ module testbench;
|
|||||||
void'(rvviRefConfigSetInt(IDV_CONFIG_MAX_NET_LATENCY_RETIREMENTS, 6));
|
void'(rvviRefConfigSetInt(IDV_CONFIG_MAX_NET_LATENCY_RETIREMENTS, 6));
|
||||||
|
|
||||||
if (!rvviRefInit("")) begin
|
if (!rvviRefInit("")) begin
|
||||||
msgfatal($sformatf("%m @ t=%0t: rvviRefInit failed", $time));
|
$display($sformatf("%m @ t=%0t: rvviRefInit failed", $time));
|
||||||
|
$fatal;
|
||||||
end
|
end
|
||||||
|
|
||||||
// Volatile CSRs
|
// Volatile CSRs
|
||||||
|
@ -140,11 +140,12 @@ module testbench;
|
|||||||
|
|
||||||
initial begin
|
initial begin
|
||||||
|
|
||||||
IDV_MAX_ERRS = 3;
|
IDV_MAX_ERRORS = 3;
|
||||||
|
|
||||||
// Initialize REF (do this before initializing the DUT)
|
// Initialize REF (do this before initializing the DUT)
|
||||||
if (!rvviVersionCheck(RVVI_API_VERSION)) begin
|
if (!rvviVersionCheck(RVVI_API_VERSION)) begin
|
||||||
msgfatal($sformatf("%m @ t=%0t: Expecting RVVI API version %0d.", $time, RVVI_API_VERSION));
|
$display($sformatf("%m @ t=%0t: Expecting RVVI API version %0d.", $time, RVVI_API_VERSION));
|
||||||
|
$fatal;
|
||||||
end
|
end
|
||||||
void'(rvviRefConfigSetString(IDV_CONFIG_MODEL_VENDOR, "riscv.ovpworld.org"));
|
void'(rvviRefConfigSetString(IDV_CONFIG_MODEL_VENDOR, "riscv.ovpworld.org"));
|
||||||
void'(rvviRefConfigSetString(IDV_CONFIG_MODEL_NAME, "riscv"));
|
void'(rvviRefConfigSetString(IDV_CONFIG_MODEL_NAME, "riscv"));
|
||||||
@ -153,7 +154,8 @@ module testbench;
|
|||||||
void'(rvviRefConfigSetInt(IDV_CONFIG_MAX_NET_LATENCY_RETIREMENTS, 6));
|
void'(rvviRefConfigSetInt(IDV_CONFIG_MAX_NET_LATENCY_RETIREMENTS, 6));
|
||||||
|
|
||||||
if (!rvviRefInit(elffilename)) begin
|
if (!rvviRefInit(elffilename)) begin
|
||||||
msgfatal($sformatf("%m @ t=%0t: rvviRefInit failed", $time));
|
$display($sformatf("%m @ t=%0t: rvviRefInit failed", $time));
|
||||||
|
$fatal;
|
||||||
end
|
end
|
||||||
|
|
||||||
// Volatile CSRs
|
// Volatile CSRs
|
||||||
|
Loading…
Reference in New Issue
Block a user