亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? uart_rx_ctl.v

?? 32位單精度浮點(diǎn)加法器
?? V
字號(hào):
//-----------------------------------------------------------------------------//  //  Copyright (c) 2009 Xilinx Inc.////  Project  : Programmable Wave Generator//  Module   : uart_rx_ctl.v//  Parent   : uart_rx//  Children : none////  Description: //     UART receiver controller//     Implements the state machines for doing RS232 reception.////     Based on the detection of the falling edge of the synchronized rxd//     input, this module waits 1/2 of a bit period (8 periods of baud_x16_en)//     to find the middle of the start bit, and resamples it. If rxd //     is still low it accepts it as a valid START bit, and captures the rest//     of the character, otherwise it rejects the start bit and returns to//     idle.////     After detecting the START bit, it advances 1 full bit period at a time//     (16 periods of baud_x16_en) to end up in the middle of the 8 data//     bits, where it samples the 8 data bits. ////     After the last bit is sampled (the MSbit, since the LSbit is sent//     first), it waits one additional bit period to check for the STOP bit.//     If the rxd line is not high (the value of a STOP bit), a framing error//     is signalled. Regardless of the value of the rxd, though, the module//     returns to the IDLE state and immediately begins looking for the //     start of the next character.////     NOTE: The total cycle time through the state machine is 9 1/2 bit//     periods (not 10) - this allows for a mismatch between the transmit and//     receive clock rates by as much as 5%.////  Parameters://     None////  Local Parameters:////  Notes       : ////  Multicycle and False Paths//    All flip-flops within this module share the same chip enable, generated//    by the Baud rate generator. Hence, all paths from FFs to FFs in this//    module are multicycle paths.//`timescale 1ns/1psmodule uart_rx_ctl (  // Write side inputs  input            clk_rx,       // Clock input  input            rst_clk_rx,   // Active HIGH reset - synchronous to clk_rx  input            baud_x16_en,  // 16x oversampling enable  input            rxd_clk_rx,   // RS232 RXD pin - after sync to clk_rx  output reg [7:0] rx_data,      // 8 bit data output                                 //  - valid when rx_data_rdy is asserted  output reg       rx_data_rdy,  // Ready signal for rx_data  output reg       frm_err       // The STOP bit was not detected);//***************************************************************************// Parameter definitions//***************************************************************************  // State encoding for main FSM  localparam     IDLE  = 2'b00,    START = 2'b01,    DATA  = 2'b10,    STOP  = 2'b11;//***************************************************************************// Reg declarations//***************************************************************************  reg [1:0]    state;             // Main state machine  reg [3:0]    over_sample_cnt;   // Oversample counter - 16 per bit  reg [2:0]    bit_cnt;           // Bit counter - which bit are we RXing//***************************************************************************// Wire declarations//***************************************************************************  wire         over_sample_cnt_done; // We are in the middle of a bit  wire         bit_cnt_done;         // This is the last data bit  //***************************************************************************// Code//***************************************************************************  // Main state machine  always @(posedge clk_rx)  begin    if (rst_clk_rx)    begin      state       <= IDLE;    end    else    begin      if (baud_x16_en)       begin        case (state)          IDLE: begin            // On detection of rxd_clk_rx being low, transition to the START            // state            if (!rxd_clk_rx)            begin              state <= START;            end          end // IDLE state          START: begin            // After 1/2 bit period, re-confirm the start state            if (over_sample_cnt_done)            begin              if (!rxd_clk_rx)              begin                // Was a legitimate start bit (not a glitch)                state <= DATA;              end              else              begin                // Was a glitch - reject                state <= IDLE;              end            end // if over_sample_cnt_done          end // START state          DATA: begin            // Once the last bit has been received, check for the stop bit            if (over_sample_cnt_done && bit_cnt_done)            begin              state <= STOP;            end          end // DATA state          STOP: begin            // Return to idle            if (over_sample_cnt_done)            begin              state <= IDLE;            end          end // STOP state        endcase      end // if baud_x16_en    end // if rst_clk_rx  end // always   // Oversample counter  // Pre-load to 7 when a start condition is detected (rxd_clk_rx is 0 while in  // IDLE) - this will get us to the middle of the first bit.  // Pre-load to 15 after the START is confirmed and between all data bits.  always @(posedge clk_rx)  begin    if (rst_clk_rx)    begin      over_sample_cnt    <= 4'd0;    end    else    begin      if (baud_x16_en)       begin        if (!over_sample_cnt_done)        begin          over_sample_cnt <= over_sample_cnt - 1'b1;        end        else        begin          if ((state == IDLE) && !rxd_clk_rx)          begin            over_sample_cnt <= 4'd7;          end          else if ( ((state == START) && !rxd_clk_rx) || (state == DATA)  )          begin            over_sample_cnt <= 4'd15;          end        end      end // if baud_x16_en    end // if rst_clk_rx  end // always   assign over_sample_cnt_done = (over_sample_cnt == 4'd0);  // Track which bit we are about to receive  // Set to 0 when we confirm the start condition  // Increment in all DATA states  always @(posedge clk_rx)  begin    if (rst_clk_rx)    begin      bit_cnt    <= 3'b0;    end    else    begin      if (baud_x16_en)       begin        if (over_sample_cnt_done)        begin          if (state == START)          begin            bit_cnt <= 3'd0;          end          else if (state == DATA)          begin            bit_cnt <= bit_cnt + 1'b1;          end        end // if over_sample_cnt_done      end // if baud_x16_en    end // if rst_clk_rx  end // always   assign bit_cnt_done = (bit_cnt == 3'd7);  // Capture the data and generate the rdy signal  // The rdy signal will be generated as soon as the last bit of data  // is captured - even though the STOP bit hasn't been confirmed. It will  // remain asserted for one BIT period (16 baud_x16_en periods)  always @(posedge clk_rx)  begin    if (rst_clk_rx)    begin      rx_data     <= 8'b0000_0000;      rx_data_rdy <= 1'b0;    end    else    begin      if (baud_x16_en && over_sample_cnt_done)       begin        if (state == DATA)        begin          rx_data[bit_cnt] <= rxd_clk_rx;          rx_data_rdy      <= (bit_cnt == 3'd7);        end        else        begin          rx_data_rdy      <= 1'b0;        end      end    end // if rst_clk_rx  end // always   // Framing error generation  // Generate for one baud_x16_en period as soon as the framing bit  // is supposed to be sampled  always @(posedge clk_rx)  begin    if (rst_clk_rx)    begin      frm_err     <= 1'b0;    end    else    begin      if (baud_x16_en)       begin        if ((state == STOP) && over_sample_cnt_done && !rxd_clk_rx)        begin          frm_err <= 1'b1;        end        else        begin          frm_err <= 1'b0;        end      end // if baud_x16_en    end // if rst_clk_rx  end // always endmodule

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩亚洲欧美综合| 国产精品国产馆在线真实露脸 | 在线一区二区三区| 亚洲午夜久久久久久久久电影网 | aaa国产一区| 久久精品国产网站| 亚洲一卡二卡三卡四卡五卡| 国产欧美日韩综合| 日韩一区二区三区三四区视频在线观看 | 国产98色在线|日韩| 亚洲一区二区三区四区五区中文| 久久久天堂av| 日韩一级欧美一级| 欧美视频自拍偷拍| 91免费观看视频在线| 激情综合色丁香一区二区| 亚洲主播在线观看| 中文字幕中文字幕一区| 久久亚洲一区二区三区明星换脸| 欧美日韩亚洲丝袜制服| 不卡大黄网站免费看| 久久99久久久久| 亚洲电影视频在线| 亚洲精品国产一区二区三区四区在线| 久久久夜色精品亚洲| 日韩一级免费一区| 欧美日韩精品综合在线| 在线中文字幕一区| 91原创在线视频| 波多野结衣欧美| 成人一区二区视频| 国产精品一二三区| 国产精品99久久久久久久vr | 国产清纯白嫩初高生在线观看91| 日韩免费视频线观看| 91精品国产综合久久精品麻豆| 在线观看免费视频综合| 欧洲另类一二三四区| 色94色欧美sute亚洲线路二| 日本二三区不卡| 欧洲国产伦久久久久久久| 色综合久久中文综合久久97| 91蜜桃传媒精品久久久一区二区| 99久久精品国产观看| 色综合视频一区二区三区高清| 91亚洲国产成人精品一区二三| 94-欧美-setu| 在线亚洲欧美专区二区| 欧美日韩综合在线| 制服.丝袜.亚洲.中文.综合| 日韩一区二区精品| 精品av久久707| 日本一区二区三区电影| 国产精品女人毛片| 亚洲欧洲精品成人久久奇米网| 国产精品国产三级国产aⅴ入口| 日韩理论片网站| 亚洲曰韩产成在线| 麻豆成人久久精品二区三区红| 激情伊人五月天久久综合| 国产成人午夜精品5599| 91蜜桃在线免费视频| 欧美日韩一本到| 日韩久久精品一区| 欧美激情艳妇裸体舞| 亚洲视频一二三区| 三级久久三级久久| 国产精品羞羞答答xxdd| 99在线热播精品免费| 欧美三片在线视频观看 | 国产精品丝袜91| 亚洲精品视频免费观看| 日本视频中文字幕一区二区三区| 久久99国产精品尤物| 成人白浆超碰人人人人| 欧美三级韩国三级日本三斤| 2020国产精品| 亚洲精品日韩一| 久久99日本精品| 91久久免费观看| 精品免费日韩av| 自拍偷拍亚洲激情| 青娱乐精品在线视频| av一区二区不卡| 欧美一区二区观看视频| 国产精品美女久久久久久久| 亚洲一区二区精品久久av| 国产精品一区二区三区乱码| 欧美色视频一区| 欧美高清在线一区二区| 亚洲成人免费电影| 成人黄色在线看| 91精品国产福利在线观看| 国产精品久久久久久久久晋中| 日韩一区精品字幕| eeuss鲁片一区二区三区在线观看| 在线不卡中文字幕| 综合中文字幕亚洲| 国产真实乱偷精品视频免| 欧美亚洲动漫精品| 国产欧美一区二区三区沐欲| 日韩精品久久理论片| 成人国产亚洲欧美成人综合网| 日韩一区二区三区视频在线 | 成人爽a毛片一区二区免费| 91精品在线观看入口| 亚洲人成网站色在线观看 | 在线日韩一区二区| 激情综合网激情| 欧美主播一区二区三区| 国产精品少妇自拍| 国内久久精品视频| 欧美电影影音先锋| 一区二区三区免费在线观看| 丁香六月综合激情| 久久综合色之久久综合| 日本成人在线看| 欧美日韩国产首页| 亚洲最大成人综合| 色婷婷av一区| 亚洲欧美色图小说| av一二三不卡影片| 亚洲国产成人在线| 国产精品 日产精品 欧美精品| 日韩欧美国产综合一区| 奇米影视在线99精品| 欧美视频日韩视频| 亚洲主播在线观看| 欧美午夜在线观看| 亚洲最新在线观看| 色8久久精品久久久久久蜜| 亚洲欧美在线aaa| 不卡在线视频中文字幕| 国产精品第五页| av在线播放成人| 亚洲色图视频免费播放| 91偷拍与自偷拍精品| 亚洲精品视频在线观看网站| 91欧美一区二区| 亚洲女人的天堂| 欧美在线视频日韩| 午夜精品免费在线| 777a∨成人精品桃花网| 蜜臀久久99精品久久久久宅男| 日韩欧美一区中文| 国产麻豆欧美日韩一区| 国产视频一区二区在线观看| 国产91精品一区二区| 中文字幕一区二区在线播放| www.成人在线| 夜夜嗨av一区二区三区中文字幕 | 日本韩国欧美一区二区三区| 亚洲午夜国产一区99re久久| 欧美日韩精品一区二区三区四区| 天堂资源在线中文精品| 欧美成人免费网站| 国产麻豆精品视频| 中文字幕视频一区二区三区久| 色哟哟国产精品| 亚洲成人福利片| 日韩一级精品视频在线观看| 国产一区二区h| 亚洲人亚洲人成电影网站色| 欧美私人免费视频| 狠狠色狠狠色合久久伊人| 中文字幕久久午夜不卡| 在线观看视频一区| 蜜臂av日日欢夜夜爽一区| 欧美国产亚洲另类动漫| 在线观看国产91| 精品一区二区三区日韩| 自拍偷拍欧美精品| 欧美一区二区三区免费| 成人免费观看av| 亚瑟在线精品视频| 国产亚洲欧美色| 欧美日韩亚洲综合在线| 国产一区二区三区蝌蚪| 亚洲一区二区在线播放相泽| 精品剧情v国产在线观看在线| 成人综合婷婷国产精品久久 | 捆绑调教美女网站视频一区| 一区二区中文视频| 日韩欧美一区中文| 91蜜桃网址入口| 国产在线不卡视频| 亚洲制服丝袜av| 欧美激情艳妇裸体舞| 欧美一区二区三区色| av亚洲精华国产精华精| 久久精品国产99久久6| 亚洲免费观看高清在线观看| 日韩久久精品一区| 欧美综合在线视频| 国产精品99久久久久久久vr| 日韩综合小视频| 亚洲欧美另类小说视频| 久久看人人爽人人| 欧美片在线播放| 91麻豆精品秘密|