Skip to content

Commit

Permalink
Remove rendundant drivers of nmi_int
Browse files Browse the repository at this point in the history
  • Loading branch information
kiryk committed Nov 8, 2024
1 parent 6c6acf1 commit 176b9b4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions testbench/tb_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -865,10 +865,6 @@ module tb_top
`endif
end

// nmi_int must be asserted for at least two clock cycles and then deasserted for
// at least two clock cycles - see RISC-V VeeR EL2 Programmer's Reference Manual section 2.16
assign nmi_int = |{nmi_assert_int[3:2]};

// trace monitor
always @(posedge core_clk) begin
wb_valid <= `DEC.dec_i0_wen_r;
Expand Down Expand Up @@ -938,18 +934,15 @@ module tb_top

ext_int = {pt.PIC_TOTAL_INT-1{1'b0}};
nmi_int = 0;
timer_int = 0;
soft_int = 0;
timer_int = 0;

// tie offs
jtag_id[31:28] = 4'b1;
jtag_id[27:12] = '0;
jtag_id[11:1] = 11'h45;
reset_vector = `RV_RESET_VEC;
nmi_vector = 32'hee000000;
nmi_int = 0;
soft_int = 0;
timer_int = 0;
extintsrc_req = 0;

$readmemh("program.hex", lmem.mem);
Expand Down

0 comments on commit 176b9b4

Please sign in to comment.