mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-20 12:17:19 -04:00
fpu: Proper dirty FP state (fix #229)
This commit is contained in:
parent
879b1c2ca7
commit
fbb4fad807
1 changed files with 7 additions and 1 deletions
|
@ -73,7 +73,13 @@ module commit_stage #(
|
|||
assign waddr_o[1] = commit_instr_i[1].rd[4:0];
|
||||
|
||||
assign pc_o = commit_instr_i[0].pc;
|
||||
assign dirty_fp_state_o = |we_fpr_o;
|
||||
// Dirty the FP state if we are committing anything related to the FPU
|
||||
always_comb begin : dirty_fp_state
|
||||
dirty_fp_state_o = 1'b0;
|
||||
for (int i = 0; i < NR_COMMIT_PORTS; i++) begin
|
||||
dirty_fp_state_o |= commit_ack_o[i] & commit_instr_i[i].fu inside {FPU, FPU_VEC};
|
||||
end
|
||||
end
|
||||
|
||||
logic instr_0_is_amo;
|
||||
assign instr_0_is_amo = is_amo(commit_instr_i[0].op);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue