mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Update fsgninj.sv
Program clean up
This commit is contained in:
parent
2739ea26a7
commit
74fa15bcb4
@ -27,10 +27,10 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
module fsgninj import cvw::*; #(parameter cvw_t P) (
|
module fsgninj import cvw::*; #(parameter cvw_t P) (
|
||||||
input logic Xs, Ys, // X and Y sign bits
|
input logic Xs, Ys, // X and Y sign bits
|
||||||
input logic [P.FLEN-1:0] X, // X
|
input logic [P.FLEN-1:0] X, // X
|
||||||
input logic [P.FMTBITS-1:0] Fmt, // format
|
input logic [P.FMTBITS-1:0] Fmt, // format
|
||||||
input logic [1:0] OpCtrl, // operation control
|
input logic [1:0] OpCtrl, // operation control
|
||||||
output logic [P.FLEN-1:0] SgnRes // result
|
output logic [P.FLEN-1:0] SgnRes // result
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -73,5 +73,4 @@ module fsgninj import cvw::*; #(parameter cvw_t P) (
|
|||||||
endcase
|
endcase
|
||||||
assign SgnRes = {SgnBits[3], X[P.Q_LEN-2:P.D_LEN], SgnBits[2], X[P.D_LEN-2:P.S_LEN], SgnBits[1], X[P.S_LEN-2:P.H_LEN], SgnBits[0], X[P.H_LEN-2:0]};
|
assign SgnRes = {SgnBits[3], X[P.Q_LEN-2:P.D_LEN], SgnBits[2], X[P.D_LEN-2:P.S_LEN], SgnBits[1], X[P.S_LEN-2:P.H_LEN], SgnBits[0], X[P.H_LEN-2:0]};
|
||||||
end
|
end
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
Loading…
Reference in New Issue
Block a user