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

📄 lcnt8.fit.eqn

📁 这个是用VHDL实现的正负脉宽调制器
💻 EQN
字号:
-- Copyright (C) 1991-2006 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.
--inst6 is inst6 at LC_X11_Y10_N8
--operation mode is normal

inst6_lut_out = VCC;
inst6 = DFFEAS(inst6_lut_out, B2L3, !B1L3, , , , , , );


--B2_count[2] is lcnt:inst1|count[2] at LC_X11_Y10_N2
--operation mode is arithmetic

B2_count[2]_lut_out = B2_count[2] $ (!B2L9);
B2_count[2] = DFFEAS(B2_count[2]_lut_out, GLOBAL(clk), VCC, , , b[2], , , inst6);

--B2L12 is lcnt:inst1|count[2]~113 at LC_X11_Y10_N2
--operation mode is arithmetic

B2L12_cout_0 = B2_count[2] & (!B2L9);
B2L12 = CARRY(B2L12_cout_0);

--B2L13 is lcnt:inst1|count[2]~113COUT1_147 at LC_X11_Y10_N2
--operation mode is arithmetic

B2L13_cout_1 = B2_count[2] & (!B2L10);
B2L13 = CARRY(B2L13_cout_1);


--B2_count[3] is lcnt:inst1|count[3] at LC_X11_Y10_N3
--operation mode is arithmetic

B2_count[3]_lut_out = B2_count[3] $ B2L12;
B2_count[3] = DFFEAS(B2_count[3]_lut_out, GLOBAL(clk), VCC, , , b[3], , , inst6);

--B2L15 is lcnt:inst1|count[3]~117 at LC_X11_Y10_N3
--operation mode is arithmetic

B2L15_cout_0 = !B2L12 # !B2_count[3];
B2L15 = CARRY(B2L15_cout_0);

--B2L16 is lcnt:inst1|count[3]~117COUT1 at LC_X11_Y10_N3
--operation mode is arithmetic

B2L16_cout_1 = !B2L13 # !B2_count[3];
B2L16 = CARRY(B2L16_cout_1);


--B2_count[0] is lcnt:inst1|count[0] at LC_X11_Y10_N0
--operation mode is arithmetic

B2_count[0]_lut_out = !B2_count[0];
B2_count[0] = DFFEAS(B2_count[0]_lut_out, GLOBAL(clk), VCC, , , b[0], , , inst6);

--B2L6 is lcnt:inst1|count[0]~121 at LC_X11_Y10_N0
--operation mode is arithmetic

B2L6_cout_0 = B2_count[0];
B2L6 = CARRY(B2L6_cout_0);

--B2L7 is lcnt:inst1|count[0]~121COUT1_145 at LC_X11_Y10_N0
--operation mode is arithmetic

B2L7_cout_1 = B2_count[0];
B2L7 = CARRY(B2L7_cout_1);


--B2_count[1] is lcnt:inst1|count[1] at LC_X11_Y10_N1
--operation mode is arithmetic

B2_count[1]_lut_out = B2_count[1] $ (B2L6);
B2_count[1] = DFFEAS(B2_count[1]_lut_out, GLOBAL(clk), VCC, , , b[1], , , inst6);

--B2L9 is lcnt:inst1|count[1]~125 at LC_X11_Y10_N1
--operation mode is arithmetic

B2L9_cout_0 = !B2L6 # !B2_count[1];
B2L9 = CARRY(B2L9_cout_0);

--B2L10 is lcnt:inst1|count[1]~125COUT1_146 at LC_X11_Y10_N1
--operation mode is arithmetic

B2L10_cout_1 = !B2L7 # !B2_count[1];
B2L10 = CARRY(B2L10_cout_1);


--B2L1 is lcnt:inst1|cao~64 at LC_X10_Y10_N1
--operation mode is normal

B2L1 = B2_count[0] & B2_count[1];


--B2_count[4] is lcnt:inst1|count[4] at LC_X11_Y10_N4
--operation mode is arithmetic

B2_count[4]_lut_out = B2_count[4] $ !B2L15;
B2_count[4] = DFFEAS(B2_count[4]_lut_out, GLOBAL(clk), VCC, , , b[4], , , inst6);

--B2L18 is lcnt:inst1|count[4]~129 at LC_X11_Y10_N4
--operation mode is arithmetic

B2L18 = B2L19;


--B2_count[5] is lcnt:inst1|count[5] at LC_X11_Y10_N5
--operation mode is arithmetic

B2_count[5]_carry_eqn = (!B2L18 & GND) # (B2L18 & VCC);
B2_count[5]_lut_out = B2_count[5] $ B2_count[5]_carry_eqn;
B2_count[5] = DFFEAS(B2_count[5]_lut_out, GLOBAL(clk), VCC, , , b[5], , , inst6);

--B2L22 is lcnt:inst1|count[5]~133 at LC_X11_Y10_N5
--operation mode is arithmetic

B2L22_cout_0 = !B2L18 # !B2_count[5];
B2L22 = CARRY(B2L22_cout_0);

--B2L23 is lcnt:inst1|count[5]~133COUT1_148 at LC_X11_Y10_N5
--operation mode is arithmetic

B2L23_cout_1 = !B2L18 # !B2_count[5];
B2L23 = CARRY(B2L23_cout_1);


--B2_count[6] is lcnt:inst1|count[6] at LC_X11_Y10_N6
--operation mode is arithmetic

B2_count[6]_carry_eqn = (!B2L18 & B2L22) # (B2L18 & B2L23);
B2_count[6]_lut_out = B2_count[6] $ (!B2_count[6]_carry_eqn);
B2_count[6] = DFFEAS(B2_count[6]_lut_out, GLOBAL(clk), VCC, , , b[6], , , inst6);

--B2L25 is lcnt:inst1|count[6]~137 at LC_X11_Y10_N6
--operation mode is arithmetic

B2L25_cout_0 = B2_count[6] & (!B2L22);
B2L25 = CARRY(B2L25_cout_0);

--B2L26 is lcnt:inst1|count[6]~137COUT1_149 at LC_X11_Y10_N6
--operation mode is arithmetic

B2L26_cout_1 = B2_count[6] & (!B2L23);
B2L26 = CARRY(B2L26_cout_1);


--B2_count[7] is lcnt:inst1|count[7] at LC_X11_Y10_N7
--operation mode is normal

B2_count[7]_carry_eqn = (!B2L18 & B2L25) # (B2L18 & B2L26);
B2_count[7]_lut_out = B2_count[7] $ (B2_count[7]_carry_eqn);
B2_count[7] = DFFEAS(B2_count[7]_lut_out, GLOBAL(clk), VCC, , , b[7], , , inst6);


--B2L2 is lcnt:inst1|cao~65 at LC_X11_Y10_N9
--operation mode is normal

B2L2 = B2_count[7] & B2_count[5] & B2_count[4] & B2_count[6];


--B2L3 is lcnt:inst1|cao~66 at LC_X10_Y10_N2
--operation mode is normal

B2L3 = B2_count[3] & B2L2 & B2_count[2] & B2L1;


--B1_count[2] is lcnt:inst|count[2] at LC_X12_Y10_N2
--operation mode is arithmetic

B1_count[2]_lut_out = B1_count[2] $ (!B1L9);
B1_count[2] = DFFEAS(B1_count[2]_lut_out, GLOBAL(clk), VCC, , , a[2], , , !inst6);

--B1L12 is lcnt:inst|count[2]~113 at LC_X12_Y10_N2
--operation mode is arithmetic

B1L12_cout_0 = B1_count[2] & (!B1L9);
B1L12 = CARRY(B1L12_cout_0);

--B1L13 is lcnt:inst|count[2]~113COUT1_147 at LC_X12_Y10_N2
--operation mode is arithmetic

B1L13_cout_1 = B1_count[2] & (!B1L10);
B1L13 = CARRY(B1L13_cout_1);


--B1_count[3] is lcnt:inst|count[3] at LC_X12_Y10_N3
--operation mode is arithmetic

B1_count[3]_lut_out = B1_count[3] $ B1L12;
B1_count[3] = DFFEAS(B1_count[3]_lut_out, GLOBAL(clk), VCC, , , a[3], , , !inst6);

--B1L15 is lcnt:inst|count[3]~117 at LC_X12_Y10_N3
--operation mode is arithmetic

B1L15_cout_0 = !B1L12 # !B1_count[3];
B1L15 = CARRY(B1L15_cout_0);

--B1L16 is lcnt:inst|count[3]~117COUT1 at LC_X12_Y10_N3
--operation mode is arithmetic

B1L16_cout_1 = !B1L13 # !B1_count[3];
B1L16 = CARRY(B1L16_cout_1);


--B1_count[0] is lcnt:inst|count[0] at LC_X12_Y10_N0
--operation mode is arithmetic

B1_count[0]_lut_out = !B1_count[0];
B1_count[0] = DFFEAS(B1_count[0]_lut_out, GLOBAL(clk), VCC, , , a[0], , , !inst6);

--B1L6 is lcnt:inst|count[0]~121 at LC_X12_Y10_N0
--operation mode is arithmetic

B1L6_cout_0 = B1_count[0];
B1L6 = CARRY(B1L6_cout_0);

--B1L7 is lcnt:inst|count[0]~121COUT1_145 at LC_X12_Y10_N0
--operation mode is arithmetic

B1L7_cout_1 = B1_count[0];
B1L7 = CARRY(B1L7_cout_1);


--B1_count[1] is lcnt:inst|count[1] at LC_X12_Y10_N1
--operation mode is arithmetic

B1_count[1]_lut_out = B1_count[1] $ (B1L6);
B1_count[1] = DFFEAS(B1_count[1]_lut_out, GLOBAL(clk), VCC, , , a[1], , , !inst6);

--B1L9 is lcnt:inst|count[1]~125 at LC_X12_Y10_N1
--operation mode is arithmetic

B1L9_cout_0 = !B1L6 # !B1_count[1];
B1L9 = CARRY(B1L9_cout_0);

--B1L10 is lcnt:inst|count[1]~125COUT1_146 at LC_X12_Y10_N1
--operation mode is arithmetic

B1L10_cout_1 = !B1L7 # !B1_count[1];
B1L10 = CARRY(B1L10_cout_1);


--B1L1 is lcnt:inst|cao~64 at LC_X12_Y9_N2
--operation mode is normal

B1L1 = B1_count[0] & B1_count[1];


--B1_count[4] is lcnt:inst|count[4] at LC_X12_Y10_N4
--operation mode is arithmetic

B1_count[4]_lut_out = B1_count[4] $ !B1L15;
B1_count[4] = DFFEAS(B1_count[4]_lut_out, GLOBAL(clk), VCC, , , a[4], , , !inst6);

--B1L18 is lcnt:inst|count[4]~129 at LC_X12_Y10_N4
--operation mode is arithmetic

B1L18 = B1L19;


--B1_count[5] is lcnt:inst|count[5] at LC_X12_Y10_N5
--operation mode is arithmetic

B1_count[5]_carry_eqn = (!B1L18 & GND) # (B1L18 & VCC);
B1_count[5]_lut_out = B1_count[5] $ B1_count[5]_carry_eqn;
B1_count[5] = DFFEAS(B1_count[5]_lut_out, GLOBAL(clk), VCC, , , a[5], , , !inst6);

--B1L22 is lcnt:inst|count[5]~133 at LC_X12_Y10_N5
--operation mode is arithmetic

B1L22_cout_0 = !B1L18 # !B1_count[5];
B1L22 = CARRY(B1L22_cout_0);

--B1L23 is lcnt:inst|count[5]~133COUT1_148 at LC_X12_Y10_N5
--operation mode is arithmetic

B1L23_cout_1 = !B1L18 # !B1_count[5];
B1L23 = CARRY(B1L23_cout_1);


--B1_count[6] is lcnt:inst|count[6] at LC_X12_Y10_N6
--operation mode is arithmetic

B1_count[6]_carry_eqn = (!B1L18 & B1L22) # (B1L18 & B1L23);
B1_count[6]_lut_out = B1_count[6] $ (!B1_count[6]_carry_eqn);
B1_count[6] = DFFEAS(B1_count[6]_lut_out, GLOBAL(clk), VCC, , , a[6], , , !inst6);

--B1L25 is lcnt:inst|count[6]~137 at LC_X12_Y10_N6
--operation mode is arithmetic

B1L25_cout_0 = B1_count[6] & (!B1L22);
B1L25 = CARRY(B1L25_cout_0);

--B1L26 is lcnt:inst|count[6]~137COUT1_149 at LC_X12_Y10_N6
--operation mode is arithmetic

B1L26_cout_1 = B1_count[6] & (!B1L23);
B1L26 = CARRY(B1L26_cout_1);


--B1_count[7] is lcnt:inst|count[7] at LC_X12_Y10_N7
--operation mode is normal

B1_count[7]_carry_eqn = (!B1L18 & B1L25) # (B1L18 & B1L26);
B1_count[7]_lut_out = B1_count[7] $ (B1_count[7]_carry_eqn);
B1_count[7] = DFFEAS(B1_count[7]_lut_out, GLOBAL(clk), VCC, , , a[7], , , !inst6);


--B1L2 is lcnt:inst|cao~65 at LC_X12_Y10_N9
--operation mode is normal

B1L2 = B1_count[7] & B1_count[5] & B1_count[4] & B1_count[6];


--B1L3 is lcnt:inst|cao~66 at LC_X12_Y10_N8
--operation mode is normal

B1L3 = B1L2 & B1_count[3] & B1_count[2] & B1L1;


--clk is clk at PIN_10
--operation mode is input

clk = INPUT();


--b[2] is b[2] at PIN_91
--operation mode is input

b[2] = INPUT();


--b[3] is b[3] at PIN_3
--operation mode is input

b[3] = INPUT();


--b[0] is b[0] at PIN_5
--operation mode is input

b[0] = INPUT();


--b[1] is b[1] at PIN_4
--operation mode is input

b[1] = INPUT();


--b[4] is b[4] at PIN_97
--operation mode is input

b[4] = INPUT();


--b[5] is b[5] at PIN_2
--operation mode is input

b[5] = INPUT();


--b[6] is b[6] at PIN_71
--operation mode is input

b[6] = INPUT();


--b[7] is b[7] at PIN_90
--operation mode is input

b[7] = INPUT();


--a[2] is a[2] at PIN_87
--operation mode is input

a[2] = INPUT();


--a[3] is a[3] at PIN_85
--operation mode is input

a[3] = INPUT();


--a[0] is a[0] at PIN_39
--operation mode is input

a[0] = INPUT();


--a[1] is a[1] at PIN_86
--operation mode is input

a[1] = INPUT();


--a[4] is a[4] at PIN_36
--operation mode is input

a[4] = INPUT();


--a[5] is a[5] at PIN_88
--operation mode is input

a[5] = INPUT();


--a[6] is a[6] at PIN_92
--operation mode is input

a[6] = INPUT();


--a[7] is a[7] at PIN_37
--operation mode is input

a[7] = INPUT();


--psout is psout at PIN_89
--operation mode is output

psout = OUTPUT(inst6);




⌨️ 快捷键说明

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