summaryrefslogtreecommitdiff
path: root/techlibs/greenpak4/gp_dff.lib
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-09-18 12:00:37 +0200
committerClifford Wolf <clifford@clifford.at>2015-09-18 12:00:37 +0200
commit745d56149d276f52146e302d59f74ede8d1875ba (patch)
treed4e44c010631a538eef8f8cf95312edd89bd2ece /techlibs/greenpak4/gp_dff.lib
parent452d4bf741cd46176c1dfbd232dd560e436b9f15 (diff)
Renamed GreenPAK4 cells, improved GP4 DFF mapping
Diffstat (limited to 'techlibs/greenpak4/gp_dff.lib')
-rw-r--r--techlibs/greenpak4/gp_dff.lib26
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 00000000..9e2e46cb
--- /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; }
+ }
+}