-
Notifications
You must be signed in to change notification settings - Fork 1
/
decodbebida.v
68 lines (48 loc) · 1.09 KB
/
decodbebida.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module decodbebida(X,Y,Z,A,B,a,b,c,d,e,f,g);
input X,Y,Z,A,B;
output a,b,c,d,e,f,g;
wire s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s22,s23,s24,s25,s26,s27,s28,s29,s30,s31,s32,s33,s34,s35,s36;
and (s1,~X,~Y,Z);
and (s2,~X,Z,~B);
and (s3,Z,~A,~B);
and (s4,X,~A,B);
and (s5,X,Y);
or (a,s1,s2,s3,s4,s5);
and (s6,~X,~Y);
and (s7,~Y,~Z,A);
and (s8,A,B);
and (s9,~X,Z,A);
and (s10,X,Y);
or (b,s6,s7,s8,s9,s10);
and (s11,~X,~Y);
and (s12,~Y,A);
and (s13,A,B);
and (s14,Z,A);
and (s15,X,Y);
or (c,s11,s12,s13,s14,s15);
and (s16,~X,~Y,Z);
and (s17,~Y,Z,~B);
and (s18,Z,~A,~B);
and (s19,Y,~Z,A,~B);
and (s20,X,~A,B);
and (s21,X,Y);
or (d,s16,s17,s18,s19,s20,s21);
and (s22,~X,~Y,Z);
and (s23,Z,~A,~B);
and (s24,X,~A,B);
and (s25,X,Y);
or (e,s22,s23,s24,s25);
and (s26,~X,~Y,Z);
and (s27,Z,~A,~B);
and (s28,X,~A,B);
and (s29,X,Y);
or (f,s26,s27,s28,s29);
and (s30,~X,Z);
and (s31,Y,~A);
and (s32,Y,B);
and (s33,X,~Z);
and (s34,X,~A);
and (s35,X,B);
and (s36,X,Y);
or (g,s30,s31,s32,s33,s34,s35,s36);
endmodule