中文字幕 另类精品,亚洲欧美一区二区蜜桃,日本在线精品视频免费,孩交精品乱子片免费

<sup id="3hn2b"></sup>

    1. <sub id="3hn2b"><ol id="3hn2b"></ol></sub><legend id="3hn2b"></legend>

      1. <xmp id="3hn2b"></xmp>

      2. 新聞中心

        EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 基于FPGA處理器的數(shù)字光端機(jī)系統(tǒng)

        基于FPGA處理器的數(shù)字光端機(jī)系統(tǒng)

        作者: 時(shí)間:2010-11-12 來(lái)源:網(wǎng)絡(luò) 收藏


        2 語(yǔ)音編碼控制模塊

        語(yǔ)音編碼控制模塊主要完成對(duì)PCM編碼芯片提供數(shù)據(jù)編碼時(shí)鐘、數(shù)據(jù)使能控制以及編碼后的數(shù)據(jù)接收。

        此處程序如下所示。

        module PcmControl(clk_in,reset,tdd,tdc,tde,pcm_data);

        ……

        always@(posedgeclk_in)

        begin

        if(reset)

        begintdc<=0; end

        elsebegin

        if(cnt0==7)

        begin

        tdc<=tdc;

        cnt0<=0;

        end

        else

        cnt0<=cnt0+1;

        end

        end

        always@(posedgetdc)

        begin

        if(cnt1==140)

        begin

        tde<=tde;

        cnt1<=0;

        end

        else

        cnt1<=cnt1+1;

        end

        always@(posedgetdc)

        begin

        pcm_data<=tdd;

        end

        endmodule

        其中,clk_in是時(shí)鐘,reset為復(fù)位信號(hào)。信號(hào)tdd是PCM編碼芯片的輸出;信號(hào)pcm_data用來(lái)存放PCM編碼數(shù)據(jù);信號(hào)tdc是PCM編碼時(shí)鐘信號(hào);信號(hào)tde是PCM編碼使能時(shí)鐘。


        評(píng)論


        相關(guān)推薦

        技術(shù)專區(qū)

        關(guān)閉