Fix irq code tb now that interrupts are used
This commit is contained in:
@@ -21,11 +21,11 @@ always begin
|
|||||||
end
|
end
|
||||||
|
|
||||||
initial begin
|
initial begin
|
||||||
u_sim_top.u_dut.int_in = 0;
|
// u_sim_top.u_dut.w_int_in = 0;
|
||||||
repeat (2400) @(posedge u_sim_top.r_clk_cpu);
|
repeat (2400) @(posedge u_sim_top.r_clk_cpu);
|
||||||
for (int i = 0; i < 256; i++) begin
|
for (int i = 0; i < 256; i++) begin
|
||||||
repeat (100) @(posedge u_sim_top.r_clk_cpu);
|
repeat (100) @(posedge u_sim_top.r_clk_cpu);
|
||||||
u_sim_top.u_dut.int_in = 1 << i;
|
force u_sim_top.u_dut.u_interrupt_controller.int_in = 1 << i;
|
||||||
$display("Activiating interrupt %d", i);
|
$display("Activiating interrupt %d", i);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user