mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-24 22:17:39 -04:00
Always assert ready in core driver for ICache UVM testbench
This works around a bug tracked in issue #850.
This commit is contained in:
parent
863fb56eb1
commit
ff5c0c5823
1 changed files with 9 additions and 3 deletions
|
@ -112,10 +112,16 @@ class ibex_icache_core_driver
|
||||||
virtual task automatic read_insn();
|
virtual task automatic read_insn();
|
||||||
int unsigned delay;
|
int unsigned delay;
|
||||||
|
|
||||||
|
// 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.
|
// Maybe (1 time in 10) wait for a valid signal before even considering asserting ready.
|
||||||
if ($urandom_range(9) == 0)
|
if ($urandom_range(9) == 0)
|
||||||
wait (cfg.vif.driver_cb.valid);
|
wait (cfg.vif.driver_cb.valid);
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
// Then pick how long we wait before asserting that we are ready.
|
// Then pick how long we wait before asserting that we are ready.
|
||||||
//
|
//
|
||||||
// TODO: Make this configurable and weight 0 more heavily.
|
// TODO: Make this configurable and weight 0 more heavily.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue