--E1_Adc_Mode is Position_adc_ctrl:inst6|Adc_Mode
E1_Adc_Mode_p1_out = !Reset & Position_SW;
E1_Adc_Mode_or_out = E1_Adc_Mode_p1_out;
E1_Adc_Mode_reg_input = E1_Adc_Mode_or_out;
E1_Adc_Mode = DFFE(E1_Adc_Mode_reg_input, GLOBAL(Clock), , , );


--E1_Adc_Cs is Position_adc_ctrl:inst6|Adc_Cs
E1_Adc_Cs_p1_out = !Reset & Position_SW;
E1_Adc_Cs_or_out = E1_Adc_Cs_p1_out;
E1_Adc_Cs_reg_input = !(E1_Adc_Cs_or_out);
E1_Adc_Cs = DFFE(E1_Adc_Cs_reg_input, GLOBAL(Clock), , , );


--K1_cnt1[0] is main:inst3|Data_drive:b2v_inst|cnt1[0]
K1_cnt1[0]_reg_input = VCC;
K1_cnt1[0]_p3_out = Current_SW & !Reset & !AD7895_Busy;
K1_cnt1[0] = TFFE(K1_cnt1[0]_reg_input, GLOBAL(Clk_SCL), , , K1_cnt1[0]_p3_out);


--E1_Adc_Conv is Position_adc_ctrl:inst6|Adc_Conv
E1_Adc_Conv_p1_out = !Reset & Position_SW & AD7492_Busy;
E1_Adc_Conv_or_out = E1_Adc_Conv_p1_out;
E1_Adc_Conv_reg_input = !(E1_Adc_Conv_or_out);
E1_Adc_Conv = DFFE(E1_Adc_Conv_reg_input, GLOBAL(Clock), , , );


--E1_Adc_Rd is Position_adc_ctrl:inst6|Adc_Rd
E1_Adc_Rd_p1_out = !Reset & Position_SW & !AD7492_Busy;
E1_Adc_Rd_or_out = E1_Adc_Rd_p1_out;
E1_Adc_Rd_reg_input = !(E1_Adc_Rd_or_out);
E1_Adc_Rd = DFFE(E1_Adc_Rd_reg_input, GLOBAL(Clock), , , );


--E1_Position_Data[11] is Position_adc_ctrl:inst6|Position_Data[11]
E1_Position_Data[11]_or_out = AD7492_Data[11];
E1_Position_Data[11]_reg_input = E1_Position_Data[11]_or_out;
E1_Position_Data[11] = DFFE(E1_Position_Data[11]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[10] is Position_adc_ctrl:inst6|Position_Data[10]
E1_Position_Data[10]_or_out = AD7492_Data[10];
E1_Position_Data[10]_reg_input = E1_Position_Data[10]_or_out;
E1_Position_Data[10] = DFFE(E1_Position_Data[10]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[9] is Position_adc_ctrl:inst6|Position_Data[9]
E1_Position_Data[9]_or_out = AD7492_Data[9];
E1_Position_Data[9]_reg_input = E1_Position_Data[9]_or_out;
E1_Position_Data[9] = DFFE(E1_Position_Data[9]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[8] is Position_adc_ctrl:inst6|Position_Data[8]
E1_Position_Data[8]_or_out = AD7492_Data[8];
E1_Position_Data[8]_reg_input = E1_Position_Data[8]_or_out;
E1_Position_Data[8] = DFFE(E1_Position_Data[8]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[7] is Position_adc_ctrl:inst6|Position_Data[7]
E1_Position_Data[7]_or_out = AD7492_Data[7];
E1_Position_Data[7]_reg_input = E1_Position_Data[7]_or_out;
E1_Position_Data[7] = DFFE(E1_Position_Data[7]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[6] is Position_adc_ctrl:inst6|Position_Data[6]
E1_Position_Data[6]_or_out = AD7492_Data[6];
E1_Position_Data[6]_reg_input = E1_Position_Data[6]_or_out;
E1_Position_Data[6] = DFFE(E1_Position_Data[6]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[5] is Position_adc_ctrl:inst6|Position_Data[5]
E1_Position_Data[5]_or_out = AD7492_Data[5];
E1_Position_Data[5]_reg_input = E1_Position_Data[5]_or_out;
E1_Position_Data[5] = DFFE(E1_Position_Data[5]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[4] is Position_adc_ctrl:inst6|Position_Data[4]
E1_Position_Data[4]_or_out = AD7492_Data[4];
E1_Position_Data[4]_reg_input = E1_Position_Data[4]_or_out;
E1_Position_Data[4] = DFFE(E1_Position_Data[4]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[3] is Position_adc_ctrl:inst6|Position_Data[3]
E1_Position_Data[3]_or_out = AD7492_Data[3];
E1_Position_Data[3]_reg_input = E1_Position_Data[3]_or_out;
E1_Position_Data[3] = DFFE(E1_Position_Data[3]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[2] is Position_adc_ctrl:inst6|Position_Data[2]
E1_Position_Data[2]_or_out = AD7492_Data[2];
E1_Position_Data[2]_reg_input = E1_Position_Data[2]_or_out;
E1_Position_Data[2] = DFFE(E1_Position_Data[2]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[1] is Position_adc_ctrl:inst6|Position_Data[1]
E1_Position_Data[1]_or_out = AD7492_Data[1];
E1_Position_Data[1]_reg_input = E1_Position_Data[1]_or_out;
E1_Position_Data[1] = DFFE(E1_Position_Data[1]_reg_input, !E1_Adc_Rd, , , );


--E1_Position_Data[0] is Position_adc_ctrl:inst6|Position_Data[0]
E1_Position_Data[0]_or_out = AD7492_Data[0];
E1_Position_Data[0]_reg_input = E1_Position_Data[0]_or_out;
E1_Position_Data[0] = DFFE(E1_Position_Data[0]_reg_input, !E1_Adc_Rd, , , );


--J1_dffs[0] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[0]
J1_dffs[0]_p1_out = !J1_dffs[0] & !Reset & Rate_SW;
J1_dffs[0]_or_out = J1_dffs[0]_p1_out;
J1_dffs[0]_reg_input = J1_dffs[0]_or_out;
J1_dffs[0]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[0] = DFFE(J1_dffs[0]_reg_input, J1_dffs[0]_p3_out, , , );


--F1L01 is Position_Adjust:inst8|always0~131
F1L01_or_out = Position_Set[8];
F1L01 = E1_Position_Data[8] $ F1L01_or_out;


--F1L11 is Position_Adjust:inst8|always0~135
F1L11_or_out = Position_Set[9];
F1L11 = E1_Position_Data[9] $ F1L11_or_out;


--F1L21 is Position_Adjust:inst8|always0~139
F1L21_or_out = Position_Set[10];
F1L21 = E1_Position_Data[10] $ F1L21_or_out;


--F1L31 is Position_Adjust:inst8|always0~143
F1L31_or_out = Position_Set[11];
F1L31 = E1_Position_Data[11] $ F1L31_or_out;


--F1L1 is Position_Adjust:inst8|Position_Adjust_Out~10
F1L1_p1_out = !F1L01 & !F1L11 & !F1L21 & !F1L31 & F1L2 & F1L22 & F1L3 & F1L32 & F1L4 & F1L42 & F1L5 & F1L52 & F1L6 & F1L62 & F1L7 & F1L72 & F1L8 & F1L82 & F1L9 & F1L92;
F1L1_or_out = F1L1_p1_out # Reset # !Position_SW;
F1L1 = !(F1L1_or_out);


--J1_dffs[1] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[1]
J1_dffs[1]_p1_out = !Reset & Rate_SW & J1_dffs[1] & !J1_dffs[0];
J1_dffs[1]_p2_out = !Reset & Rate_SW & !J1_dffs[1] & J1_dffs[0];
J1_dffs[1]_or_out = J1_dffs[1]_p1_out # J1_dffs[1]_p2_out;
J1_dffs[1]_reg_input = J1_dffs[1]_or_out;
J1_dffs[1]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[1] = DFFE(J1_dffs[1]_reg_input, J1_dffs[1]_p3_out, , , );


--K1_cnt1[1] is main:inst3|Data_drive:b2v_inst|cnt1[1]
K1_cnt1[1]_or_out = K1_cnt1[0];
K1_cnt1[1]_reg_input = K1_cnt1[1] $ K1_cnt1[1]_or_out;
K1_cnt1[1]_p3_out = Current_SW & !Reset & !AD7895_Busy;
K1_cnt1[1] = DFFE(K1_cnt1[1]_reg_input, GLOBAL(Clk_SCL), , , K1_cnt1[1]_p3_out);


--J1_dffs[2] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[2]
J1_dffs[2]_p1_out = J1_dffs[0] & !Reset & Rate_SW & J1_dffs[1] & !J1_dffs[2];
J1_dffs[2]_p2_out = !J1_dffs[0] & !Reset & Rate_SW & J1_dffs[2];
J1_dffs[2]_p4_out = !Reset & Rate_SW & !J1_dffs[1] & J1_dffs[2];
J1_dffs[2]_or_out = J1_dffs[2]_p1_out # J1_dffs[2]_p2_out # J1_dffs[2]_p4_out;
J1_dffs[2]_reg_input = J1_dffs[2]_or_out;
J1_dffs[2]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[2] = DFFE(J1_dffs[2]_reg_input, J1_dffs[2]_p3_out, , , );


--K1_cnt1[2] is main:inst3|Data_drive:b2v_inst|cnt1[2]
K1_cnt1[2]_p1_out = K1_cnt1[1] & K1_cnt1[0];
K1_cnt1[2]_or_out = K1_cnt1[2];
K1_cnt1[2]_reg_input = K1_cnt1[2]_p1_out $ K1_cnt1[2]_or_out;
K1_cnt1[2]_p3_out = Current_SW & !Reset & !AD7895_Busy;
K1_cnt1[2] = DFFE(K1_cnt1[2]_reg_input, GLOBAL(Clk_SCL), , , K1_cnt1[2]_p3_out);


--J1_dffs[3] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[3]
J1_dffs[3]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[1];
J1_dffs[3]_p2_out = Reset & J1_dffs[3];
J1_dffs[3]_p4_out = !Rate_SW & J1_dffs[3];
J1_dffs[3]_or_out = J1_dffs[3]_p1_out # J1_dffs[3]_p2_out # J1_dffs[3]_p4_out;
J1_dffs[3]_reg_input = J1_dffs[3]_or_out;
J1_dffs[3]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[3] = TFFE(J1_dffs[3]_reg_input, J1_dffs[3]_p3_out, , , );


--J1_dffs[4] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[4]
J1_dffs[4]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[1];
J1_dffs[4]_p2_out = Reset & J1_dffs[4];
J1_dffs[4]_p4_out = !Rate_SW & J1_dffs[4];
J1_dffs[4]_or_out = J1_dffs[4]_p1_out # J1_dffs[4]_p2_out # J1_dffs[4]_p4_out;
J1_dffs[4]_reg_input = J1_dffs[4]_or_out;
J1_dffs[4]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[4] = TFFE(J1_dffs[4]_reg_input, J1_dffs[4]_p3_out, , , );


--K1_cnt1[3] is main:inst3|Data_drive:b2v_inst|cnt1[3]
K1_cnt1[3]_p1_out = K1_cnt1[1] & K1_cnt1[0] & K1_cnt1[2];
K1_cnt1[3]_or_out = K1_cnt1[3];
K1_cnt1[3]_reg_input = K1_cnt1[3]_p1_out $ K1_cnt1[3]_or_out;
K1_cnt1[3]_p3_out = Current_SW & !Reset & !AD7895_Busy;
K1_cnt1[3] = DFFE(K1_cnt1[3]_reg_input, GLOBAL(Clk_SCL), , , K1_cnt1[3]_p3_out);


--J1_dffs[5] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[5]
J1_dffs[5]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[1];
J1_dffs[5]_p2_out = Reset & J1_dffs[5];
J1_dffs[5]_p4_out = !Rate_SW & J1_dffs[5];
J1_dffs[5]_or_out = J1_dffs[5]_p1_out # J1_dffs[5]_p2_out # J1_dffs[5]_p4_out;
J1_dffs[5]_reg_input = J1_dffs[5]_or_out;
J1_dffs[5]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[5] = TFFE(J1_dffs[5]_reg_input, J1_dffs[5]_p3_out, , , );


--J1_dffs[6] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[6]
J1_dffs[6]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[5] & J1_dffs[1];
J1_dffs[6]_p2_out = Reset & J1_dffs[6];
J1_dffs[6]_p4_out = !Rate_SW & J1_dffs[6];
J1_dffs[6]_or_out = J1_dffs[6]_p1_out # J1_dffs[6]_p2_out # J1_dffs[6]_p4_out;
J1_dffs[6]_reg_input = J1_dffs[6]_or_out;
J1_dffs[6]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[6] = TFFE(J1_dffs[6]_reg_input, J1_dffs[6]_p3_out, , , );


--K1_cnt1[4] is main:inst3|Data_drive:b2v_inst|cnt1[4]
K1_cnt1[4]_p1_out = K1_cnt1[3] & K1_cnt1[1] & K1_cnt1[0] & K1_cnt1[2];
K1_cnt1[4]_or_out = K1_cnt1[4];
K1_cnt1[4]_reg_input = K1_cnt1[4]_p1_out $ K1_cnt1[4]_or_out;
K1_cnt1[4]_p3_out = Current_SW & !Reset & !AD7895_Busy;
K1_cnt1[4] = DFFE(K1_cnt1[4]_reg_input, GLOBAL(Clk_SCL), , , K1_cnt1[4]_p3_out);


--J1_dffs[7] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[7]
J1_dffs[7]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[5] & J1_dffs[6] & J1_dffs[1];
J1_dffs[7]_p2_out = Reset & J1_dffs[7];
J1_dffs[7]_p4_out = !Rate_SW & J1_dffs[7];
J1_dffs[7]_or_out = J1_dffs[7]_p1_out # J1_dffs[7]_p2_out # J1_dffs[7]_p4_out;
J1_dffs[7]_reg_input = J1_dffs[7]_or_out;
J1_dffs[7]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[7] = TFFE(J1_dffs[7]_reg_input, J1_dffs[7]_p3_out, , , );


--K1_cnt1[5] is main:inst3|Data_drive:b2v_inst|cnt1[5]
K1_cnt1[5]_p1_out = K1_cnt1[4] & K1_cnt1[3] & K1_cnt1[1] & K1_cnt1[0] & K1_cnt1[2] & K1_cnt1[5];
K1_cnt1[5]_or_out = K1_cnt1[5]_p1_out;
K1_cnt1[5]_reg_input = K1_cnt1[5]_or_out;
K1_cnt1[5]_p3_out = Current_SW & !Reset & !AD7895_Busy;
K1_cnt1[5] = TFFE(K1_cnt1[5]_reg_input, GLOBAL(Clk_SCL), , , K1_cnt1[5]_p3_out);


--J1_dffs[8] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[8]
J1_dffs[8]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[5] & J1_dffs[6] & J1_dffs[7] & J1_dffs[1];
J1_dffs[8]_p2_out = Reset & J1_dffs[8];
J1_dffs[8]_p4_out = !Rate_SW & J1_dffs[8];
J1_dffs[8]_or_out = J1_dffs[8]_p1_out # J1_dffs[8]_p2_out # J1_dffs[8]_p4_out;
J1_dffs[8]_reg_input = J1_dffs[8]_or_out;
J1_dffs[8]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[8] = TFFE(J1_dffs[8]_reg_input, J1_dffs[8]_p3_out, , , );


--K1_Adc_SCL_Select is main:inst3|Data_drive:b2v_inst|Adc_SCL_Select
K1_Adc_SCL_Select_p0_out = !K1_cnt1[5] & !K1_cnt1[4] & !K1_cnt1[2];
K1_Adc_SCL_Select_p1_out = !K1_cnt1[1] & !K1_cnt1[5] & !K1_cnt1[4];
K1_Adc_SCL_Select_p2_out = !K1_cnt1[5] & !K1_cnt1[4] & !K1_cnt1[0];
K1_Adc_SCL_Select_p4_out = !K1_cnt1[5] & !K1_cnt1[4] & !K1_cnt1[3];
K1_Adc_SCL_Select_or_out = K1_Adc_SCL_Select_p0_out # K1_Adc_SCL_Select_p1_out # K1_Adc_SCL_Select_p2_out # K1_Adc_SCL_Select_p4_out;
K1_Adc_SCL_Select_reg_input = K1_Adc_SCL_Select_or_out;
K1_Adc_SCL_Select_p3_out = Current_SW & !Reset & !AD7895_Busy;
K1_Adc_SCL_Select = DFFE(K1_Adc_SCL_Select_reg_input, GLOBAL(Clk_SCL), , , K1_Adc_SCL_Select_p3_out);


--K1L3 is main:inst3|Data_drive:b2v_inst|Adc_SCL~41
K1L3_p1_out = K1_Adc_SCL_Select & GLOBAL(Clk_SCL);
K1L3_or_out = K1L3_p1_out;
K1L3 = K1L3_or_out;


--K1_Adc_Conv is main:inst3|Data_drive:b2v_inst|Adc_Conv
K1_Adc_Conv_p0_out = Current_SW & !Reset & !AD7895_Busy & !K1_cnt1[5] & !K1_cnt1[2];
K1_Adc_Conv_p1_out = !K1_Adc_Conv & Current_SW & !Reset & AD7895_Busy;
K1_Adc_Conv_p2_out = Current_SW & !Reset & !AD7895_Busy & !K1_cnt1[1] & !K1_cnt1[5] & !K1_cnt1[0];
K1_Adc_Conv_p3_out = Current_SW & !Reset & !AD7895_Busy & !K1_cnt1[5] & !K1_cnt1[4];
K1_Adc_Conv_p4_out = Current_SW & !Reset & !AD7895_Busy & !K1_cnt1[5] & !K1_cnt1[3];
K1_Adc_Conv_or_out = K1_Adc_Conv_p0_out # K1_Adc_Conv_p1_out # K1_Adc_Conv_p2_out # K1_Adc_Conv_p3_out # K1_Adc_Conv_p4_out;
K1_Adc_Conv_reg_input = !(K1_Adc_Conv_or_out);
K1_Adc_Conv = DFFE(K1_Adc_Conv_reg_input, GLOBAL(Clk_SCL), , , );


--J2_dffs[0] is main:inst3|Data_Read:b2v_inst1|lpm_counter:cnt_rtl_1|dffs[0]
J2_dffs[0]_reg_input = VCC;
J2_dffs[0] = TFFE(J2_dffs[0]_reg_input, K1L4, , , );


--K1L4 is main:inst3|Data_drive:b2v_inst|Adc_SCL~42
K1L4 = EXP(K1_Adc_SCL_Select & GLOBAL(Clk_SCL));


--J1_dffs[9] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[9]
J1_dffs[9]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[5] & J1_dffs[6] & J1_dffs[7] & J1_dffs[8] & J1_dffs[1];
J1_dffs[9]_p2_out = Reset & J1_dffs[9];
J1_dffs[9]_p4_out = !Rate_SW & J1_dffs[9];
J1_dffs[9]_or_out = J1_dffs[9]_p1_out # J1_dffs[9]_p2_out # J1_dffs[9]_p4_out;
J1_dffs[9]_reg_input = J1_dffs[9]_or_out;
J1_dffs[9]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[9] = TFFE(J1_dffs[9]_reg_input, J1_dffs[9]_p3_out, , , );


--J2_dffs[1] is main:inst3|Data_Read:b2v_inst1|lpm_counter:cnt_rtl_1|dffs[1]
J2_dffs[1]_or_out = J2_dffs[0];
J2_dffs[1]_reg_input = J2_dffs[1]_or_out;
J2_dffs[1] = TFFE(J2_dffs[1]_reg_input, K1L4, , , );


--J1_dffs[10] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[10]
J1_dffs[10]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[5] & J1_dffs[6] & J1_dffs[7] & J1_dffs[8] & J1_dffs[9] & J1_dffs[1];
J1_dffs[10]_p2_out = Reset & J1_dffs[10];
J1_dffs[10]_p4_out = !Rate_SW & J1_dffs[10];
J1_dffs[10]_or_out = J1_dffs[10]_p1_out # J1_dffs[10]_p2_out # J1_dffs[10]_p4_out;
J1_dffs[10]_reg_input = J1_dffs[10]_or_out;
J1_dffs[10]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[10] = TFFE(J1_dffs[10]_reg_input, J1_dffs[10]_p3_out, , , );


--J2_dffs[2] is main:inst3|Data_Read:b2v_inst1|lpm_counter:cnt_rtl_1|dffs[2]
J2_dffs[2]_p1_out = J2_dffs[1] & J2_dffs[0];
J2_dffs[2]_or_out = J2_dffs[2]_p1_out;
J2_dffs[2]_reg_input = J2_dffs[2]_or_out;
J2_dffs[2] = TFFE(J2_dffs[2]_reg_input, K1L4, , , );


--J2_dffs[3] is main:inst3|Data_Read:b2v_inst1|lpm_counter:cnt_rtl_1|dffs[3]
J2_dffs[3]_p1_out = J2_dffs[2] & J2_dffs[1] & J2_dffs[0];
J2_dffs[3]_or_out = J2_dffs[3]_p1_out;
J2_dffs[3]_reg_input = J2_dffs[3]_or_out;
J2_dffs[3] = TFFE(J2_dffs[3]_reg_input, K1L4, , , );


--J1_dffs[11] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[11]
J1_dffs[11]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[5] & J1_dffs[6] & J1_dffs[7] & J1_dffs[8] & J1_dffs[9] & J1_dffs[10] & J1_dffs[1];
J1_dffs[11]_p2_out = Reset & J1_dffs[11];
J1_dffs[11]_p4_out = !Rate_SW & J1_dffs[11];
J1_dffs[11]_or_out = J1_dffs[11]_p1_out # J1_dffs[11]_p2_out # J1_dffs[11]_p4_out;
J1_dffs[11]_reg_input = J1_dffs[11]_or_out;
J1_dffs[11]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[11] = TFFE(J1_dffs[11]_reg_input, J1_dffs[11]_p3_out, , , );


--L1_Data[14] is main:inst3|Data_Read:b2v_inst1|Data[14]
L1_Data[14]_p1_out = AD7895_Data & J2_dffs[3] & J2_dffs[1] & !J2_dffs[0] & J2_dffs[2] & !L1_Data[14];
L1_Data[14]_p2_out = !AD7895_Data & J2_dffs[3] & J2_dffs[1] & !J2_dffs[0] & J2_dffs[2] & L1_Data[14];
L1_Data[14]_or_out = L1_Data[14]_p1_out # L1_Data[14]_p2_out;
L1_Data[14]_reg_input = L1_Data[14]_or_out;
L1_Data[14] = TFFE(L1_Data[14]_reg_input, K1L4, , , );


--L1_Data[13] is main:inst3|Data_Read:b2v_inst1|Data[13]
L1_Data[13]_p1_out = AD7895_Data & J2_dffs[3] & !J2_dffs[1] & J2_dffs[0] & J2_dffs[2] & !L1_Data[13];
L1_Data[13]_p2_out = !AD7895_Data & J2_dffs[3] & !J2_dffs[1] & J2_dffs[0] & J2_dffs[2] & L1_Data[13];
L1_Data[13]_or_out = L1_Data[13]_p1_out # L1_Data[13]_p2_out;
L1_Data[13]_reg_input = L1_Data[13]_or_out;
L1_Data[13] = TFFE(L1_Data[13]_reg_input, K1L4, , , );


--L1_Data[12] is main:inst3|Data_Read:b2v_inst1|Data[12]
L1_Data[12]_p1_out = AD7895_Data & J2_dffs[3] & !J2_dffs[1] & !J2_dffs[0] & J2_dffs[2] & !L1_Data[12];
L1_Data[12]_p2_out = !AD7895_Data & J2_dffs[3] & !J2_dffs[1] & !J2_dffs[0] & J2_dffs[2] & L1_Data[12];
L1_Data[12]_or_out = L1_Data[12]_p1_out # L1_Data[12]_p2_out;
L1_Data[12]_reg_input = L1_Data[12]_or_out;
L1_Data[12] = TFFE(L1_Data[12]_reg_input, K1L4, , , );


--L1_Data[11] is main:inst3|Data_Read:b2v_inst1|Data[11]
L1_Data[11]_p1_out = AD7895_Data & J2_dffs[3] & !J2_dffs[2] & J2_dffs[1] & J2_dffs[0] & !L1_Data[11];
L1_Data[11]_p2_out = !AD7895_Data & J2_dffs[3] & !J2_dffs[2] & J2_dffs[1] & J2_dffs[0] & L1_Data[11];
L1_Data[11]_or_out = L1_Data[11]_p1_out # L1_Data[11]_p2_out;
L1_Data[11]_reg_input = L1_Data[11]_or_out;
L1_Data[11] = TFFE(L1_Data[11]_reg_input, K1L4, , , );


--L1_Data[9] is main:inst3|Data_Read:b2v_inst1|Data[9]
L1_Data[9]_p1_out = AD7895_Data & J2_dffs[3] & J2_dffs[0] & !J2_dffs[1] & !J2_dffs[2] & !L1_Data[9];
L1_Data[9]_p2_out = !AD7895_Data & J2_dffs[3] & J2_dffs[0] & !J2_dffs[1] & !J2_dffs[2] & L1_Data[9];
L1_Data[9]_or_out = L1_Data[9]_p1_out # L1_Data[9]_p2_out;
L1_Data[9]_reg_input = L1_Data[9]_or_out;
L1_Data[9] = TFFE(L1_Data[9]_reg_input, K1L4, , , );


--L1_Data[7] is main:inst3|Data_Read:b2v_inst1|Data[7]
L1_Data[7]_p1_out = AD7895_Data & !J2_dffs[3] & J2_dffs[2] & J2_dffs[1] & J2_dffs[0] & !L1_Data[7];
L1_Data[7]_p2_out = !AD7895_Data & !J2_dffs[3] & J2_dffs[2] & J2_dffs[1] & J2_dffs[0] & L1_Data[7];
L1_Data[7]_or_out = L1_Data[7]_p1_out # L1_Data[7]_p2_out;
L1_Data[7]_reg_input = L1_Data[7]_or_out;
L1_Data[7] = TFFE(L1_Data[7]_reg_input, K1L4, , , );


--L1_Data[6] is main:inst3|Data_Read:b2v_inst1|Data[6]
L1_Data[6]_p1_out = AD7895_Data & !J2_dffs[3] & J2_dffs[1] & !J2_dffs[0] & J2_dffs[2] & !L1_Data[6];
L1_Data[6]_p2_out = !AD7895_Data & !J2_dffs[3] & J2_dffs[1] & !J2_dffs[0] & J2_dffs[2] & L1_Data[6];
L1_Data[6]_or_out = L1_Data[6]_p1_out # L1_Data[6]_p2_out;
L1_Data[6]_reg_input = L1_Data[6]_or_out;
L1_Data[6] = TFFE(L1_Data[6]_reg_input, K1L4, , , );


--L1_Data[5] is main:inst3|Data_Read:b2v_inst1|Data[5]
L1_Data[5]_p1_out = AD7895_Data & !J2_dffs[3] & !J2_dffs[1] & J2_dffs[0] & J2_dffs[2] & !L1_Data[5];
L1_Data[5]_p2_out = !AD7895_Data & !J2_dffs[3] & !J2_dffs[1] & J2_dffs[0] & J2_dffs[2] & L1_Data[5];
L1_Data[5]_or_out = L1_Data[5]_p1_out # L1_Data[5]_p2_out;
L1_Data[5]_reg_input = L1_Data[5]_or_out;
L1_Data[5] = TFFE(L1_Data[5]_reg_input, K1L4, , , );


--L1_Data[4] is main:inst3|Data_Read:b2v_inst1|Data[4]
L1_Data[4]_p1_out = AD7895_Data & !J2_dffs[3] & !J2_dffs[1] & !J2_dffs[0] & J2_dffs[2] & !L1_Data[4];
L1_Data[4]_p2_out = !AD7895_Data & !J2_dffs[3] & !J2_dffs[1] & !J2_dffs[0] & J2_dffs[2] & L1_Data[4];
L1_Data[4]_or_out = L1_Data[4]_p1_out # L1_Data[4]_p2_out;
L1_Data[4]_reg_input = L1_Data[4]_or_out;
L1_Data[4] = TFFE(L1_Data[4]_reg_input, K1L4, , , );


--L1_Data[15] is main:inst3|Data_Read:b2v_inst1|Data[15]
L1_Data[15]_p1_out = AD7895_Data & J2_dffs[3] & J2_dffs[2] & J2_dffs[1] & J2_dffs[0] & !L1_Data[15];
L1_Data[15]_p2_out = !AD7895_Data & J2_dffs[3] & J2_dffs[2] & J2_dffs[1] & J2_dffs[0] & L1_Data[15];
L1_Data[15]_or_out = L1_Data[15]_p1_out # L1_Data[15]_p2_out;
L1_Data[15]_reg_input = L1_Data[15]_or_out;
L1_Data[15] = TFFE(L1_Data[15]_reg_input, K1L4, , , );


--L1_Data[10] is main:inst3|Data_Read:b2v_inst1|Data[10]
L1_Data[10]_p1_out = AD7895_Data & J2_dffs[1] & !J2_dffs[2] & J2_dffs[3] & !J2_dffs[0] & !L1_Data[10];
L1_Data[10]_p2_out = !AD7895_Data & J2_dffs[1] & !J2_dffs[2] & J2_dffs[3] & !J2_dffs[0] & L1_Data[10];
L1_Data[10]_or_out = L1_Data[10]_p1_out # L1_Data[10]_p2_out;
L1_Data[10]_reg_input = L1_Data[10]_or_out;
L1_Data[10] = TFFE(L1_Data[10]_reg_input, K1L4, , , );


--L1_Data[8] is main:inst3|Data_Read:b2v_inst1|Data[8]
L1_Data[8]_p1_out = AD7895_Data & J2_dffs[3] & !J2_dffs[0] & !J2_dffs[1] & !J2_dffs[2] & !L1_Data[8];
L1_Data[8]_p2_out = !AD7895_Data & J2_dffs[3] & !J2_dffs[0] & !J2_dffs[1] & !J2_dffs[2] & L1_Data[8];
L1_Data[8]_or_out = L1_Data[8]_p1_out # L1_Data[8]_p2_out;
L1_Data[8]_reg_input = L1_Data[8]_or_out;
L1_Data[8] = TFFE(L1_Data[8]_reg_input, K1L4, , , );


--J1_dffs[12] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[12]
J1_dffs[12]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[5] & J1_dffs[6] & J1_dffs[7] & J1_dffs[8] & J1_dffs[9] & J1_dffs[10] & J1_dffs[11] & J1_dffs[1];
J1_dffs[12]_p2_out = Reset & J1_dffs[12];
J1_dffs[12]_p4_out = !Rate_SW & J1_dffs[12];
J1_dffs[12]_or_out = J1_dffs[12]_p1_out # J1_dffs[12]_p2_out # J1_dffs[12]_p4_out;
J1_dffs[12]_reg_input = J1_dffs[12]_or_out;
J1_dffs[12]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[12] = TFFE(J1_dffs[12]_reg_input, J1_dffs[12]_p3_out, , , );


--D1L01 is Current_Adjust:inst5|always0~131
D1L01_or_out = Current_Set[8];
D1L01 = L1_Data[12] $ D1L01_or_out;


--D1L11 is Current_Adjust:inst5|always0~135
D1L11_or_out = Current_Set[9];
D1L11 = L1_Data[13] $ D1L11_or_out;


--D1L21 is Current_Adjust:inst5|always0~139
D1L21_or_out = Current_Set[10];
D1L21 = L1_Data[14] $ D1L21_or_out;


--D1L31 is Current_Adjust:inst5|always0~143
D1L31_or_out = Current_Set[11];
D1L31 = L1_Data[15] $ D1L31_or_out;


--D1L1 is Current_Adjust:inst5|Current_Adjust_Out~14
D1L1_p1_out = !D1L01 & !D1L11 & !D1L21 & !D1L31 & D1L2 & D1L22 & D1L3 & D1L32 & D1L4 & D1L42 & D1L5 & D1L52 & D1L6 & D1L62 & D1L7 & D1L72 & D1L8 & D1L82 & D1L9 & D1L92;
D1L1_or_out = D1L1_p1_out # !Current_SW # Reset;
D1L1 = !(D1L1_or_out);


--J1_dffs[13] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[13]
J1_dffs[13]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[5] & J1_dffs[6] & J1_dffs[7] & J1_dffs[8] & J1_dffs[9] & J1_dffs[10] & J1_dffs[11] & J1_dffs[12] & J1_dffs[1];
J1_dffs[13]_p2_out = Reset & J1_dffs[13];
J1_dffs[13]_p4_out = !Rate_SW & J1_dffs[13];
J1_dffs[13]_or_out = J1_dffs[13]_p1_out # J1_dffs[13]_p2_out # J1_dffs[13]_p4_out;
J1_dffs[13]_reg_input = J1_dffs[13]_or_out;
J1_dffs[13]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[13] = TFFE(J1_dffs[13]_reg_input, J1_dffs[13]_p3_out, , , );


--J1_dffs[14] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[14]
J1_dffs[14]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[5] & J1_dffs[6] & J1_dffs[7] & J1_dffs[8] & J1_dffs[9] & J1_dffs[10] & J1_dffs[11] & J1_dffs[12] & J1_dffs[13] & J1_dffs[1];
J1_dffs[14]_p2_out = Reset & J1_dffs[14];
J1_dffs[14]_p4_out = !Rate_SW & J1_dffs[14];
J1_dffs[14]_or_out = J1_dffs[14]_p1_out # J1_dffs[14]_p2_out # J1_dffs[14]_p4_out;
J1_dffs[14]_reg_input = J1_dffs[14]_or_out;
J1_dffs[14]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[14] = TFFE(J1_dffs[14]_reg_input, J1_dffs[14]_p3_out, , , );


--J1_dffs[15] is Rate_Measure:inst2|lpm_counter:Rate_Pulse_Data_rtl_0|dffs[15]
J1_dffs[15]_p1_out = !Reset & Rate_SW & J1_dffs[0] & J1_dffs[2] & J1_dffs[3] & J1_dffs[4] & J1_dffs[5] & J1_dffs[6] & J1_dffs[7] & J1_dffs[8] & J1_dffs[9] & J1_dffs[10] & J1_dffs[11] & J1_dffs[12] & J1_dffs[13] & J1_dffs[14] & J1_dffs[1];
J1_dffs[15]_p2_out = Reset & J1_dffs[15];
J1_dffs[15]_p4_out = !Rate_SW & J1_dffs[15];
J1_dffs[15]_or_out = J1_dffs[15]_p1_out # J1_dffs[15]_p2_out # J1_dffs[15]_p4_out;
J1_dffs[15]_reg_input = J1_dffs[15]_or_out;
J1_dffs[15]_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
J1_dffs[15] = TFFE(J1_dffs[15]_reg_input, J1_dffs[15]_p3_out, , , );


--B1_Rate_Pulse_Alarm is Rate_Measure:inst2|Rate_Pulse_Alarm
B1_Rate_Pulse_Alarm_p1_out = !Reset & Rate_SW & J1_dffs[15] & J1_dffs[14] & J1_dffs[13] & J1_dffs[12] & J1_dffs[11] & J1_dffs[10] & J1_dffs[9] & J1_dffs[8] & J1_dffs[7] & J1_dffs[6] & J1_dffs[5] & J1_dffs[4] & J1_dffs[3] & J1_dffs[2] & J1_dffs[0] & J1_dffs[1];
B1_Rate_Pulse_Alarm_or_out = B1_Rate_Pulse_Alarm_p1_out;
B1_Rate_Pulse_Alarm_reg_input = B1_Rate_Pulse_Alarm_or_out;
B1_Rate_Pulse_Alarm_p3_out = Rate_Pulse & Rate_Measure_Ctrl;
B1_Rate_Pulse_Alarm = DFFE(B1_Rate_Pulse_Alarm_reg_input, B1_Rate_Pulse_Alarm_p3_out, , , );


--H1L01 is Rate_Adjust:inst11|always0~163
H1L01_or_out = Rate_Set[8];
H1L01 = J1_dffs[8] $ H1L01_or_out;


--H1L11 is Rate_Adjust:inst11|always0~167
H1L11_or_out = Rate_Set[9];
H1L11 = J1_dffs[9] $ H1L11_or_out;


--H1L21 is Rate_Adjust:inst11|always0~171
H1L21_or_out = Rate_Set[10];
H1L21 = J1_dffs[10] $ H1L21_or_out;


--H1L31 is Rate_Adjust:inst11|always0~175
H1L31_or_out = Rate_Set[11];
H1L31 = J1_dffs[11] $ H1L31_or_out;


--H1L41 is Rate_Adjust:inst11|always0~179
H1L41_or_out = Rate_Set[12];
H1L41 = J1_dffs[12] $ H1L41_or_out;


--H1L51 is Rate_Adjust:inst11|always0~183
H1L51_or_out = Rate_Set[13];
H1L51 = J1_dffs[13] $ H1L51_or_out;


--H1L61 is Rate_Adjust:inst11|always0~187
H1L61_or_out = Rate_Set[14];
H1L61 = J1_dffs[14] $ H1L61_or_out;


--H1L71 is Rate_Adjust:inst11|always0~191
H1L71_or_out = Rate_Set[15];
H1L71 = J1_dffs[15] $ H1L71_or_out;


--H1L1 is Rate_Adjust:inst11|Rate_Adjust_Out~14
H1L1_p1_out = !H1L01 & !H1L11 & !H1L21 & !H1L31 & !H1L41 & !H1L51 & !H1L61 & !H1L71 & H1L2 & H1L62 & H1L3 & H1L72 & H1L4 & H1L82 & H1L5 & H1L92 & H1L6 & H1L03 & H1L7 & H1L13 & H1L8 & H1L23 & H1L9 & H1L33;
H1L1_or_out = H1L1_p1_out # Reset # !Rate_SW;
H1L1 = !(H1L1_or_out);


--F1L2 is Position_Adjust:inst8|always0~99sexp
F1L2 = EXP(E1_Position_Data[0] & !Position_Set[0]);


--F1L22 is Position_Adjust:inst8|always0~155
F1L22 = EXP(!E1_Position_Data[0] & Position_Set[0]);


--F1L3 is Position_Adjust:inst8|always0~103sexp
F1L3 = EXP(E1_Position_Data[1] & !Position_Set[1]);


--F1L32 is Position_Adjust:inst8|always0~156
F1L32 = EXP(!E1_Position_Data[1] & Position_Set[1]);


--F1L4 is Position_Adjust:inst8|always0~107sexp
F1L4 = EXP(E1_Position_Data[2] & !Position_Set[2]);


--F1L42 is Position_Adjust:inst8|always0~157
F1L42 = EXP(!E1_Position_Data[2] & Position_Set[2]);


--F1L5 is Position_Adjust:inst8|always0~111sexp
F1L5 = EXP(E1_Position_Data[3] & !Position_Set[3]);


--F1L52 is Position_Adjust:inst8|always0~158
F1L52 = EXP(!E1_Position_Data[3] & Position_Set[3]);


--F1L6 is Position_Adjust:inst8|always0~115sexp
F1L6 = EXP(E1_Position_Data[4] & !Position_Set[4]);


--F1L62 is Position_Adjust:inst8|always0~159
F1L62 = EXP(!E1_Position_Data[4] & Position_Set[4]);


--F1L7 is Position_Adjust:inst8|always0~119sexp
F1L7 = EXP(E1_Position_Data[5] & !Position_Set[5]);


--F1L72 is Position_Adjust:inst8|always0~160
F1L72 = EXP(!E1_Position_Data[5] & Position_Set[5]);


--F1L8 is Position_Adjust:inst8|always0~123sexp
F1L8 = EXP(E1_Position_Data[6] & !Position_Set[6]);


--F1L82 is Position_Adjust:inst8|always0~161
F1L82 = EXP(!E1_Position_Data[6] & Position_Set[6]);


--F1L9 is Position_Adjust:inst8|always0~127sexp
F1L9 = EXP(E1_Position_Data[7] & !Position_Set[7]);


--F1L92 is Position_Adjust:inst8|always0~162
F1L92 = EXP(!E1_Position_Data[7] & Position_Set[7]);


--D1L2 is Current_Adjust:inst5|always0~99sexp
D1L2 = EXP(L1_Data[4] & !Current_Set[0]);


--D1L22 is Current_Adjust:inst5|always0~155
D1L22 = EXP(!L1_Data[4] & Current_Set[0]);


--D1L3 is Current_Adjust:inst5|always0~103sexp
D1L3 = EXP(L1_Data[5] & !Current_Set[1]);


--D1L32 is Current_Adjust:inst5|always0~156
D1L32 = EXP(!L1_Data[5] & Current_Set[1]);


--D1L4 is Current_Adjust:inst5|always0~107sexp
D1L4 = EXP(L1_Data[6] & !Current_Set[2]);


--D1L42 is Current_Adjust:inst5|always0~157
D1L42 = EXP(!L1_Data[6] & Current_Set[2]);


--D1L5 is Current_Adjust:inst5|always0~111sexp
D1L5 = EXP(L1_Data[7] & !Current_Set[3]);


--D1L52 is Current_Adjust:inst5|always0~158
D1L52 = EXP(!L1_Data[7] & Current_Set[3]);


--D1L6 is Current_Adjust:inst5|always0~115sexp
D1L6 = EXP(L1_Data[8] & !Current_Set[4]);


--D1L62 is Current_Adjust:inst5|always0~159
D1L62 = EXP(!L1_Data[8] & Current_Set[4]);


--D1L7 is Current_Adjust:inst5|always0~119sexp
D1L7 = EXP(L1_Data[9] & !Current_Set[5]);


--D1L72 is Current_Adjust:inst5|always0~160
D1L72 = EXP(!L1_Data[9] & Current_Set[5]);


--D1L8 is Current_Adjust:inst5|always0~123sexp
D1L8 = EXP(L1_Data[10] & !Current_Set[6]);


--D1L82 is Current_Adjust:inst5|always0~161
D1L82 = EXP(!L1_Data[10] & Current_Set[6]);


--D1L9 is Current_Adjust:inst5|always0~127sexp
D1L9 = EXP(L1_Data[11] & !Current_Set[7]);


--D1L92 is Current_Adjust:inst5|always0~162
D1L92 = EXP(!L1_Data[11] & Current_Set[7]);


--H1L2 is Rate_Adjust:inst11|always0~131sexp
H1L2 = EXP(J1_dffs[0] & !Rate_Set[0]);


--H1L62 is Rate_Adjust:inst11|always0~203
H1L62 = EXP(!J1_dffs[0] & Rate_Set[0]);


--H1L3 is Rate_Adjust:inst11|always0~135sexp
H1L3 = EXP(J1_dffs[1] & !Rate_Set[1]);


--H1L72 is Rate_Adjust:inst11|always0~204
H1L72 = EXP(!J1_dffs[1] & Rate_Set[1]);


--H1L4 is Rate_Adjust:inst11|always0~139sexp
H1L4 = EXP(J1_dffs[2] & !Rate_Set[2]);


--H1L82 is Rate_Adjust:inst11|always0~205
H1L82 = EXP(!J1_dffs[2] & Rate_Set[2]);


--H1L5 is Rate_Adjust:inst11|always0~143sexp
H1L5 = EXP(J1_dffs[3] & !Rate_Set[3]);


--H1L92 is Rate_Adjust:inst11|always0~206
H1L92 = EXP(!J1_dffs[3] & Rate_Set[3]);


--H1L6 is Rate_Adjust:inst11|always0~147sexp
H1L6 = EXP(J1_dffs[4] & !Rate_Set[4]);


--H1L03 is Rate_Adjust:inst11|always0~207
H1L03 = EXP(!J1_dffs[4] & Rate_Set[4]);


--H1L7 is Rate_Adjust:inst11|always0~151sexp
H1L7 = EXP(J1_dffs[5] & !Rate_Set[5]);


--H1L13 is Rate_Adjust:inst11|always0~208
H1L13 = EXP(!J1_dffs[5] & Rate_Set[5]);


--H1L8 is Rate_Adjust:inst11|always0~155sexp
H1L8 = EXP(J1_dffs[6] & !Rate_Set[6]);


--H1L23 is Rate_Adjust:inst11|always0~209
H1L23 = EXP(!J1_dffs[6] & Rate_Set[6]);


--H1L9 is Rate_Adjust:inst11|always0~159sexp
H1L9 = EXP(J1_dffs[7] & !Rate_Set[7]);


--H1L33 is Rate_Adjust:inst11|always0~210
H1L33 = EXP(!J1_dffs[7] & Rate_Set[7]);


--Reset is Reset
--operation mode is input

Reset = INPUT();


--Position_SW is Position_SW
--operation mode is input

Position_SW = INPUT();


--Rate_SW is Rate_SW
--operation mode is input

Rate_SW = INPUT();


--Current_SW is Current_SW
--operation mode is input

Current_SW = INPUT();


--AD7895_Busy is AD7895_Busy
--operation mode is input

AD7895_Busy = INPUT();


--AD7895_Data is AD7895_Data
--operation mode is input

AD7895_Data = INPUT();


--Clk_SCL is Clk_SCL
--operation mode is input

Clk_SCL = INPUT();


--Clock is Clock
--operation mode is input

Clock = INPUT();


--AD7492_Busy is AD7492_Busy
--operation mode is input

AD7492_Busy = INPUT();


--AD7492_Data[11] is AD7492_Data[11]
--operation mode is input

AD7492_Data[11] = INPUT();


--AD7492_Data[10] is AD7492_Data[10]
--operation mode is input

AD7492_Data[10] = INPUT();


--AD7492_Data[9] is AD7492_Data[9]
--operation mode is input

AD7492_Data[9] = INPUT();


--AD7492_Data[8] is AD7492_Data[8]
--operation mode is input

AD7492_Data[8] = INPUT();


--AD7492_Data[7] is AD7492_Data[7]
--operation mode is input

AD7492_Data[7] = INPUT();


--AD7492_Data[6] is AD7492_Data[6]
--operation mode is input

AD7492_Data[6] = INPUT();


--AD7492_Data[5] is AD7492_Data[5]
--operation mode is input

AD7492_Data[5] = INPUT();


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

AD7492_Data[4] = INPUT();


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

AD7492_Data[3] = INPUT();


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

AD7492_Data[2] = INPUT();


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

AD7492_Data[1] = INPUT();


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

AD7492_Data[0] = INPUT();


--Rate_Pulse is Rate_Pulse
--operation mode is input

Rate_Pulse = INPUT();


--Rate_Measure_Ctrl is Rate_Measure_Ctrl
--operation mode is input

Rate_Measure_Ctrl = INPUT();


--Current_Set[11] is Current_Set[11]
--operation mode is input

Current_Set[11] = INPUT();


--Current_Set[10] is Current_Set[10]
--operation mode is input

Current_Set[10] = INPUT();


--Current_Set[9] is Current_Set[9]
--operation mode is input

Current_Set[9] = INPUT();


--Current_Set[8] is Current_Set[8]
--operation mode is input

Current_Set[8] = INPUT();


--Current_Set[7] is Current_Set[7]
--operation mode is input

Current_Set[7] = INPUT();


--Current_Set[6] is Current_Set[6]
--operation mode is input

Current_Set[6] = INPUT();


--Current_Set[5] is Current_Set[5]
--operation mode is input

Current_Set[5] = INPUT();


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

Current_Set[4] = INPUT();


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

Current_Set[3] = INPUT();


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

Current_Set[2] = INPUT();


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

Current_Set[1] = INPUT();


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

Current_Set[0] = INPUT();


--Rate_Set[15] is Rate_Set[15]
--operation mode is input

Rate_Set[15] = INPUT();


--Rate_Set[14] is Rate_Set[14]
--operation mode is input

Rate_Set[14] = INPUT();


--Rate_Set[13] is Rate_Set[13]
--operation mode is input

Rate_Set[13] = INPUT();


--Rate_Set[12] is Rate_Set[12]
--operation mode is input

Rate_Set[12] = INPUT();


--Rate_Set[11] is Rate_Set[11]
--operation mode is input

Rate_Set[11] = INPUT();


--Rate_Set[10] is Rate_Set[10]
--operation mode is input

Rate_Set[10] = INPUT();


--Rate_Set[9] is Rate_Set[9]
--operation mode is input

Rate_Set[9] = INPUT();


--Rate_Set[8] is Rate_Set[8]
--operation mode is input

Rate_Set[8] = INPUT();


--Rate_Set[7] is Rate_Set[7]
--operation mode is input

Rate_Set[7] = INPUT();


--Rate_Set[6] is Rate_Set[6]
--operation mode is input

Rate_Set[6] = INPUT();


--Rate_Set[5] is Rate_Set[5]
--operation mode is input

Rate_Set[5] = INPUT();


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

Rate_Set[4] = INPUT();


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

Rate_Set[3] = INPUT();


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

Rate_Set[2] = INPUT();


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

Rate_Set[1] = INPUT();


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

Rate_Set[0] = INPUT();


--Position_Set[11] is Position_Set[11]
--operation mode is input

Position_Set[11] = INPUT();


--Position_Set[10] is Position_Set[10]
--operation mode is input

Position_Set[10] = INPUT();


--Position_Set[9] is Position_Set[9]
--operation mode is input

Position_Set[9] = INPUT();


--Position_Set[8] is Position_Set[8]
--operation mode is input

Position_Set[8] = INPUT();


--Position_Set[7] is Position_Set[7]
--operation mode is input

Position_Set[7] = INPUT();


--Position_Set[6] is Position_Set[6]
--operation mode is input

Position_Set[6] = INPUT();


--Position_Set[5] is Position_Set[5]
--operation mode is input

Position_Set[5] = INPUT();


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

Position_Set[4] = INPUT();


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

Position_Set[3] = INPUT();


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

Position_Set[2] = INPUT();


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

Position_Set[1] = INPUT();


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

Position_Set[0] = INPUT();


--AD7492_Mode is AD7492_Mode
--operation mode is output

AD7492_Mode = OUTPUT(E1_Adc_Mode);


--AD7492_CS is AD7492_CS
--operation mode is output

AD7492_CS = OUTPUT(E1_Adc_Cs);


--AD7492_RD is AD7492_RD
--operation mode is output

AD7492_RD = OUTPUT(E1_Adc_Rd);


--AD7492_Conv is AD7492_Conv
--operation mode is output

AD7492_Conv = OUTPUT(E1_Adc_Conv);


--Position_Adjust_Drive is Position_Adjust_Drive
--operation mode is output

Position_Adjust_Drive = OUTPUT(F1L1);


--AD7895_SCL is AD7895_SCL
--operation mode is output

AD7895_SCL = OUTPUT(K1L3);


--AD7895_Conv is AD7895_Conv
--operation mode is output

AD7895_Conv = OUTPUT(K1_Adc_Conv);


--Current_Adjust_Drive is Current_Adjust_Drive
--operation mode is output

Current_Adjust_Drive = OUTPUT(D1L1);


--Rate_Over is Rate_Over
--operation mode is output

Rate_Over = OUTPUT(B1_Rate_Pulse_Alarm);


--Rate_Adjust_Drive is Rate_Adjust_Drive
--operation mode is output

Rate_Adjust_Drive = OUTPUT(H1L1);


