add clint hold input signal

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/1/head
liangkangnan 2020-04-25 17:08:46 +08:00
parent db8a65ebf4
commit 43aca8195c
1 changed files with 4 additions and 1 deletions

View File

@ -33,6 +33,9 @@ module ctrl(
// from jtag // from jtag
input wire jtag_halt_flag_i, input wire jtag_halt_flag_i,
// from clint
input wire hold_flag_clint_i,
output reg[`Hold_Flag_Bus] hold_flag_o, output reg[`Hold_Flag_Bus] hold_flag_o,
// to pc_reg // to pc_reg
@ -53,7 +56,7 @@ module ctrl(
// //
hold_flag_o <= `Hold_None; 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; hold_flag_o <= `Hold_Id;
end else if (hold_flag_rib_i == `HoldEnable) begin end else if (hold_flag_rib_i == `HoldEnable) begin