Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fma): Fix the misuse of pipeline registers #173

Merged
merged 1 commit into from
Dec 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/scala/yunsuan/fpu/FloatFMA.scala
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@ class FloatFMA() extends Module{
Mux(is_fp32_reg1, fraction_result_no_round_f32_reg_d, fraction_result_no_round_f16_reg_d))
val fraction_result_no_round_reg = RegEnable(fraction_result_no_round_reg_d, fire_reg1)

val fraction_result_no_round_f64_reg2 = fraction_result_no_round_reg_d
val fraction_result_no_round_f32_reg2 = fraction_result_no_round_reg_d(22,0)
val fraction_result_no_round_f16_reg2 = fraction_result_no_round_reg_d(9,0)
val fraction_result_no_round_f64_reg2 = fraction_result_no_round_reg
val fraction_result_no_round_f32_reg2 = fraction_result_no_round_reg(22,0)
val fraction_result_no_round_f16_reg2 = fraction_result_no_round_reg(9,0)

val fraction_result_round_f64 = fraction_result_no_round_f64_reg2 +& 1.U
val fraction_result_round_f32 = fraction_result_no_round_f32_reg2 +& 1.U
Expand Down
Loading