Skip to content

Commit

Permalink
superscalar: do not issue CSR with another instruction (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
cathales authored Jul 5, 2024
1 parent 51114ee commit 37d93a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/issue_read_operands.sv
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ module issue_read_operands
if (CVA6Cfg.SuperscalarEn) begin
fus_busy[1] = fus_busy[0];

// Never issue CSR instruction on second issue port.
fus_busy[1].csr = 1'b1;

unique case (issue_instr_i[0].fu)
NONE: fus_busy[1].none = 1'b1;
CTRL_FLOW: begin
Expand Down Expand Up @@ -257,9 +260,8 @@ module issue_read_operands
end
end
CSR: begin
fus_busy[1].alu = 1'b1;
fus_busy[1].ctrl_flow = 1'b1;
fus_busy[1].csr = 1'b1;
// Control hazard
fus_busy[1] = '1;
end
MULT: fus_busy[1].mult = 1'b1;
FPU, FPU_VEC: begin
Expand Down

0 comments on commit 37d93a3

Please sign in to comment.