From 8649b57b6f4c3a4322acaf73f5c02d5119629c1e Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 31 Aug 2014 17:06:36 +0200 Subject: Added $lut support in test_cell, techmap, satgen --- techlibs/common/techmap.v | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'techlibs') 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 + -- cgit v1.2.3