--D1_8 is 8count:21|f8count:sub|8 at LC1_A30
--operation mode is arithmetic

D1_8_lut_out = !D1_8;
D1_8 = DFFEA(D1_8_lut_out, PB1, PB2, , , , );

--D1_245 is 8count:21|f8count:sub|245 at LC1_A30
--operation mode is arithmetic

D1_245 = CARRY(D1_8);


--D1_7 is 8count:21|f8count:sub|7 at LC2_A30
--operation mode is up_dn_cntr

D1_7_lut_out = D1_7 $ D1_245;
D1_7 = DFFEA(D1_7_lut_out, PB1, PB2, , , , );

--D1_246 is 8count:21|f8count:sub|246 at LC2_A30
--operation mode is up_dn_cntr

D1_246 = CARRY(D1_7 & D1_245);


--D1_6 is 8count:21|f8count:sub|6 at LC3_A30
--operation mode is up_dn_cntr

D1_6_lut_out = D1_6 $ D1_246;
D1_6 = DFFEA(D1_6_lut_out, PB1, PB2, , , , );

--D1_247 is 8count:21|f8count:sub|247 at LC3_A30
--operation mode is up_dn_cntr

D1_247 = CARRY(D1_6 & D1_246);


--D1_5 is 8count:21|f8count:sub|5 at LC4_A30
--operation mode is up_dn_cntr

D1_5_lut_out = D1_5 $ D1_247;
D1_5 = DFFEA(D1_5_lut_out, PB1, PB2, , , , );

--D1_248 is 8count:21|f8count:sub|248 at LC4_A30
--operation mode is up_dn_cntr

D1_248 = CARRY(D1_5 & D1_247);


--C1L7 is dec_7seg:29|segment_data[6]~0 at LC7_C52
--operation mode is normal

C1L7 = D1_6 & !D1_7 & (D1_8 $ !D1_5) # !D1_6 & D1_8 & (D1_7 $ !D1_5);


--C1L6 is dec_7seg:29|segment_data[5]~2 at LC8_B44
--operation mode is normal

C1L6 = D1_7 & (D1_8 & D1_5 # !D1_8 & D1_6) # !D1_7 & D1_6 & (D1_8 $ D1_5);


--C1L5 is dec_7seg:29|segment_data[4]~4 at LC1_C52
--operation mode is normal

C1L5 = D1_6 & D1_5 & (D1_7 # !D1_8) # !D1_6 & !D1_8 & D1_7 & !D1_5;


--C1L4 is dec_7seg:29|segment_data[3]~6 at LC3_C52
--operation mode is normal

C1L4 = D1_7 & (D1_8 & D1_6 # !D1_8 & !D1_6 & D1_5) # !D1_7 & !D1_5 & (D1_8 $ D1_6);


--C1L3 is dec_7seg:29|segment_data[2]~8 at LC5_C52
--operation mode is normal

C1L3 = D1_7 & D1_8 & !D1_5 # !D1_7 & (D1_6 & !D1_5 # !D1_6 & D1_8);


--C1L2 is dec_7seg:29|segment_data[1]~10 at LC6_C52
--operation mode is normal

C1L2 = D1_8 & (D1_5 $ (D1_7 # !D1_6)) # !D1_8 & D1_7 & !D1_6 & !D1_5;


--C1L1 is dec_7seg:29|segment_data[0]~12 at LC7_C32
--operation mode is normal

C1L1 = D1_8 & (D1_5 # D1_7 $ D1_6) # !D1_8 & (D1_7 # D1_6 $ D1_5);


--D1_4 is 8count:21|f8count:sub|4 at LC5_A30
--operation mode is up_dn_cntr

D1_4_lut_out = D1_4 $ D1_248;
D1_4 = DFFEA(D1_4_lut_out, PB1, PB2, , , , );

--D1_249 is 8count:21|f8count:sub|249 at LC5_A30
--operation mode is up_dn_cntr

D1_249 = CARRY(D1_4 & D1_248);


--D1_3 is 8count:21|f8count:sub|3 at LC6_A30
--operation mode is up_dn_cntr

D1_3_lut_out = D1_3 $ D1_249;
D1_3 = DFFEA(D1_3_lut_out, PB1, PB2, , , , );

--D1_250 is 8count:21|f8count:sub|250 at LC6_A30
--operation mode is up_dn_cntr

D1_250 = CARRY(D1_3 & D1_249);


--D1_2 is 8count:21|f8count:sub|2 at LC7_A30
--operation mode is up_dn_cntr

D1_2_lut_out = D1_2 $ D1_250;
D1_2 = DFFEA(D1_2_lut_out, PB1, PB2, , , , );

--D1_251 is 8count:21|f8count:sub|251 at LC7_A30
--operation mode is up_dn_cntr

D1_251 = CARRY(D1_2 & D1_250);


--D1_1 is 8count:21|f8count:sub|1 at LC8_A30
--operation mode is normal

D1_1_lut_out = D1_251 $ D1_1;
D1_1 = DFFEA(D1_1_lut_out, PB1, PB2, , , , );


--C2L7 is dec_7seg:30|segment_data[6]~0 at LC1_A42
--operation mode is normal

C2L7 = D1_2 & !D1_3 & (D1_4 $ !D1_1) # !D1_2 & D1_4 & (D1_3 $ !D1_1);


--C2L6 is dec_7seg:30|segment_data[5]~2 at LC3_A28
--operation mode is normal

C2L6 = D1_3 & (D1_4 & D1_1 # !D1_4 & D1_2) # !D1_3 & D1_2 & (D1_4 $ D1_1);


--C2L5 is dec_7seg:30|segment_data[4]~4 at LC5_A28
--operation mode is normal

C2L5 = D1_2 & D1_1 & (D1_3 # !D1_4) # !D1_2 & !D1_4 & D1_3 & !D1_1;


--C2L4 is dec_7seg:30|segment_data[3]~6 at LC7_A47
--operation mode is normal

C2L4 = D1_3 & (D1_4 & D1_2 # !D1_4 & !D1_2 & D1_1) # !D1_3 & !D1_1 & (D1_4 $ D1_2);


--C2L3 is dec_7seg:30|segment_data[2]~8 at LC8_A36
--operation mode is normal

C2L3 = D1_3 & D1_4 & !D1_1 # !D1_3 & (D1_2 & !D1_1 # !D1_2 & D1_4);


--C2L2 is dec_7seg:30|segment_data[1]~10 at LC1_A28
--operation mode is normal

C2L2 = D1_4 & (D1_1 $ (D1_3 # !D1_2)) # !D1_4 & D1_3 & !D1_2 & !D1_1;


--C2L1 is dec_7seg:30|segment_data[0]~12 at LC3_A42
--operation mode is normal

C2L1 = D1_4 & (D1_1 # D1_3 $ D1_2) # !D1_4 & (D1_3 # D1_2 $ D1_1);


--PB1 is PB1 at Pin_28
--operation mode is input

PB1 = INPUT();


--PB2 is PB2 at Pin_29
--operation mode is input

PB2 = INPUT();


--LSD_SEG_A is LSD_SEG_A at Pin_17
--operation mode is output

LSD_SEG_A = OUTPUT(C1L7);


--LSD_SEG_B is LSD_SEG_B at Pin_18
--operation mode is output

LSD_SEG_B = OUTPUT(C1L6);


--LSD_SEG_C is LSD_SEG_C at Pin_19
--operation mode is output

LSD_SEG_C = OUTPUT(C1L5);


--LSD_SEG_D is LSD_SEG_D at Pin_20
--operation mode is output

LSD_SEG_D = OUTPUT(C1L4);


--LSD_SEG_E is LSD_SEG_E at Pin_21
--operation mode is output

LSD_SEG_E = OUTPUT(C1L3);


--LSD_SEG_F is LSD_SEG_F at Pin_23
--operation mode is output

LSD_SEG_F = OUTPUT(C1L2);


--LSD_SEG_G is LSD_SEG_G at Pin_24
--operation mode is output

LSD_SEG_G = OUTPUT(!C1L1);


--MSD_SEG_A is MSD_SEG_A at Pin_6
--operation mode is output

MSD_SEG_A = OUTPUT(C2L7);


--MSD_SEG_B is MSD_SEG_B at Pin_7
--operation mode is output

MSD_SEG_B = OUTPUT(C2L6);


--MSD_SEG_C is MSD_SEG_C at Pin_8
--operation mode is output

MSD_SEG_C = OUTPUT(C2L5);


--MSD_SEG_D is MSD_SEG_D at Pin_9
--operation mode is output

MSD_SEG_D = OUTPUT(C2L4);


--MSD_SEG_E is MSD_SEG_E at Pin_11
--operation mode is output

MSD_SEG_E = OUTPUT(C2L3);


--MSD_SEG_F is MSD_SEG_F at Pin_12
--operation mode is output

MSD_SEG_F = OUTPUT(C2L2);


--MSD_SEG_G is MSD_SEG_G at Pin_13
--operation mode is output

MSD_SEG_G = OUTPUT(!C2L1);


--LSD_SEG_DP is LSD_SEG_DP at Pin_25
--operation mode is output

LSD_SEG_DP = OUTPUT(VCC);


--MSD_SEG_DP is MSD_SEG_DP at Pin_14
--operation mode is output

MSD_SEG_DP = OUTPUT(VCC);


