Skip to content

Commit

Permalink
Alignement to PR openhwgroup#970 for User Manual update of clipr/clip…
Browse files Browse the repository at this point in the history
…ur behavior.

Signed-off-by: Pascal Gouedo <[email protected]>
  • Loading branch information
Pascal Gouedo committed Mar 25, 2024
1 parent bfeff28 commit 7a843ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rtl/cv32e40p_id_stage.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,11 @@ module cv32e40p_id_stage
if (alu_en) begin
alu_operator_ex_o <= alu_operator;
alu_operand_a_ex_o <= alu_operand_a;
alu_operand_b_ex_o <= alu_operand_b;
if (alu_op_b_mux_sel == OP_B_REGB_OR_FWD && (alu_operator == ALU_CLIP || alu_operator == ALU_CLIPU)) begin
alu_operand_b_ex_o <= {1'b0, alu_operand_b[30:0]};
end else begin
alu_operand_b_ex_o <= alu_operand_b;
end
alu_operand_c_ex_o <= alu_operand_c;
bmask_a_ex_o <= bmask_a_id;
bmask_b_ex_o <= bmask_b_id;
Expand Down

0 comments on commit 7a843ea

Please sign in to comment.