From ae76c62623eab14fff9a634a1815dba2b3e1826a Mon Sep 17 00:00:00 2001 From: Canberk Topal Date: Thu, 4 Aug 2022 17:35:36 +0100 Subject: [PATCH] [dv,cosim] Add memory region to match UVM env This extends our memory range to be between 0 and 0xFFFF_FFFF. This is needed because in the case of no match between UVM memory model and spike memory model, we see a mismatch. Signed-off-by: Canberk Topal --- dv/uvm/core_ibex/common/ibex_cosim_agent/spike_cosim_dpi.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/dv/uvm/core_ibex/common/ibex_cosim_agent/spike_cosim_dpi.cc b/dv/uvm/core_ibex/common/ibex_cosim_agent/spike_cosim_dpi.cc index 91233fb3..f669b539 100644 --- a/dv/uvm/core_ibex/common/ibex_cosim_agent/spike_cosim_dpi.cc +++ b/dv/uvm/core_ibex/common/ibex_cosim_agent/spike_cosim_dpi.cc @@ -23,6 +23,7 @@ void *spike_cosim_init(const char *isa_string, svBitVecVal *start_pc, SpikeCosim *cosim = new SpikeCosim(isa_string, start_pc[0], start_mtvec[0], log_file_path, false, true); cosim->add_memory(0x80000000, 0x80000000); + cosim->add_memory(0x00000000, 0x80000000); return static_cast(cosim); }