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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? uart_rfifo.v

?? Uart 串口的verilog實現已調試通過
?? V
字號:
//////////////////////////////////////////////////////////////////////////                                                              ////////  uart_rfifo.v (Modified from uart_fifo.v)                    ////////                                                              ////////                                                              ////////  This file is part of the "UART 16550 compatible" project    ////////  http://www.opencores.org/cores/uart16550/                   ////////                                                              ////////  Documentation related to this project:                      ////////  - http://www.opencores.org/cores/uart16550/                 ////////                                                              ////////  Projects compatibility:                                     ////////  - WISHBONE                                                  ////////  RS232 Protocol                                              ////////  16550D uart (mostly supported)                              ////////                                                              ////////  Overview (main Features):                                   ////////  UART core receiver FIFO                                     ////////                                                              ////////  To Do:                                                      ////////  Nothing.                                                    ////////                                                              ////////  Author(s):                                                  ////////      - gorban@opencores.org                                  ////////      - Jacob Gorban                                          ////////      - Igor Mohor (igorm@opencores.org)                      ////////                                                              ////////  Created:        2001/05/12                                  ////////  Last Updated:   2002/07/22                                  ////////                  (See log for the revision history)          ////////                                                              ////////                                                              //////////////////////////////////////////////////////////////////////////////                                                              //////// Copyright (C) 2000, 2001 Authors                             ////////                                                              //////// This source file may be used and distributed without         //////// restriction provided that this copyright statement is not    //////// removed from the file and that any derivative work contains  //////// the original copyright notice and the associated disclaimer. ////////                                                              //////// This source file is free software; you can redistribute it   //////// and/or modify it under the terms of the GNU Lesser General   //////// Public License as published by the Free Software Foundation; //////// either version 2.1 of the License, or (at your option) any   //////// later version.                                               ////////                                                              //////// This source is distributed in the hope that it will be       //////// useful, but WITHOUT ANY WARRANTY; without even the implied   //////// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      //////// PURPOSE.  See the GNU Lesser General Public License for more //////// details.                                                     ////////                                                              //////// You should have received a copy of the GNU Lesser General    //////// Public License along with this source; if not, download it   //////// from http://www.opencores.org/lgpl.shtml                     ////////                                                              ////////////////////////////////////////////////////////////////////////////// CVS Revision History//// $Log: uart_rfifo.v,v $// Revision 1.4  2003/07/11 18:20:26  gorban// added clearing the receiver fifo statuses on resets//// Revision 1.3  2003/06/11 16:37:47  gorban// This fixes errors in some cases when data is being read and put to the FIFO at the same time. Patch is submitted by Scott Furman. Update is very recommended.//// Revision 1.2  2002/07/29 21:16:18  gorban// The uart_defines.v file is included again in sources.//// Revision 1.1  2002/07/22 23:02:23  gorban// Bug Fixes://  * Possible loss of sync and bad reception of stop bit on slow baud rates fixed.//   Problem reported by Kenny.Tung.//  * Bad (or lack of ) loopback handling fixed. Reported by Cherry Withers.//// Improvements://  * Made FIFO's as general inferrable memory where possible.//  So on FPGA they should be inferred as RAM (Distributed RAM on Xilinx).//  This saves about 1/3 of the Slice count and reduces P&R and synthesis times.////  * Added optional baudrate output (baud_o).//  This is identical to BAUDOUT* signal on 16550 chip.//  It outputs 16xbit_clock_rate - the divided clock.//  It's disabled by default. Define UART_HAS_BAUDRATE_OUTPUT to use.//// Revision 1.16  2001/12/20 13:25:46  mohor// rx push changed to be only one cycle wide.//// Revision 1.15  2001/12/18 09:01:07  mohor// Bug that was entered in the last update fixed (rx state machine).//// Revision 1.14  2001/12/17 14:46:48  mohor// overrun signal was moved to separate block because many sequential lsr// reads were preventing data from being written to rx fifo.// underrun signal was not used and was removed from the project.//// Revision 1.13  2001/11/26 21:38:54  gorban// Lots of fixes:// Break condition wasn't handled correctly at all.// LSR bits could lose their values.// LSR value after reset was wrong.// Timing of THRE interrupt signal corrected.// LSR bit 0 timing corrected.//// Revision 1.12  2001/11/08 14:54:23  mohor// Comments in Slovene language deleted, few small fixes for better work of// old tools. IRQs need to be fix.//// Revision 1.11  2001/11/07 17:51:52  gorban// Heavily rewritten interrupt and LSR subsystems.// Many bugs hopefully squashed.//// Revision 1.10  2001/10/20 09:58:40  gorban// Small synopsis fixes//// Revision 1.9  2001/08/24 21:01:12  mohor// Things connected to parity changed.// Clock devider changed.//// Revision 1.8  2001/08/24 08:48:10  mohor// FIFO was not cleared after the data was read bug fixed.//// Revision 1.7  2001/08/23 16:05:05  mohor// Stop bit bug fixed.// Parity bug fixed.// WISHBONE read cycle bug fixed,// OE indicator (Overrun Error) bug fixed.// PE indicator (Parity Error) bug fixed.// Register read bug fixed.//// Revision 1.3  2001/05/31 20:08:01  gorban// FIFO changes and other corrections.//// Revision 1.3  2001/05/27 17:37:48  gorban// Fixed many bugs. Updated spec. Changed FIFO files structure. See CHANGES.txt file.//// Revision 1.2  2001/05/17 18:34:18  gorban// First 'stable' release. Should be sythesizable now. Also added new header.//// Revision 1.0  2001-05-17 21:27:12+02  jacob// Initial revision////// synopsys translate_off`include "timescale.v"// synopsys translate_on`include "uart_defines.v"module uart_rfifo (clk, 	wb_rst_i, data_in, data_out,// Control signals	push, // push strobe, active high	pop,   // pop strobe, active high// status signals	overrun,	count,	error_bit,	fifo_reset,	reset_status	);// FIFO parametersparameter fifo_width = `UART_FIFO_WIDTH;parameter fifo_depth = `UART_FIFO_DEPTH;parameter fifo_pointer_w = `UART_FIFO_POINTER_W;parameter fifo_counter_w = `UART_FIFO_COUNTER_W;input				clk;input				wb_rst_i;input				push;input				pop;input	[fifo_width-1:0]	data_in;input				fifo_reset;input       reset_status;output	[fifo_width-1:0]	data_out;output				overrun;output	[fifo_counter_w-1:0]	count;output				error_bit;wire	[fifo_width-1:0]	data_out;wire [7:0] data8_out;// flags FIFOreg	[2:0]	fifo[fifo_depth-1:0];// FIFO pointersreg	[fifo_pointer_w-1:0]	top;reg	[fifo_pointer_w-1:0]	bottom;reg	[fifo_counter_w-1:0]	count;reg				overrun;wire [fifo_pointer_w-1:0] top_plus_1 = top + 1'b1;raminfr #(fifo_pointer_w,8,fifo_depth) rfifo          (.clk(clk), 			.we(push), 			.a(top), 			.dpra(bottom), 			.di(data_in[fifo_width-1:fifo_width-8]), 			.dpo(data8_out)		); always @(posedge clk or posedge wb_rst_i) // synchronous FIFObegin	if (wb_rst_i)	begin		top		<= #1 0;		bottom		<= #1 1'b0;		count		<= #1 0;		fifo[0] <= #1 0;		fifo[1] <= #1 0;		fifo[2] <= #1 0;		fifo[3] <= #1 0;		fifo[4] <= #1 0;		fifo[5] <= #1 0;		fifo[6] <= #1 0;		fifo[7] <= #1 0;		fifo[8] <= #1 0;		fifo[9] <= #1 0;		fifo[10] <= #1 0;		fifo[11] <= #1 0;		fifo[12] <= #1 0;		fifo[13] <= #1 0;		fifo[14] <= #1 0;		fifo[15] <= #1 0;	end	else	if (fifo_reset) begin		top		<= #1 0;		bottom		<= #1 1'b0;		count		<= #1 0;		fifo[0] <= #1 0;		fifo[1] <= #1 0;		fifo[2] <= #1 0;		fifo[3] <= #1 0;		fifo[4] <= #1 0;		fifo[5] <= #1 0;		fifo[6] <= #1 0;		fifo[7] <= #1 0;		fifo[8] <= #1 0;		fifo[9] <= #1 0;		fifo[10] <= #1 0;		fifo[11] <= #1 0;		fifo[12] <= #1 0;		fifo[13] <= #1 0;		fifo[14] <= #1 0;		fifo[15] <= #1 0;	end  else	begin		case ({push, pop})		2'b10 : if (count<fifo_depth)  // overrun condition			begin				top       <= #1 top_plus_1;				fifo[top] <= #1 data_in[2:0];				count     <= #1 count + 1'b1;			end		2'b01 : if(count>0)			begin        fifo[bottom] <= #1 0;				bottom   <= #1 bottom + 1'b1;				count	 <= #1 count - 1'b1;			end		2'b11 : begin				bottom   <= #1 bottom + 1'b1;				top       <= #1 top_plus_1;				fifo[top] <= #1 data_in[2:0];		        end    default: ;		endcase	endend   // alwaysalways @(posedge clk or posedge wb_rst_i) // synchronous FIFObegin  if (wb_rst_i)    overrun   <= #1 1'b0;  else  if(fifo_reset | reset_status)     overrun   <= #1 1'b0;  else  if(push & ~pop & (count==fifo_depth))    overrun   <= #1 1'b1;end   // always// please note though that data_out is only valid one clock after pop signalassign data_out = {data8_out,fifo[bottom]};// Additional logic for detection of error conditions (parity and framing) inside the FIFO// for the Line Status Register bit 7wire	[2:0]	word0 = fifo[0];wire	[2:0]	word1 = fifo[1];wire	[2:0]	word2 = fifo[2];wire	[2:0]	word3 = fifo[3];wire	[2:0]	word4 = fifo[4];wire	[2:0]	word5 = fifo[5];wire	[2:0]	word6 = fifo[6];wire	[2:0]	word7 = fifo[7];wire	[2:0]	word8 = fifo[8];wire	[2:0]	word9 = fifo[9];wire	[2:0]	word10 = fifo[10];wire	[2:0]	word11 = fifo[11];wire	[2:0]	word12 = fifo[12];wire	[2:0]	word13 = fifo[13];wire	[2:0]	word14 = fifo[14];wire	[2:0]	word15 = fifo[15];// a 1 is returned if any of the error bits in the fifo is 1assign	error_bit = |(word0[2:0]  | word1[2:0]  | word2[2:0]  | word3[2:0]  |            		      word4[2:0]  | word5[2:0]  | word6[2:0]  | word7[2:0]  |            		      word8[2:0]  | word9[2:0]  | word10[2:0] | word11[2:0] |            		      word12[2:0] | word13[2:0] | word14[2:0] | word15[2:0] );endmodule

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品毛片久久久久久| 视频一区中文字幕国产| 捆绑变态av一区二区三区| 99re在线精品| 国产精品免费久久久久| 久久99精品国产麻豆婷婷| 欧美午夜宅男影院| 亚洲国产成人av网| 欧美视频中文字幕| 亚洲国产中文字幕在线视频综合| 93久久精品日日躁夜夜躁欧美| 国产精品久久国产精麻豆99网站| 国产精品白丝jk白祙喷水网站| 日本一区二区三区国色天香| 精东粉嫩av免费一区二区三区| 欧美第一区第二区| 国产成人在线观看免费网站| 久久九九久久九九| 99久久99久久精品免费观看 | 欧美精品第一页| 日本麻豆一区二区三区视频| 亚洲欧美日韩国产综合在线| 91精品国产麻豆| 国产午夜精品久久久久久免费视 | 久久亚洲一级片| 激情五月播播久久久精品| 久久先锋资源网| 在线观看不卡一区| 国产一区二区三区免费观看| 综合久久国产九一剧情麻豆| 91精品国产综合久久精品app | 日韩视频一区二区三区| 成人午夜私人影院| 美女在线视频一区| 玉足女爽爽91| 中文子幕无线码一区tr| 欧美人牲a欧美精品| 国产成人精品1024| 精品一区二区影视| 亚洲国产精品久久久久秋霞影院| 欧美国产一区在线| 亚洲精品一区二区三区影院| 欧美日韩中文一区| av男人天堂一区| 国产精品 欧美精品| 偷拍日韩校园综合在线| 亚洲无人区一区| 一区二区三区精品在线| 18成人在线观看| 国产亚洲精品免费| 久久久国产精华| 精品国产91洋老外米糕| 日韩欧美一区电影| 久久伊99综合婷婷久久伊| 欧美α欧美αv大片| 亚洲精品一区二区三区蜜桃下载 | 国产成人精品1024| 国产成人精品综合在线观看| 高清国产一区二区| 99re视频这里只有精品| 一本到不卡免费一区二区| 在线一区二区三区四区五区| 日本韩国一区二区| 欧美午夜免费电影| 精品av久久707| 18涩涩午夜精品.www| 亚洲一区二区在线视频| 天堂一区二区在线免费观看| 美女在线视频一区| av在线不卡免费看| 91精品蜜臀在线一区尤物| 欧美电视剧免费全集观看| 国产欧美精品一区| 亚洲黄色小说网站| 日本va欧美va瓶| 91香蕉视频在线| 日韩三区在线观看| 亚洲欧美日韩国产手机在线 | 91亚洲永久精品| 日韩视频在线一区二区| 亚洲欧洲一区二区在线播放| 五月开心婷婷久久| 成人国产精品免费观看视频| 欧美在线|欧美| 一区在线观看视频| 国产精品18久久久久| 欧美日韩精品一区二区三区| 日本一区二区免费在线| 午夜精品一区二区三区免费视频| 福利视频网站一区二区三区| 777色狠狠一区二区三区| 亚洲美女偷拍久久| 成人开心网精品视频| 久久综合网色—综合色88| 视频在线观看国产精品| 欧美一a一片一级一片| 亚洲黄色免费电影| 一本一本久久a久久精品综合麻豆| 中文字幕欧美日韩一区| 国产超碰在线一区| 中文在线一区二区| 国产精品综合网| 日本一区二区动态图| 久久精品国产成人一区二区三区| 欧美亚洲一区二区在线| 午夜日韩在线电影| 欧美一区二区三区在线观看视频| 午夜精品免费在线| 精品日韩一区二区三区 | 国产黄色91视频| 欧美激情综合网| 日本精品视频一区二区三区| 亚洲动漫第一页| 欧美精品少妇一区二区三区| 亚洲国产欧美在线人成| 欧美大胆一级视频| 国产精品一区三区| 一二三四区精品视频| 日韩欧美一二区| 91麻豆免费视频| 美女视频黄久久| 中文字幕乱码亚洲精品一区| 成人app网站| 美腿丝袜亚洲色图| 亚洲免费观看高清完整版在线观看| 91麻豆6部合集magnet| 狠狠网亚洲精品| 亚洲四区在线观看| 精品国产一区二区三区四区四| 成人aaaa免费全部观看| 美女网站色91| 午夜精品在线视频一区| 欧美国产综合一区二区| 欧美一区二区观看视频| 91传媒视频在线播放| 成人动漫一区二区三区| 国产乱码精品一区二区三区忘忧草| 亚洲午夜免费福利视频| 亚洲欧美一区二区三区国产精品 | 91免费精品国自产拍在线不卡| 免费高清成人在线| 日韩精品成人一区二区三区 | 中文字幕在线观看不卡| 欧美白人最猛性xxxxx69交| 欧美午夜电影网| 91久久国产最好的精华液| www.视频一区| 91一区二区在线| 91啦中文在线观看| 91麻豆国产精品久久| 色婷婷综合久久久久中文 | 久久电影网站中文字幕| 视频一区二区欧美| 亚洲成在人线免费| 亚洲国产成人av好男人在线观看| 亚洲综合av网| 日本亚洲一区二区| 国产一区视频导航| 成人高清av在线| 欧美日免费三级在线| 欧美乱妇一区二区三区不卡视频| 欧美日韩高清一区| 欧美一级搡bbbb搡bbbb| 欧美老年两性高潮| 蜜臀av性久久久久蜜臀aⅴ流畅| 久久久91精品国产一区二区精品| 欧美视频日韩视频| 日韩小视频在线观看专区| 精品盗摄一区二区三区| 国产精品色眯眯| 亚洲国产综合在线| 丁香一区二区三区| 日本福利一区二区| 久久夜色精品国产噜噜av| 国产精品系列在线| 亚洲18色成人| 成人午夜视频福利| 在线不卡中文字幕播放| 国产拍揄自揄精品视频麻豆| 亚洲精品乱码久久久久久久久| 亚洲h动漫在线| 91色|porny| 国产色婷婷亚洲99精品小说| 蜜桃av一区二区| 欧美情侣在线播放| 中文字幕亚洲在| 国产69精品久久久久777| 91 com成人网| 亚洲成a人v欧美综合天堂下载| 波多野结衣亚洲| 精品久久一区二区| 男人的天堂久久精品| 在线观看国产精品网站| 亚洲男人都懂的| 91久久人澡人人添人人爽欧美| 国产精品伦理在线| 91女人视频在线观看| 亚洲私人黄色宅男| 91女人视频在线观看| 亚洲欧美在线观看|