📄 stepctrl.fit.eqn
字号:
-- Copyright (C) 1991-2005 Altera Corporation
-- Your use of Altera Corporation's design tools, logic functions
-- and other software and tools, and its AMPP partner logic
-- functions, and any output files any of the foregoing
-- (including device programming or simulation files), and any
-- associated documentation or information are expressly subject
-- to the terms and conditions of the Altera Program License
-- Subscription Agreement, Altera MegaCore Function License
-- Agreement, or other applicable license agreement, including,
-- without limitation, that your use is for the sole purpose of
-- programming logic devices manufactured by Altera and sold by
-- Altera or its authorized distributors. Please refer to the
-- applicable agreement for further details.
--B1_pwme is motorctrl:inst|pwme at LC_X30_Y21_N0
--operation mode is normal
B1_pwme_lut_out = B1L011 & (B1_status[1] & (B1_pulse_status[0] # !B1_status[2]) # !B1_status[1] & !B1_status[2] & B1_pulse_status[0]) # !B1L011 & (B1_pulse_status[0]);
B1_pwme = DFFEAS(B1_pwme_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1_status[1] is motorctrl:inst|status[1] at LC_X30_Y21_N9
--operation mode is normal
B1_status[1]_lut_out = !B1_temp_speed[30] & (B1_temp_speed[7] # !B1L05 # !B1L15);
B1_status[1] = DFFEAS(B1_status[1]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1_pulse_status[0] is motorctrl:inst|pulse_status[0] at LC_X30_Y22_N4
--operation mode is normal
B1_pulse_status[0]_lut_out = !B1_pulse_status[0];
B1_pulse_status[0] = DFFEAS(B1_pulse_status[0]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1_status[2] is motorctrl:inst|status[2] at LC_X29_Y21_N3
--operation mode is normal
B1_status[2]_lut_out = B1L16 & (B1_temp_speed[30] # B1L05 & B1L911);
B1_status[2] = DFFEAS(B1_status[2]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1_status[0] is motorctrl:inst|status[0] at LC_X29_Y21_N0
--operation mode is normal
B1_status[0]_lut_out = B1_temp_speed[30] & (B1L121) # !B1_temp_speed[30] & (B1L911 & B1L121 # !B1L05);
B1_status[0] = DFFEAS(B1_status[0]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1_pulse_status[1] is motorctrl:inst|pulse_status[1] at LC_X30_Y22_N2
--operation mode is normal
B1_pulse_status[1]_lut_out = !B1_pulse_status[1];
B1_pulse_status[1] = DFFEAS(B1_pulse_status[1]_lut_out, GLOBAL(clk), VCC, , B1_pulse_status[0], , , , );
--B1L011 is motorctrl:inst|Mux~25 at LC_X30_Y21_N8
--operation mode is normal
B1L011 = B1_status[0] # B1_pulse_status[1];
--B1_temp_speed[7] is motorctrl:inst|temp_speed[7] at LC_X32_Y21_N7
--operation mode is arithmetic
B1_temp_speed[7]_carry_eqn = (!B1L631 & B1L341) # (B1L631 & B1L441);
B1_temp_speed[7]_lut_out = speed_now[7] $ target_speed[7] $ !B1_temp_speed[7]_carry_eqn;
B1_temp_speed[7] = DFFEAS(B1_temp_speed[7]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1L641 is motorctrl:inst|temp_speed[7]~131 at LC_X32_Y21_N7
--operation mode is arithmetic
B1L641_cout_0 = speed_now[7] & (!B1L341 # !target_speed[7]) # !speed_now[7] & !target_speed[7] & !B1L341;
B1L641 = CARRY(B1L641_cout_0);
--B1L741 is motorctrl:inst|temp_speed[7]~131COUT1_172 at LC_X32_Y21_N7
--operation mode is arithmetic
B1L741_cout_1 = speed_now[7] & (!B1L441 # !target_speed[7]) # !speed_now[7] & !target_speed[7] & !B1L441;
B1L741 = CARRY(B1L741_cout_1);
--B1L05 is motorctrl:inst|LessThan~3089 at LC_X31_Y21_N7
--operation mode is normal
B1L05_carry_eqn = (!B1L08 & B1L86) # (B1L08 & B1L96);
B1L05 = th_speed[7] & (B1L05_carry_eqn # !B1_temp_speed[7]) # !th_speed[7] & B1L05_carry_eqn & !B1_temp_speed[7];
--B1L15 is motorctrl:inst|LessThan~3094 at LC_X30_Y21_N7
--operation mode is normal
B1L15_carry_eqn = (!B1L48 & B1L17) # (B1L48 & B1L27);
B1L15 = th_speed[7] & (!B1L15_carry_eqn # !B1_temp_speed[6]) # !th_speed[7] & !B1_temp_speed[6] & !B1L15_carry_eqn;
--B1_temp_speed[30] is motorctrl:inst|temp_speed[30] at LC_X32_Y21_N8
--operation mode is normal
B1_temp_speed[30]_carry_eqn = (!B1L631 & B1L641) # (B1L631 & B1L741);
B1_temp_speed[30]_lut_out = B1_temp_speed[30]_carry_eqn;
B1_temp_speed[30] = DFFEAS(B1_temp_speed[30]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1L1 is motorctrl:inst|add~406 at LC_X28_Y22_N7
--operation mode is normal
B1L1_carry_eqn = (!B1L3 & B1L61) # (B1L3 & B1L71);
B1L1 = B1L1_carry_eqn;
--B1L2 is motorctrl:inst|add~411 at LC_X28_Y22_N4
--operation mode is arithmetic
B1L2 = th_speed[5] $ B1L7;
--B1L3 is motorctrl:inst|add~413 at LC_X28_Y22_N4
--operation mode is arithmetic
B1L3 = B1L4;
--B1_temp_speed[4] is motorctrl:inst|temp_speed[4] at LC_X32_Y21_N4
--operation mode is arithmetic
B1_temp_speed[4]_lut_out = speed_now[4] $ target_speed[4] $ B1L331;
B1_temp_speed[4] = DFFEAS(B1_temp_speed[4]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1L631 is motorctrl:inst|temp_speed[4]~139 at LC_X32_Y21_N4
--operation mode is arithmetic
B1L631 = B1L731;
--B1L6 is motorctrl:inst|add~416 at LC_X28_Y22_N3
--operation mode is arithmetic
B1L6 = th_speed[4] $ (!B1L01);
--B1L7 is motorctrl:inst|add~418 at LC_X28_Y22_N3
--operation mode is arithmetic
B1L7_cout_0 = th_speed[4] # !B1L01;
B1L7 = CARRY(B1L7_cout_0);
--B1L8 is motorctrl:inst|add~418COUT1 at LC_X28_Y22_N3
--operation mode is arithmetic
B1L8_cout_1 = th_speed[4] # !B1L11;
B1L8 = CARRY(B1L8_cout_1);
--B1_temp_speed[3] is motorctrl:inst|temp_speed[3] at LC_X32_Y21_N3
--operation mode is arithmetic
B1_temp_speed[3]_lut_out = target_speed[3] $ speed_now[3] $ !B1L031;
B1_temp_speed[3] = DFFEAS(B1_temp_speed[3]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1L331 is motorctrl:inst|temp_speed[3]~143 at LC_X32_Y21_N3
--operation mode is arithmetic
B1L331_cout_0 = target_speed[3] & speed_now[3] & !B1L031 # !target_speed[3] & (speed_now[3] # !B1L031);
B1L331 = CARRY(B1L331_cout_0);
--B1L431 is motorctrl:inst|temp_speed[3]~143COUT1 at LC_X32_Y21_N3
--operation mode is arithmetic
B1L431_cout_1 = target_speed[3] & speed_now[3] & !B1L131 # !target_speed[3] & (speed_now[3] # !B1L131);
B1L431 = CARRY(B1L431_cout_1);
--B1L9 is motorctrl:inst|add~421 at LC_X28_Y22_N2
--operation mode is arithmetic
B1L9 = th_speed[3] $ (B1L31);
--B1L01 is motorctrl:inst|add~423 at LC_X28_Y22_N2
--operation mode is arithmetic
B1L01_cout_0 = !th_speed[3] & (!B1L31);
B1L01 = CARRY(B1L01_cout_0);
--B1L11 is motorctrl:inst|add~423COUT1_494 at LC_X28_Y22_N2
--operation mode is arithmetic
B1L11_cout_1 = !th_speed[3] & (!B1L41);
B1L11 = CARRY(B1L11_cout_1);
--B1_temp_speed[2] is motorctrl:inst|temp_speed[2] at LC_X32_Y21_N2
--operation mode is arithmetic
B1_temp_speed[2]_lut_out = target_speed[2] $ speed_now[2] $ B1L721;
B1_temp_speed[2] = DFFEAS(B1_temp_speed[2]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1L031 is motorctrl:inst|temp_speed[2]~147 at LC_X32_Y21_N2
--operation mode is arithmetic
B1L031_cout_0 = target_speed[2] & (!B1L721 # !speed_now[2]) # !target_speed[2] & !speed_now[2] & !B1L721;
B1L031 = CARRY(B1L031_cout_0);
--B1L131 is motorctrl:inst|temp_speed[2]~147COUT1_169 at LC_X32_Y21_N2
--operation mode is arithmetic
B1L131_cout_1 = target_speed[2] & (!B1L821 # !speed_now[2]) # !target_speed[2] & !speed_now[2] & !B1L821;
B1L131 = CARRY(B1L131_cout_1);
--B1L21 is motorctrl:inst|add~426 at LC_X28_Y22_N1
--operation mode is arithmetic
B1L21 = th_speed[2] $ !B1L54;
--B1L31 is motorctrl:inst|add~428 at LC_X28_Y22_N1
--operation mode is arithmetic
B1L31_cout_0 = th_speed[2] # !B1L54;
B1L31 = CARRY(B1L31_cout_0);
--B1L41 is motorctrl:inst|add~428COUT1_493 at LC_X28_Y22_N1
--operation mode is arithmetic
B1L41_cout_1 = th_speed[2] # !B1L64;
B1L41 = CARRY(B1L41_cout_1);
--B1_temp_speed[0] is motorctrl:inst|temp_speed[0] at LC_X32_Y21_N0
--operation mode is arithmetic
B1_temp_speed[0]_lut_out = speed_now[0] $ target_speed[0];
B1_temp_speed[0] = DFFEAS(B1_temp_speed[0]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1L421 is motorctrl:inst|temp_speed[0]~151 at LC_X32_Y21_N0
--operation mode is arithmetic
B1L421_cout_0 = target_speed[0] # !speed_now[0];
B1L421 = CARRY(B1L421_cout_0);
--B1L521 is motorctrl:inst|temp_speed[0]~151COUT1_167 at LC_X32_Y21_N0
--operation mode is arithmetic
B1L521_cout_1 = target_speed[0] # !speed_now[0];
B1L521 = CARRY(B1L521_cout_1);
--B1_temp_speed[1] is motorctrl:inst|temp_speed[1] at LC_X32_Y21_N1
--operation mode is arithmetic
B1_temp_speed[1]_lut_out = target_speed[1] $ speed_now[1] $ !B1L421;
B1_temp_speed[1] = DFFEAS(B1_temp_speed[1]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1L721 is motorctrl:inst|temp_speed[1]~155 at LC_X32_Y21_N1
--operation mode is arithmetic
B1L721_cout_0 = target_speed[1] & speed_now[1] & !B1L421 # !target_speed[1] & (speed_now[1] # !B1L421);
B1L721 = CARRY(B1L721_cout_0);
--B1L821 is motorctrl:inst|temp_speed[1]~155COUT1_168 at LC_X32_Y21_N1
--operation mode is arithmetic
B1L821_cout_1 = target_speed[1] & speed_now[1] & !B1L521 # !target_speed[1] & (speed_now[1] # !B1L521);
B1L821 = CARRY(B1L821_cout_1);
--B1L25 is motorctrl:inst|LessThan~3099 at LC_X28_Y21_N9
--operation mode is normal
B1L25 = B1L21 & (th_speed[1] & !B1_temp_speed[0] # !B1_temp_speed[1]) # !B1L21 & !B1_temp_speed[1] & th_speed[1] & !B1_temp_speed[0];
--B1L35 is motorctrl:inst|LessThan~3100 at LC_X28_Y21_N4
--operation mode is normal
B1L35 = B1L9 & (B1L25 # !B1_temp_speed[2]) # !B1L9 & !B1_temp_speed[2] & B1L25;
--B1L45 is motorctrl:inst|LessThan~3101 at LC_X29_Y21_N7
--operation mode is normal
B1L45 = B1L6 & (B1L35 # !B1_temp_speed[3]) # !B1L6 & (!B1_temp_speed[3] & B1L35);
--B1L55 is motorctrl:inst|LessThan~3102 at LC_X29_Y21_N9
--operation mode is normal
B1L55 = B1L45 & (B1_temp_speed[4] $ !B1L2);
--B1L51 is motorctrl:inst|add~431 at LC_X28_Y22_N6
--operation mode is arithmetic
B1L51_carry_eqn = (!B1L3 & B1L91) # (B1L3 & B1L02);
B1L51 = th_speed[7] $ (B1L51_carry_eqn);
--B1L61 is motorctrl:inst|add~433 at LC_X28_Y22_N6
--operation mode is arithmetic
B1L61_cout_0 = !th_speed[7] & (!B1L91);
B1L61 = CARRY(B1L61_cout_0);
--B1L71 is motorctrl:inst|add~433COUT1_496 at LC_X28_Y22_N6
--operation mode is arithmetic
B1L71_cout_1 = !th_speed[7] & (!B1L02);
B1L71 = CARRY(B1L71_cout_1);
--B1_temp_speed[6] is motorctrl:inst|temp_speed[6] at LC_X32_Y21_N6
--operation mode is arithmetic
B1_temp_speed[6]_carry_eqn = (!B1L631 & B1L041) # (B1L631 & B1L141);
B1_temp_speed[6]_lut_out = target_speed[6] $ speed_now[6] $ B1_temp_speed[6]_carry_eqn;
B1_temp_speed[6] = DFFEAS(B1_temp_speed[6]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1L341 is motorctrl:inst|temp_speed[6]~159 at LC_X32_Y21_N6
--operation mode is arithmetic
B1L341_cout_0 = target_speed[6] & (!B1L041 # !speed_now[6]) # !target_speed[6] & !speed_now[6] & !B1L041;
B1L341 = CARRY(B1L341_cout_0);
--B1L441 is motorctrl:inst|temp_speed[6]~159COUT1_171 at LC_X32_Y21_N6
--operation mode is arithmetic
B1L441_cout_1 = target_speed[6] & (!B1L141 # !speed_now[6]) # !target_speed[6] & !speed_now[6] & !B1L141;
B1L441 = CARRY(B1L441_cout_1);
--B1L65 is motorctrl:inst|LessThan~3103 at LC_X28_Y21_N7
--operation mode is normal
B1L65 = B1_temp_speed[7] & !B1L1 & (B1_temp_speed[6] $ !B1L51) # !B1_temp_speed[7] & B1L1 & (B1_temp_speed[6] $ !B1L51);
--B1L81 is motorctrl:inst|add~436 at LC_X28_Y22_N5
--operation mode is arithmetic
B1L81_carry_eqn = (!B1L3 & GND) # (B1L3 & VCC);
B1L81 = th_speed[6] $ !B1L81_carry_eqn;
--B1L91 is motorctrl:inst|add~438 at LC_X28_Y22_N5
--operation mode is arithmetic
B1L91_cout_0 = th_speed[6] # !B1L3;
B1L91 = CARRY(B1L91_cout_0);
--B1L02 is motorctrl:inst|add~438COUT1_495 at LC_X28_Y22_N5
--operation mode is arithmetic
B1L02_cout_1 = th_speed[6] # !B1L3;
B1L02 = CARRY(B1L02_cout_1);
--B1_temp_speed[5] is motorctrl:inst|temp_speed[5] at LC_X32_Y21_N5
--operation mode is arithmetic
B1_temp_speed[5]_carry_eqn = (!B1L631 & GND) # (B1L631 & VCC);
B1_temp_speed[5]_lut_out = target_speed[5] $ speed_now[5] $ !B1_temp_speed[5]_carry_eqn;
B1_temp_speed[5] = DFFEAS(B1_temp_speed[5]_lut_out, GLOBAL(clk), VCC, , , , , , );
--B1L041 is motorctrl:inst|temp_speed[5]~163 at LC_X32_Y21_N5
--operation mode is arithmetic
B1L041_cout_0 = target_speed[5] & speed_now[5] & !B1L631 # !target_speed[5] & (speed_now[5] # !B1L631);
B1L041 = CARRY(B1L041_cout_0);
--B1L141 is motorctrl:inst|temp_speed[5]~163COUT1_170 at LC_X32_Y21_N5
--operation mode is arithmetic
B1L141_cout_1 = target_speed[5] & speed_now[5] & !B1L631 # !target_speed[5] & (speed_now[5] # !B1L631);
B1L141 = CARRY(B1L141_cout_1);
--B1L75 is motorctrl:inst|LessThan~3104 at LC_X29_Y21_N8
--operation mode is normal
B1L75 = B1L65 & B1L55 & (B1_temp_speed[5] $ !B1L81);
--B1L85 is motorctrl:inst|LessThan~3105 at LC_X28_Y21_N8
--operation mode is normal
B1L85 = B1_temp_speed[5] & B1L2 & B1L81 & !B1_temp_speed[4] # !B1_temp_speed[5] & (B1L81 # B1L2 & !B1_temp_speed[4]);
--B1L95 is motorctrl:inst|LessThan~3106 at LC_X28_Y21_N6
--operation mode is normal
B1L95 = B1L51 & (B1L85 # !B1_temp_speed[6]) # !B1L51 & !B1_temp_speed[6] & B1L85;
--B1L06 is motorctrl:inst|LessThan~3107 at LC_X29_Y21_N4
--operation mode is normal
B1L06 = B1_temp_speed[7] & !B1L1 & (B1L95 # !B1_temp_speed[30]) # !B1_temp_speed[7] & (B1L95 # !B1L1);
--B1L16 is motorctrl:inst|LessThan~3108 at LC_X29_Y21_N5
--operation mode is normal
B1L16 = B1_temp_speed[30] & (B1L75 # B1L1 # B1L06) # !B1_temp_speed[30] & B1L1 & (B1L75 # B1L06);
--B1L911 is motorctrl:inst|status~141 at LC_X29_Y21_N2
--operation mode is normal
B1L911 = B1L15 & !B1_temp_speed[7];
--B1L12 is motorctrl:inst|add~441 at LC_X29_Y22_N8
--operation mode is normal
B1L12_carry_eqn = (!B1L23 & B1L62) # (B1L23 & B1L72);
B1L12 = !B1L12_carry_eqn;
--B1L22 is motorctrl:inst|add~446 at LC_X29_Y22_N6
--operation mode is arithmetic
B1L22_carry_eqn = (!B1L23 & B1L92) # (B1L23 & B1L03);
B1L22 = th_speed[6] $ B1L22_carry_eqn;
--B1L32 is motorctrl:inst|add~448 at LC_X29_Y22_N6
--operation mode is arithmetic
B1L32_cout_0 = !th_speed[6] & !B1L92;
B1L32 = CARRY(B1L32_cout_0);
--B1L42 is motorctrl:inst|add~448COUT1_501 at LC_X29_Y22_N6
--operation mode is arithmetic
B1L42_cout_1 = !th_speed[6] & !B1L03;
B1L42 = CARRY(B1L42_cout_1);
--B1L52 is motorctrl:inst|add~451 at LC_X29_Y22_N7
--operation mode is arithmetic
B1L52_carry_eqn = (!B1L23 & B1L32) # (B1L23 & B1L42);
B1L52 = th_speed[7] $ (!B1L52_carry_eqn);
--B1L62 is motorctrl:inst|add~453 at LC_X29_Y22_N7
--operation mode is arithmetic
B1L62_cout_0 = th_speed[7] # !B1L32;
B1L62 = CARRY(B1L62_cout_0);
--B1L72 is motorctrl:inst|add~453COUT1_502 at LC_X29_Y22_N7
--operation mode is arithmetic
B1L72_cout_1 = th_speed[7] # !B1L42;
B1L72 = CARRY(B1L72_cout_1);
--B1L26 is motorctrl:inst|LessThan~3109 at LC_X29_Y22_N9
--operation mode is normal
B1L26 = B1L52 & B1_temp_speed[7] & (B1_temp_speed[6] $ !B1L22) # !B1L52 & !B1_temp_speed[7] & (B1_temp_speed[6] $ !B1L22);
--B1L36 is motorctrl:inst|LessThan~3110 at LC_X32_Y21_N9
--operation mode is normal
B1L36 = B1_temp_speed[7] & !B1_temp_speed[6] & B1L22 & B1L52 # !B1_temp_speed[7] & (B1L52 # !B1_temp_speed[6] & B1L22);
--B1L82 is motorctrl:inst|add~456 at LC_X29_Y22_N5
--operation mode is arithmetic
B1L82_carry_eqn = (!B1L23 & GND) # (B1L23 & VCC);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -