You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rtl/cve2_controller.sv
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -499,9 +499,10 @@ module cve2_controller #(
499
499
exc_cause_o =EXC_CAUSE_IRQ_NM;
500
500
nmi_mode_d =1'b1; // enter NMI mode
501
501
endelseif (irqs_i.irq_fast !=16'b0) begin
502
+
// if any of the irq_fast is one
502
503
// generate exception cause ID from fast interrupt ID:
503
504
// - first bit distinguishes interrupts from exceptions,
504
-
// - third bit adds 16 to fast interrupt ID so that the interrup 0 becomes 16 and the interrupt 15 becomes 31 (hence 5bits)
505
+
// - third bit adds 16 to fast interrupt ID so that the interrupt 0 becomes 16 and the interrupt 15 becomes 31 (hence 5bits)
505
506
// - second bit is always 0 as the FAST interrupts are represented in the first 5bits, the 6th is always 0 cause is used by the NMI (in that case is 1 as represented by the number 32)
506
507
// for example EXC_CAUSE_IRQ_FAST_0 = {1'b1, 6'd16}
0 commit comments