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

📄 beep.map.eqn

📁 用CPLD驱动扬声器实现音乐的播放
💻 EQN
📖 第 1 页 / 共 2 页
字号:
--B1_clk_div1[3] is buzzer:inst|clk_div1[3]
--operation mode is normal

B1_clk_div1[3]_lut_out = B1L50 & (B1_clk_div1[3] $ (B1_clk_div1[2] & B1L44));
B1_clk_div1[3] = DFFEAS(B1_clk_div1[3]_lut_out, clk, VCC, , , , , , );


--B1_clk_div1[0] is buzzer:inst|clk_div1[0]
--operation mode is normal

B1_clk_div1[0]_lut_out = !B1_clk_div1[0] & reset & (!B1_clk_div1[2] # !B1L33);
B1_clk_div1[0] = DFFEAS(B1_clk_div1[0]_lut_out, clk, VCC, , , , , , );


--B1L25 is buzzer:inst|Equal~1191
--operation mode is normal

B1L25 = B1_clk_div1[1] # B1_clk_div1[2] # !B1_clk_div1[0] # !B1_clk_div1[3];


--B1_cnt[20] is buzzer:inst|cnt[20]
--operation mode is arithmetic

B1_cnt[20]_carry_eqn = B1L128;
B1_cnt[20]_lut_out = B1_cnt[20] $ (!B1_cnt[20]_carry_eqn);
B1_cnt[20] = DFFEAS(B1_cnt[20]_lut_out, clk, VCC, , , , , !reset, );

--B1L130 is buzzer:inst|cnt[20]~267
--operation mode is arithmetic

B1L130 = CARRY(B1_cnt[20] & (!B1L128));


--B1_cnt[21] is buzzer:inst|cnt[21]
--operation mode is normal

B1_cnt[21]_carry_eqn = B1L130;
B1_cnt[21]_lut_out = B1_cnt[21] $ (B1_cnt[21]_carry_eqn);
B1_cnt[21] = DFFEAS(B1_cnt[21]_lut_out, clk, VCC, , , , , !reset, );


--B1_cnt[0] is buzzer:inst|cnt[0]
--operation mode is arithmetic

B1_cnt[0]_lut_out = B1L25 $ !B1_cnt[0];
B1_cnt[0] = DFFEAS(B1_cnt[0]_lut_out, clk, VCC, , , , , !reset, );

--B1L90 is buzzer:inst|cnt[0]~275
--operation mode is arithmetic

B1L90 = CARRY(!B1L25 & B1_cnt[0]);


--B1_cnt[1] is buzzer:inst|cnt[1]
--operation mode is arithmetic

B1_cnt[1]_carry_eqn = B1L90;
B1_cnt[1]_lut_out = B1_cnt[1] $ (B1_cnt[1]_carry_eqn);
B1_cnt[1] = DFFEAS(B1_cnt[1]_lut_out, clk, VCC, , , , , !reset, );

--B1L92 is buzzer:inst|cnt[1]~279
--operation mode is arithmetic

B1L92 = CARRY(!B1L90 # !B1_cnt[1]);


--B1_cnt[2] is buzzer:inst|cnt[2]
--operation mode is arithmetic

B1_cnt[2]_carry_eqn = B1L92;
B1_cnt[2]_lut_out = B1_cnt[2] $ (!B1_cnt[2]_carry_eqn);
B1_cnt[2] = DFFEAS(B1_cnt[2]_lut_out, clk, VCC, , , , , !reset, );

--B1L94 is buzzer:inst|cnt[2]~283
--operation mode is arithmetic

B1L94 = CARRY(B1_cnt[2] & (!B1L92));


--B1_cnt[3] is buzzer:inst|cnt[3]
--operation mode is arithmetic

B1_cnt[3]_carry_eqn = B1L94;
B1_cnt[3]_lut_out = B1_cnt[3] $ (B1_cnt[3]_carry_eqn);
B1_cnt[3] = DFFEAS(B1_cnt[3]_lut_out, clk, VCC, , , , , !reset, );

--B1L96 is buzzer:inst|cnt[3]~287
--operation mode is arithmetic

B1L96 = CARRY(!B1L94 # !B1_cnt[3]);


--B1L26 is buzzer:inst|Equal~1192
--operation mode is normal

B1L26 = B1_cnt[0] & B1_cnt[1] & B1_cnt[2] & B1_cnt[3];


--B1_cnt[4] is buzzer:inst|cnt[4]
--operation mode is arithmetic

B1_cnt[4]_carry_eqn = B1L96;
B1_cnt[4]_lut_out = B1_cnt[4] $ (!B1_cnt[4]_carry_eqn);
B1_cnt[4] = DFFEAS(B1_cnt[4]_lut_out, clk, VCC, , , , , !reset, );

--B1L98 is buzzer:inst|cnt[4]~291
--operation mode is arithmetic

B1L98 = CARRY(B1_cnt[4] & (!B1L96));


--B1_cnt[5] is buzzer:inst|cnt[5]
--operation mode is arithmetic

B1_cnt[5]_carry_eqn = B1L98;
B1_cnt[5]_lut_out = B1_cnt[5] $ (B1_cnt[5]_carry_eqn);
B1_cnt[5] = DFFEAS(B1_cnt[5]_lut_out, clk, VCC, , , , , !reset, );

--B1L100 is buzzer:inst|cnt[5]~295
--operation mode is arithmetic

B1L100 = CARRY(!B1L98 # !B1_cnt[5]);


--B1_cnt[6] is buzzer:inst|cnt[6]
--operation mode is arithmetic

B1_cnt[6]_carry_eqn = B1L100;
B1_cnt[6]_lut_out = B1_cnt[6] $ (!B1_cnt[6]_carry_eqn);
B1_cnt[6] = DFFEAS(B1_cnt[6]_lut_out, clk, VCC, , , , , !reset, );

--B1L102 is buzzer:inst|cnt[6]~299
--operation mode is arithmetic

B1L102 = CARRY(B1_cnt[6] & (!B1L100));


--B1_cnt[7] is buzzer:inst|cnt[7]
--operation mode is arithmetic

B1_cnt[7]_carry_eqn = B1L102;
B1_cnt[7]_lut_out = B1_cnt[7] $ (B1_cnt[7]_carry_eqn);
B1_cnt[7] = DFFEAS(B1_cnt[7]_lut_out, clk, VCC, , , , , !reset, );

--B1L104 is buzzer:inst|cnt[7]~303
--operation mode is arithmetic

B1L104 = CARRY(!B1L102 # !B1_cnt[7]);


--B1L27 is buzzer:inst|Equal~1193
--operation mode is normal

B1L27 = B1_cnt[4] & B1_cnt[5] & B1_cnt[6] & B1_cnt[7];


--B1_cnt[8] is buzzer:inst|cnt[8]
--operation mode is arithmetic

B1_cnt[8]_carry_eqn = B1L104;
B1_cnt[8]_lut_out = B1_cnt[8] $ (!B1_cnt[8]_carry_eqn);
B1_cnt[8] = DFFEAS(B1_cnt[8]_lut_out, clk, VCC, , , , , !reset, );

--B1L106 is buzzer:inst|cnt[8]~307
--operation mode is arithmetic

B1L106 = CARRY(B1_cnt[8] & (!B1L104));


--B1_cnt[9] is buzzer:inst|cnt[9]
--operation mode is arithmetic

B1_cnt[9]_carry_eqn = B1L106;
B1_cnt[9]_lut_out = B1_cnt[9] $ (B1_cnt[9]_carry_eqn);
B1_cnt[9] = DFFEAS(B1_cnt[9]_lut_out, clk, VCC, , , , , !reset, );

--B1L108 is buzzer:inst|cnt[9]~311
--operation mode is arithmetic

B1L108 = CARRY(!B1L106 # !B1_cnt[9]);


--B1_cnt[10] is buzzer:inst|cnt[10]
--operation mode is arithmetic

B1_cnt[10]_carry_eqn = B1L108;
B1_cnt[10]_lut_out = B1_cnt[10] $ (!B1_cnt[10]_carry_eqn);
B1_cnt[10] = DFFEAS(B1_cnt[10]_lut_out, clk, VCC, , , , , !reset, );

--B1L110 is buzzer:inst|cnt[10]~315
--operation mode is arithmetic

B1L110 = CARRY(B1_cnt[10] & (!B1L108));


--B1_cnt[11] is buzzer:inst|cnt[11]
--operation mode is arithmetic

B1_cnt[11]_carry_eqn = B1L110;
B1_cnt[11]_lut_out = B1_cnt[11] $ (B1_cnt[11]_carry_eqn);
B1_cnt[11] = DFFEAS(B1_cnt[11]_lut_out, clk, VCC, , , , , !reset, );

--B1L112 is buzzer:inst|cnt[11]~319
--operation mode is arithmetic

B1L112 = CARRY(!B1L110 # !B1_cnt[11]);


--B1L28 is buzzer:inst|Equal~1194
--operation mode is normal

B1L28 = B1_cnt[8] & B1_cnt[9] & B1_cnt[10] & B1_cnt[11];


--B1_cnt[12] is buzzer:inst|cnt[12]
--operation mode is arithmetic

B1_cnt[12]_carry_eqn = B1L112;
B1_cnt[12]_lut_out = B1_cnt[12] $ (!B1_cnt[12]_carry_eqn);
B1_cnt[12] = DFFEAS(B1_cnt[12]_lut_out, clk, VCC, , , , , !reset, );

--B1L114 is buzzer:inst|cnt[12]~323
--operation mode is arithmetic

B1L114 = CARRY(B1_cnt[12] & (!B1L112));


--B1_cnt[13] is buzzer:inst|cnt[13]
--operation mode is arithmetic

B1_cnt[13]_carry_eqn = B1L114;
B1_cnt[13]_lut_out = B1_cnt[13] $ (B1_cnt[13]_carry_eqn);
B1_cnt[13] = DFFEAS(B1_cnt[13]_lut_out, clk, VCC, , , , , !reset, );

--B1L116 is buzzer:inst|cnt[13]~327
--operation mode is arithmetic

B1L116 = CARRY(!B1L114 # !B1_cnt[13]);


--B1_cnt[14] is buzzer:inst|cnt[14]
--operation mode is arithmetic

B1_cnt[14]_carry_eqn = B1L116;
B1_cnt[14]_lut_out = B1_cnt[14] $ (!B1_cnt[14]_carry_eqn);
B1_cnt[14] = DFFEAS(B1_cnt[14]_lut_out, clk, VCC, , , , , !reset, );

--B1L118 is buzzer:inst|cnt[14]~331
--operation mode is arithmetic

B1L118 = CARRY(B1_cnt[14] & (!B1L116));


--B1_cnt[15] is buzzer:inst|cnt[15]
--operation mode is arithmetic

B1_cnt[15]_carry_eqn = B1L118;
B1_cnt[15]_lut_out = B1_cnt[15] $ (B1_cnt[15]_carry_eqn);
B1_cnt[15] = DFFEAS(B1_cnt[15]_lut_out, clk, VCC, , , , , !reset, );

--B1L120 is buzzer:inst|cnt[15]~335
--operation mode is arithmetic

B1L120 = CARRY(!B1L118 # !B1_cnt[15]);


--B1L29 is buzzer:inst|Equal~1195
--operation mode is normal

B1L29 = B1_cnt[12] & B1_cnt[13] & B1_cnt[14] & B1_cnt[15];


--B1L30 is buzzer:inst|Equal~1196
--operation mode is normal

B1L30 = B1L26 & B1L27 & B1L28 & B1L29;


--B1_cnt[16] is buzzer:inst|cnt[16]
--operation mode is arithmetic

B1_cnt[16]_carry_eqn = B1L120;
B1_cnt[16]_lut_out = B1_cnt[16] $ (!B1_cnt[16]_carry_eqn);
B1_cnt[16] = DFFEAS(B1_cnt[16]_lut_out, clk, VCC, , , , , !reset, );

--B1L122 is buzzer:inst|cnt[16]~339
--operation mode is arithmetic

B1L122 = CARRY(B1_cnt[16] & (!B1L120));


--B1_cnt[17] is buzzer:inst|cnt[17]
--operation mode is arithmetic

B1_cnt[17]_carry_eqn = B1L122;
B1_cnt[17]_lut_out = B1_cnt[17] $ (B1_cnt[17]_carry_eqn);
B1_cnt[17] = DFFEAS(B1_cnt[17]_lut_out, clk, VCC, , , , , !reset, );

--B1L124 is buzzer:inst|cnt[17]~343
--operation mode is arithmetic

B1L124 = CARRY(!B1L122 # !B1_cnt[17]);


--B1_cnt[18] is buzzer:inst|cnt[18]
--operation mode is arithmetic

B1_cnt[18]_carry_eqn = B1L124;
B1_cnt[18]_lut_out = B1_cnt[18] $ (!B1_cnt[18]_carry_eqn);
B1_cnt[18] = DFFEAS(B1_cnt[18]_lut_out, clk, VCC, , , , , !reset, );

--B1L126 is buzzer:inst|cnt[18]~347
--operation mode is arithmetic

B1L126 = CARRY(B1_cnt[18] & (!B1L124));


--B1_cnt[19] is buzzer:inst|cnt[19]
--operation mode is arithmetic

B1_cnt[19]_carry_eqn = B1L126;
B1_cnt[19]_lut_out = B1_cnt[19] $ (B1_cnt[19]_carry_eqn);
B1_cnt[19] = DFFEAS(B1_cnt[19]_lut_out, clk, VCC, , , , , !reset, );

--B1L128 is buzzer:inst|cnt[19]~351
--operation mode is arithmetic

B1L128 = CARRY(!B1L126 # !B1_cnt[19]);


--B1L31 is buzzer:inst|Equal~1197
--operation mode is normal

B1L31 = B1_cnt[16] & B1_cnt[17] & B1_cnt[18] & B1_cnt[19];


--B1L32 is buzzer:inst|Equal~1198
--operation mode is normal

B1L32 = B1_cnt[20] & B1_cnt[21] & B1L30 & B1L31;


--B1L72 is buzzer:inst|clk_div2[9]~2120
--operation mode is normal

B1L72 = B1_state.000 & reset & !B1_state.001;


--B1L73 is buzzer:inst|clk_div2[9]~2121
--operation mode is normal

B1L73 = B1L72 & (B1L16 # !B1L18 # !B1_state.010);


--B1L74 is buzzer:inst|clk_div2[9]~2122
--operation mode is normal

B1L74 = B1L73 & (B1_state.010 # B1_state.011 & B1L20);


--B1L75 is buzzer:inst|clk_div2[9]~2123
--operation mode is normal

B1L75 = B1_state.101 # B1_state.111 # !B1L21 & B1L22;


--B1L76 is buzzer:inst|clk_div2[9]~2124
--operation mode is normal

B1L76 = !B1_state.010 & !B1_state.011 & B1L82;


--B1L77 is buzzer:inst|clk_div2[9]~2125
--operation mode is normal

B1L77 = B1_state.001 & B1L14 # !B1_state.001 & (B1L76);


--B1L78 is buzzer:inst|clk_div2[9]~2126
--operation mode is normal

B1L78 = B1_state.000 & (B1L77) # !B1_state.000 & B1L24;


--B1L79 is buzzer:inst|clk_div2[9]~2127
--operation mode is normal

B1L79 = !B1L74 & (!B1L78 # !reset);


--B1L80 is buzzer:inst|clk_div2[9]~2128
--operation mode is normal

B1L80 = !reset # !B1L25;


--B1L43 is buzzer:inst|Select~957
--operation mode is normal

B1L43 = B1L25 & (!B1_state.000) # !B1L25 & (B1_state.111 & B1L32 # !B1_state.111 & !B1L32 & !B1_state.000);


--B1L33 is buzzer:inst|Equal~1199
--operation mode is normal

B1L33 = B1_clk_div1[3] & (!B1_clk_div1[1]);


--B1L50 is buzzer:inst|clk_div1[3]~229
--operation mode is normal

B1L50 = reset & (B1_clk_div1[0] # !B1_clk_div1[2] # !B1L33);


--B1L44 is buzzer:inst|add~842
--operation mode is normal

B1L44 = B1_clk_div1[1] & B1_clk_div1[0];


--B1L81 is buzzer:inst|clk_div2[9]~2129
--operation mode is normal

B1L81 = B1_state.101 & (B1L12) # !B1_state.101 & B1_state.111 & B1L6;


--B1L82 is buzzer:inst|clk_div2[9]~2130
--operation mode is normal

B1L82 = B1_state.100 & (B1L8) # !B1_state.100 & (B1L81 # !B1L75);


--clk is clk
--operation mode is input

clk = INPUT();


--reset is reset
--operation mode is input

reset = INPUT();


--beep is beep
--operation mode is output

beep = OUTPUT(B1_out);


⌨️ 快捷键说明

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