--A1L22 is Y7~21
A1L22_p1_out = !G2B & G1 & !G2A & A & B & C;
A1L22_or_out = A1L22_p1_out;
A1L22 = !(A1L22_or_out);


--A1L02 is Y6~13
A1L02_p1_out = B & C & !G2B & G1 & !G2A & !A;
A1L02_or_out = A1L02_p1_out;
A1L02 = !(A1L02_or_out);


--A1L41 is Y3~11
A1L41_p1_out = !G2B & G1 & !G2A & A & B & !C;
A1L41_or_out = A1L41_p1_out;
A1L41 = !(A1L41_or_out);


--A1L21 is Y2~13
A1L21_p1_out = !G2B & G1 & !G2A & !A & B & !C;
A1L21_or_out = A1L21_p1_out;
A1L21 = !(A1L21_or_out);


--A1L81 is Y5~11
A1L81_p1_out = C & !G2B & G1 & !G2A & A & !B;
A1L81_or_out = A1L81_p1_out;
A1L81 = !(A1L81_or_out);


--A1L61 is Y4~11
A1L61_p1_out = C & !B & !G2B & G1 & !G2A & !A;
A1L61_or_out = A1L61_p1_out;
A1L61 = !(A1L61_or_out);


--A1L01 is Y1~16
A1L01_p1_out = !C & !G2B & G1 & !G2A & A & !B;
A1L01_or_out = A1L01_p1_out;
A1L01 = !(A1L01_or_out);


--A1L8 is Y0~15
A1L8_p1_out = !C & !B & !G2B & G1 & !G2A & !A;
A1L8_or_out = A1L8_p1_out;
A1L8 = !(A1L8_or_out);


--G1 is G1
--operation mode is input

G1 = INPUT();


--G2A is G2A
--operation mode is input

G2A = INPUT();


--G2B is G2B
--operation mode is input

G2B = INPUT();


--C is C
--operation mode is input

C = INPUT();


--B is B
--operation mode is input

B = INPUT();


--A is A
--operation mode is input

A = INPUT();


--Y7 is Y7
--operation mode is output

Y7 = OUTPUT(A1L22);


--Y6 is Y6
--operation mode is output

Y6 = OUTPUT(A1L02);


--Y3 is Y3
--operation mode is output

Y3 = OUTPUT(A1L41);


--Y2 is Y2
--operation mode is output

Y2 = OUTPUT(A1L21);


--Y5 is Y5
--operation mode is output

Y5 = OUTPUT(A1L81);


--Y4 is Y4
--operation mode is output

Y4 = OUTPUT(A1L61);


--Y1 is Y1
--operation mode is output

Y1 = OUTPUT(A1L01);


--Y0 is Y0
--operation mode is output

Y0 = OUTPUT(A1L8);


