Sign in
foss-fpga-tools
/
symbiflow-arch-defs
/
refs/heads/bot-conda-lock-update
/
.
/
lattice
/
ice40
/
tests
/
icelut
/
lut.v
blob: 36095eb9b29b6a905f654b6912f5753130ea2b73 [
file
] [
log
] [
blame
] [
edit
]
// 4-input LUT test.
module
top
(
input
[
3
:
0
]
I
,
output O
);
always
@(
I
)
case
(
I
)
4
'b1000 : O = 1;
4'
b1001
:
O
=
1
;
4
'b1010 : O = 1;
4'
b1100
:
O
=
1
;
4
'b1110 : O = 1;
4'
b1111
:
O
=
1
;
default
:
O
=
0
;
endcase
endmodule
// top