diff --git a/rtl/core/ctrl.v b/rtl/core/ctrl.v index 6e719b2..9a2aaad 100644 --- a/rtl/core/ctrl.v +++ b/rtl/core/ctrl.v @@ -33,6 +33,9 @@ module ctrl( // from jtag input wire jtag_halt_flag_i, + // from clint + input wire hold_flag_clint_i, + output reg[`Hold_Flag_Bus] hold_flag_o, // to pc_reg @@ -53,7 +56,7 @@ module ctrl( // 默认不暂停 hold_flag_o <= `Hold_None; // 按优先级处理不同模块的请求 - if (jump_flag_i == `JumpEnable || hold_flag_ex_i == `HoldEnable) begin + if (jump_flag_i == `JumpEnable || hold_flag_ex_i == `HoldEnable || hold_flag_clint_i == `HoldEnable) begin // 暂停整条流水线 hold_flag_o <= `Hold_Id; end else if (hold_flag_rib_i == `HoldEnable) begin