Always assert ready in core driver for ICache UVM testbench

This works around a bug tracked in issue #850.
This commit is contained in:
Rupert Swarbrick 2020-05-11 12:41:28 +01:00 committed by Rupert Swarbrick
parent 863fb56eb1
commit ff5c0c5823

View file

@ -112,9 +112,15 @@ class ibex_icache_core_driver
virtual task automatic read_insn();
int unsigned delay;
// Maybe (1 time in 10) wait for a valid signal before even considering asserting ready.
if ($urandom_range(9) == 0)
wait (cfg.vif.driver_cb.valid);
// TODO: The icache sometimes currently requires the ready signal before it asserts valid. This
// is tracked by issue #850.
if (0) begin
// Maybe (1 time in 10) wait for a valid signal before even considering asserting ready.
if ($urandom_range(9) == 0)
wait (cfg.vif.driver_cb.valid);
end
// Then pick how long we wait before asserting that we are ready.
//