diff --git a/picorv32.v b/picorv32.v index 4b1eca9..6364cbe 100644 --- a/picorv32.v +++ b/picorv32.v @@ -1909,7 +1909,7 @@ module picorv32 #( if (ENABLE_IRQ) begin next_irq_pending = next_irq_pending | irq; - if ENABLE_IRQ_TIMER && timer + if(ENABLE_IRQ_TIMER && timer) if (timer - 1 == 0) next_irq_pending[irq_timer] = 1; end