diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-09-18 12:00:37 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-09-18 12:00:37 +0200 |
commit | 745d56149d276f52146e302d59f74ede8d1875ba (patch) | |
tree | d4e44c010631a538eef8f8cf95312edd89bd2ece /techlibs/greenpak4/gp_dff.lib | |
parent | 452d4bf741cd46176c1dfbd232dd560e436b9f15 (diff) | |
download | yosys-745d56149d276f52146e302d59f74ede8d1875ba.tar.gz yosys-745d56149d276f52146e302d59f74ede8d1875ba.tar.bz2 yosys-745d56149d276f52146e302d59f74ede8d1875ba.zip |
Renamed GreenPAK4 cells, improved GP4 DFF mapping
Diffstat (limited to 'techlibs/greenpak4/gp_dff.lib')
-rw-r--r-- | techlibs/greenpak4/gp_dff.lib | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/techlibs/greenpak4/gp_dff.lib b/techlibs/greenpak4/gp_dff.lib new file mode 100644 index 000000000..9e2e46cb4 --- /dev/null +++ b/techlibs/greenpak4/gp_dff.lib @@ -0,0 +1,26 @@ +library(gp_dff) { + cell(GP_DFF_NOSR) { + area: 1; + ff("IQ", "IQN") { clocked_on: CLK; + next_state: D; } + pin(CLK) { direction: input; + clock: true; } + pin(D) { direction: input; } + pin(Q) { direction: output; + function: "IQ"; } + } + cell(GP_DFF_SR) { + area: 1; + ff("IQ", "IQN") { clocked_on: CLK; + next_state: D; + preset: "nSETZ'"; + clear: "nRSTZ'"; } + pin(CLK) { direction: input; + clock: true; } + pin(D) { direction: input; } + pin(Q) { direction: output; + function: "IQ"; } + pin(nRSTZ) { direction: input; } + pin(nSETZ) { direction: input; } + } +} |