summaryrefslogtreecommitdiff
path: root/techlibs/greenpak4/cells_latch.v
diff options
context:
space:
mode:
Diffstat (limited to 'techlibs/greenpak4/cells_latch.v')
-rw-r--r--techlibs/greenpak4/cells_latch.v15
1 files changed, 15 insertions, 0 deletions
diff --git a/techlibs/greenpak4/cells_latch.v b/techlibs/greenpak4/cells_latch.v
new file mode 100644
index 00000000..2ccdd203
--- /dev/null
+++ b/techlibs/greenpak4/cells_latch.v
@@ -0,0 +1,15 @@
+module $_DLATCH_P_(input E, input D, output Q);
+ GP_DLATCH _TECHMAP_REPLACE_ (
+ .D(D),
+ .nCLK(!E),
+ .Q(Q)
+ );
+endmodule
+
+module $_DLATCH_N_(input E, input D, output Q);
+ GP_DLATCH _TECHMAP_REPLACE_ (
+ .D(D),
+ .nCLK(E),
+ .Q(Q)
+ );
+endmodule