Skip to content

Commit

Permalink
vfcvt: fix neg of condition for fp32toint16 in CVT32
Browse files Browse the repository at this point in the history
  • Loading branch information
sinceforYy committed Sep 3, 2024
1 parent 5692f83 commit 68e3dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/yunsuan/vector/VectorConvert/CVT32.scala
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ class CVT32(width: Int = 32) extends CVT(width){
val rpath_neg_of_reg0 = is_fp2int_reg0 && in_reg0.head(1).asBool && Mux1H(
Seq(fp32toint16_reg0,
fp16toint8_reg0),
Seq(in_reg0.tail(1).head(8) === 142.U && (rounder.io.in.tail(8).orR || rounder.io.r_up),
Seq(in_reg0.tail(1).head(8) === 142.U && (rounder.io.in.tail(9).orR || rounder.io.r_up),
in_reg0.tail(1).head(8) === 22.U && (rounder.io.in.tail(17).orR || rounder.io.r_up))
)
val rpath_of_reg0 = Mux1H(
Expand Down

0 comments on commit 68e3dce

Please sign in to comment.