针对传统UART IP核设计中存在的使用场景单一、不能支持同步通信的不足,设计了一款基于APB总线接口的USART外设。采用模块化设计方式通过Verilog语言对APB总线数据传输模块、寄存器组模块、串行数据发送模块、串行数据接收模块、波特率发生模块进行了详细设计,并使用Simvision软件通过UVM验证方法学对电路的异步/同步通信功能进行验证。验证结果表明,设计的IP核在实现异步数据收发的基础上可实现基于SPI协议的同步数据收发,相较于传统的UART IP核设计,具有更强的普适性。
Abstract
This article proposes a USART peripheral based on APB bus interface to address the shortcomings of single usage scenarios and inability to support synchronous communication in traditional UART IP core design.The APB bus data transmission module,register group module,serial data sending module,serial data receiving module,and baud rate generation module are designed in detail using a modular design approach and Verilog language.The asynchronous/synchronous communication function of the circuit is verified using Simvision software and UVM verification methodology.The verification results indicate that the designed IP core can also achieve synchronous data transmission based on SPI protocol on the basis of asynchronous data transmission,and has stronger universality compared to traditional UART IP core design.
关键词
集成电路 /
同步通信 /
USART /
UVM
Key words
integrated circuit /
synchronous communication /
USART /
UVM
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] 陆明远.面向AXI总线的UART IP核设计[D].西安:西安电子科技大学,2017.
[2] 范健民,郑学仁,陈玲晶,等.基于Verilog HDL的全功能UART IP核的设计与实现[J].中国集成电路,2005(1):50-53.
[3] 胡茂文,徐日升,张华曹.支持IRDA协议UART的IP核设计[J].微处理机,2004(3):8-9,11.
[4] 郭艾华.基于APB总线接口的SPI协议IP核的设计与验证[J].无线互联科技,2013(11):132-134.
[5] 刘哲.基于FPGA的高速数字工业相机系统设计与实现[D].北京:中国科学院大学,2013.
[6] 范宁宁,王宜怀,陈瑞杰.基于WSCN与E-Ethernet相结合的远程测控系统框架研究[J].现代电子技术,2016,39(2):53-57,61.
[7] 罗春梅,肖顺文,王涌.基于FPGA的UART的设计实现[J].数字技术与应用,2019,37(3):150-151.
[8] 杨雪梅,黄海生,李鑫,等.基于AMBA总线的SoC中UART电路的设计与实现[J].信息技术,2019,43(6):149-152,157.
[9] 李雪伟,宗荣芳,刘浩,等.基于PLD 的UART接口芯片电路设计[J].信息技术与信息化,2021(10):174-176.
[10] 夏宇闻.Verilog数字系统设计教程[M].北京:北京航空航天大学出版社,2006.
[11] 刘攀.基于AMBA总线的低功耗MCU设计[D].成都:电子科技大学,2021.
基金
*山西省应用基础研究计划资助项目(20210302123059);山西省高等学校科技创新项目资助(2020L0326)。