--A1L31Q is Now_Direction[1]~reg0 at LC1
A1L31Q_p1_out = Up_En & !En & !Reset;
A1L31Q_or_out = A1L31Q_p1_out;
A1L31Q_reg_input = A1L31Q_or_out;
A1L31Q = DFFE(A1L31Q_reg_input, GLOBAL(Floor_Time), , , );


--A1L01Q is Now_Direction[0]~reg0 at LC9
A1L01Q_p1_out = !Up_En & Down_En & !En & !Reset;
A1L01Q_or_out = A1L01Q_p1_out;
A1L01Q_reg_input = A1L01Q_or_out;
A1L01Q = DFFE(A1L01Q_reg_input, GLOBAL(Floor_Time), , , );


--A1L21 is Now_Direction[1]~34 at LC17
A1L21_or_out = A1L31Q;
A1L21 = A1L21_or_out;


--A1L9 is Now_Direction[0]~36 at LC19
A1L9_or_out = A1L01Q;
A1L9 = A1L9_or_out;


--B1_dffs[0] is lpm_counter:Now_Floor_rtl_0|dffs[0] at LC3
B1_dffs[0]_p0_out = !En & !Reset & Up_En & !B1_dffs[0] & !B1_dffs[2] & !B1_dffs[1];
B1_dffs[0]_p1_out = Down_En & !En & !Reset & !Up_En & !B1_dffs[0] & B1_dffs[2];
B1_dffs[0]_p2_out = Down_En & !En & !Reset & !Up_En & !B1_dffs[0] & B1_dffs[1];
B1_dffs[0]_p3_out = !En & !Reset & Up_En & B1_dffs[0] & B1_dffs[3];
B1_dffs[0]_p4_out = !En & !Reset & Up_En & !B1_dffs[0] & !B1_dffs[3];
B1_dffs[0]_or_out = B1L3 # B1_dffs[0]_p0_out # B1_dffs[0]_p1_out # B1_dffs[0]_p2_out # B1_dffs[0]_p3_out # B1_dffs[0]_p4_out;
B1_dffs[0]_reg_input = B1_dffs[0]_or_out;
B1_dffs[0] = DFFE(B1_dffs[0]_reg_input, GLOBAL(Floor_Time), , , );


--B1_dffs[1] is lpm_counter:Now_Floor_rtl_0|dffs[1] at LC8
B1_dffs[1]_p0_out = !Up_En & !B1_dffs[0] & Down_En & B1_dffs[1];
B1_dffs[1]_p1_out = B1_dffs[3] & !En & !Reset & !Up_En & !B1_dffs[0] & Down_En;
B1_dffs[1]_p2_out = !En & !Reset & !Up_En & !B1_dffs[0] & Down_En & B1_dffs[2];
B1_dffs[1]_p3_out = En & B1_dffs[1];
B1_dffs[1]_p4_out = Reset & B1_dffs[1];
B1_dffs[1]_or_out = B1L5 # B1_dffs[1]_p0_out # B1_dffs[1]_p1_out # B1_dffs[1]_p2_out # B1_dffs[1]_p3_out # B1_dffs[1]_p4_out;
B1_dffs[1]_reg_input = B1_dffs[1]_or_out;
B1_dffs[1] = TFFE(B1_dffs[1]_reg_input, GLOBAL(Floor_Time), , , );


--B1_dffs[2] is lpm_counter:Now_Floor_rtl_0|dffs[2] at LC11
B1_dffs[2]_p0_out = !Up_En & !B1_dffs[1] & !B1_dffs[0] & Down_En & B1_dffs[2];
B1_dffs[2]_p1_out = !En & !Reset & !B1_dffs[3] & Up_En & B1_dffs[1] & B1_dffs[0];
B1_dffs[2]_p2_out = !En & !Reset & B1_dffs[3] & !Up_En & !B1_dffs[1] & !B1_dffs[0] & Down_En;
B1_dffs[2]_p3_out = En & B1_dffs[2];
B1_dffs[2]_p4_out = Reset & B1_dffs[2];
B1_dffs[2]_or_out = B1_dffs[2]_p0_out # B1_dffs[2]_p1_out # B1_dffs[2]_p2_out # B1_dffs[2]_p3_out # B1_dffs[2]_p4_out;
B1_dffs[2]_reg_input = B1_dffs[2]_or_out;
B1_dffs[2] = TFFE(B1_dffs[2]_reg_input, GLOBAL(Floor_Time), , , );


--B1_dffs[3] is lpm_counter:Now_Floor_rtl_0|dffs[3] at LC16
B1_dffs[3]_p1_out = Up_En & B1_dffs[2] & B1_dffs[1] & B1_dffs[0] & !En & !Reset & !B1_dffs[3];
B1_dffs[3]_p2_out = !Up_En & !B1_dffs[2] & !B1_dffs[1] & !B1_dffs[0] & B1_dffs[3] & Down_En;
B1_dffs[3]_p3_out = En & B1_dffs[3];
B1_dffs[3]_p4_out = Reset & B1_dffs[3];
B1_dffs[3]_or_out = B1_dffs[3]_p1_out # B1_dffs[3]_p2_out # B1_dffs[3]_p3_out # B1_dffs[3]_p4_out;
B1_dffs[3]_reg_input = B1_dffs[3]_or_out;
B1_dffs[3] = TFFE(B1_dffs[3]_reg_input, GLOBAL(Floor_Time), , , );


--B1L3 is lpm_counter:Now_Floor_rtl_0|dffs[0]~1736 at LC2
B1L3_p1_out = !B1_dffs[3] & !En & !Reset & !Up_En & B1_dffs[0] & !B1_dffs[2] & !B1_dffs[1];
B1L3_p2_out = !En & !Reset & !Up_En & B1_dffs[0] & !Down_En;
B1L3_p3_out = B1_dffs[3] & !En & !Reset & !Up_En & !B1_dffs[0] & Down_En;
B1L3 = B1L3_p1_out # B1L3_p2_out # B1L3_p3_out;


--B1L5 is lpm_counter:Now_Floor_rtl_0|dffs[1]~1740 at LC7
B1L5_p1_out = !B1_dffs[3] & !En & !Reset & Up_En & B1_dffs[0];
B1L5 = B1L5_p1_out;


--Reset is Reset at PIN_34
--operation mode is input

Reset = INPUT();


--En is En at PIN_12
--operation mode is input

En = INPUT();


--Up_En is Up_En at PIN_81
--operation mode is input

Up_En = INPUT();


--Down_En is Down_En at PIN_63
--operation mode is input

Down_En = INPUT();


--Floor_Time is Floor_Time at PIN_83
--operation mode is input

Floor_Time = INPUT();


--Now_Direction[1] is Now_Direction[1] at PIN_11
--operation mode is output

Now_Direction[1] = OUTPUT(A1L31Q);


--Now_Direction[0] is Now_Direction[0] at PIN_8
--operation mode is output

Now_Direction[0] = OUTPUT(A1L01Q);


--Motor_Data[1] is Motor_Data[1] at PIN_18
--operation mode is output

Motor_Data[1] = OUTPUT(A1L21);


--Motor_Data[0] is Motor_Data[0] at PIN_17
--operation mode is output

Motor_Data[0] = OUTPUT(A1L9);


--Now_Floor[0] is Now_Floor[0] at PIN_10
--operation mode is output

Now_Floor[0] = OUTPUT(B1_dffs[0]);


--Now_Floor[1] is Now_Floor[1] at PIN_9
--operation mode is output

Now_Floor[1] = OUTPUT(B1_dffs[1]);


--Now_Floor[2] is Now_Floor[2] at PIN_5
--operation mode is output

Now_Floor[2] = OUTPUT(B1_dffs[2]);


--Now_Floor[3] is Now_Floor[3] at PIN_4
--operation mode is output

Now_Floor[3] = OUTPUT(B1_dffs[3]);






