forked from Github_Repos/cvw
added mux to intdiv result
This commit is contained in:
parent
ae447e42df
commit
286e43807a
@ -147,10 +147,11 @@ module fdivsqrtpostproc(
|
|||||||
end
|
end
|
||||||
|
|
||||||
// sign extend result for W64
|
// sign extend result for W64
|
||||||
if (`XLEN==64)
|
if (`XLEN==64) begin
|
||||||
assign FPIntDivResultM = (W64M ? {{(`XLEN-32){SpecialFPIntDivResultM[31]}}, SpecialFPIntDivResultM[31:0]} :
|
mux2 #(64) resmux(SpecialFPIntDivResultM[`XLEN-1:0],
|
||||||
SpecialFPIntDivResultM[`XLEN-1:0]); // Sign extending in case of W64
|
{{(`XLEN-32){SpecialFPIntDivResultM[31]}}, SpecialFPIntDivResultM[31:0]}, // Sign extending in case of W64
|
||||||
else
|
W64M, FPIntDivResultM);
|
||||||
|
end else
|
||||||
assign FPIntDivResultM = SpecialFPIntDivResultM[`XLEN-1:0];
|
assign FPIntDivResultM = SpecialFPIntDivResultM[`XLEN-1:0];
|
||||||
end
|
end
|
||||||
endmodule
|
endmodule
|
Loading…
Reference in New Issue
Block a user