📄 setpmoto.fit.eqn
字号:
--B1L92 is fenping:inst|QN[9]~159COUT1_228 at LC_X3_Y3_N0
--operation mode is arithmetic
B1L92_cout_1 = !B1_QN[9] & !B1L62;
B1L92 = CARRY(B1L92_cout_1);
--C1_d_ff[5] is step_motor:inst1|d_ff[5] at LC_X6_Y3_N9
--operation mode is arithmetic
C1_d_ff[5]_carry_eqn = (!C1L15 & C1L26) # (C1L15 & C1L36);
C1_d_ff[5]_lut_out = C1_d_ff[5] $ C1_d_ff[5]_carry_eqn;
C1_d_ff[5] = DFFEAS(C1_d_ff[5]_lut_out, GLOBAL(B1_QN[16]), VCC, , , , , !C1L601, );
--C1L56 is step_motor:inst1|d_ff[5]~146 at LC_X6_Y3_N9
--operation mode is arithmetic
C1L56 = CARRY(!C1L36 # !C1_d_ff[5]);
--C1L521 is step_motor:inst1|LessThan~570 at LC_X4_Y3_N8
--operation mode is arithmetic
C1L521_cout_0 = C1_d_ff[4] & C1_comp[4] & !C1L821 # !C1_d_ff[4] & (C1_comp[4] # !C1L821);
C1L521 = CARRY(C1L521_cout_0);
--C1L621 is step_motor:inst1|LessThan~570COUT1_609 at LC_X4_Y3_N8
--operation mode is arithmetic
C1L621_cout_1 = C1_d_ff[4] & C1_comp[4] & !C1L921 # !C1_d_ff[4] & (C1_comp[4] # !C1L921);
C1L621 = CARRY(C1L621_cout_1);
--B1_QN[8] is fenping:inst|QN[8] at LC_X2_Y3_N9
--operation mode is arithmetic
B1_QN[8]_carry_eqn = (!B1L21 & B1L32) # (B1L21 & B1L42);
B1_QN[8]_lut_out = B1_QN[8] $ B1_QN[8]_carry_eqn;
B1_QN[8] = DFFEAS(B1_QN[8]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );
--B1L62 is fenping:inst|QN[8]~163 at LC_X2_Y3_N9
--operation mode is arithmetic
B1L62 = CARRY(B1_QN[8] # !B1L42);
--C1_d_ff[4] is step_motor:inst1|d_ff[4] at LC_X6_Y3_N8
--operation mode is arithmetic
C1_d_ff[4]_carry_eqn = (!C1L15 & C1L95) # (C1L15 & C1L06);
C1_d_ff[4]_lut_out = C1_d_ff[4] $ (!C1_d_ff[4]_carry_eqn);
C1_d_ff[4] = DFFEAS(C1_d_ff[4]_lut_out, GLOBAL(B1_QN[16]), VCC, , , , , !C1L601, );
--C1L26 is step_motor:inst1|d_ff[4]~150 at LC_X6_Y3_N8
--operation mode is arithmetic
C1L26_cout_0 = C1_d_ff[4] & (!C1L95);
C1L26 = CARRY(C1L26_cout_0);
--C1L36 is step_motor:inst1|d_ff[4]~150COUT1_185 at LC_X6_Y3_N8
--operation mode is arithmetic
C1L36_cout_1 = C1_d_ff[4] & (!C1L06);
C1L36 = CARRY(C1L36_cout_1);
--C1L821 is step_motor:inst1|LessThan~575 at LC_X4_Y3_N7
--operation mode is arithmetic
C1L821_cout_0 = C1_d_ff[3] & (!C1L131 # !C1_comp[3]) # !C1_d_ff[3] & !C1_comp[3] & !C1L131;
C1L821 = CARRY(C1L821_cout_0);
--C1L921 is step_motor:inst1|LessThan~575COUT1_607 at LC_X4_Y3_N7
--operation mode is arithmetic
C1L921_cout_1 = C1_d_ff[3] & (!C1L231 # !C1_comp[3]) # !C1_d_ff[3] & !C1_comp[3] & !C1L231;
C1L921 = CARRY(C1L921_cout_1);
--B1_QN[7] is fenping:inst|QN[7] at LC_X2_Y3_N8
--operation mode is arithmetic
B1_QN[7]_carry_eqn = (!B1L21 & B1L02) # (B1L21 & B1L12);
B1_QN[7]_lut_out = B1_QN[7] $ (!B1_QN[7]_carry_eqn);
B1_QN[7] = DFFEAS(B1_QN[7]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );
--B1L32 is fenping:inst|QN[7]~167 at LC_X2_Y3_N8
--operation mode is arithmetic
B1L32_cout_0 = !B1_QN[7] & (!B1L02);
B1L32 = CARRY(B1L32_cout_0);
--B1L42 is fenping:inst|QN[7]~167COUT1_226 at LC_X2_Y3_N8
--operation mode is arithmetic
B1L42_cout_1 = !B1_QN[7] & (!B1L12);
B1L42 = CARRY(B1L42_cout_1);
--C1_d_ff[3] is step_motor:inst1|d_ff[3] at LC_X6_Y3_N7
--operation mode is arithmetic
C1_d_ff[3]_carry_eqn = (!C1L15 & C1L65) # (C1L15 & C1L75);
C1_d_ff[3]_lut_out = C1_d_ff[3] $ C1_d_ff[3]_carry_eqn;
C1_d_ff[3] = DFFEAS(C1_d_ff[3]_lut_out, GLOBAL(B1_QN[16]), VCC, , , , , !C1L601, );
--C1L95 is step_motor:inst1|d_ff[3]~154 at LC_X6_Y3_N7
--operation mode is arithmetic
C1L95_cout_0 = !C1L65 # !C1_d_ff[3];
C1L95 = CARRY(C1L95_cout_0);
--C1L06 is step_motor:inst1|d_ff[3]~154COUT1_183 at LC_X6_Y3_N7
--operation mode is arithmetic
C1L06_cout_1 = !C1L75 # !C1_d_ff[3];
C1L06 = CARRY(C1L06_cout_1);
--C1L131 is step_motor:inst1|LessThan~580 at LC_X4_Y3_N6
--operation mode is arithmetic
C1L131_cout_0 = C1_comp[2] & (!C1L431 # !C1_d_ff[2]) # !C1_comp[2] & !C1_d_ff[2] & !C1L431;
C1L131 = CARRY(C1L131_cout_0);
--C1L231 is step_motor:inst1|LessThan~580COUT1_605 at LC_X4_Y3_N6
--operation mode is arithmetic
C1L231_cout_1 = C1_comp[2] & (!C1L531 # !C1_d_ff[2]) # !C1_comp[2] & !C1_d_ff[2] & !C1L531;
C1L231 = CARRY(C1L231_cout_1);
--B1_QN[6] is fenping:inst|QN[6] at LC_X2_Y3_N7
--operation mode is arithmetic
B1_QN[6]_carry_eqn = (!B1L21 & B1L71) # (B1L21 & B1L81);
B1_QN[6]_lut_out = B1_QN[6] $ B1_QN[6]_carry_eqn;
B1_QN[6] = DFFEAS(B1_QN[6]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );
--B1L02 is fenping:inst|QN[6]~171 at LC_X2_Y3_N7
--operation mode is arithmetic
B1L02_cout_0 = B1_QN[6] # !B1L71;
B1L02 = CARRY(B1L02_cout_0);
--B1L12 is fenping:inst|QN[6]~171COUT1_224 at LC_X2_Y3_N7
--operation mode is arithmetic
B1L12_cout_1 = B1_QN[6] # !B1L81;
B1L12 = CARRY(B1L12_cout_1);
--C1_d_ff[2] is step_motor:inst1|d_ff[2] at LC_X6_Y3_N6
--operation mode is arithmetic
C1_d_ff[2]_carry_eqn = (!C1L15 & C1L35) # (C1L15 & C1L45);
C1_d_ff[2]_lut_out = C1_d_ff[2] $ (!C1_d_ff[2]_carry_eqn);
C1_d_ff[2] = DFFEAS(C1_d_ff[2]_lut_out, GLOBAL(B1_QN[16]), VCC, , , , , !C1L601, );
--C1L65 is step_motor:inst1|d_ff[2]~158 at LC_X6_Y3_N6
--operation mode is arithmetic
C1L65_cout_0 = C1_d_ff[2] & (!C1L35);
C1L65 = CARRY(C1L65_cout_0);
--C1L75 is step_motor:inst1|d_ff[2]~158COUT1_181 at LC_X6_Y3_N6
--operation mode is arithmetic
C1L75_cout_1 = C1_d_ff[2] & (!C1L45);
C1L75 = CARRY(C1L75_cout_1);
--C1L431 is step_motor:inst1|LessThan~585 at LC_X4_Y3_N5
--operation mode is arithmetic
C1L431_cout_0 = C1_comp[1] & C1_d_ff[1] & !C1L731 # !C1_comp[1] & (C1_d_ff[1] # !C1L731);
C1L431 = CARRY(C1L431_cout_0);
--C1L531 is step_motor:inst1|LessThan~585COUT1_603 at LC_X4_Y3_N5
--operation mode is arithmetic
C1L531_cout_1 = C1_comp[1] & C1_d_ff[1] & !C1L731 # !C1_comp[1] & (C1_d_ff[1] # !C1L731);
C1L531 = CARRY(C1L531_cout_1);
--B1_QN[5] is fenping:inst|QN[5] at LC_X2_Y3_N6
--operation mode is arithmetic
B1_QN[5]_carry_eqn = (!B1L21 & B1L41) # (B1L21 & B1L51);
B1_QN[5]_lut_out = B1_QN[5] $ (!B1_QN[5]_carry_eqn);
B1_QN[5] = DFFEAS(B1_QN[5]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );
--B1L71 is fenping:inst|QN[5]~175 at LC_X2_Y3_N6
--operation mode is arithmetic
B1L71_cout_0 = !B1_QN[5] & (!B1L41);
B1L71 = CARRY(B1L71_cout_0);
--B1L81 is fenping:inst|QN[5]~175COUT1_222 at LC_X2_Y3_N6
--operation mode is arithmetic
B1L81_cout_1 = !B1_QN[5] & (!B1L51);
B1L81 = CARRY(B1L81_cout_1);
--C1_d_ff[1] is step_motor:inst1|d_ff[1] at LC_X6_Y3_N5
--operation mode is arithmetic
C1_d_ff[1]_carry_eqn = C1L15;
C1_d_ff[1]_lut_out = C1_d_ff[1] $ (C1_d_ff[1]_carry_eqn);
C1_d_ff[1] = DFFEAS(C1_d_ff[1]_lut_out, GLOBAL(B1_QN[16]), VCC, , , , , !C1L601, );
--C1L35 is step_motor:inst1|d_ff[1]~162 at LC_X6_Y3_N5
--operation mode is arithmetic
C1L35_cout_0 = !C1L15 # !C1_d_ff[1];
C1L35 = CARRY(C1L35_cout_0);
--C1L45 is step_motor:inst1|d_ff[1]~162COUT1_179 at LC_X6_Y3_N5
--operation mode is arithmetic
C1L45_cout_1 = !C1L15 # !C1_d_ff[1];
C1L45 = CARRY(C1L45_cout_1);
--C1L731 is step_motor:inst1|LessThan~590 at LC_X4_Y3_N4
--operation mode is arithmetic
C1L731 = CARRY(!C1_d_ff[0] & C1_comp[0]);
--B1_QN[4] is fenping:inst|QN[4] at LC_X2_Y3_N5
--operation mode is arithmetic
B1_QN[4]_carry_eqn = B1L21;
B1_QN[4]_lut_out = B1_QN[4] $ (B1_QN[4]_carry_eqn);
B1_QN[4] = DFFEAS(B1_QN[4]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );
--B1L41 is fenping:inst|QN[4]~179 at LC_X2_Y3_N5
--operation mode is arithmetic
B1L41_cout_0 = B1_QN[4] # !B1L21;
B1L41 = CARRY(B1L41_cout_0);
--B1L51 is fenping:inst|QN[4]~179COUT1_220 at LC_X2_Y3_N5
--operation mode is arithmetic
B1L51_cout_1 = B1_QN[4] # !B1L21;
B1L51 = CARRY(B1L51_cout_1);
--C1_d_ff[0] is step_motor:inst1|d_ff[0] at LC_X6_Y3_N4
--operation mode is arithmetic
C1_d_ff[0]_lut_out = !C1_d_ff[0];
C1_d_ff[0] = DFFEAS(C1_d_ff[0]_lut_out, GLOBAL(B1_QN[16]), VCC, , , , , !C1L601, );
--C1L15 is step_motor:inst1|d_ff[0]~166 at LC_X6_Y3_N4
--operation mode is arithmetic
C1L15 = CARRY(C1_d_ff[0]);
--B1_QN[3] is fenping:inst|QN[3] at LC_X2_Y3_N4
--operation mode is arithmetic
B1_QN[3]_lut_out = B1_QN[3] $ (!B1L9);
B1_QN[3] = DFFEAS(B1_QN[3]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );
--B1L21 is fenping:inst|QN[3]~183 at LC_X2_Y3_N4
--operation mode is arithmetic
B1L21 = CARRY(!B1_QN[3] & (!B1L01));
--B1_QN[2] is fenping:inst|QN[2] at LC_X2_Y3_N3
--operation mode is arithmetic
B1_QN[2]_lut_out = B1_QN[2] $ (B1L6);
B1_QN[2] = DFFEAS(B1_QN[2]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );
--B1L9 is fenping:inst|QN[2]~187 at LC_X2_Y3_N3
--operation mode is arithmetic
B1L9_cout_0 = B1_QN[2] # !B1L6;
B1L9 = CARRY(B1L9_cout_0);
--B1L01 is fenping:inst|QN[2]~187COUT1_218 at LC_X2_Y3_N3
--operation mode is arithmetic
B1L01_cout_1 = B1_QN[2] # !B1L7;
B1L01 = CARRY(B1L01_cout_1);
--B1_QN[1] is fenping:inst|QN[1] at LC_X2_Y3_N2
--operation mode is arithmetic
B1_QN[1]_lut_out = B1_QN[1] $ !B1L3;
B1_QN[1] = DFFEAS(B1_QN[1]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );
--B1L6 is fenping:inst|QN[1]~191 at LC_X2_Y3_N2
--operation mode is arithmetic
B1L6_cout_0 = !B1_QN[1] & !B1L3;
B1L6 = CARRY(B1L6_cout_0);
--B1L7 is fenping:inst|QN[1]~191COUT1_216 at LC_X2_Y3_N2
--operation mode is arithmetic
B1L7_cout_1 = !B1_QN[1] & !B1L4;
B1L7 = CARRY(B1L7_cout_1);
--B1_QN[0] is fenping:inst|QN[0] at LC_X2_Y3_N1
--operation mode is arithmetic
B1_QN[0]_lut_out = !B1_QN[0];
B1_QN[0] = DFFEAS(B1_QN[0]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );
--B1L3 is fenping:inst|QN[0]~195 at LC_X2_Y3_N1
--operation mode is arithmetic
B1L3_cout_0 = B1_QN[0];
B1L3 = CARRY(B1L3_cout_0);
--B1L4 is fenping:inst|QN[0]~195COUT1_214 at LC_X2_Y3_N1
--operation mode is arithmetic
B1L4_cout_1 = B1_QN[0];
B1L4 = CARRY(B1L4_cout_1);
--~GND is ~GND at LC_X3_Y3_N9
--operation mode is normal
~GND = GND;
--D is D at PIN_43
--operation mode is input
D = INPUT();
--P is P at PIN_48
--operation mode is input
P = INPUT();
--GCLK3 is GCLK3 at PIN_64
--operation mode is input
GCLK3 = INPUT();
--SPEED[0] is SPEED[0] at PIN_47
--operation mode is input
SPEED[0] = INPUT();
--SPEED[1] is SPEED[1] at PIN_44
--operation mode is input
SPEED[1] = INPUT();
--LED[3] is LED[3] at PIN_97
--operation mode is output
LED[3] = OUTPUT(C1_t[3]);
--LED[2] is LED[2] at PIN_96
--operation mode is output
LED[2] = OUTPUT(C1_t[2]);
--LED[1] is LED[1] at PIN_95
--operation mode is output
LED[1] = OUTPUT(C1_t[1]);
--LED[0] is LED[0] at PIN_92
--operation mode is output
LED[0] = OUTPUT(C1_t[0]);
--SD[3] is SD[3] at PIN_55
--operation mode is output
SD[3] = OUTPUT(C1_t[3]);
--SD[2] is SD[2] at PIN_56
--operation mode is output
SD[2] = OUTPUT(C1_t[2]);
--SD[1] is SD[1] at PIN_57
--operation mode is output
SD[1] = OUTPUT(C1_t[1]);
--SD[0] is SD[0] at PIN_58
--operation mode is output
SD[0] = OUTPUT(C1_t[0]);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -