Temporarily disable PMP/MEM errors in icache testbench

This allows tests to run to completion. Unfortunately, the core agent
currently has a bug in how it handles errors (if a sequence item
terminates with an error and is followed by a 'req' sequence item, the
test hangs).

I'll fix that in a separate patch soon (and revert this commit), but
don't want the memory agent changes to depend on the fix.
This commit is contained in:
Rupert Swarbrick 2020-04-22 13:37:32 +01:00 committed by Rupert Swarbrick
parent 5cd874ea71
commit cf33bfeae0

View file

@ -13,6 +13,14 @@ class ibex_icache_sanity_vseq extends ibex_icache_base_vseq;
ibex_icache_core_sanity_seq core_seq;
ibex_icache_mem_resp_seq mem_seq;
task pre_start();
super.pre_start();
// Temporary hack (working around problems with memory/PMP errors)
cfg.mem_agent_cfg.disable_pmp_errs = 1'b1;
cfg.mem_agent_cfg.disable_mem_errs = 1'b1;
endtask
task body();
// Start the core and memory sequences. We use fork/join_any so that we don't wait for the
// memory sequence (which is reactive so will never finish).