diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-03-23 08:46:10 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-03-23 08:46:10 +0100 |
commit | b4bf787f1091c79d6fed6ac1ec91ebadbceb8023 (patch) | |
tree | 2f4741bce741608d8f58f84b730f9173c1cab571 /techlibs/greenpak4/cells_map.v | |
parent | 456c10f16e5b535fc5aa95eacfabbe018fef2348 (diff) | |
download | yosys-b4bf787f1091c79d6fed6ac1ec91ebadbceb8023.tar.gz yosys-b4bf787f1091c79d6fed6ac1ec91ebadbceb8023.tar.bz2 yosys-b4bf787f1091c79d6fed6ac1ec91ebadbceb8023.zip |
Added GP_DFFS, GP_DFFR, and GP_DFFSR
Diffstat (limited to 'techlibs/greenpak4/cells_map.v')
-rw-r--r-- | techlibs/greenpak4/cells_map.v | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/techlibs/greenpak4/cells_map.v b/techlibs/greenpak4/cells_map.v index 667d853da..e24d24973 100644 --- a/techlibs/greenpak4/cells_map.v +++ b/techlibs/greenpak4/cells_map.v @@ -1,20 +1,26 @@ -module \$_DFF_P_ (input D, C, output Q); - GP_DFF _TECHMAP_REPLACE_ ( +module GP_DFFS(input D, CLK, nSET, output reg Q); + parameter [0:0] INIT = 1'bx; + GP_DFFSR #( + .INIT(INIT), + .SRMODE(1'b1), + ) _TECHMAP_REPLACE_ ( .D(D), - .Q(Q), .CLK(C), - .nRSTZ(1'b1), - .nSETZ(1'b1) + .nSR(nSET), + .Q(Q) ); endmodule -module \$_DFFSR_PNN_ (input C, S, R, D, output Q); - GP_DFF _TECHMAP_REPLACE_ ( +module GP_DFFR(input D, CLK, nRST, output reg Q); + parameter [0:0] INIT = 1'bx; + GP_DFFSR #( + .INIT(INIT), + .SRMODE(1'b0), + ) _TECHMAP_REPLACE_ ( .D(D), - .Q(Q), .CLK(C), - .nRSTZ(R), - .nSETZ(S) + .nSR(nRST), + .Q(Q) ); endmodule |