//////////////////////////////////////////////////////////////////////
//// ////
//// readme.txt ////
//// ////
//// ////
//// This file is part of the "UART 16550 compatible" project ////
//// http://www.opencores.org/projects/uart16550/ ////
//// ////
//// Documentation related to this project: ////
//// http://www.opencores.org/projects/uart16550/ ////
//// ////
//// Projects compatibility: ////
//// - WISHBONE ////
//// RS232 Protocol ////
//// 16550D uart (mostly supported) ////
//// ////
//// Overview (main Features): ////
//// Device interface for testing purposes ////
//// ////
//// Known problems (limits): ////
//// ////
//// To Do: ////
//// Nothing. ////
//// ////
//// Author(s): ////
//// - Igor Mohor (igorm@opencores.org) ////
//// ////
//// Created and updated: (See log for the revision history) ////
//// ////
//// ////
//////////////////////////////////////////////////////////////////////
//// ////
//// Copyright (C) 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: not supported by cvs2svn $
//
//
//
//
Following files are making an UART16550 PHY and are used for testing:
uart_device_if_defines.v - defines related to PHY
uart_device_if_memory.v - Module for initializing PHY (reading commands from vapi.log file)
uart_device_if.v - Uart PHY with additional feature for testing
vapi.log - File with commands (expected data, data to be send, etc.)
readme.txt - This file
OPERATION:
uart_device_if.v is a uart PHY and connects to the uart_top.v. PHY takes commands from vapi.log
file. Depending on command it can:
- set a mode (5, 6, 7, 8-bit, parity, stop bits, etc.)
- set a frequency divider (dll)
- send a character
- receive a character and compare it to the expected one
- send a glitch (after a certain period of time)
- send a break
- detect a break
- Check if fifo is empty/not empty (and generate an error if expected value differs from actual)
- delay (does nothing for certain number of characters)
On the other side of uart some kind of host must be connected that controls the phy.
This is the structure:
|||||||||||||| |||||||||||||||| ||||||||||||||||
| | | | | |
| Host | <----------> | UART | <----------> | PHY |
| | | | | |
|||||||||||||| |||||||||||||||| ||||||||||||||||
PHY must know how host sets th UART and work in the same mode. Besides that it must know what
host is sending or expecting to receive. Operation of the PHY must be written in the vapi.log
file.
When I was using this testing environment, I used OpenRISC1200 as a host. Everything is fully
operational. UART was also tested in hardware (on two different boards), running uCLinux in
both, interrupt and polling mode.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
UART IP核(verilog代码及说明文档) (356个子文件)
UART_spec.doc 126KB
UART_spec.doc 126KB
UART_spec.doc 126KB
UART_spec.doc 126KB
UART_spec.doc 126KB
UART_spec.doc 80KB
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
.keepme 0B
共 356 条
- 1
- 2
- 3
- 4
资源评论
- peiyu7582018-10-17挺不错的资源
- myfewer2019-01-02把2010年人家就发布的资源放上来,有意思吗
- AlibabaApple2021-04-10不知道如何使用,没有给使用说明
qq_30206623
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功