<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > EDA/PCB > 設計應用 > 基于FPGA的UART、USB接口協(xié)議設計

          基于FPGA的UART、USB接口協(xié)議設計

          作者: 時間:2012-03-13 來源:網(wǎng)絡 收藏

          //clk_bps sync bps generater

          reg clk_bps_r0,clk_bps_r1,clk_bps_r2;

          always@(posedge clk or negedge rst_n)

          begin

          if(!rst_n)

          begin

          clk_bps_r0 = 0;

          clk_bps_r1 = 0;

          clk_bps_r2 = 0;

          end

          else

          begin

          if(bps_cnt1 32'h7FFF_FFFF)

          clk_bps_r0 = 0;

          else

          clk_bps_r0 = 1;

          clk_bps_r1 = clk_bps_r0;

          clk_bps_r2 = clk_bps_r1;

          end

          end

          assign clk_bps = ~clk_bps_r2 clk_bps_r1;

          //------------------------------------------

          //clk_smp sync receive bps generator

          reg clk_smp_r0,clk_smp_r1,clk_smp_r2;

          always@(posedge clk or negedge rst_n)

          begin

          if(!rst_n)

          begin

          clk_smp_r0 = 0;

          clk_smp_r1 = 0;

          clk_smp_r2 = 0;

          end

          else

          begin

          if(bps_cnt2 32'h7FFF_FFFF)

          clk_smp_r0 = 0;

          else

          clk_smp_r0 = 1;

          clk_smp_r1 = clk_smp_r0;

          clk_smp_r2 = clk_smp_r1;

          end

          end

          assign clk_smp = ~clk_smp_r2 clk_smp_r1;

          endmodule

          c++相關文章:c++教程




          關鍵詞: FPGA UART USB 接口

          評論


          相關推薦

          技術專區(qū)

          關閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();