华中科技大学IC课程设计报告
题目:自适应波特率的UART设计
院系:控制科学与工程系
专业班:自动化0902班 姓名:
组 员: 学 号: 指导教师: 2012 年 1 月
1
华中科技大学IC课程设计报告
摘 要
通用异步接收发送器具有可编程性和高度兼容性, 在嵌入式系统设计中得到了广泛的应用。本文介绍了一种利用Verilog HDL语言设计UART 核心功能的方法, 具体描述了发送、接收以及波特率发生器模块的设计, 最后给出了该核心模块的整体功能仿真和综合结果。结果表明该UART 功能正确、稳定、可靠, 可以很好地应用于异步通讯中。
关键词: UART 异步通信Verilog HDL
I
华中科技大学IC课程设计报告 Abstract
Universal asynchronous receiver and transmitter are widely used in embedded system for itsprogrammable and high compatibility. A design of UART core with Verilog HDL was presented. The designsoftransmitter , receiver andbaudrategenerator modules were particularly described, andthe simulations were provided. The result of the simulations and synthesis shows that the UART is valid andreliable , and can be widely used in asynchronous communication.
Key Words: UART Verilog HDLAsynchronous communication
II
华中科技大学IC课程设计报告 目录
摘要 ................................................................ I Abstract ............................................................ II 1
绪论 ............................................................ 1
1.1
本设计的意义和背景 ..................................................................................................... 1
2 UART简介 ...................................................... 1
2.1 2.2 2.3
UART基本结构 ............................................................................................................. 1 UART帧格式 ................................................................................................................. 2 UART基本工作原理 ..................................................................................................... 2
3 UART系统设计方案 ............................................... 3
3.1 3.2
设计要求 ......................................................................................................................... 3 模块设计 ......................................................................................................................... 3
分频模块 ................................................................................................................. 3 接收模块 ................................................................................................................. 4 发送模块 ................................................................................................................. 5
3.2.1 3.2.2 3.2.3
4 本人所做工作 ..................................................... 5
4.1 4.2 4.3 4.4 4.5
发送模块的要求 ............................................................................................................. 5 模块设计过程 ................................................................................................................. 6 生成基本电路 ................................................................................................................. 9 仿真结果 ......................................................................................................................... 9 结果分析 ....................................................................................................................... 10
5 整体电路仿真分析 ................................................ 10
5.1 5.2
整体仿真结果 ............................................................................................................... 10 结论和讨论 ................................................................................................................... 11
结论 ....................................................................................................................... 11 讨论 ....................................................................................................................... 11
5.2.1 5.2.2
6 7 8
致谢 ........................................................... 12 心得体会 ........................................................ 13 参考文献 ........................................................ 14
III
华中科技大学IC课程设计报告 9 附录 ........................................................... 15
IV