Fixed spacing

This commit is contained in:
Harshini Srinath 2023-07-30 17:18:25 -07:00 committed by GitHub
parent d88b2fd9c1
commit 36108e4b52

View File

@ -28,14 +28,14 @@
module fmaexpadd import cvw::*; #(parameter cvw_t P) (
input logic [P.NE-1:0] Xe, Ye, // input's exponents
input logic XZero, YZero, // are the inputs zero
input logic XZero, YZero, // are the inputs zero
output logic [P.NE+1:0] Pe // product's exponent B^(1023)NE+2
);
logic PZero; // is the product zero?
logic PZero; // is the product zero?
// kill the exponent if the product is zero - either X or Y is 0
assign PZero = XZero | YZero;
assign Pe = PZero ? '0 : ({2'b0, Xe} + {2'b0, Ye} - {2'b0, (P.NE)'(P.BIAS)});
assign Pe = PZero ? '0 : ({2'b0, Xe} + {2'b0, Ye} - {2'b0, (P.NE)'(P.BIAS)});
endmodule