mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-23 21:39:13 -04:00
small fixes
This commit is contained in:
parent
6840de0c2e
commit
1f0eb756c7
2 changed files with 4 additions and 4 deletions
|
@ -171,6 +171,7 @@ module zeroriscy_id_stage
|
|||
|
||||
logic branch_taken_ex;
|
||||
logic branch_in_id;
|
||||
logic branch_in_id_q;
|
||||
logic branch_set;
|
||||
logic [1:0] jump_in_id;
|
||||
logic [1:0] jump_in_dec;
|
||||
|
@ -687,9 +688,11 @@ module zeroriscy_id_stage
|
|||
if (~rst_n)
|
||||
begin
|
||||
id_wb_fsm_cs <= IDLE;
|
||||
branch_in_id_q <= 1'b0;
|
||||
end
|
||||
else begin
|
||||
id_wb_fsm_cs <= id_wb_fsm_ns;
|
||||
branch_in_id_q <= branch_in_id;
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -740,12 +743,12 @@ module zeroriscy_id_stage
|
|||
|
||||
WAIT_MULTICYCLE:
|
||||
begin
|
||||
branch_set = branch_in_id_q;
|
||||
if(ex_ready_i) begin
|
||||
regfile_we = regfile_we_id;
|
||||
id_wb_fsm_ns = IDLE;
|
||||
load_stall = 1'b0;
|
||||
mult_stall = 1'b0;
|
||||
branch_set = branch_in_id;
|
||||
select_data_rf = data_req_id ? RF_LSU : RF_EX;
|
||||
end else begin
|
||||
regfile_we = 1'b0;
|
||||
|
|
|
@ -670,9 +670,6 @@ module zeroriscy_core
|
|||
|
||||
.sleeping_i ( sleeping ),
|
||||
|
||||
.branch_in_ex_i ( branch_in_ex ),
|
||||
.branch_taken_i ( branch_decision ),
|
||||
|
||||
.jump_addr_o ( dbg_jump_addr ), // PC from debug unit
|
||||
.jump_req_o ( dbg_jump_req ) // set PC to new value
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue