⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setpmoto.fit.eqn

📁 这是一个用VHDL语言写的电动机程序,希望对大家有用
💻 EQN
📖 第 1 页 / 共 3 页
字号:
-- 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.
--C1_t[3] is step_motor:inst1|t[3] at LC_X3_Y4_N0
--operation mode is normal

C1_t[3]_lut_out = !C1_ind_coil[3];
C1_t[3] = DFFEAS(C1_t[3]_lut_out, !GLOBAL(C1_clk_scan), VCC, , , , , , );


--C1_t[2] is step_motor:inst1|t[2] at LC_X4_Y1_N8
--operation mode is normal

C1_t[2]_lut_out = !C1_ind_coil[2];
C1_t[2] = DFFEAS(C1_t[2]_lut_out, !GLOBAL(C1_clk_scan), VCC, , , , , , );


--C1_t[1] is step_motor:inst1|t[1] at LC_X3_Y4_N8
--operation mode is normal

C1_t[1]_lut_out = !C1_ind_coil[1];
C1_t[1] = DFFEAS(C1_t[1]_lut_out, !GLOBAL(C1_clk_scan), VCC, , , , , , );


--C1_t[0] is step_motor:inst1|t[0] at LC_X3_Y4_N1
--operation mode is normal

C1_t[0]_lut_out = !C1_ind_coil[0];
C1_t[0] = DFFEAS(C1_t[0]_lut_out, !GLOBAL(C1_clk_scan), VCC, , , , , , );


--C1_ind_coil[3] is step_motor:inst1|ind_coil[3] at LC_X5_Y1_N7
--operation mode is normal

C1_ind_coil[3]_lut_out = C1_DIRECTION & (C1_ind_coil[0] # C1L831) # !C1_DIRECTION & C1_ind_coil[2];
C1_ind_coil[3] = DFFEAS(C1_ind_coil[3]_lut_out, !GLOBAL(C1_clk_scan), VCC, , C1_PHASE, , , , );


--C1_clk_scan is step_motor:inst1|clk_scan at LC_X5_Y3_N9
--operation mode is normal

C1_clk_scan_lut_out = !C1_clk_scan;
C1_clk_scan = DFFEAS(C1_clk_scan_lut_out, GLOBAL(B1_QN[16]), VCC, , !C1L601, , , , );


--C1_ind_coil[2] is step_motor:inst1|ind_coil[2] at LC_X5_Y1_N8
--operation mode is normal

C1_ind_coil[2]_lut_out = C1_DIRECTION & (C1_ind_coil[3] & !C1L831) # !C1_DIRECTION & C1_ind_coil[1];
C1_ind_coil[2] = DFFEAS(C1_ind_coil[2]_lut_out, !GLOBAL(C1_clk_scan), VCC, , C1_PHASE, , , , );


--C1_ind_coil[1] is step_motor:inst1|ind_coil[1] at LC_X5_Y1_N2
--operation mode is normal

C1_ind_coil[1]_lut_out = C1_DIRECTION & C1_ind_coil[2] # !C1_DIRECTION & (C1_ind_coil[0] & !C1L831);
C1_ind_coil[1] = DFFEAS(C1_ind_coil[1]_lut_out, !GLOBAL(C1_clk_scan), VCC, , C1_PHASE, , , , );


--C1_ind_coil[0] is step_motor:inst1|ind_coil[0] at LC_X5_Y1_N9
--operation mode is normal

C1_ind_coil[0]_lut_out = C1_DIRECTION & C1_ind_coil[1] # !C1_DIRECTION & (C1_ind_coil[3] # C1L831);
C1_ind_coil[0] = DFFEAS(C1_ind_coil[0]_lut_out, !GLOBAL(C1_clk_scan), VCC, , C1_PHASE, , , , );


--C1_DIRECTION is step_motor:inst1|DIRECTION at LC_X6_Y1_N3
--operation mode is normal

C1_DIRECTION_lut_out = !C1_DIRECTION;
C1_DIRECTION = DFFEAS(C1_DIRECTION_lut_out, GLOBAL(B1_QN[16]), VCC, , C1L8, , , , );


--C1L831 is step_motor:inst1|motor~33 at LC_X5_Y1_N1
--operation mode is normal

C1L831 = !C1_ind_coil[2] & !C1_ind_coil[1] & (C1_ind_coil[0] $ !C1_ind_coil[3]);


--C1_PHASE is step_motor:inst1|PHASE at LC_X5_Y1_N3
--operation mode is normal

C1_PHASE_lut_out = !C1_PHASE;
C1_PHASE = DFFEAS(C1_PHASE_lut_out, GLOBAL(B1_QN[16]), VCC, , C1L7, , , , );


--B1_QN[16] is fenping:inst|QN[16] at LC_X3_Y3_N7
--operation mode is arithmetic

B1_QN[16]_carry_eqn = (!B1L04 & B1L54) # (B1L04 & B1L64);
B1_QN[16]_lut_out = B1_QN[16] $ B1_QN[16]_carry_eqn;
B1_QN[16] = DFFEAS(B1_QN[16]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );

--B1L84 is fenping:inst|QN[16]~127 at LC_X3_Y3_N7
--operation mode is arithmetic

B1L84_cout_0 = B1_QN[16] # !B1L54;
B1L84 = CARRY(B1L84_cout_0);

--B1L94 is fenping:inst|QN[16]~127COUT1_240 at LC_X3_Y3_N7
--operation mode is arithmetic

B1L94_cout_1 = B1_QN[16] # !B1L64;
B1L94 = CARRY(B1L94_cout_1);


--C1L601 is step_motor:inst1|LessThan~532 at LC_X5_Y3_N5
--operation mode is normal

C1L601_carry_eqn = C1L801;
C1L601 = C1_d_ff[11] & C1L601_carry_eqn & C1_comp[11] # !C1_d_ff[11] & (C1L601_carry_eqn # C1_comp[11]);


--C1_\process4:B is step_motor:inst1|\process4:B at LC_X6_Y1_N7
--operation mode is normal

C1_\process4:B_lut_out = !D;
C1_\process4:B = DFFEAS(C1_\process4:B_lut_out, GLOBAL(B1_QN[16]), VCC, , , , , , );


--C1L8 is step_motor:inst1|B~5 at LC_X6_Y1_N6
--operation mode is normal

C1L8 = C1_\process4:B & D;


--C1_B is step_motor:inst1|B at LC_X6_Y1_N9
--operation mode is normal

C1_B_lut_out = !P;
C1_B = DFFEAS(C1_B_lut_out, GLOBAL(B1_QN[16]), VCC, , , , , , );


--C1L7 is step_motor:inst1|B~1 at LC_X5_Y1_N6
--operation mode is normal

C1L7 = C1_B & P;


--B1_QN[17] is fenping:inst|QN[17] at LC_X3_Y3_N8
--operation mode is normal

B1_QN[17]_carry_eqn = (!B1L04 & B1L84) # (B1L04 & B1L94);
B1_QN[17]_lut_out = B1_QN[17]_carry_eqn $ !B1_QN[17];
B1_QN[17] = DFFEAS(B1_QN[17]_lut_out, GLOBAL(GCLK3), VCC, , , ~GND, B1_QN[17], , );


--B1_QN[15] is fenping:inst|QN[15] at LC_X3_Y3_N6
--operation mode is arithmetic

B1_QN[15]_carry_eqn = (!B1L04 & B1L24) # (B1L04 & B1L34);
B1_QN[15]_lut_out = B1_QN[15] $ (!B1_QN[15]_carry_eqn);
B1_QN[15] = DFFEAS(B1_QN[15]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );

--B1L54 is fenping:inst|QN[15]~135 at LC_X3_Y3_N6
--operation mode is arithmetic

B1L54_cout_0 = !B1_QN[15] & (!B1L24);
B1L54 = CARRY(B1L54_cout_0);

--B1L64 is fenping:inst|QN[15]~135COUT1_238 at LC_X3_Y3_N6
--operation mode is arithmetic

B1L64_cout_1 = !B1_QN[15] & (!B1L34);
B1L64 = CARRY(B1L64_cout_1);


--C1_d_ff[11] is step_motor:inst1|d_ff[11] at LC_X7_Y3_N5
--operation mode is normal

C1_d_ff[11]_carry_eqn = C1L97;
C1_d_ff[11]_lut_out = C1_d_ff[11] $ (C1_d_ff[11]_carry_eqn);
C1_d_ff[11] = DFFEAS(C1_d_ff[11]_lut_out, GLOBAL(B1_QN[16]), VCC, , , , , !C1L601, );


--C1_comp[11] is step_motor:inst1|comp[11] at LC_X5_Y2_N6
--operation mode is normal

C1_comp[11]_carry_eqn = (!C1L44 & C1L64) # (C1L44 & C1L74);
C1_comp[11]_lut_out = SPEED[0] $ (C1_comp[11]_carry_eqn $ !C1_comp[11]);
C1_comp[11] = DFFEAS(C1_comp[11]_lut_out, GLOBAL(C1_osc), VCC, , C1L81, ~GND, , , C1L21);


--C1L801 is step_motor:inst1|LessThan~539 at LC_X5_Y3_N4
--operation mode is arithmetic

C1L801 = CARRY(C1_d_ff[10] & C1_comp[10] & !C1L111 # !C1_d_ff[10] & (C1_comp[10] # !C1L111));


--B1_QN[14] is fenping:inst|QN[14] at LC_X3_Y3_N5
--operation mode is arithmetic

B1_QN[14]_carry_eqn = B1L04;
B1_QN[14]_lut_out = B1_QN[14] $ (B1_QN[14]_carry_eqn);
B1_QN[14] = DFFEAS(B1_QN[14]_lut_out, GLOBAL(GCLK3), VCC, , , VCC, B1_QN[17], , );

--B1L24 is fenping:inst|QN[14]~139 at LC_X3_Y3_N5
--operation mode is arithmetic

B1L24_cout_0 = B1_QN[14] # !B1L04;
B1L24 = CARRY(B1L24_cout_0);

--B1L34 is fenping:inst|QN[14]~139COUT1_236 at LC_X3_Y3_N5
--operation mode is arithmetic

B1L34_cout_1 = B1_QN[14] # !B1L04;
B1L34 = CARRY(B1L34_cout_1);


--C1_d_ff[10] is step_motor:inst1|d_ff[10] at LC_X7_Y3_N4
--operation mode is arithmetic

C1_d_ff[10]_carry_eqn = (!C1L56 & C1L67) # (C1L56 & C1L77);
C1_d_ff[10]_lut_out = C1_d_ff[10] $ (!C1_d_ff[10]_carry_eqn);
C1_d_ff[10] = DFFEAS(C1_d_ff[10]_lut_out, GLOBAL(B1_QN[16]), VCC, , , , , !C1L601, );

--C1L97 is step_motor:inst1|d_ff[10]~126 at LC_X7_Y3_N4
--operation mode is arithmetic

C1L97 = CARRY(C1_d_ff[10] & (!C1L77));


--C1_osc is step_motor:inst1|osc at LC_X2_Y3_N0
--operation mode is normal

C1_osc_lut_out = !C1_osc;
C1_osc = DFFEAS(C1_osc_lut_out, GLOBAL(B1_QN[16]), VCC, , C1L211, , , , );


--C1L21 is step_motor:inst1|comp[0]~459 at LC_X5_Y2_N9
--operation mode is normal

C1L21 = SPEED[0] $ !SPEED[1];


--C1_comp[2] is step_motor:inst1|comp[2] at LC_X4_Y2_N7
--operation mode is arithmetic

C1_comp[2]_carry_eqn = (!C1L91 & C1L12) # (C1L91 & C1L22);
C1_comp[2]_lut_out = SPEED[0] $ C1_comp[2] $ C1_comp[2]_carry_eqn;
C1_comp[2] = DFFEAS(C1_comp[2]_lut_out, GLOBAL(C1_osc), VCC, , C1L81, ~GND, , , C1L21);

--C1L42 is step_motor:inst1|comp[2]~461 at LC_X4_Y2_N7
--operation mode is arithmetic

C1L42_cout_0 = SPEED[0] & !C1_comp[2] & !C1L12 # !SPEED[0] & (!C1L12 # !C1_comp[2]);
C1L42 = CARRY(C1L42_cout_0);

--C1L52 is step_motor:inst1|comp[2]~461COUT1_528 at LC_X4_Y2_N7
--operation mode is arithmetic

C1L52_cout_1 = SPEED[0] & !C1_comp[2] & !C1L22 # !SPEED[0] & (!C1L22 # !C1_comp[2]);
C1L52 = CARRY(C1L52_cout_1);


--C1_comp[3] is step_motor:inst1|comp[3] at LC_X4_Y2_N8
--operation mode is arithmetic

C1_comp[3]_carry_eqn = (!C1L91 & C1L42) # (C1L91 & C1L52);
C1_comp[3]_lut_out = C1_comp[3] $ SPEED[0] $ !C1_comp[3]_carry_eqn;
C1_comp[3] = DFFEAS(C1_comp[3]_lut_out, GLOBAL(C1_osc), VCC, , C1L81, ~GND, , , C1L21);

--C1L72 is step_motor:inst1|comp[3]~465 at LC_X4_Y2_N8
--operation mode is arithmetic

C1L72_cout_0 = C1_comp[3] & (SPEED[0] # !C1L42) # !C1_comp[3] & SPEED[0] & !C1L42;
C1L72 = CARRY(C1L72_cout_0);

--C1L82 is step_motor:inst1|comp[3]~465COUT1_530 at LC_X4_Y2_N8
--operation mode is arithmetic

C1L82_cout_1 = C1_comp[3] & (SPEED[0] # !C1L52) # !C1_comp[3] & SPEED[0] & !C1L52;
C1L82 = CARRY(C1L82_cout_1);


--C1_comp[4] is step_motor:inst1|comp[4] at LC_X4_Y2_N9
--operation mode is arithmetic

C1_comp[4]_carry_eqn = (!C1L91 & C1L72) # (C1L91 & C1L82);
C1_comp[4]_lut_out = SPEED[0] $ C1_comp[4] $ C1_comp[4]_carry_eqn;
C1_comp[4] = DFFEAS(C1_comp[4]_lut_out, GLOBAL(C1_osc), VCC, , C1L81, ~GND, , , C1L21);

--C1L03 is step_motor:inst1|comp[4]~469 at LC_X4_Y2_N9
--operation mode is arithmetic

C1L03 = CARRY(SPEED[0] & !C1_comp[4] & !C1L82 # !SPEED[0] & (!C1L82 # !C1_comp[4]));


--C1_comp[5] is step_motor:inst1|comp[5] at LC_X5_Y2_N0
--operation mode is arithmetic

C1_comp[5]_carry_eqn = C1L03;
C1_comp[5]_lut_out = SPEED[0] $ C1_comp[5] $ !C1_comp[5]_carry_eqn;
C1_comp[5] = DFFEAS(C1_comp[5]_lut_out, GLOBAL(C1_osc), VCC, , C1L81, ~GND, , , C1L21);

--C1L23 is step_motor:inst1|comp[5]~473 at LC_X5_Y2_N0
--operation mode is arithmetic

C1L23_cout_0 = SPEED[0] & (C1_comp[5] # !C1L03) # !SPEED[0] & C1_comp[5] & !C1L03;
C1L23 = CARRY(C1L23_cout_0);

--C1L33 is step_motor:inst1|comp[5]~473COUT1_532 at LC_X5_Y2_N0
--operation mode is arithmetic

C1L33_cout_1 = SPEED[0] & (C1_comp[5] # !C1L03) # !SPEED[0] & C1_comp[5] & !C1L03;
C1L33 = CARRY(C1L33_cout_1);


--C1L2 is step_motor:inst1|add~778 at LC_X4_Y2_N3
--operation mode is normal

C1L2 = !C1_comp[3] & !C1_comp[2] & !C1_comp[5] & !C1_comp[4];


--C1_comp[9] is step_motor:inst1|comp[9] at LC_X5_Y2_N4
--operation mode is arithmetic

C1_comp[9]_carry_eqn = (!C1L03 & C1L14) # (C1L03 & C1L24);
C1_comp[9]_lut_out = SPEED[0] $ C1_comp[9] $ !C1_comp[9]_carry_eqn;
C1_comp[9] = DFFEAS(C1_comp[9]_lut_out, GLOBAL(C1_osc), VCC, , C1L81, ~GND, , , C1L21);

--C1L44 is step_motor:inst1|comp[9]~477 at LC_X5_Y2_N4
--operation mode is arithmetic

C1L44 = CARRY(SPEED[0] & (C1_comp[9] # !C1L24) # !SPEED[0] & C1_comp[9] & !C1L24);


--C1_comp[10] is step_motor:inst1|comp[10] at LC_X5_Y2_N5
--operation mode is arithmetic

C1_comp[10]_carry_eqn = C1L44;
C1_comp[10]_lut_out = C1_comp[10] $ SPEED[0] $ C1_comp[10]_carry_eqn;
C1_comp[10] = DFFEAS(C1_comp[10]_lut_out, GLOBAL(C1_osc), VCC, , C1L81, ~GND, , , C1L21);

--C1L64 is step_motor:inst1|comp[10]~481 at LC_X5_Y2_N5
--operation mode is arithmetic

C1L64_cout_0 = C1_comp[10] & !SPEED[0] & !C1L44 # !C1_comp[10] & (!C1L44 # !SPEED[0]);
C1L64 = CARRY(C1L64_cout_0);

--C1L74 is step_motor:inst1|comp[10]~481COUT1_540 at LC_X5_Y2_N5
--operation mode is arithmetic

C1L74_cout_1 = C1_comp[10] & !SPEED[0] & !C1L44 # !C1_comp[10] & (!C1L44 # !SPEED[0]);
C1L74 = CARRY(C1L74_cout_1);


--C1_comp[6] is step_motor:inst1|comp[6] at LC_X5_Y2_N1
--operation mode is arithmetic

C1_comp[6]_carry_eqn = (!C1L03 & C1L23) # (C1L03 & C1L33);
C1_comp[6]_lut_out = SPEED[0] $ C1_comp[6] $ C1_comp[6]_carry_eqn;
C1_comp[6] = DFFEAS(C1_comp[6]_lut_out, GLOBAL(C1_osc), VCC, , C1L81, ~GND, , , C1L21);

--C1L53 is step_motor:inst1|comp[6]~485 at LC_X5_Y2_N1
--operation mode is arithmetic

C1L53_cout_0 = SPEED[0] & !C1_comp[6] & !C1L23 # !SPEED[0] & (!C1L23 # !C1_comp[6]);
C1L53 = CARRY(C1L53_cout_0);

--C1L63 is step_motor:inst1|comp[6]~485COUT1_534 at LC_X5_Y2_N1
--operation mode is arithmetic

C1L63_cout_1 = SPEED[0] & !C1_comp[6] & !C1L33 # !SPEED[0] & (!C1L33 # !C1_comp[6]);
C1L63 = CARRY(C1L63_cout_1);


--C1L31 is step_motor:inst1|comp[0]~488 at LC_X6_Y2_N0
--operation mode is normal

C1L31 = !C1_comp[6] & !C1_comp[9] & !C1_comp[11] & !C1_comp[10];


--C1_comp[7] is step_motor:inst1|comp[7] at LC_X5_Y2_N2
--operation mode is arithmetic

C1_comp[7]_carry_eqn = (!C1L03 & C1L53) # (C1L03 & C1L63);
C1_comp[7]_lut_out = SPEED[0] $ C1_comp[7] $ !C1_comp[7]_carry_eqn;
C1_comp[7] = DFFEAS(C1_comp[7]_lut_out, GLOBAL(C1_osc), VCC, , C1L81, ~GND, , , C1L21);

--C1L83 is step_motor:inst1|comp[7]~490 at LC_X5_Y2_N2
--operation mode is arithmetic

C1L83_cout_0 = SPEED[0] & (C1_comp[7] # !C1L53) # !SPEED[0] & C1_comp[7] & !C1L53;
C1L83 = CARRY(C1L83_cout_0);

--C1L93 is step_motor:inst1|comp[7]~490COUT1_536 at LC_X5_Y2_N2
--operation mode is arithmetic

C1L93_cout_1 = SPEED[0] & (C1_comp[7] # !C1L63) # !SPEED[0] & C1_comp[7] & !C1L63;
C1L93 = CARRY(C1L93_cout_1);


--C1_comp[8] is step_motor:inst1|comp[8] at LC_X5_Y2_N3
--operation mode is arithmetic

C1_comp[8]_carry_eqn = (!C1L03 & C1L83) # (C1L03 & C1L93);
C1_comp[8]_lut_out = C1_comp[8] $ SPEED[0] $ C1_comp[8]_carry_eqn;
C1_comp[8] = DFFEAS(C1_comp[8]_lut_out, GLOBAL(C1_osc), VCC, , C1L81, ~GND, , , C1L21);

--C1L14 is step_motor:inst1|comp[8]~494 at LC_X5_Y2_N3
--operation mode is arithmetic

C1L14_cout_0 = C1_comp[8] & !SPEED[0] & !C1L83 # !C1_comp[8] & (!C1L83 # !SPEED[0]);
C1L14 = CARRY(C1L14_cout_0);

--C1L24 is step_motor:inst1|comp[8]~494COUT1_538 at LC_X5_Y2_N3
--operation mode is arithmetic

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -