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

📄 songer.fit.eqn

📁 基于ALTERA CYCLONE 系列的音乐播放示例实验教程.
💻 EQN
📖 第 1 页 / 共 3 页
字号:
D1L4 = !H1_safe_q[0] # !H1_safe_q[2] # !H1_safe_q[3] # !H1_safe_q[1];


--H1_safe_q[4] is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[4] at LC_X20_Y11_N9
--operation mode is arithmetic

H1_safe_q[4]_lut_out = H1_safe_q[4] $ !H1L33;
H1_safe_q[4]_sload_eqn = (D1L7 & C1L6) # (!D1L7 & H1_safe_q[4]_lut_out);
H1_safe_q[4] = DFFEA(H1_safe_q[4]_sload_eqn, D1L3, VCC, , , , );

--H1L01 is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|counter_cella4~COUT at LC_X20_Y11_N9
--operation mode is arithmetic

H1L01 = CARRY(H1_safe_q[4] & !H1L43);


--H1_safe_q[5] is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[5] at LC_X20_Y10_N0
--operation mode is arithmetic

H1_safe_q[5]_carry_eqn = H1L01;
H1_safe_q[5]_lut_out = H1_safe_q[5] $ H1_safe_q[5]_carry_eqn;
H1_safe_q[5]_sload_eqn = (D1L7 & C1L41) # (!D1L7 & H1_safe_q[5]_lut_out);
H1_safe_q[5] = DFFEA(H1_safe_q[5]_sload_eqn, D1L3, VCC, , , , );

--H1L73 is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[5]~COUT0 at LC_X20_Y10_N0
--operation mode is arithmetic

H1L73_cout_0 = !H1L01 # !H1_safe_q[5];
H1L73 = CARRY(H1L73_cout_0);

--H1L83 is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[5]~COUT1 at LC_X20_Y10_N0
--operation mode is arithmetic

H1L83_cout_1 = !H1L01 # !H1_safe_q[5];
H1L83 = CARRY(H1L83_cout_1);


--H1_safe_q[6] is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[6] at LC_X20_Y10_N1
--operation mode is arithmetic

H1_safe_q[6]_carry_eqn = (!H1L01 & H1L73) # (H1L01 & H1L83);
H1_safe_q[6]_lut_out = H1_safe_q[6] $ !H1_safe_q[6]_carry_eqn;
H1_safe_q[6]_sload_eqn = (D1L7 & C1L7) # (!D1L7 & H1_safe_q[6]_lut_out);
H1_safe_q[6] = DFFEA(H1_safe_q[6]_sload_eqn, D1L3, VCC, , , , );

--H1L04 is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[6]~COUT0 at LC_X20_Y10_N1
--operation mode is arithmetic

H1L04_cout_0 = H1_safe_q[6] & !H1L73;
H1L04 = CARRY(H1L04_cout_0);

--H1L14 is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[6]~COUT1 at LC_X20_Y10_N1
--operation mode is arithmetic

H1L14_cout_1 = H1_safe_q[6] & !H1L83;
H1L14 = CARRY(H1L14_cout_1);


--H1_safe_q[7] is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[7] at LC_X20_Y10_N2
--operation mode is arithmetic

H1_safe_q[7]_carry_eqn = (!H1L01 & H1L04) # (H1L01 & H1L14);
H1_safe_q[7]_lut_out = H1_safe_q[7] $ H1_safe_q[7]_carry_eqn;
H1_safe_q[7]_sload_eqn = (D1L7 & C1L8) # (!D1L7 & H1_safe_q[7]_lut_out);
H1_safe_q[7] = DFFEA(H1_safe_q[7]_sload_eqn, D1L3, VCC, , , , );

--H1L34 is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[7]~COUT0 at LC_X20_Y10_N2
--operation mode is arithmetic

H1L34_cout_0 = !H1L04 # !H1_safe_q[7];
H1L34 = CARRY(H1L34_cout_0);

--H1L44 is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[7]~COUT1 at LC_X20_Y10_N2
--operation mode is arithmetic

H1L44_cout_1 = !H1L14 # !H1_safe_q[7];
H1L44 = CARRY(H1L44_cout_1);


--D1L5 is Speakera:u3|reduce_nor~69 at LC_X20_Y10_N7
--operation mode is normal

D1L5 = !H1_safe_q[4] # !H1_safe_q[7] # !H1_safe_q[5] # !H1_safe_q[6];


--H1_safe_q[9] is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[9] at LC_X20_Y10_N4
--operation mode is arithmetic

H1_safe_q[9]_carry_eqn = (!H1L01 & H1L64) # (H1L01 & H1L74);
H1_safe_q[9]_lut_out = H1_safe_q[9] $ H1_safe_q[9]_carry_eqn;
H1_safe_q[9]_sload_eqn = (D1L7 & C1L01) # (!D1L7 & H1_safe_q[9]_lut_out);
H1_safe_q[9] = DFFEA(H1_safe_q[9]_sload_eqn, D1L3, VCC, , , , );

--H1L02 is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|counter_cella9~COUT at LC_X20_Y10_N4
--operation mode is arithmetic

H1L02 = CARRY(!H1L74 # !H1_safe_q[9]);


--H1_safe_q[10] is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[10] at LC_X20_Y10_N5
--operation mode is normal

H1_safe_q[10]_carry_eqn = H1L02;
H1_safe_q[10]_lut_out = H1_safe_q[10]_carry_eqn $ !H1_safe_q[10];
H1_safe_q[10]_sload_eqn = (D1L7 & C1L11) # (!D1L7 & H1_safe_q[10]_lut_out);
H1_safe_q[10] = DFFEA(H1_safe_q[10]_sload_eqn, D1L3, VCC, , , , );


--D1L6 is Speakera:u3|reduce_nor~70 at LC_X20_Y10_N6
--operation mode is normal

D1L6 = !H1_safe_q[10] # !H1_safe_q[9];


--H1_safe_q[8] is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[8] at LC_X20_Y10_N3
--operation mode is arithmetic

H1_safe_q[8]_carry_eqn = (!H1L01 & H1L34) # (H1L01 & H1L44);
H1_safe_q[8]_lut_out = H1_safe_q[8] $ !H1_safe_q[8]_carry_eqn;
H1_safe_q[8]_sload_eqn = (D1L7 & C1L9) # (!D1L7 & H1_safe_q[8]_lut_out);
H1_safe_q[8] = DFFEA(H1_safe_q[8]_sload_eqn, D1L3, VCC, , , , );

--H1L64 is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[8]~COUT0 at LC_X20_Y10_N3
--operation mode is arithmetic

H1L64_cout_0 = H1_safe_q[8] & !H1L34;
H1L64 = CARRY(H1L64_cout_0);

--H1L74 is Speakera:u3|lpm_counter:\GenSpkS:Count11[0]_rtl_1|cntr_7t7:auto_generated|safe_q[8]~COUT1 at LC_X20_Y10_N3
--operation mode is arithmetic

H1L74_cout_1 = H1_safe_q[8] & !H1L44;
H1L74 = CARRY(H1L74_cout_1);


--D1L7 is Speakera:u3|reduce_nor~71 at LC_X20_Y10_N8
--operation mode is normal

D1L7 = !D1L6 & H1_safe_q[8] & !D1L4 & !D1L5;

--D1_FullSpkS is Speakera:u3|FullSpkS at LC_X20_Y10_N8
--operation mode is normal

D1_FullSpkS = DFFEA(D1L7, D1L3, VCC, , , , );


--G1_safe_q[2] is Speakera:u3|lpm_counter:\DivideCLK:Count4[0]_rtl_2|cntr_ea7:auto_generated|safe_q[2] at LC_X19_Y11_N2
--operation mode is arithmetic

G1_safe_q[2]_lut_out = G1_safe_q[2] $ !G1L31;
G1_safe_q[2] = DFFEA(G1_safe_q[2]_lut_out, CLK12MHZ, !D1L3, , , , );

--G1L61 is Speakera:u3|lpm_counter:\DivideCLK:Count4[0]_rtl_2|cntr_ea7:auto_generated|safe_q[2]~COUT0 at LC_X19_Y11_N2
--operation mode is arithmetic

G1L61_cout_0 = G1_safe_q[2] & !G1L31;
G1L61 = CARRY(G1L61_cout_0);

--G1L71 is Speakera:u3|lpm_counter:\DivideCLK:Count4[0]_rtl_2|cntr_ea7:auto_generated|safe_q[2]~COUT1 at LC_X19_Y11_N2
--operation mode is arithmetic

G1L71_cout_1 = G1_safe_q[2] & !G1L41;
G1L71 = CARRY(G1L71_cout_1);


--G1_safe_q[3] is Speakera:u3|lpm_counter:\DivideCLK:Count4[0]_rtl_2|cntr_ea7:auto_generated|safe_q[3] at LC_X19_Y11_N3
--operation mode is normal

G1_safe_q[3]_lut_out = G1L61 $ G1_safe_q[3];
G1_safe_q[3] = DFFEA(G1_safe_q[3]_lut_out, CLK12MHZ, !D1L3, , , , );


--D1L3 is Speakera:u3|PreCLK~15 at LC_X20_Y11_N1
--operation mode is normal

D1L3 = G1_safe_q[3] & G1_safe_q[2];


--C1L3 is ToneTaba:u2|Mux~178 at LC_X20_Y12_N4
--operation mode is normal

C1L3 = B1L32 & B1L96 & B1L65 & B1L93 # !B1L32 & (B1L96 # B1L65 $ !B1L93);


--C1L4 is ToneTaba:u2|Mux~180 at LC_X20_Y12_N8
--operation mode is normal

C1L4 = B1L32 & (B1L65 & !B1L93 # !B1L96) # !B1L32 & (B1L93 $ (B1L65 # !B1L96));


--C1L5 is ToneTaba:u2|Mux~182 at LC_X20_Y12_N7
--operation mode is normal

C1L5 = B1L32 & (B1L96 $ (B1L65 # B1L93)) # !B1L32 & (B1L93 & B1L65 # !B1L93 & !B1L96);


--C1L6 is ToneTaba:u2|Mux~184 at LC_X20_Y12_N2
--operation mode is normal

C1L6 = B1L96 & !B1L32 & B1L65 # !B1L96 & (B1L32 $ (!B1L93 # !B1L65));


--C1L7 is ToneTaba:u2|Mux~188 at LC_X20_Y11_N0
--operation mode is normal

C1L7 = B1L65 & (B1L32 $ !B1L93) # !B1L65 & (B1L32 & B1L96 # !B1L32 & !B1L93 & !B1L96);


--C1L8 is ToneTaba:u2|Mux~190 at LC_X20_Y11_N4
--operation mode is normal

C1L8 = B1L65 & (B1L93 & B1L96 # !B1L93 & B1L32) # !B1L65 & (B1L96 & !B1L93 # !B1L96 & !B1L32);


--C1L01 is ToneTaba:u2|Mux~194 at LC_X20_Y11_N3
--operation mode is normal

C1L01 = B1L93 & (B1L96 # !B1L65 & !B1L32) # !B1L93 & (B1L65 $ !B1L96);


--C1L11 is ToneTaba:u2|Mux~196 at LC_X20_Y10_N9
--operation mode is normal

C1L11 = B1L96 # B1L65 # B1L32 $ !B1L93;


--C1L9 is ToneTaba:u2|Mux~192 at LC_X20_Y12_N1
--operation mode is normal

C1L9 = B1L65 & !B1L96 & B1L93 # !B1L65 & (!B1L32 & !B1L96 # !B1L93);


--G1_safe_q[1] is Speakera:u3|lpm_counter:\DivideCLK:Count4[0]_rtl_2|cntr_ea7:auto_generated|safe_q[1] at LC_X19_Y11_N1
--operation mode is arithmetic

G1_safe_q[1]_lut_out = G1_safe_q[1] $ G1L01;
G1_safe_q[1] = DFFEA(G1_safe_q[1]_lut_out, CLK12MHZ, !D1L3, , , , );

--G1L31 is Speakera:u3|lpm_counter:\DivideCLK:Count4[0]_rtl_2|cntr_ea7:auto_generated|safe_q[1]~COUT0 at LC_X19_Y11_N1
--operation mode is arithmetic

G1L31_cout_0 = !G1L01 # !G1_safe_q[1];
G1L31 = CARRY(G1L31_cout_0);

--G1L41 is Speakera:u3|lpm_counter:\DivideCLK:Count4[0]_rtl_2|cntr_ea7:auto_generated|safe_q[1]~COUT1 at LC_X19_Y11_N1
--operation mode is arithmetic

G1L41_cout_1 = !G1L11 # !G1_safe_q[1];
G1L41 = CARRY(G1L41_cout_1);


--G1_safe_q[0] is Speakera:u3|lpm_counter:\DivideCLK:Count4[0]_rtl_2|cntr_ea7:auto_generated|safe_q[0] at LC_X19_Y11_N0
--operation mode is arithmetic

G1_safe_q[0]_lut_out = !G1_safe_q[0];
G1_safe_q[0] = DFFEA(G1_safe_q[0]_lut_out, CLK12MHZ, !D1L3, , , , );

--G1L01 is Speakera:u3|lpm_counter:\DivideCLK:Count4[0]_rtl_2|cntr_ea7:auto_generated|safe_q[0]~COUT0 at LC_X19_Y11_N0
--operation mode is arithmetic

G1L01_cout_0 = G1_safe_q[0];
G1L01 = CARRY(G1L01_cout_0);

--G1L11 is Speakera:u3|lpm_counter:\DivideCLK:Count4[0]_rtl_2|cntr_ea7:auto_generated|safe_q[0]~COUT1 at LC_X19_Y11_N0
--operation mode is arithmetic

G1L11_cout_1 = G1_safe_q[0];
G1L11 = CARRY(G1L11_cout_1);


--C1L31 is ToneTaba:u2|Mux~303 at LC_X23_Y13_N6
--operation mode is normal

C1L31 = !F1_safe_q[5] & !F1_safe_q[3];


--C1L41 is ToneTaba:u2|Mux~308 at LC_X22_Y12_N9
--operation mode is normal

C1L41 = F1_safe_q[7] & F1_safe_q[6] & (F1_safe_q[4] # !C1L31);


--B1L67 is NoteTabs:u1|ToneIndex[3]~693 at LC_X23_Y13_N4
--operation mode is normal

B1L67 = F1_safe_q[5] & (F1_safe_q[2] # F1_safe_q[1]) # !F1_safe_q[5] & (F1_safe_q[2] $ (F1_safe_q[0] & F1_safe_q[1]));


--B1L77 is NoteTabs:u1|ToneIndex[3]~694 at LC_X23_Y13_N5
--operation mode is normal

B1L77 = B1L67 # F1_safe_q[2] & (!F1_safe_q[4] # !F1_safe_q[3]) # !F1_safe_q[2] & (F1_safe_q[3] # F1_safe_q[4]);


--CLK8HZ is CLK8HZ at PIN_153
--operation mode is input

CLK8HZ = INPUT();


--CLK12MHZ is CLK12MHZ at PIN_29
--operation mode is input

CLK12MHZ = INPUT();


--CODE1[3] is CODE1[3] at PIN_16
--operation mode is output

CODE1[3] = OUTPUT(GND);


--CODE1[2] is CODE1[2] at PIN_15
--operation mode is output

CODE1[2] = OUTPUT(C1L1);


--CODE1[1] is CODE1[1] at PIN_14
--operation mode is output

CODE1[1] = OUTPUT(C1L21);


--CODE1[0] is CODE1[0] at PIN_13
--operation mode is output

CODE1[0] = OUTPUT(C1L2);


--HIGH1 is HIGH1 at PIN_141
--operation mode is output

HIGH1 = OUTPUT(B1L96);


--SPKOUT is SPKOUT at PIN_174
--operation mode is output

SPKOUT = OUTPUT(D1_\DelaySpkS:Count2);




⌨️ 快捷键说明

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