fix driver bug and rename test
This commit is contained in:
@@ -67,6 +67,7 @@ class cpu_driver #(
|
|||||||
cpuVif.cb.w_en <= 1;
|
cpuVif.cb.w_en <= 1;
|
||||||
@(cpuVif.cb);
|
@(cpuVif.cb);
|
||||||
cpuVif.cb.w_en <= 0;
|
cpuVif.cb.w_en <= 0;
|
||||||
|
@(cpuVif.cb);
|
||||||
endtask : xbar_write
|
endtask : xbar_write
|
||||||
|
|
||||||
// Send one read through the external memory port and wait for its data
|
// Send one read through the external memory port and wait for its data
|
||||||
@@ -99,6 +100,7 @@ class cpu_driver #(
|
|||||||
end
|
end
|
||||||
|
|
||||||
cpuVif.cb.r_en <= 0;
|
cpuVif.cb.r_en <= 0;
|
||||||
|
@(cpuVif.cb);
|
||||||
endtask : xbar_read
|
endtask : xbar_read
|
||||||
|
|
||||||
// Drive a start request for one CPU run
|
// Drive a start request for one CPU run
|
||||||
|
|||||||
@@ -285,6 +285,7 @@ module cpu_tb_top;
|
|||||||
|
|
||||||
drv.reset_task();
|
drv.reset_task();
|
||||||
init_memories();
|
init_memories();
|
||||||
|
sb.set_test("random_xbar_traffic");
|
||||||
seqr.gen_xbar(NUM_RANDOM_XBAR);
|
seqr.gen_xbar(NUM_RANDOM_XBAR);
|
||||||
seqr.wait_for_empty();
|
seqr.wait_for_empty();
|
||||||
repeat (2) @(cpu_if.cb);
|
repeat (2) @(cpu_if.cb);
|
||||||
|
|||||||
Reference in New Issue
Block a user