aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/efinix/cells_sim.v
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-08-03 12:29:30 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-08-03 13:10:44 +0200
commitab98f604fd1319e0f42b0c5dc8bb6be5d3d2ba38 (patch)
treedc3f3dcfea09ddc7e49b025d98f85ff29d02a7c4 /techlibs/efinix/cells_sim.v
parent0917a5cf720e76a85cd2fa4d8cd3cf9434bdee8f (diff)
downloadyosys-ab98f604fd1319e0f42b0c5dc8bb6be5d3d2ba38.tar.gz
yosys-ab98f604fd1319e0f42b0c5dc8bb6be5d3d2ba38.tar.bz2
yosys-ab98f604fd1319e0f42b0c5dc8bb6be5d3d2ba38.zip
Initial EFINIX support
Diffstat (limited to 'techlibs/efinix/cells_sim.v')
-rw-r--r--techlibs/efinix/cells_sim.v36
1 files changed, 36 insertions, 0 deletions
diff --git a/techlibs/efinix/cells_sim.v b/techlibs/efinix/cells_sim.v
new file mode 100644
index 000000000..aaff955a2
--- /dev/null
+++ b/techlibs/efinix/cells_sim.v
@@ -0,0 +1,36 @@
+module EFX_LUT4(
+ output O,
+ input I0,
+ input I1,
+ input I2,
+ input I3
+);
+ parameter LUTMASK = 16'h0000;
+endmodule
+
+module EFX_ADD(
+ output O,
+ output CO,
+ input I0,
+ input I1,
+ input CI
+);
+ parameter I0_POLARITY = 1;
+ parameter I1_POLARITY = 1;
+endmodule
+
+module EFX_FF(
+ output Q,
+ input D,
+ input CE,
+ input CLK,
+ input SR
+);
+ parameter CLK_POLARITY = 1;
+ parameter CE_POLARITY = 1;
+ parameter SR_POLARITY = 1;
+ parameter SR_SYNC = 0;
+ parameter SR_VALUE = 0;
+ parameter SR_SYNC_PRIORITY = 0;
+ parameter D_POLARITY = 1;
+endmodule \ No newline at end of file