aboutsummaryrefslogtreecommitdiffstats
path: root/tests/xsthammer/xl_cells.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/xsthammer/xl_cells.v')
-rw-r--r--tests/xsthammer/xl_cells.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/xsthammer/xl_cells.v b/tests/xsthammer/xl_cells.v
index 6a3fa7996..775c84d24 100644
--- a/tests/xsthammer/xl_cells.v
+++ b/tests/xsthammer/xl_cells.v
@@ -8,6 +8,14 @@ input I;
output O = !I;
endmodule
+module LUT1(O, I0);
+parameter INIT = 0;
+input I0;
+wire [1:0] lutdata = INIT;
+wire [0:0] idx = { I0 };
+output O = lutdata[idx];
+endmodule
+
module LUT2(O, I0, I1);
parameter INIT = 0;
input I0, I1;