Fix irq code tb now that interrupts are used

This commit is contained in:
Byron Lathi
2023-11-19 15:10:48 -08:00
parent 429be0276a
commit cf3aebc9f3

View File

@@ -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