);
endmodule
-module GP_DFFSI(input D, CLK, nSET, output reg Q);
+module GP_DFFSI(input D, CLK, nSET, output reg nQ);
parameter [0:0] INIT = 1'bx;
GP_DFFSRI #(
.INIT(INIT),
.D(D),
.CLK(CLK),
.nSR(nSET),
- .Q(Q)
+ .nQ(nQ)
);
endmodule
-module GP_DFFRI(input D, CLK, nRST, output reg Q);
+module GP_DFFRI(input D, CLK, nRST, output reg nQ);
parameter [0:0] INIT = 1'bx;
GP_DFFSRI #(
.INIT(INIT),
.D(D),
.CLK(CLK),
.nSR(nRST),
- .Q(Q)
+ .nQ(nQ)
);
endmodule
end
endmodule
-module GP_DFFI(input D, CLK, output reg Q);
+module GP_DFFI(input D, CLK, output reg nQ);
parameter [0:0] INIT = 1'bx;
- initial Q = INIT;
+ initial nQ = INIT;
always @(posedge CLK) begin
- Q <= ~D;
+ nQ <= ~D;
end
endmodule
end
endmodule
-module GP_DFFRI(input D, CLK, nRST, output reg Q);
+module GP_DFFRI(input D, CLK, nRST, output reg nQ);
parameter [0:0] INIT = 1'bx;
- initial Q = INIT;
+ initial nQ = INIT;
always @(posedge CLK, negedge nRST) begin
if (!nRST)
- Q <= 1'b1;
+ nQ <= 1'b1;
else
- Q <= ~D;
+ nQ <= ~D;
end
endmodule
end
endmodule
-module GP_DFFSI(input D, CLK, nSET, output reg Q);
+module GP_DFFSI(input D, CLK, nSET, output reg nQ);
parameter [0:0] INIT = 1'bx;
- initial Q = INIT;
+ initial nQ = INIT;
always @(posedge CLK, negedge nSET) begin
if (!nSET)
- Q <= 1'b0;
+ nQ <= 1'b0;
else
- Q <= ~D;
+ nQ <= ~D;
end
endmodule
end
endmodule
-module GP_DFFSRI(input D, CLK, nSR, output reg Q);
+module GP_DFFSRI(input D, CLK, nSR, output reg nQ);
parameter [0:0] INIT = 1'bx;
parameter [0:0] SRMODE = 1'bx;
- initial Q = INIT;
+ initial nQ = INIT;
always @(posedge CLK, negedge nSR) begin
if (!nSR)
- Q <= ~SRMODE;
+ nQ <= ~SRMODE;
else
- Q <= ~D;
+ nQ <= ~D;
end
endmodule