summaryrefslogtreecommitdiff
path: root/techlibs/common/techmap.v
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-08-31 17:06:36 +0200
committerClifford Wolf <clifford@clifford.at>2014-08-31 17:43:31 +0200
commit8649b57b6f4c3a4322acaf73f5c02d5119629c1e (patch)
treeb32def8c7c0e44d3abf2890165431c24292cdf8b /techlibs/common/techmap.v
parent2a1b08aeb34b7d5f2df1a43c9ef1f99abacb9cae (diff)
Added $lut support in test_cell, techmap, satgen
Diffstat (limited to 'techlibs/common/techmap.v')
-rw-r--r--techlibs/common/techmap.v17
1 files changed, 17 insertions, 0 deletions
diff --git a/techlibs/common/techmap.v b/techlibs/common/techmap.v
index d6b24945..c0645267 100644
--- a/techlibs/common/techmap.v
+++ b/techlibs/common/techmap.v
@@ -841,3 +841,20 @@ module \$pmux (A, B, S, Y);
assign Y = |S ? Y_B : A;
endmodule
+
+// --------------------------------------------------------
+// LUTs
+// --------------------------------------------------------
+
+`ifndef NOLUT
+module \$lut (A, Y);
+ parameter WIDTH = 1;
+ parameter LUT = 0;
+
+ input [WIDTH-1:0] A;
+ output Y;
+
+ assign Y = LUT[A];
+endmodule
+`endif
+