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

FPU: add FloatFMA and convert opcode to VFcpcode #126

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
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/FloatAdder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FloatAdder() extends Module {
val fp_a, fp_b = Input (UInt(floatWidth.W)) // fp_a -> vs2, fp_b -> vs1
val round_mode = Input (UInt(3.W))
val fp_format = Input (VectorElementFormat()) // result format b01->fp16,b10->fp32,b11->fp64
val op_code = Input (UInt(4.W))
val op_code = Input (UInt(5.W))
val fp_aIsFpCanonicalNAN = Input (Bool())
val fp_bIsFpCanonicalNAN = Input (Bool())
val fp_result = Output(UInt(floatWidth.W))
Expand Down Expand Up @@ -116,7 +116,7 @@ private[fpu] class FloatAdderF32F16MixedPipeline(val is_print:Boolean = false,va
val round_mode = Input (UInt(3.W))
val fflags = Output(UInt(5.W))
val fp_format = Input (UInt(2.W))
val op_code = if (hasMinMaxCompare) Input(UInt(4.W)) else Input(UInt(0.W))
val op_code = if (hasMinMaxCompare) Input(UInt(5.W)) else Input(UInt(0.W))
val fp_aIsFpCanonicalNAN = Input (Bool())
val fp_bIsFpCanonicalNAN = Input (Bool())
})
Expand Down Expand Up @@ -346,7 +346,7 @@ private[fpu] class FloatAdderF64Pipeline(val is_print:Boolean = false,val hasMin
val is_sub = Input (Bool())
val round_mode = Input (UInt(3.W))
val fflags = Output(UInt(5.W))
val op_code = if (hasMinMaxCompare) Input(UInt(4.W)) else Input(UInt(0.W))
val op_code = if (hasMinMaxCompare) Input(UInt(5.W)) else Input(UInt(0.W))
val fp_aIsFpCanonicalNAN = Input(Bool())
val fp_bIsFpCanonicalNAN = Input(Bool())
})
Expand Down
Loading
Loading