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/gp_dff.lib | |
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/gp_dff.lib')
-rw-r--r-- | techlibs/greenpak4/gp_dff.lib | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/techlibs/greenpak4/gp_dff.lib b/techlibs/greenpak4/gp_dff.lib index 9e2e46cb4..bc41d18ef 100644 --- a/techlibs/greenpak4/gp_dff.lib +++ b/techlibs/greenpak4/gp_dff.lib @@ -1,5 +1,5 @@ library(gp_dff) { - cell(GP_DFF_NOSR) { + cell(GP_DFF) { area: 1; ff("IQ", "IQN") { clocked_on: CLK; next_state: D; } @@ -9,18 +9,28 @@ library(gp_dff) { pin(Q) { direction: output; function: "IQ"; } } - cell(GP_DFF_SR) { + cell(GP_DFFS) { area: 1; ff("IQ", "IQN") { clocked_on: CLK; next_state: D; - preset: "nSETZ'"; - clear: "nRSTZ'"; } + preset: "nSET'"; } pin(CLK) { direction: input; clock: true; } pin(D) { direction: input; } pin(Q) { direction: output; function: "IQ"; } - pin(nRSTZ) { direction: input; } - pin(nSETZ) { direction: input; } + pin(nSET) { direction: input; } + } + cell(GP_DFFR) { + area: 1; + ff("IQ", "IQN") { clocked_on: CLK; + next_state: D; + clear: "nRST'"; } + pin(CLK) { direction: input; + clock: true; } + pin(D) { direction: input; } + pin(Q) { direction: output; + function: "IQ"; } + pin(nRST) { direction: input; } } } |