removed unused irq_enable signal in controller

This commit is contained in:
davide schiavone 2023-12-12 13:25:09 +01:00
parent 13c86e6a0a
commit d62922f226

View file

@ -140,7 +140,6 @@ module cve2_controller #(
logic enter_debug_mode;
logic ebreak_into_debug;
logic handle_irq;
logic irq_enabled;
logic [3:0] mfip_id;
logic unused_irq_timer;
@ -291,9 +290,6 @@ module cve2_controller #(
priv_mode_i == PRIV_LVL_U ? debug_ebreaku_i :
1'b0;
// MIE bit only applies when in M mode
assign irq_enabled = csr_mstatus_mie_i | (priv_mode_i == PRIV_LVL_U);
// Interrupts including NMI are ignored,
// - while in debug mode [Debug Spec v0.13.2, p.39],
// - while in NMI mode (nested NMIs are not supported, NMI has highest priority and