diff options
author | Andrew Zonenberg <azonenberg@drawersteak.com> | 2016-08-14 00:30:45 -0700 |
---|---|---|
committer | Andrew Zonenberg <azonenberg@drawersteak.com> | 2016-08-14 00:30:45 -0700 |
commit | 0b0ba964881ce2996ee2feb1a5ca91c21669f0f7 (patch) | |
tree | 0a3b83e0b882d77e2b8da1b9131ec29da9eae475 /techlibs/greenpak4 | |
parent | 3b9756c6a3ae1d1f5b6e530d4b50e07710b44987 (diff) | |
download | yosys-0b0ba964881ce2996ee2feb1a5ca91c21669f0f7.tar.gz yosys-0b0ba964881ce2996ee2feb1a5ca91c21669f0f7.tar.bz2 yosys-0b0ba964881ce2996ee2feb1a5ca91c21669f0f7.zip |
greenpak4: Changed name of inverted output ports for consistency
Diffstat (limited to 'techlibs/greenpak4')
-rw-r--r-- | techlibs/greenpak4/cells_map.v | 8 | ||||
-rw-r--r-- | techlibs/greenpak4/cells_sim.v | 30 |
2 files changed, 19 insertions, 19 deletions
diff --git a/techlibs/greenpak4/cells_map.v b/techlibs/greenpak4/cells_map.v index 36d2d0310..111a77a14 100644 --- a/techlibs/greenpak4/cells_map.v +++ b/techlibs/greenpak4/cells_map.v @@ -24,7 +24,7 @@ module GP_DFFR(input D, CLK, nRST, output reg Q); ); 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), @@ -33,11 +33,11 @@ module GP_DFFSI(input D, CLK, nSET, output reg Q); .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), @@ -46,7 +46,7 @@ module GP_DFFRI(input D, CLK, nRST, output reg Q); .D(D), .CLK(CLK), .nSR(nRST), - .Q(Q) + .nQ(nQ) ); endmodule diff --git a/techlibs/greenpak4/cells_sim.v b/techlibs/greenpak4/cells_sim.v index e99c0c827..6ae9ae796 100644 --- a/techlibs/greenpak4/cells_sim.v +++ b/techlibs/greenpak4/cells_sim.v @@ -165,11 +165,11 @@ module GP_DFF(input D, CLK, output reg Q); 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 @@ -184,14 +184,14 @@ module GP_DFFR(input D, CLK, nRST, output reg Q); 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 @@ -206,14 +206,14 @@ module GP_DFFS(input D, CLK, nSET, output reg Q); 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 @@ -229,15 +229,15 @@ module GP_DFFSR(input D, CLK, nSR, output reg Q); 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 |