Adding RISC-V Assertions

This commit is contained in:
Huda-10xe 2025-02-06 23:47:43 -08:00
parent 737d624a0d
commit 2db536bf49

View File

@ -28,6 +28,7 @@
`include "config.vh"
`include "tests.vh"
`include "BranchPredictorType.vh"
// `include "RV32VM_coverage copy.sv"
`ifdef USE_IMPERAS_DV
`include "idv/idv.svh"
@ -292,7 +293,8 @@ module testbench;
# 100;
TestBenchReset = 1'b0;
end
mcount u_mcounteren_checker (
);
always_ff @(posedge clk)
if (TestBenchReset) CurrState <= STATE_TESTBENCH_RESET;
else CurrState <= NextState;
@ -751,6 +753,8 @@ end
.CMP_CSR (1)
) idv_trace2api(rvvi);
`include "RV_Assertions.sv"
string filename;
initial begin
// imperasDV requires the elffile be defined at the begining of the simulation.