mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Added rem/div operation to postprocessor
This commit is contained in:
parent
e8d7607e87
commit
e37f564e84
@ -79,5 +79,8 @@ module fdivsqrt(
|
|||||||
.X,.Dpreproc, .FirstWS(WS), .FirstWC(WC),
|
.X,.Dpreproc, .FirstWS(WS), .FirstWC(WC),
|
||||||
.DivStartE, .Xe(XeE), .Ye(YeE), .XZeroE, .YZeroE,
|
.DivStartE, .Xe(XeE), .Ye(YeE), .XZeroE, .YZeroE,
|
||||||
.DivBusy);
|
.DivBusy);
|
||||||
fdivsqrtpostproc fdivsqrtpostproc(.WS, .WC, .D, .FirstU, .FirstUM, .FirstC, .Firstun, .SqrtM, .SpecialCaseM, .QmM, .WZero, .DivSM);
|
fdivsqrtpostproc fdivsqrtpostproc(
|
||||||
|
.WS, .WC, .D, .FirstU, .FirstUM, .FirstC, .Firstun,
|
||||||
|
.SqrtM, .SpecialCaseM, .remOp(Funct3E[1]),
|
||||||
|
.QmM, .WZero, .DivSM);
|
||||||
endmodule
|
endmodule
|
@ -31,13 +31,14 @@
|
|||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
|
||||||
module fdivsqrtpostproc(
|
module fdivsqrtpostproc(
|
||||||
input logic [`DIVb+3:0] WS, WC,
|
input logic [`DIVb+3:0] WS, WC,
|
||||||
input logic [`DIVN-2:0] D, // U0.N-1
|
input logic [`DIVN-2:0] D, // U0.N-1
|
||||||
input logic [`DIVb:0] FirstU, FirstUM,
|
input logic [`DIVb:0] FirstU, FirstUM,
|
||||||
input logic [`DIVb+1:0] FirstC,
|
input logic [`DIVb+1:0] FirstC,
|
||||||
input logic Firstun,
|
input logic Firstun,
|
||||||
input logic SqrtM,
|
input logic SqrtM,
|
||||||
input logic SpecialCaseM,
|
input logic SpecialCaseM,
|
||||||
|
input logic remOp,
|
||||||
output logic [`DIVb:0] QmM,
|
output logic [`DIVb:0] QmM,
|
||||||
output logic WZero,
|
output logic WZero,
|
||||||
output logic DivSM
|
output logic DivSM
|
||||||
|
Loading…
Reference in New Issue
Block a user