summaryrefslogtreecommitdiff
path: root/tests/asicworld/code_hdl_models_decoder_2to4_gates.v
blob: 810003a85acd935cb28e39aae4036d220544c07c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module decoder_2to4_gates (x,y,f0,f1,f2,f3);
input x,y;
output f0,f1,f2,f3;

wire n1,n2;

not i1 (n1,x);
not i2 (n2,y);
and a1 (f0,n1,n2);
and a2 (f1,n1,y);
and a3 (f2,x,n2);
and a4 (f3,x,y);

endmodule