Skip to content

Commit

Permalink
fix(fma): Fix the misuse of pipeline registers
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislzh authored and xiaofeibao-xjtu committed Dec 21, 2024
1 parent 2e6ad59 commit be02028
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit be02028

Please sign in to comment.