Hey!
I have question about assertion in src/dm_top.sv:
assert ((DmBaseAddress > 0 && hartinfo_i[i].nscratch >= 2) || (DmBaseAddress == 0 && hartinfo_i[i].nscratch >= 1))
else $fatal(1, "If the DM is not located at the zero page each hart needs at lest two scratch registers %d %d",i, hartinfo_i[i].nscratch );
Hey! I have question about assertion in
src/dm_top.sv
:and in testbench
riscv_dbg/tb/tb_test_env
is:so
hartinfo_i
is always 0 here, so this assert will call $fatal.