Uart Dma
Uart Dma
Objectives
Designing UART IP Soft-core with DMA. Improving the system performance by reducing the elapsed time of CPU greatly in Data transmission process.
Need of DMA
Present UART IP softcore based on Interrupt mode: attaining attention of CPU to get access to a resource. Polling mode: checking periodically until a prespecified event (read,wite) occurs.
Types of IP
Soft cores: Hardware Description Language model of a design Hard cores: physical layout information
Optimized design
Start 1 Data d0,d1,d2d7 1 Parity 1 Stop 1 ----------------4 ----------------
Block Diagram
idle
stop start
parity
data
idle
stop start
parity
data
DMA
Method of data transfer between regions in the memory space or between memory and peripherals without intervention by the cpu.
1 Tx_free
Tx_en
RX
TX
rxdv
Uart_read Uart2dma_data
Uart_write 1 1 Dma2uart_data
Uart_rxdv
01010101
Dma_done 1 Mem_rd rd wr addr data 01010101
DMA
MEMORY Data_out
01010101
Conclusion
IP Soft-core of UART is a better choice for faster communication device. As the design uses less logic system performance will be improved greatly
References
[1] L. K. Hu and Q.CH. Wang, UART-based Reliable Communication and performance Analysis , Computer Engineering, Vol 32 No. 10, May 2006, pp15-21 [2] Yang fuguang. Efficient UART communication and its applications based on DMA in ARM. Chinese Academic Journal Web Publishing General Library,2008. [3] Altera Corp, UART Core Users Guide [4] http://www.freebsd.org/doc/en_US.ISO8859-1/articles/serialUART/index.html [5] http://www.asic-world.com/examples/verilog/UART.html [6] http://opencores.org/ [7] http:// www.amba.com. [8] Lingge Jiang,Theories and Methods For Reactive Energy Measurement,Zhangjiajie Power Bureau, Zhangjiajie 427000,China.
Thank You