Skip to content

Commit

Permalink
Update Branch_Addr_Calc.sv
Browse files Browse the repository at this point in the history
  • Loading branch information
gil92723 committed Oct 30, 2023
1 parent c41f057 commit 2974816
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rtl/Branch_Addr_Calc.sv
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ always_comb begin
branch_addr = imm + rs1d;
npc = pc_in;
end
2'b01:
2'b01: begin
branch_addr = imm + rs1d;
npc = branch_addr;
end
endcase
default:
default: begin
branch_addr = pc_in + imm;
npc = pc_in;
end
endcase
end

Expand Down

0 comments on commit 2974816

Please sign in to comment.