--A1L71 is always0~42
A1L71_p1_out = !Down_Request & !En & !Reset;
A1L71_p2_out = Up_Request & !En & !Reset;
A1L71_or_out = A1L71_p1_out # A1L71_p2_out;
A1L71 = A1L71_or_out;


--A1L2 is CNT2[4]~15
A1L2_p1_out = Down_Request & !Up_Request & !En & !Reset;
A1L2_p2_out = A1L2 & A1L61;
A1L2_p3_out = Down_Request & A1L2;
A1L2_or_out = A1L2_p1_out # A1L2_p2_out # A1L2_p3_out;
A1L2 = A1L2_or_out;


--A1L21 is Slave_Floor~56
A1L21_p1_out = A1L2 & !En & !Reset;
A1L21_or_out = A1L21_p1_out;
A1L21 = A1L21_or_out;


--A1L1 is CNT1[4]~15
A1L1_p1_out = Up_Request & A1L71;
A1L1_p2_out = !A1L71 & A1L1;
A1L1_p3_out = Up_Request & A1L1;
A1L1_or_out = A1L1_p1_out # A1L1_p2_out # A1L1_p3_out;
A1L1 = A1L1_or_out;


--A1L31 is Slave_Floor~58
A1L31_p1_out = A1L1 & !En & !Reset;
A1L31_or_out = A1L31_p1_out;
A1L31 = A1L31_or_out;


--A1L41 is Slave_Floor~61
A1L41_p1_out = A1L2 & !En & !Reset;
A1L41_p2_out = !En & !Reset & A1L1;
A1L41_or_out = A1L41_p1_out # A1L41_p2_out;
A1L41 = A1L41_or_out;


--~GND~0 is ~GND~0
~GND~0_or_out = GND;
~GND~0 = ~GND~0_or_out;


--~GND~1 is ~GND~1
~GND~1_or_out = GND;
~GND~1 = ~GND~1_or_out;


--A1L61 is always0~41sexp
A1L61 = EXP(!Up_Request & !En & !Reset);


--Reset is Reset
--operation mode is input

Reset = INPUT();


--En is En
--operation mode is input

En = INPUT();


--Up_Request is Up_Request
--operation mode is input

Up_Request = INPUT();


--Down_Request is Down_Request
--operation mode is input

Down_Request = INPUT();


--Slave_Floor[2] is Slave_Floor[2]
--operation mode is output

Slave_Floor[2] = OUTPUT(~GND~0);


--Slave_Floor[1] is Slave_Floor[1]
--operation mode is output

Slave_Floor[1] = OUTPUT(~GND~1);


--Slave_Floor[0] is Slave_Floor[0]
--operation mode is output

Slave_Floor[0] = OUTPUT(A1L21);


--Slave_Floor[3] is Slave_Floor[3]
--operation mode is output

Slave_Floor[3] = OUTPUT(A1L31);


--Slave_Floor[4] is Slave_Floor[4]
--operation mode is output

Slave_Floor[4] = OUTPUT(A1L41);


