diff options
Diffstat (limited to 'rtl/core/control/stall.sv')
| -rw-r--r-- | rtl/core/control/stall.sv | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/rtl/core/control/stall.sv b/rtl/core/control/stall.sv index 223fecb..60dfbbe 100644 --- a/rtl/core/control/stall.sv +++ b/rtl/core/control/stall.sv @@ -3,6 +3,7 @@ module core_control_stall ( input logic clk, + rst_n, input insn_decode dec, @@ -33,10 +34,7 @@ module core_control_stall assign flags_dependency = dec.psr.update_flags || dec.ctrl.conditional; assign updating_flags = final_update_flags || update_flags; - always_ff @(posedge clk) - bubble <= next_cycle == ISSUE && next_bubble; - - initial - bubble = 0; + always_ff @(posedge clk or negedge rst_n) + bubble <= !rst_n ? 0 : next_cycle == ISSUE && next_bubble; endmodule |
