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

📄 pwm.fit.eqn

📁 实现PWM波型....使用VHDL语言
💻 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.
--theout is theout at LC_X34_Y14_N9
--operation mode is normal

theout_lut_out = !A1L63;
theout = DFFEAS(theout_lut_out, GLOBAL(countclk), VCC, , A1L98, , , , );


--A1L63 is LessThan~105 at LC_X34_Y14_N7
--operation mode is normal

A1L63_carry_eqn = (!A1L44 & A1L83) # (A1L44 & A1L93);
A1L63 = mycounter[7] & (A1L63_carry_eqn # !dat[7]) # !mycounter[7] & (A1L63_carry_eqn & !dat[7]);


--fenpincount[2] is fenpincount[2] at LC_X36_Y14_N2
--operation mode is arithmetic

fenpincount[2]_lut_out = fenpincount[2] $ (A1L61);
fenpincount[2] = DFFEAS(fenpincount[2]_lut_out, GLOBAL(countclk), VCC, , A1L53, , , , );

--A1L91 is fenpincount[2]~178 at LC_X36_Y14_N2
--operation mode is arithmetic

A1L91_cout_0 = fenpincount[2] # !A1L61;
A1L91 = CARRY(A1L91_cout_0);

--A1L02 is fenpincount[2]~178COUT1_212 at LC_X36_Y14_N2
--operation mode is arithmetic

A1L02_cout_1 = fenpincount[2] # !A1L71;
A1L02 = CARRY(A1L02_cout_1);


--fenpincount[3] is fenpincount[3] at LC_X36_Y14_N3
--operation mode is arithmetic

fenpincount[3]_lut_out = fenpincount[3] $ (!A1L91);
fenpincount[3] = DFFEAS(fenpincount[3]_lut_out, GLOBAL(countclk), VCC, , A1L53, , , , );

--A1L22 is fenpincount[3]~182 at LC_X36_Y14_N3
--operation mode is arithmetic

A1L22_cout_0 = !fenpincount[3] & (!A1L91);
A1L22 = CARRY(A1L22_cout_0);

--A1L32 is fenpincount[3]~182COUT1 at LC_X36_Y14_N3
--operation mode is arithmetic

A1L32_cout_1 = !fenpincount[3] & (!A1L02);
A1L32 = CARRY(A1L32_cout_1);


--fenpincount[0] is fenpincount[0] at LC_X36_Y14_N0
--operation mode is arithmetic

fenpincount[0]_lut_out = !fenpincount[0];
fenpincount[0] = DFFEAS(fenpincount[0]_lut_out, GLOBAL(countclk), VCC, , A1L53, , , , );

--A1L31 is fenpincount[0]~186 at LC_X36_Y14_N0
--operation mode is arithmetic

A1L31_cout_0 = fenpincount[0];
A1L31 = CARRY(A1L31_cout_0);

--A1L41 is fenpincount[0]~186COUT1_210 at LC_X36_Y14_N0
--operation mode is arithmetic

A1L41_cout_1 = fenpincount[0];
A1L41 = CARRY(A1L41_cout_1);


--fenpincount[1] is fenpincount[1] at LC_X36_Y14_N1
--operation mode is arithmetic

fenpincount[1]_lut_out = fenpincount[1] $ !A1L31;
fenpincount[1] = DFFEAS(fenpincount[1]_lut_out, GLOBAL(countclk), VCC, , A1L53, , , , );

--A1L61 is fenpincount[1]~190 at LC_X36_Y14_N1
--operation mode is arithmetic

A1L61_cout_0 = !fenpincount[1] & !A1L31;
A1L61 = CARRY(A1L61_cout_0);

--A1L71 is fenpincount[1]~190COUT1_211 at LC_X36_Y14_N1
--operation mode is arithmetic

A1L71_cout_1 = !fenpincount[1] & !A1L41;
A1L71 = CARRY(A1L71_cout_1);


--A1L58 is reduce_nor~47 at LC_X36_Y14_N9
--operation mode is normal

A1L58 = fenpincount[1] # fenpincount[0];


--fenpincount[4] is fenpincount[4] at LC_X36_Y14_N4
--operation mode is arithmetic

fenpincount[4]_lut_out = fenpincount[4] $ (A1L22);
fenpincount[4] = DFFEAS(fenpincount[4]_lut_out, GLOBAL(countclk), VCC, , A1L53, , , , );

--A1L52 is fenpincount[4]~194 at LC_X36_Y14_N4
--operation mode is arithmetic

A1L52 = A1L62;


--fenpincount[5] is fenpincount[5] at LC_X36_Y14_N5
--operation mode is arithmetic

fenpincount[5]_carry_eqn = (!A1L52 & GND) # (A1L52 & VCC);
fenpincount[5]_lut_out = fenpincount[5] $ !fenpincount[5]_carry_eqn;
fenpincount[5] = DFFEAS(fenpincount[5]_lut_out, GLOBAL(countclk), VCC, , A1L53, , , , );

--A1L92 is fenpincount[5]~198 at LC_X36_Y14_N5
--operation mode is arithmetic

A1L92_cout_0 = !fenpincount[5] & !A1L52;
A1L92 = CARRY(A1L92_cout_0);

--A1L03 is fenpincount[5]~198COUT1_213 at LC_X36_Y14_N5
--operation mode is arithmetic

A1L03_cout_1 = !fenpincount[5] & !A1L52;
A1L03 = CARRY(A1L03_cout_1);


--fenpincount[6] is fenpincount[6] at LC_X36_Y14_N6
--operation mode is arithmetic

fenpincount[6]_carry_eqn = (!A1L52 & A1L92) # (A1L52 & A1L03);
fenpincount[6]_lut_out = fenpincount[6] $ fenpincount[6]_carry_eqn;
fenpincount[6] = DFFEAS(fenpincount[6]_lut_out, GLOBAL(countclk), VCC, , A1L53, , , , );

--A1L23 is fenpincount[6]~202 at LC_X36_Y14_N6
--operation mode is arithmetic

A1L23_cout_0 = fenpincount[6] # !A1L92;
A1L23 = CARRY(A1L23_cout_0);

--A1L33 is fenpincount[6]~202COUT1_214 at LC_X36_Y14_N6
--operation mode is arithmetic

A1L33_cout_1 = fenpincount[6] # !A1L03;
A1L33 = CARRY(A1L33_cout_1);


--fenpincount[7] is fenpincount[7] at LC_X36_Y14_N7
--operation mode is normal

fenpincount[7]_carry_eqn = (!A1L52 & A1L23) # (A1L52 & A1L33);
fenpincount[7]_lut_out = fenpincount[7] $ (!fenpincount[7]_carry_eqn);
fenpincount[7] = DFFEAS(fenpincount[7]_lut_out, GLOBAL(countclk), VCC, , A1L53, , , , );


--A1L68 is reduce_nor~48 at LC_X35_Y14_N9
--operation mode is normal

A1L68 = fenpincount[4] # fenpincount[6] # fenpincount[7] # fenpincount[5];


--A1L48 is reduce_nor~0 at LC_X35_Y14_N8
--operation mode is normal

A1L48 = fenpincount[3] # fenpincount[2] # A1L68 # A1L58;


--A1L98 is theout~0 at LC_X34_Y14_N8
--operation mode is normal

A1L98 = !A1L48 & !rs;


--mycounter[7] is mycounter[7] at LC_X35_Y14_N7
--operation mode is normal

mycounter[7]_carry_eqn = (!A1L37 & A1L08) # (A1L37 & A1L18);
mycounter[7]_lut_out = mycounter[7] $ (mycounter[7]_carry_eqn);
mycounter[7] = DFFEAS(mycounter[7]_lut_out, GLOBAL(countclk), VCC, , , , , rs, );


--A1L83 is LessThan~112 at LC_X34_Y14_N6
--operation mode is arithmetic

A1L83_cout_0 = dat[6] & mycounter[6] & !A1L14 # !dat[6] & (mycounter[6] # !A1L14);
A1L83 = CARRY(A1L83_cout_0);

--A1L93 is LessThan~112COUT1_150 at LC_X34_Y14_N6
--operation mode is arithmetic

A1L93_cout_1 = dat[6] & mycounter[6] & !A1L24 # !dat[6] & (mycounter[6] # !A1L24);
A1L93 = CARRY(A1L93_cout_1);


--A1L53 is fenpincount[7]~0 at LC_X36_Y14_N8
--operation mode is normal

A1L53 = !rs & A1L48;


--mycounter[6] is mycounter[6] at LC_X35_Y14_N6
--operation mode is arithmetic

mycounter[6]_carry_eqn = (!A1L37 & A1L77) # (A1L37 & A1L87);
mycounter[6]_lut_out = mycounter[6] $ !mycounter[6]_carry_eqn;
mycounter[6] = DFFEAS(mycounter[6]_lut_out, GLOBAL(countclk), VCC, , , , , rs, );

--A1L08 is mycounter[6]~94 at LC_X35_Y14_N6
--operation mode is arithmetic

A1L08_cout_0 = mycounter[6] & !A1L77;
A1L08 = CARRY(A1L08_cout_0);

--A1L18 is mycounter[6]~94COUT1_126 at LC_X35_Y14_N6
--operation mode is arithmetic

A1L18_cout_1 = mycounter[6] & !A1L87;
A1L18 = CARRY(A1L18_cout_1);


--A1L14 is LessThan~117 at LC_X34_Y14_N5
--operation mode is arithmetic

A1L14_cout_0 = mycounter[5] & dat[5] & !A1L44 # !mycounter[5] & (dat[5] # !A1L44);
A1L14 = CARRY(A1L14_cout_0);

--A1L24 is LessThan~117COUT1_149 at LC_X34_Y14_N5
--operation mode is arithmetic

A1L24_cout_1 = mycounter[5] & dat[5] & !A1L44 # !mycounter[5] & (dat[5] # !A1L44);
A1L24 = CARRY(A1L24_cout_1);


--mycounter[5] is mycounter[5] at LC_X35_Y14_N5
--operation mode is arithmetic

mycounter[5]_carry_eqn = (!A1L37 & GND) # (A1L37 & VCC);
mycounter[5]_lut_out = mycounter[5] $ mycounter[5]_carry_eqn;
mycounter[5] = DFFEAS(mycounter[5]_lut_out, GLOBAL(countclk), VCC, , , , , rs, );

--A1L77 is mycounter[5]~98 at LC_X35_Y14_N5
--operation mode is arithmetic

A1L77_cout_0 = !A1L37 # !mycounter[5];
A1L77 = CARRY(A1L77_cout_0);

--A1L87 is mycounter[5]~98COUT1_125 at LC_X35_Y14_N5
--operation mode is arithmetic

A1L87_cout_1 = !A1L37 # !mycounter[5];
A1L87 = CARRY(A1L87_cout_1);


--A1L44 is LessThan~122 at LC_X34_Y14_N4
--operation mode is arithmetic

A1L44 = A1L54;


--mycounter[4] is mycounter[4] at LC_X35_Y14_N4
--operation mode is arithmetic

mycounter[4]_lut_out = mycounter[4] $ (!A1L07);
mycounter[4] = DFFEAS(mycounter[4]_lut_out, GLOBAL(countclk), VCC, , , , , rs, );

--A1L37 is mycounter[4]~102 at LC_X35_Y14_N4
--operation mode is arithmetic

A1L37 = A1L47;


--A1L84 is LessThan~127 at LC_X34_Y14_N3
--operation mode is arithmetic

A1L84_cout_0 = mycounter[3] & dat[3] & !A1L15 # !mycounter[3] & (dat[3] # !A1L15);
A1L84 = CARRY(A1L84_cout_0);

--A1L94 is LessThan~127COUT1 at LC_X34_Y14_N3
--operation mode is arithmetic

A1L94_cout_1 = mycounter[3] & dat[3] & !A1L25 # !mycounter[3] & (dat[3] # !A1L25);
A1L94 = CARRY(A1L94_cout_1);


--mycounter[3] is mycounter[3] at LC_X35_Y14_N3
--operation mode is arithmetic

mycounter[3]_lut_out = mycounter[3] $ (A1L76);
mycounter[3] = DFFEAS(mycounter[3]_lut_out, GLOBAL(countclk), VCC, , , , , rs, );

--A1L07 is mycounter[3]~106 at LC_X35_Y14_N3
--operation mode is arithmetic

A1L07_cout_0 = !A1L76 # !mycounter[3];
A1L07 = CARRY(A1L07_cout_0);

--A1L17 is mycounter[3]~106COUT1 at LC_X35_Y14_N3
--operation mode is arithmetic

A1L17_cout_1 = !A1L86 # !mycounter[3];
A1L17 = CARRY(A1L17_cout_1);


--A1L15 is LessThan~132 at LC_X34_Y14_N2
--operation mode is arithmetic

A1L15_cout_0 = dat[2] & mycounter[2] & !A1L45 # !dat[2] & (mycounter[2] # !A1L45);
A1L15 = CARRY(A1L15_cout_0);

--A1L25 is LessThan~132COUT1_148 at LC_X34_Y14_N2
--operation mode is arithmetic

A1L25_cout_1 = dat[2] & mycounter[2] & !A1L55 # !dat[2] & (mycounter[2] # !A1L55);
A1L25 = CARRY(A1L25_cout_1);


--mycounter[2] is mycounter[2] at LC_X35_Y14_N2
--operation mode is arithmetic

mycounter[2]_lut_out = mycounter[2] $ (!A1L46);
mycounter[2] = DFFEAS(mycounter[2]_lut_out, GLOBAL(countclk), VCC, , , , , rs, );

--A1L76 is mycounter[2]~110 at LC_X35_Y14_N2
--operation mode is arithmetic

A1L76_cout_0 = mycounter[2] & (!A1L46);
A1L76 = CARRY(A1L76_cout_0);

--A1L86 is mycounter[2]~110COUT1_124 at LC_X35_Y14_N2
--operation mode is arithmetic

A1L86_cout_1 = mycounter[2] & (!A1L56);
A1L86 = CARRY(A1L86_cout_1);


--A1L45 is LessThan~137 at LC_X34_Y14_N1
--operation mode is arithmetic

A1L45_cout_0 = mycounter[1] & dat[1] & !A1L75 # !mycounter[1] & (dat[1] # !A1L75);
A1L45 = CARRY(A1L45_cout_0);

--A1L55 is LessThan~137COUT1_147 at LC_X34_Y14_N1
--operation mode is arithmetic

A1L55_cout_1 = mycounter[1] & dat[1] & !A1L85 # !mycounter[1] & (dat[1] # !A1L85);
A1L55 = CARRY(A1L55_cout_1);


--mycounter[1] is mycounter[1] at LC_X35_Y14_N1
--operation mode is arithmetic

mycounter[1]_lut_out = mycounter[1] $ A1L16;
mycounter[1] = DFFEAS(mycounter[1]_lut_out, GLOBAL(countclk), VCC, , , , , rs, );

--A1L46 is mycounter[1]~114 at LC_X35_Y14_N1
--operation mode is arithmetic

A1L46_cout_0 = !A1L16 # !mycounter[1];
A1L46 = CARRY(A1L46_cout_0);

--A1L56 is mycounter[1]~114COUT1_123 at LC_X35_Y14_N1
--operation mode is arithmetic

A1L56_cout_1 = !A1L26 # !mycounter[1];
A1L56 = CARRY(A1L56_cout_1);


--A1L75 is LessThan~142 at LC_X34_Y14_N0
--operation mode is arithmetic

A1L75_cout_0 = !dat[0] & mycounter[0];
A1L75 = CARRY(A1L75_cout_0);

--A1L85 is LessThan~142COUT1_146 at LC_X34_Y14_N0
--operation mode is arithmetic

A1L85_cout_1 = !dat[0] & mycounter[0];
A1L85 = CARRY(A1L85_cout_1);


--mycounter[0] is mycounter[0] at LC_X35_Y14_N0
--operation mode is arithmetic

mycounter[0]_lut_out = A1L48 $ !mycounter[0];
mycounter[0] = DFFEAS(mycounter[0]_lut_out, GLOBAL(countclk), VCC, , , , , rs, );

--A1L16 is mycounter[0]~118 at LC_X35_Y14_N0
--operation mode is arithmetic

A1L16_cout_0 = !A1L48 & mycounter[0];
A1L16 = CARRY(A1L16_cout_0);

--A1L26 is mycounter[0]~118COUT1_122 at LC_X35_Y14_N0
--operation mode is arithmetic

A1L26_cout_1 = !A1L48 & mycounter[0];
A1L26 = CARRY(A1L26_cout_1);


--countclk is countclk at PIN_M24
--operation mode is input

countclk = INPUT();


--rs is rs at PIN_D17
--operation mode is input

rs = INPUT();


--dat[7] is dat[7] at PIN_AA17
--operation mode is input

dat[7] = INPUT();


--dat[6] is dat[6] at PIN_Y16
--operation mode is input

dat[6] = INPUT();


--dat[5] is dat[5] at PIN_AB16
--operation mode is input

dat[5] = INPUT();


--dat[4] is dat[4] at PIN_AD16
--operation mode is input

dat[4] = INPUT();


--dat[3] is dat[3] at PIN_AD15
--operation mode is input

dat[3] = INPUT();


--dat[2] is dat[2] at PIN_AC15
--operation mode is input

dat[2] = INPUT();


--dat[1] is dat[1] at PIN_AC16
--operation mode is input

dat[1] = INPUT();


--dat[0] is dat[0] at PIN_Y18
--operation mode is input

dat[0] = INPUT();


--pwmout is pwmout at PIN_AF17
--operation mode is output

pwmout = OUTPUT(theout);



⌨️ 快捷键说明

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