Uart Amba
Uart Amba
Abstract -The Advanced Microcontroller Bus (i)To facilitate the right-first-time development of
Architecture (AMBA) specification provides the Embedded Microcontroller Products with one or more
designer a technology independent way to organize the CPUs or signal processors.
different peripherals involved in System on chip design (ii)To be technology-independent and ensure that highly
(SOC) and setup a standard in their interaction and reusable peripheral and system macro cells can be
communication. The Advanced Peripheral Bus (APB) is migrated across a diverse range of IC processes and be
part of the Advanced MicrocontrollerBus appropriate for full-custom, standard cell and gate array
Architecture(AMBA) hierarchy of buses wchich is technologies.
optimized for minimal power consumption and to (iii)To encourage modular system design to improve
reduced interface complexity. The AMBA APB is used processor independence, providing a development road-
to interface many peripherals which are low bandwidth map for advanced cached CPU cores and the
development of peripheral libraries.
and do not require the high performance.
(iv)To minimize the silicon infrastructure required
supporting efficient on-chip and off-chipcommunication
UART Controller as AMBA APB slave is designed to for both operation and manufacturing test.
transmit the data serially. The data can be transmitted The present design of UART slave devices which are
by adding special featurelike endianness. UART compatible with AMBA APB bus protocol can be
controller is designed to transmit or receive the data with plugged in to AMBA bus oriented system, its
two different baud rates. It is also designed to provide functionality and requirement can be used with AMBA
error detection capability to processor and to write one or based systems. The present design is configured with the
two bytes in one cycle, which is configurable by the user. control signals of the AMBA standard specification. The
Different modules are HDL coded, test bench was control of these slave devices can be taken by APB
written and simulated usingModel Simand Synthesis is controller of another AMBA based system when they
performed usingXilinx. are connected to it.
1
An AMBA AHB design may contain one or more bus
(i) The Advanced High-performance Bus (AHB) masters typically a system would contain at least the
processor and test interface. However, it would also be
common for a Direct Memory Access (DMA) or Digital
(ii) The Advanced System Bus (ASB)
Signal Processor (DSP) to be included as bus masters.
(iii) The Advanced Peripheral Bus (APB).
The external memory interface, APB Bridge and any
internal memory are the most common AHB slaves. Any
other peripheral in the system could also be included as
an AHB slave. However, low-bandwidth peripherals
typically reside on the APB.
Features of ASB:
Figure 1. AMBA based Simple Microcontroller Burst transfers
Pipelined transfer operation
1.Advanced high-performance bus (AHB) Multiple bus masters.
2
3 OPERATION OF UART CONTROLLER
3
The sequence of operations carried out during
reception of data from external device. External device
initiates the process by sending the data to input filter.
UART is configured and valid data from input filter is
shifted to control logic. Errors are checked and
corresponding error interrupts are generated and
erroneous data is stored in receiver FIFO. If there are
no errors, valid data is stored in FIFO. Data from
receiver FIFO is stored into register hold and CPU
reads the data from register hold.
4. Simulation Results
4
Figure 8: Transmitter engine simulation.
Figure 6: Simulation waveform of UART
5
5 Conclusions References
A user configurable UART controller has been [1] Flynn, D. Adv. RISC Machines Ltd.,
designed. APB bus interface is used for Cambridge, “AMBA:enabling reusable on-chip
communication with processor in this UART designs”, IEEE Micro, Publication Date:
controller. The registers of the UART are configurable. Jul/Aug 1997.
Any AMBA based SOC with ARM processor can use [2] NikilDutt, Kaustav Banerjee, Luca Benini,
this UART controller for serial communication. KanishkaLahiri, SudeepPasricha, "Tutorial 5:
SoC Communication Architectures:
A UART Controller as AMBA APB slave is designed Technology, Current Practice, Research, and
to transmit the data serially. The data can be Trends," vlsid, pp.8, 20th International
transmitted by adding special feature like endianness. Conference on VLSI Design held jointly with
Using this UART controller the serial data can be 6th International Conference on Embedded
received with the special feature endianness. Systems (VLSID'07), 2007
[3] “Using formal techniques to Debug the AMBA
System-on-Chip Bus Protocol” Proceedings of
UART controller is designed to transmit or receive the
data with two different baud rates. It is also designed to the Design, Automation and Test in Europe
provide error detection capability to processor; this is Conference and Exhibition, 2003.
designed to write one or two bytes in one cycle, which is [4] AMBA Specification (Rev 2.0).
configurable by the user.