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

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

?? uart_tx_ctl.v

?? 32位單精度浮點加法器
?? V
字號:
//-----------------------------------------------------------------------------//  //  Copyright (c) 2009 Xilinx Inc.////  Project  : Programmable Wave Generator//  Module   : uart_tx_ctl.v//  Parent   : uart_tx//  Children : none////  Description: //     UART transmit controller//     Implements the state machines for doing RS232 transmission.////     Whenever a character is ready for transmission (as indicated by the//     empty signal from the character FIFO), this module will transmit the//     character.////     The basis of this design is a simple state machine. When in IDLE, it//     waits for the character FIFO to indicate that a character is available,//     at which time, it immediately starts transmition. It spends 16//     baud_x16_en periods in the START state, transmitting the START//     condition (1'b0), then tranisitions to the DATA state, where it sends//     the 8 data bits (LSbit first), each lasting 16 baud_x16_en periods, and//     finally going to the STOP state for 16 periods, where it transmits the//     STOP value (1'b1).////     On the last baud_x16_en period of the last data bit (in the DATA//     state), it issues the POP signal to the character FIFO. Since the SM is//     only enabled when baud_x16_en is asserted, the resulting pop signal//     must then be ANDed with baud_x16_en to ensure that only one character//     is popped at a time. ////     On the last baud_x16_en period of the STOP state, the empty indication//     from the character FIFO is inspected; if asserted, the SM returns to//     the IDLE state, otherwise it transitions directly to the START state to//     start the transmission of the next character.////     There are two internal counters - one which counts off the 16 pulses of//     baud_x16_en, and a second which counts the 8 bits of data.////     The generation of the output (txd_tx) follows one complete baud_x16_en//     period after the state machine and other internal counters.////  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_tx_ctl (  input            clk_tx,          // Clock input  input            rst_clk_tx,      // Active HIGH reset - synchronous to clk_tx  input            baud_x16_en,     // 16x bit oversampling pulse  input            char_fifo_empty, // Empty signal from char FIFO (FWFT)  input      [7:0] char_fifo_dout,  // Data from the char FIFO  output           char_fifo_rd_en, // Pop signal to the char FIFO  output reg       txd_tx           // The transmit serial signal);//***************************************************************************// 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  reg          char_fifo_pop;     // POP indication to FIFO                                  // ANDed with baud_x16_en before module                                  // output//***************************************************************************// 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_tx)  begin    if (rst_clk_tx)    begin      state         <= IDLE;      char_fifo_pop <= 1'b0;    end    else    begin      if (baud_x16_en)       begin        char_fifo_pop <= 1'b0;        case (state)          IDLE: begin            // When the character FIFO is not empty, transition to the START            // state            if (!char_fifo_empty)            begin              state <= START;            end          end // IDLE state          START: begin            if (over_sample_cnt_done)            begin              state <= DATA;            end // if over_sample_cnt_done          end // START state          DATA: begin            // Once the last bit has been transmitted, send the stop bit            // Also, we need to POP the FIFO             if (over_sample_cnt_done && bit_cnt_done)            begin              char_fifo_pop <= 1'b1;              state         <= STOP;            end          end // DATA state          STOP: begin            if (over_sample_cnt_done)            begin              // If there is no new character to start, return to IDLE, else              // start it right away              if (char_fifo_empty)              begin                state <= IDLE;              end              else              begin                state <= START;              end            end          end // STOP state        endcase      end // if baud_x16_en    end // if rst_clk_tx  end // always   // Assert the rd_en to the FIFO for only ONE clock period  assign char_fifo_rd_en = char_fifo_pop && baud_x16_en;  // Oversample counter  // Pre-load whenever we are starting a new character (in IDLE or in STOP),  // or whenever we are within a character (when we are in START or DATA).  always @(posedge clk_tx)  begin    if (rst_clk_tx)    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) && !char_fifo_empty) ||              (state == START) ||               (state == DATA)  ||              ((state == STOP) && !char_fifo_empty))          begin            over_sample_cnt <= 4'd15;          end        end      end // if baud_x16_en    end // if rst_clk_tx  end // always   assign over_sample_cnt_done = (over_sample_cnt == 4'd0);  // Track which bit we are about to transmit  // Set to 0 in the START state   // Increment in all DATA states  always @(posedge clk_tx)  begin    if (rst_clk_tx)    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_tx  end // always   assign bit_cnt_done = (bit_cnt == 3'd7);  // Generate the output  always @(posedge clk_tx)  begin    if (rst_clk_tx)    begin      txd_tx    <= 1'b1;    end    else    begin      if (baud_x16_en)      begin        if ((state == STOP) || (state == IDLE))        begin          txd_tx <= 1'b1;        end        else if (state == START)        begin          txd_tx <= 1'b0;        end        else // we are in DATA        begin          txd_tx <= char_fifo_dout[bit_cnt];        end      end // if baud_x16_en    end // if rst  end // alwaysendmodule

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产.欧美.日韩| 精品处破学生在线二十三| 欧美日韩免费高清一区色橹橹| 欧美一级黄色录像| 玉足女爽爽91| 国产精品1024| 91精品综合久久久久久| 亚洲视频在线一区观看| 极品美女销魂一区二区三区 | 国产欧美一区二区在线| 亚洲二区在线视频| 处破女av一区二区| 日韩精品一区二| 亚洲.国产.中文慕字在线| 成人av资源站| 久久久亚洲高清| 精品一区二区三区免费视频| 欧美日韩在线观看一区二区| 国产精品久久午夜| 国产在线不卡视频| 欧美不卡在线视频| 日本视频在线一区| 欧美日本乱大交xxxxx| 一区二区三区四区乱视频| 成人精品鲁一区一区二区| 久久久久久99久久久精品网站| 日韩成人免费电影| 欧美日韩电影在线| 午夜视频一区在线观看| 欧美在线啊v一区| 亚洲乱码国产乱码精品精小说| 春色校园综合激情亚洲| 亚洲国产精品成人综合| 高清在线不卡av| 国产精品午夜免费| 成人99免费视频| 亚洲欧洲日韩av| av资源网一区| 亚洲欧美日韩一区二区| 99国产精品99久久久久久| 国产精品久久三区| 91香蕉国产在线观看软件| 亚洲欧美一区二区三区孕妇| 91首页免费视频| 亚洲婷婷综合色高清在线| 91丨porny丨首页| 亚洲一区二区在线免费观看视频| 一本色道久久综合狠狠躁的推荐| 中文字幕一区二区三区精华液| 不卡的av网站| 亚洲国产aⅴ成人精品无吗| 91.成人天堂一区| 久久成人免费网站| 久久久影院官网| 99久久99久久久精品齐齐| 亚洲激情图片一区| 91精品国产综合久久精品图片| 美日韩一级片在线观看| 国产视频不卡一区| 一本一本大道香蕉久在线精品| 亚洲自拍另类综合| 日韩美女视频一区二区在线观看| 国产精品一级黄| 亚洲美女少妇撒尿| 日韩欧美高清dvd碟片| 懂色av中文字幕一区二区三区| 亚洲特级片在线| 日韩一区二区三区视频| 国产ts人妖一区二区| 亚洲综合无码一区二区| 精品成人免费观看| 色婷婷精品大视频在线蜜桃视频 | 99久久夜色精品国产网站| 亚洲一区二区三区四区在线| 欧美一区二区三区在线看| 丁香五精品蜜臀久久久久99网站| 亚洲在线视频网站| 久久久精品tv| 欧美日韩国产免费| 国产成人精品亚洲777人妖 | 色综合天天视频在线观看 | 一二三四社区欧美黄| 精品卡一卡二卡三卡四在线| 91在线视频18| 精品在线播放午夜| 一区二区三区美女| 国产日韩欧美a| 欧美一区二区三区色| 91麻豆国产自产在线观看| 国产在线看一区| 亚洲国产精品影院| 亚洲欧美一区二区在线观看| 精品久久久久久久人人人人传媒| 91精品福利在线| 成人av片在线观看| 狠狠色综合播放一区二区| 亚洲mv在线观看| 一区二区免费视频| 综合电影一区二区三区| 欧美国产综合色视频| 日韩一区中文字幕| 久久久久久久av麻豆果冻| 日韩一区二区三区高清免费看看| 色综合久久精品| 91在线免费播放| 成人午夜大片免费观看| 国产精品一区二区三区四区| 美女性感视频久久| 日韩在线卡一卡二| 日日摸夜夜添夜夜添精品视频 | 91亚洲精品久久久蜜桃| 成人午夜视频福利| 成人一级片在线观看| 从欧美一区二区三区| 国产99一区视频免费| 国产精品一区二区在线看| 极品少妇xxxx精品少妇偷拍| 久国产精品韩国三级视频| 精品中文字幕一区二区| 国产在线一区观看| 国产九色精品成人porny| 国产精品中文字幕一区二区三区| 九九精品一区二区| 国产一区二区三区免费| 国产成人精品一区二| av在线不卡观看免费观看| 99久久久久免费精品国产 | 色综合中文字幕| 色婷婷综合五月| 欧美色综合久久| 欧美一级夜夜爽| 久久综合五月天婷婷伊人| 国产亚洲精品7777| 亚洲欧洲av在线| 亚洲动漫第一页| 看国产成人h片视频| 国产精品一区在线观看乱码| 成人av资源下载| 在线免费观看日韩欧美| 国产精品欧美久久久久无广告| 一区在线观看视频| 亚洲国产中文字幕| 久久国产精品第一页| 国产成人午夜片在线观看高清观看| 99在线精品观看| 欧美日韩中文精品| 26uuuu精品一区二区| 中文字幕中文乱码欧美一区二区| 亚洲影视在线观看| 久久69国产一区二区蜜臀| 99精品一区二区| 日韩一区二区在线观看| 欧美激情中文不卡| 亚洲成人精品影院| 国产精一品亚洲二区在线视频| 91色porny在线视频| 欧美大白屁股肥臀xxxxxx| 《视频一区视频二区| 喷水一区二区三区| 99久久99久久精品免费看蜜桃| 91精品国产综合久久久久久久久久| 国产欧美日韩久久| 日韩福利视频导航| 99这里都是精品| 欧美va亚洲va| 一级日本不卡的影视| 国产麻豆午夜三级精品| 欧美日韩一二区| 中文一区在线播放| 免费观看在线综合| 91视视频在线观看入口直接观看www | 亚洲美女视频在线| 国产一区二区三区| 欧美精品日韩综合在线| 国产精品久久久爽爽爽麻豆色哟哟| 日韩中文字幕亚洲一区二区va在线| 国产91高潮流白浆在线麻豆| 91精品国产麻豆| 亚洲亚洲人成综合网络| 成人av第一页| 久久久久久免费毛片精品| 日本不卡免费在线视频| 欧美亚洲禁片免费| 亚洲欧美一区二区三区久本道91| 国产精品综合一区二区| 精品国产一区二区三区四区四| 天天av天天翘天天综合网色鬼国产| 色综合久久久网| 国产精品国产馆在线真实露脸 | 中文字幕一区二区三| 欧美日韩另类国产亚洲欧美一级| 国产欧美一区二区精品性| 麻豆成人免费电影| 欧美一区三区四区| 日日骚欧美日韩| 宅男在线国产精品| 天天亚洲美女在线视频| 精品视频1区2区| 亚洲成人av一区二区三区| 欧美日韩午夜在线|