Skip to content

Commit e0e6bff

Browse files
issue stage: reuse signals instead of repeating (#3247)
The comb signals were assigned-to but not read. The always_comb process was repeated in the always_ff process below. Now the comb signals are used in the always_ff process instead of repeating the logic. --------- Co-authored-by: JeanRochCoulon <jean-roch.coulon@thalesgroup.com>
1 parent 6779dac commit e0e6bff

2 files changed

Lines changed: 5 additions & 15 deletions

File tree

.gitlab-ci/expected_synth.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
cv32a65x:
2-
gates: 186061
2+
gates: 185372

core/issue_read_operands.sv

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,24 +1083,14 @@ module issue_read_operands
10831083
if (CVA6Cfg.RVH) begin
10841084
tinst_q <= tinst_n;
10851085
end
1086-
if (CVA6Cfg.SuperscalarEn) begin
1087-
if (issue_instr_i[1].fu == CTRL_FLOW) begin
1088-
pc_o <= issue_instr_i[1].pc;
1089-
is_compressed_instr_o <= issue_instr_i[1].is_compressed;
1090-
branch_predict_o <= issue_instr_i[1].bp;
1091-
end
1092-
end
1086+
pc_o <= pc_n;
1087+
is_compressed_instr_o <= is_compressed_instr_n;
1088+
branch_predict_o <= branch_predict_n;
10931089
if (issue_instr_i[0].fu == CTRL_FLOW) begin
1094-
pc_o <= issue_instr_i[0].pc;
1095-
is_compressed_instr_o <= issue_instr_i[0].is_compressed;
1096-
branch_predict_o <= issue_instr_i[0].bp;
10971090
if (CVA6Cfg.RVZCMT) is_zcmt_o <= issue_instr_i[0].is_zcmt;
10981091
else is_zcmt_o <= '0;
10991092
end
1100-
x_transaction_rejected_o <= 1'b0;
1101-
if (issue_instr_i[0].fu == CVXIF) begin
1102-
x_transaction_rejected_o <= x_transaction_rejected;
1103-
end
1093+
x_transaction_rejected_o <= x_transaction_rejected_n;
11041094
end
11051095
end
11061096

0 commit comments

Comments
 (0)