| With the rise of integrated circuit industry,microcontroller(MCU)as an important branch of system on chip(SOC)is becoming more and more important in the integrated circuit industry.In recent years,due to the rapid development of high-end fields such as artificial intelligence and Internet of Things applications,MCU has further improved in market demand.USART,known as universal synchronous/asynchronous serial transceiver,is a universal interface for serial communication and an important peripheral for serial communication in MCU.It can be configured in a variety of ways to adapt to different communication protocols and data transmission rates.Because of its simple line,low cost and high flexibility,USART is widely used in network communication,data storage and other fields.Firstly,the design of USART peripheral is carried out in this paper.Based on the research of USART communication mode,the whole architecture of USART peripheral is designed according to its functional characteristics.The modular design method is used to divide the USART peripheral into modules according to the functions that need to be realized,and the realization way and function description of each module are given.The whole design includes register group module,serial data sending module,serial data receiving module,baud rate generation module,APB bus data transmission module and send enable control module.Verilog language is used to complete the design of each module.After the completion of the design of USART peripherals,based on the basic theory of UVM verification methodology,the task of building the verification platform for USART peripherals was carried out,and the design code of USART peripherals was verified by referring to the design function points.In Linux environment,Simvison software is used for verification and waveform display of data.The verification results were analyzed after completion of the verification,and the verification results showed that: The USART peripheral designed in this paper not only realizes full-duplex asynchronous communication and synchronous communication,but also generates different baud rate transceiver clock and multi-mode interrupt.It supports dual interface standards of RS232 and IRDA,and supports special communication modes,including multi-processor communication mode,smart card mode and local area Internet mode. |