--A1L58 is always0~1124
A1L58_p1_out = !Slave_Floor7[4] & !Master_Floor7;
A1L58_p2_out = !Master_Floor7 & Slave_Floor7[2];
A1L58_p3_out = !Master_Floor7 & !Slave_Floor7[3];
A1L58_p4_out = Now_Floor[2] & Now_Floor[0] & Now_Floor[1];
A1L58_or_out = Now_Floor[3] # A1L58_p1_out # A1L58_p2_out # A1L58_p3_out # A1L58_p4_out;
A1L58 = A1L58_or_out;


--A1L78 is always0~1138
A1L78_p1_out = !Now_Floor[3] & !Now_Floor[2] & Slave_Floor4[4] & !Slave_Floor4[2] & Slave_Floor4[3];
A1L78_p2_out = !Now_Floor[3] & !Now_Floor[2] & Master_Floor4;
A1L78_or_out = A1L78_p1_out # A1L78_p2_out;
A1L78 = A1L78_or_out;


--A1L88 is always0~1143
A1L88_p1_out = Slave_Floor3[4] & !Slave_Floor3[2] & Slave_Floor3[3] & !Now_Floor[0] & !Now_Floor[3] & !Now_Floor[2];
A1L88_p2_out = Slave_Floor3[4] & !Slave_Floor3[2] & Slave_Floor3[3] & !Now_Floor[3] & !Now_Floor[2] & !Now_Floor[1];
A1L88_p3_out = !Now_Floor[0] & !Now_Floor[3] & !Now_Floor[2] & Master_Floor3;
A1L88_p4_out = !Now_Floor[3] & !Now_Floor[2] & !Now_Floor[1] & Master_Floor3;
A1L88_or_out = A1L88_p1_out # A1L88_p2_out # A1L88_p3_out # A1L88_p4_out;
A1L88 = A1L88_or_out;


--A1L98 is always0~1146
A1L98_p1_out = !Now_Floor[1] & !Now_Floor[3] & !Now_Floor[2] & Slave_Floor2[4] & !Slave_Floor2[2] & Slave_Floor2[3];
A1L98_p2_out = !Now_Floor[1] & !Now_Floor[3] & !Now_Floor[2] & Master_Floor2;
A1L98_or_out = A1L98_p1_out # A1L98_p2_out;
A1L98 = A1L98_or_out;


--A1L18 is Up_En~15
A1L18_p1_out = A1L58 & !A1L78 & !A1L88 & !A1L98 & A1L91 & A1L38 & A1L48 & A1L68;
A1L18_p2_out = !Now_Direction[1] & A1L91;
A1L18_p3_out = Now_Direction[0] & A1L91;
A1L18_or_out = A1L18_p1_out # A1L18_p2_out # A1L18_p3_out # A1L28;
A1L18 = A1L18_or_out;


--A1L09 is always0~1151
A1L09_p1_out = !Now_Floor[0] & !Now_Floor[1] & !Now_Floor[2];
A1L09_p2_out = !Master_Floor8 & !Slave_Floor8[4];
A1L09_p3_out = !Master_Floor8 & Slave_Floor8[1];
A1L09_p4_out = !Master_Floor8 & !Slave_Floor8[0];
A1L09_or_out = !Now_Floor[3] # A1L09_p1_out # A1L09_p2_out # A1L09_p3_out # A1L09_p4_out;
A1L09 = A1L09_or_out;


--A1L39 is always0~1171
A1L39_p0_out = !Master_Floor4 & !Slave_Floor4[0];
A1L39_p1_out = !Now_Floor[0] & !Now_Floor[3] & !Now_Floor[1];
A1L39_p2_out = !Now_Floor[3] & !Now_Floor[2];
A1L39_p3_out = !Slave_Floor4[4] & !Master_Floor4;
A1L39_p4_out = !Master_Floor4 & Slave_Floor4[1];
A1L39_or_out = A1L39_p0_out # A1L39_p1_out # A1L39_p2_out # A1L39_p3_out # A1L39_p4_out;
A1L39 = A1L39_or_out;


--A1L89 is always0~1182
A1L89_p0_out = !Master_Floor2 & !Slave_Floor2[0];
A1L89_p1_out = !Now_Floor[3] & !Now_Floor[2] & !Now_Floor[0];
A1L89_p2_out = !Now_Floor[3] & !Now_Floor[2] & !Now_Floor[1];
A1L89_p3_out = !Slave_Floor2[4] & !Master_Floor2;
A1L89_p4_out = !Master_Floor2 & Slave_Floor2[1];
A1L89_or_out = A1L89_p0_out # A1L89_p1_out # A1L89_p2_out # A1L89_p3_out # A1L89_p4_out;
A1L89 = A1L89_or_out;


--A1L99 is always0~1187
A1L99_p1_out = !Now_Floor[1] & !Now_Floor[3] & !Now_Floor[2];
A1L99_p2_out = Slave_Floor1[1] & !Master_Floor1;
A1L99_p3_out = !Master_Floor1 & !Slave_Floor1[0];
A1L99_p4_out = !Master_Floor1 & !Slave_Floor1[4];
A1L99_or_out = A1L99_p1_out # A1L99_p2_out # A1L99_p3_out # A1L99_p4_out;
A1L99 = A1L99_or_out;


--A1L3 is Down_En~13
A1L3_p1_out = A1L09 & A1L39 & A1L89 & A1L99 & A1L02 & A1L19 & A1L29 & A1L49 & A1L59 & A1L69 & A1L79;
A1L3_p2_out = Now_Direction[1] & A1L02;
A1L3_p3_out = !Now_Direction[0] & A1L02;
A1L3_or_out = A1L3_p1_out # A1L3_p2_out # A1L3_p3_out # A1L28;
A1L3 = A1L3_or_out;


--A1L001 is always0~1191
A1L001_p1_out = A1L58 & !A1L78 & !A1L88 & !A1L98 & A1L91 & A1L38 & A1L48 & A1L68;
A1L001_p2_out = !Now_Direction[1] & A1L91;
A1L001_p3_out = Now_Direction[0] & A1L91;
A1L001_or_out = A1L001_p1_out # A1L001_p2_out # A1L001_p3_out;
A1L001 = A1L001_or_out;


--A1L2 is Down_En$latch~10
A1L2_p1_out = !A1L3 & A1L18;
A1L2_p2_out = !A1L18 & A1L2;
A1L2_p3_out = !A1L3 & A1L2;
A1L2_or_out = A1L2_p1_out # A1L2_p2_out # A1L2_p3_out;
A1L2 = A1L2_or_out;


--A1L08 is Up_En$latch~10
A1L08_p1_out = !A1L18 & !A1L001;
A1L08_p2_out = A1L08 & A1L001 & !A1L3;
A1L08_p3_out = !A1L18 & A1L08;
A1L08_p4_out = !A1L18 & A1L3;
A1L08_or_out = A1L08_p1_out # A1L08_p2_out # A1L08_p3_out # A1L08_p4_out;
A1L08 = A1L08_or_out;


--A1L91 is Now_Floor[0]~162sexp
A1L91 = EXP(Now_Floor[0] & !Now_Floor[1] & !Now_Floor[3] & !Now_Floor[2]);


--A1L28 is Up_En~18sexp
A1L28 = EXP(!En & !Reset);


--A1L02 is Now_Floor[0]~164sexp
A1L02 = EXP(Now_Floor[0] & Now_Floor[3] & !Now_Floor[1] & !Now_Floor[2]);


--A1L49 is always0~1176sexp1
A1L49 = EXP(Now_Floor[3] & Master_Floor3);


--A1L59 is always0~1176sexp2
A1L59 = EXP(Now_Floor[3] & Slave_Floor3[4] & !Slave_Floor3[1] & Slave_Floor3[0]);


--A1L69 is always0~1176sexp3
A1L69 = EXP(Master_Floor3 & Now_Floor[2]);


--A1L79 is always0~1176sexp4
A1L79 = EXP(Now_Floor[2] & Slave_Floor3[4] & !Slave_Floor3[1] & Slave_Floor3[0]);


--A1L48 is always0~1119sexp2bal
A1L48_p0_out = !Now_Floor[3] & !Now_Floor[2] & Master_Floor6;
A1L48_p1_out = !Now_Floor[3] & Master_Floor8;
A1L48_p2_out = !Now_Floor[3] & Slave_Floor6[4] & !Slave_Floor6[2] & Slave_Floor6[3] & !Now_Floor[1];
A1L48_p3_out = !Now_Floor[3] & Slave_Floor6[4] & !Slave_Floor6[2] & Slave_Floor6[3] & !Now_Floor[2];
A1L48_p4_out = !Now_Floor[3] & !Now_Floor[1] & Master_Floor6;
A1L48_or_out = A1L48_p0_out # A1L48_p1_out # A1L48_p2_out # A1L48_p3_out # A1L48_p4_out;
A1L48 = !(A1L48_or_out);


--A1L38 is always0~1116sexp1bal
A1L38_p0_out = !Now_Floor[3] & Slave_Floor8[4] & !Slave_Floor8[2] & Slave_Floor8[3];
A1L38_p1_out = !Slave_Floor9[2] & Slave_Floor9[3] & Slave_Floor9[4] & !Now_Floor[3];
A1L38_p2_out = !Slave_Floor9[2] & Slave_Floor9[3] & Slave_Floor9[4] & !Now_Floor[0] & !Now_Floor[1] & !Now_Floor[2];
A1L38_p3_out = !Now_Floor[3] & Master_Floor9;
A1L38_p4_out = !Now_Floor[0] & !Now_Floor[1] & !Now_Floor[2] & Master_Floor9;
A1L38_or_out = A1L38_p0_out # A1L38_p1_out # A1L38_p2_out # A1L38_p3_out # A1L38_p4_out;
A1L38 = !(A1L38_or_out);


--A1L68 is always0~1135sexp1bal
A1L68_p1_out = Slave_Floor5[4] & !Slave_Floor5[2] & Slave_Floor5[3] & !Now_Floor[2] & !Now_Floor[3];
A1L68_p2_out = Slave_Floor5[4] & !Slave_Floor5[2] & Slave_Floor5[3] & !Now_Floor[3] & !Now_Floor[0] & !Now_Floor[1];
A1L68_p3_out = !Now_Floor[2] & !Now_Floor[3] & Master_Floor5;
A1L68_p4_out = !Now_Floor[3] & !Now_Floor[0] & !Now_Floor[1] & Master_Floor5;
A1L68_or_out = A1L68_p1_out # A1L68_p2_out # A1L68_p3_out # A1L68_p4_out;
A1L68 = !(A1L68_or_out);


--A1L29 is always0~1160sexp4bal
A1L29_p0_out = Now_Floor[2] & Now_Floor[1] & Slave_Floor5[4] & !Slave_Floor5[1] & Slave_Floor5[0];
A1L29_p1_out = Now_Floor[2] & Now_Floor[0] & Now_Floor[1] & Slave_Floor6[4] & !Slave_Floor6[1] & Slave_Floor6[0];
A1L29_p2_out = Now_Floor[3] & Master_Floor5;
A1L29_p3_out = Now_Floor[3] & Slave_Floor5[4] & !Slave_Floor5[1] & Slave_Floor5[0];
A1L29_p4_out = Now_Floor[2] & Now_Floor[1] & Master_Floor5;
A1L29_or_out = A1L29_p0_out # A1L29_p1_out # A1L29_p2_out # A1L29_p3_out # A1L29_p4_out;
A1L29 = !(A1L29_or_out);


--A1L19 is always0~1155sexp1bal
A1L19_p0_out = Master_Floor6 & Now_Floor[2] & Now_Floor[0] & Now_Floor[1];
A1L19_p1_out = Now_Floor[3] & Master_Floor7;
A1L19_p2_out = Now_Floor[3] & Slave_Floor7[4] & !Slave_Floor7[1] & Slave_Floor7[0];
A1L19_p3_out = Now_Floor[3] & Master_Floor6;
A1L19_p4_out = Now_Floor[3] & Slave_Floor6[4] & !Slave_Floor6[1] & Slave_Floor6[0];
A1L19_or_out = A1L19_p0_out # A1L19_p1_out # A1L19_p2_out # A1L19_p3_out # A1L19_p4_out;
A1L19 = !(A1L19_or_out);


--Reset is Reset
--operation mode is input

Reset = INPUT();


--En is En
--operation mode is input

En = INPUT();


--Now_Floor[3] is Now_Floor[3]
--operation mode is input

Now_Floor[3] = INPUT();


--Now_Floor[2] is Now_Floor[2]
--operation mode is input

Now_Floor[2] = INPUT();


--Now_Floor[1] is Now_Floor[1]
--operation mode is input

Now_Floor[1] = INPUT();


--Now_Floor[0] is Now_Floor[0]
--operation mode is input

Now_Floor[0] = INPUT();


--Now_Direction[1] is Now_Direction[1]
--operation mode is input

Now_Direction[1] = INPUT();


--Now_Direction[0] is Now_Direction[0]
--operation mode is input

Now_Direction[0] = INPUT();


--Master_Floor1 is Master_Floor1
--operation mode is input

Master_Floor1 = INPUT();


--Master_Floor2 is Master_Floor2
--operation mode is input

Master_Floor2 = INPUT();


--Master_Floor3 is Master_Floor3
--operation mode is input

Master_Floor3 = INPUT();


--Master_Floor4 is Master_Floor4
--operation mode is input

Master_Floor4 = INPUT();


--Master_Floor5 is Master_Floor5
--operation mode is input

Master_Floor5 = INPUT();


--Master_Floor6 is Master_Floor6
--operation mode is input

Master_Floor6 = INPUT();


--Master_Floor7 is Master_Floor7
--operation mode is input

Master_Floor7 = INPUT();


--Master_Floor8 is Master_Floor8
--operation mode is input

Master_Floor8 = INPUT();


--Master_Floor9 is Master_Floor9
--operation mode is input

Master_Floor9 = INPUT();


--Slave_Floor1[4] is Slave_Floor1[4]
--operation mode is input

Slave_Floor1[4] = INPUT();


--Slave_Floor1[3] is Slave_Floor1[3]
--operation mode is input

Slave_Floor1[3] = INPUT();


--Slave_Floor1[2] is Slave_Floor1[2]
--operation mode is input

Slave_Floor1[2] = INPUT();


--Slave_Floor1[1] is Slave_Floor1[1]
--operation mode is input

Slave_Floor1[1] = INPUT();


--Slave_Floor1[0] is Slave_Floor1[0]
--operation mode is input

Slave_Floor1[0] = INPUT();


--Slave_Floor2[4] is Slave_Floor2[4]
--operation mode is input

Slave_Floor2[4] = INPUT();


--Slave_Floor2[3] is Slave_Floor2[3]
--operation mode is input

Slave_Floor2[3] = INPUT();


--Slave_Floor2[2] is Slave_Floor2[2]
--operation mode is input

Slave_Floor2[2] = INPUT();


--Slave_Floor2[1] is Slave_Floor2[1]
--operation mode is input

Slave_Floor2[1] = INPUT();


--Slave_Floor2[0] is Slave_Floor2[0]
--operation mode is input

Slave_Floor2[0] = INPUT();


--Slave_Floor3[4] is Slave_Floor3[4]
--operation mode is input

Slave_Floor3[4] = INPUT();


--Slave_Floor3[3] is Slave_Floor3[3]
--operation mode is input

Slave_Floor3[3] = INPUT();


--Slave_Floor3[2] is Slave_Floor3[2]
--operation mode is input

Slave_Floor3[2] = INPUT();


--Slave_Floor3[1] is Slave_Floor3[1]
--operation mode is input

Slave_Floor3[1] = INPUT();


--Slave_Floor3[0] is Slave_Floor3[0]
--operation mode is input

Slave_Floor3[0] = INPUT();


--Slave_Floor4[4] is Slave_Floor4[4]
--operation mode is input

Slave_Floor4[4] = INPUT();


--Slave_Floor4[3] is Slave_Floor4[3]
--operation mode is input

Slave_Floor4[3] = INPUT();


--Slave_Floor4[2] is Slave_Floor4[2]
--operation mode is input

Slave_Floor4[2] = INPUT();


--Slave_Floor4[1] is Slave_Floor4[1]
--operation mode is input

Slave_Floor4[1] = INPUT();


--Slave_Floor4[0] is Slave_Floor4[0]
--operation mode is input

Slave_Floor4[0] = INPUT();


--Slave_Floor5[4] is Slave_Floor5[4]
--operation mode is input

Slave_Floor5[4] = INPUT();


--Slave_Floor5[3] is Slave_Floor5[3]
--operation mode is input

Slave_Floor5[3] = INPUT();


--Slave_Floor5[2] is Slave_Floor5[2]
--operation mode is input

Slave_Floor5[2] = INPUT();


--Slave_Floor5[1] is Slave_Floor5[1]
--operation mode is input

Slave_Floor5[1] = INPUT();


--Slave_Floor5[0] is Slave_Floor5[0]
--operation mode is input

Slave_Floor5[0] = INPUT();


--Slave_Floor6[4] is Slave_Floor6[4]
--operation mode is input

Slave_Floor6[4] = INPUT();


--Slave_Floor6[3] is Slave_Floor6[3]
--operation mode is input

Slave_Floor6[3] = INPUT();


--Slave_Floor6[2] is Slave_Floor6[2]
--operation mode is input

Slave_Floor6[2] = INPUT();


--Slave_Floor6[1] is Slave_Floor6[1]
--operation mode is input

Slave_Floor6[1] = INPUT();


--Slave_Floor6[0] is Slave_Floor6[0]
--operation mode is input

Slave_Floor6[0] = INPUT();


--Slave_Floor7[4] is Slave_Floor7[4]
--operation mode is input

Slave_Floor7[4] = INPUT();


--Slave_Floor7[3] is Slave_Floor7[3]
--operation mode is input

Slave_Floor7[3] = INPUT();


--Slave_Floor7[2] is Slave_Floor7[2]
--operation mode is input

Slave_Floor7[2] = INPUT();


--Slave_Floor7[1] is Slave_Floor7[1]
--operation mode is input

Slave_Floor7[1] = INPUT();


--Slave_Floor7[0] is Slave_Floor7[0]
--operation mode is input

Slave_Floor7[0] = INPUT();


--Slave_Floor8[4] is Slave_Floor8[4]
--operation mode is input

Slave_Floor8[4] = INPUT();


--Slave_Floor8[3] is Slave_Floor8[3]
--operation mode is input

Slave_Floor8[3] = INPUT();


--Slave_Floor8[2] is Slave_Floor8[2]
--operation mode is input

Slave_Floor8[2] = INPUT();


--Slave_Floor8[1] is Slave_Floor8[1]
--operation mode is input

Slave_Floor8[1] = INPUT();


--Slave_Floor8[0] is Slave_Floor8[0]
--operation mode is input

Slave_Floor8[0] = INPUT();


--Slave_Floor9[4] is Slave_Floor9[4]
--operation mode is input

Slave_Floor9[4] = INPUT();


--Slave_Floor9[3] is Slave_Floor9[3]
--operation mode is input

Slave_Floor9[3] = INPUT();


--Slave_Floor9[2] is Slave_Floor9[2]
--operation mode is input

Slave_Floor9[2] = INPUT();


--Slave_Floor9[1] is Slave_Floor9[1]
--operation mode is input

Slave_Floor9[1] = INPUT();


--Slave_Floor9[0] is Slave_Floor9[0]
--operation mode is input

Slave_Floor9[0] = INPUT();


--Down_En is Down_En
--operation mode is output

Down_En = OUTPUT(A1L2);


--Up_En is Up_En
--operation mode is output

Up_En = OUTPUT(A1L08);


