aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ecp5/latches_map.v
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-10-18 19:39:48 +0100
committerDavid Shah <dave@ds0.me>2018-10-19 15:16:40 +0100
commit677b8ed3ca70dad1dec288c274e64ebb0ef4011b (patch)
treeb10bb6f13e7eb1fb5e866f06984a274d89445c7d /techlibs/ecp5/latches_map.v
parent6514443a5c6bc3361b3229a0603a7d1b805e1aa3 (diff)
downloadyosys-677b8ed3ca70dad1dec288c274e64ebb0ef4011b.tar.gz
yosys-677b8ed3ca70dad1dec288c274e64ebb0ef4011b.tar.bz2
yosys-677b8ed3ca70dad1dec288c274e64ebb0ef4011b.zip
ecp5: Add latch inference
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'techlibs/ecp5/latches_map.v')
-rw-r--r--techlibs/ecp5/latches_map.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/techlibs/ecp5/latches_map.v b/techlibs/ecp5/latches_map.v
new file mode 100644
index 000000000..c28f88cf7
--- /dev/null
+++ b/techlibs/ecp5/latches_map.v
@@ -0,0 +1,11 @@
+module \$_DLATCH_N_ (E, D, Q);
+ wire [1023:0] _TECHMAP_DO_ = "simplemap; opt";
+ input E, D;
+ output Q = !E ? D : Q;
+endmodule
+
+module \$_DLATCH_P_ (E, D, Q);
+ wire [1023:0] _TECHMAP_DO_ = "simplemap; opt";
+ input E, D;
+ output Q = E ? D : Q;
+endmodule