mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed spelling of precision
This commit is contained in:
parent
bb3a7850c4
commit
abecc98563
@ -38,7 +38,7 @@ module fctrl import cvw::*; #(parameter cvw_t P) (
|
|||||||
input logic FDivBusyE, // is the divider busy
|
input logic FDivBusyE, // is the divider busy
|
||||||
// instruction
|
// instruction
|
||||||
input logic [31:0] InstrD, // the full instruction
|
input logic [31:0] InstrD, // the full instruction
|
||||||
input logic [6:0] Funct7D, // bits 31:25 of instruction - may contain percision
|
input logic [6:0] Funct7D, // bits 31:25 of instruction - may contain precision
|
||||||
input logic [6:0] OpD, // bits 6:0 of instruction
|
input logic [6:0] OpD, // bits 6:0 of instruction
|
||||||
input logic [4:0] Rs2D, // bits 24:20 of instruction
|
input logic [4:0] Rs2D, // bits 24:20 of instruction
|
||||||
input logic [2:0] Funct3D, // bits 14:12 of instruction - may contain rounding mode
|
input logic [2:0] Funct3D, // bits 14:12 of instruction - may contain rounding mode
|
||||||
|
@ -70,8 +70,8 @@ module fcvt import cvw::*; #(parameter cvw_t P) (
|
|||||||
assign IntToFp = OpCtrl[2];
|
assign IntToFp = OpCtrl[2];
|
||||||
|
|
||||||
// choose the ouptut format depending on the opperation
|
// choose the ouptut format depending on the opperation
|
||||||
// - fp -> fp: OpCtrl contains the percision of the output
|
// - fp -> fp: OpCtrl contains the precision of the output
|
||||||
// - int -> fp: Fmt contains the percision of the output
|
// - int -> fp: Fmt contains the precision of the output
|
||||||
if (P.FPSIZES == 2)
|
if (P.FPSIZES == 2)
|
||||||
assign OutFmt = IntToFp ? Fmt : (OpCtrl[1:0] == P.FMT);
|
assign OutFmt = IntToFp ? Fmt : (OpCtrl[1:0] == P.FMT);
|
||||||
else if (P.FPSIZES == 3 | P.FPSIZES == 4)
|
else if (P.FPSIZES == 3 | P.FPSIZES == 4)
|
||||||
|
@ -50,7 +50,7 @@ module fmashiftcalc import cvw::*; #(parameter cvw_t P) (
|
|||||||
// calculate the sum's exponent
|
// calculate the sum's exponent
|
||||||
assign PreNormSumExp = FmaSe + {{P.NE+2-$unsigned($clog2(3*P.NF+5)){1'b1}}, ~FmaSCnt} + (P.NE+2)'(P.NF+3);
|
assign PreNormSumExp = FmaSe + {{P.NE+2-$unsigned($clog2(3*P.NF+5)){1'b1}}, ~FmaSCnt} + (P.NE+2)'(P.NF+3);
|
||||||
|
|
||||||
//convert the sum's exponent into the proper percision
|
//convert the sum's exponent into the proper precision
|
||||||
if (P.FPSIZES == 1) begin
|
if (P.FPSIZES == 1) begin
|
||||||
assign NormSumExp = PreNormSumExp;
|
assign NormSumExp = PreNormSumExp;
|
||||||
end else if (P.FPSIZES == 2) begin
|
end else if (P.FPSIZES == 2) begin
|
||||||
|
@ -128,8 +128,8 @@ module postprocess import cvw::*; #(parameter cvw_t P) (
|
|||||||
assign NaNIn = XNaN|YNaN|ZNaN;
|
assign NaNIn = XNaN|YNaN|ZNaN;
|
||||||
|
|
||||||
// choose the ouptut format depending on the opperation
|
// choose the ouptut format depending on the opperation
|
||||||
// - fp -> fp: OpCtrl contains the percision of the output
|
// - fp -> fp: OpCtrl contains the precision of the output
|
||||||
// - otherwise: Fmt contains the percision of the output
|
// - otherwise: Fmt contains the precision of the output
|
||||||
if (P.FPSIZES == 2)
|
if (P.FPSIZES == 2)
|
||||||
assign OutFmt = IntToFp|~CvtOp ? Fmt : (OpCtrl[1:0] == P.FMT);
|
assign OutFmt = IntToFp|~CvtOp ? Fmt : (OpCtrl[1:0] == P.FMT);
|
||||||
else if (P.FPSIZES == 3 | P.FPSIZES == 4)
|
else if (P.FPSIZES == 3 | P.FPSIZES == 4)
|
||||||
|
Loading…
Reference in New Issue
Block a user