mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 21:27:10 -04:00
Apply Formatting Suggestions
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
126e2d1c09
commit
40e4d04650
2 changed files with 10 additions and 9 deletions
|
@ -113,8 +113,9 @@ module commit_stage
|
|||
always_comb begin : dirty_fp_state
|
||||
dirty_fp_state_o = 1'b0;
|
||||
for (int i = 0; i < CVA6Cfg.NrCommitPorts; i++) begin
|
||||
dirty_fp_state_o |= commit_ack_o[i] & ((commit_instr_i[i].fu inside {FPU, FPU_VEC} & CVA6Cfg.FpPresent & ariane_pkg::fd_changes_rd_state(commit_instr_i[i].op))
|
||||
|| (CVA6Cfg.FpPresent && ariane_pkg::is_rd_fpr(
|
||||
dirty_fp_state_o |= commit_ack_o[i] & ((commit_instr_i[i].fu inside {FPU, FPU_VEC} & CVA6Cfg.FpPresent & ariane_pkg::fd_changes_rd_state(
|
||||
commit_instr_i[i].op
|
||||
)) || (CVA6Cfg.FpPresent && ariane_pkg::is_rd_fpr(
|
||||
commit_instr_i[i].op
|
||||
// Check if we issued a vector floating-point instruction to the accellerator
|
||||
))) | (commit_instr_i[i].fu == ACCEL && commit_instr_i[i].vfp);
|
||||
|
|
|
@ -575,13 +575,13 @@ package ariane_pkg;
|
|||
endfunction
|
||||
|
||||
function automatic logic fd_changes_rd_state(input fu_op op);
|
||||
unique case(op) inside
|
||||
[FSD:FSB], // stores
|
||||
FCVT_F2I, // conversion to int
|
||||
FMV_F2X, // move as-is to int
|
||||
FCLASS: // classification (writes output to integer register)
|
||||
return 1'b0; // floating-point registers are only read
|
||||
default: return 1'b1; // other ops - floating-point registers are written as well
|
||||
unique case (op) inside
|
||||
[FSD : FSB], // stores
|
||||
FCVT_F2I, // conversion to int
|
||||
FMV_F2X, // move as-is to int
|
||||
FCLASS: // classification (writes output to integer register)
|
||||
return 1'b0; // floating-point registers are only read
|
||||
default: return 1'b1; // other ops - floating-point registers are written as well
|
||||
endcase
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue