freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于eda音樂(lè)播放器的設(shè)計(jì)-在線(xiàn)瀏覽

2025-08-13 15:56本頁(yè)面
  

【正文】 示、音樂(lè)序號(hào)(AAA3 )顯示。其中音樂(lè)播放模塊又可分為音頻模塊、音樂(lè)代碼模塊,預(yù)置數(shù)模塊利用計(jì)數(shù)的方式將 50MHZ 的頻率分為 12MHz、100Hz、8Hz、1Hz。音調(diào)的控制頻率的高低決定了音調(diào)的高低。由于樂(lè)曲都是由一連串的音符組成,因此按照樂(lè)曲的樂(lè)譜依次輸出這些音符相對(duì)應(yīng)的頻率,就可以在蜂鳴器上連續(xù)地發(fā)出各個(gè)音符的音調(diào)。系統(tǒng)工作時(shí)就按 4Hz 的頻率依次讀取簡(jiǎn)譜,當(dāng)系統(tǒng)讀到某個(gè)音符的簡(jiǎn)譜時(shí)就對(duì)應(yīng)發(fā)這個(gè)音符的音調(diào),持續(xù)時(shí)間為 拍音長(zhǎng),只要將該音符連續(xù)書(shū)寫(xiě)三遍,系統(tǒng)讀樂(lè)曲文件的時(shí)候就會(huì)連續(xù)讀到三次,也就會(huì)發(fā)三個(gè) 秒的音長(zhǎng),這時(shí)我們聽(tīng)上去就會(huì)持續(xù)了三拍的時(shí)間,這樣就可以控制音樂(lè)的6音長(zhǎng)了程序:音樂(lè)播放器頂層模塊library ieee。entity songer isport(clk50mhz,c:in std_logic。led_selout:out std_logic_vector(7 downto 0)。end。 f1s,f8,f12,fs:out std_logic)。ponent notetabsport(clk:in std_logic。end ponent。 tone:out std_logic_vector(10 downto 0))。ponent speakeraport(clk:in std_logic。 spks:out std_logic)。ponent daojishi port(clk1,clk2,c:in std_logic。led_selout:out std_logic_vector(7 downto 0))。signal tone:std_logic_vector(10 downto 0)。signal ff1,ff8,ff12,ffs:std_logic_vector。u2:notetabs port map(clk=ff8,toneindex=toneindex)。u4:speakera port map(clk=ff12,tone=tone,spks=spkout)。end。use 。entity fp isport(clk:in std_logic。 end。 signal a2,c2,f2:std_logic。variable t8:std_logic_vector(7 downto 0)。event and clk=39。 then if t2401011111010111100001000000 then t24:=t24+1。039。f1s=39。elset24:=00000000000000000000000000。if t81100100 then t8:=t8+1。039。fs=39。elset8:=00000000。end if。process(clk,a) variable t:std_logic_vector(2 downto 0)。event and clk=39。then if t=111then t:=011。139。a=39。 end if。 if a39。139。 if c=39。then f=39。 else f=39。 end if。 f12=f。process(clk,a2) variable :std_logic_vector(22 downto 0)。event and clk=39。then if =10111110101111000010000then :=01011111010111100001000。139。a=39。 end if。 if a239。139。 if c2=39。then f2=39。 else f2=39。 end if。 f8=f。end。預(yù)置數(shù)模塊library ieee。entity toaba isport(index:in std_logic_vector(3 downto 0)。end。signal high:out std_logic。code=0000。039。code=0001。039。code=0010。039。code=0011。039。code=0101。039。code=0110。039。code=0111。039。code=0001。139。code=0010。139。code=0011。139。code=0101。139。code=0110。139。code=0001。139。end case。end。模塊 toaba 是樂(lè)曲簡(jiǎn)譜碼對(duì)應(yīng)的分頻預(yù)置數(shù)查表電路,其中設(shè)置了《梁?!窐?lè)曲全部音符所對(duì)應(yīng)的分頻預(yù)置數(shù),共 13 個(gè),每一個(gè)音符的停留時(shí)間由音樂(lè)節(jié)拍和音調(diào)發(fā)生器模塊 notetabs 的 clk 輸入頻率決定,在此時(shí)為4HZ。這 13 個(gè)值的輸出由對(duì)應(yīng)于 toaba 的 4 位輸入值 index[3..0]確定,而 index[3..0]最多有 16 種選擇。音頻模塊library ieee。use 。10 tone:in std_logic_vector(10 downto 0)。end。begin divideclk:process(clk)variable count4:std_logic_vector(3 downto 0)。039。139。 elsif clk39。139。 end if。genspks:process(preclk,tone)variable count11:std_logic_vector (10 downto 0)。event and preclk=39。 then if count11=167ff then count11:=tone。139。fullspks=39。 end if。end process。beginif fullspks39。139。 if count2=39。then s
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1