Amba bus

18
AMBA BUS AMBA BUS Advanced Micro controller Bus Advanced Micro controller Bus Architecture Architecture By By ROHIT Y SHANBHAG ROHIT Y SHANBHAG

Transcript of Amba bus

Page 1: Amba bus

AMBA BUSAMBA BUSAdvanced Micro controller Bus Advanced Micro controller Bus

ArchitectureArchitecture

ByBy

ROHIT Y SHANBHAGROHIT Y SHANBHAG

Page 2: Amba bus

Overview of the AMBA SpecificationOverview of the AMBA Specification

The Advanced Micro controller Bus

architecture (AMBA) specification defines an

on-chip communication standard for designing

high-performance embedded micro controllers.

Page 3: Amba bus

Types of AMBA BusTypes of AMBA Bus

Three distinct buses are defined within the AMBAThree distinct buses are defined within the AMBA

specification:specification:

The The Advanced High-performance Bus Advanced High-performance Bus (AHB)(AHB) The The Advanced System Bus Advanced System Bus (ASB)(ASB) The The Advanced Peripheral Bus Advanced Peripheral Bus (APB).(APB). The Advanced Trace Bus ( ATB ) The AMBA Extensible Interface ( AXI )

Page 4: Amba bus

Objectives of AMBA BusThe AMBA specification has been derived to satisfy four key requirements:The AMBA specification has been derived to satisfy four key requirements:

To facilitate the To facilitate the right-first-time development of embedded micro controller development of embedded micro controller products with one or more CPUs or signal processors.products with one or more CPUs or signal processors.

To be To be technology-independent and ensure that highly reusable peripheral and and ensure that highly reusable peripheral and system macro cells can be migrated across a diverse range of IC processes and system macro cells can be migrated across a diverse range of IC processes and be appropriate for full-custom, standard cell and gate array technologiesbe appropriate for full-custom, standard cell and gate array technologies

To encourage To encourage modular system design to improve processor independence, to improve processor independence, providing a development road-map for advanced cached CPU cores and the providing a development road-map for advanced cached CPU cores and the development of peripheral libraries.development of peripheral libraries.

To minimize the To minimize the silicon infrastructure required to support efficient on-chip and required to support efficient on-chip and off-chip communication for both operation and manufacturing test.off-chip communication for both operation and manufacturing test.

Page 5: Amba bus

Typical AMBA Based Micro controllerTypical AMBA Based Micro controller

An AMBA-based micro controller typically consists of a high-performance system backbone bus (AMBA AHB or AMBA ASB).

Which is able to sustain the external memory bandwidth, on which The CPU, on-chip memory and other Direct Memory Access (DMA) devices reside.

This bus provides a high-bandwidth interface between the elements that are involved in the majority of transfers.

Also located on the high-performance bus is a bridge to the lower bandwidth APB, where most of the peripheral devices in the system are located.

Page 6: Amba bus
Page 7: Amba bus

AMBA AHBAdvanced High Performance Bus

AHB is a new generation of AMBA bus which is intended to address the requirements of high-performance synthesizable designs.

It is a high-performance system bus that

supports multiple bus masters and provides high-bandwidth operation.

Page 8: Amba bus

Features of AMBA BUS

AMBA AHB implements the features required forAMBA AHB implements the features required forhigh-performance, high clock frequency systemshigh-performance, high clock frequency systemsincluding:including:

Burst transfersBurst transfers Split transactionsSplit transactions Single-cycle bus master handoverSingle-cycle bus master handover Single-clock edge operationSingle-clock edge operation Wider data bus configurations (64/128 bits).Wider data bus configurations (64/128 bits).

Page 9: Amba bus

Components of AMBA AHBComponents of AMBA AHB

A A typical AMBA AHB system design contains thetypical AMBA AHB system design contains the

Following components:Following components:

AHB master : A bus master is able to initiate read and write operations by providing AHB master : A bus master is able to initiate read and write operations by providing an address and control information.an address and control information.

AHB slave : A bus slave responds to a read or write operation within a given AHB slave : A bus slave responds to a read or write operation within a given address-space range.address-space range.

AHB arbiter : The bus arbiter ensures that only one bus master at a time is allowed AHB arbiter : The bus arbiter ensures that only one bus master at a time is allowed to initiate data transfers.to initiate data transfers.

AHB decoder : The AHB decoder is used to decode the address of each transferred AHB decoder : The AHB decoder is used to decode the address of each transferred provide a select signal for the slave that is involved in the transfer.provide a select signal for the slave that is involved in the transfer.

Page 10: Amba bus

Typical Master and slaveTypical Master and slave

An AMBA AHB design may contain one or more bus masters.

Typically a system would contain at least the processor and test interface.

It is also common for a Direct Memory Access (DMA) or Digital Signal Processor (DSP) to be included as bus masters.

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.

Page 11: Amba bus

Overview of AMBA AHB OperationOverview of AMBA AHB Operation

Before an AMBA AHB transfer can commence the bus master must be granted access to the bus.

Process is started by the master asserting a request signal to the arbiter.

Then the arbiter indicates when the master will be granted use of the bus.

A granted bus master starts an AMBA AHB transfer by driving the address and control signals.

These signals provide information on the address, direction and width of the transfer, as well as an indication if the transfer forms part of a burst.

A write data bus is used to move data from the master to a slave, while a read data bus is used to move data from a slave to the master.

Page 12: Amba bus

Basic TransferBasic Transfer

An AHB transfer consists of two distinct sections:An AHB transfer consists of two distinct sections:

The Address Phase, which lasts only a single cycle.The Address Phase, which lasts only a single cycle.

The Data Phase, which may require several cycles.The Data Phase, which may require several cycles.

Page 13: Amba bus

AMBA APBAMBA APBAdvanced Peripheral BusAdvanced Peripheral Bus

The The Advanced Peripheral Bus Advanced Peripheral Bus (APB) is part of the (APB) is part of the Advanced Advanced Micro controller Bus Architecture Micro controller Bus Architecture (AMBA)(AMBA)

APB is optimized for minimal power consumption and reduced APB is optimized for minimal power consumption and reduced interface complexity.interface complexity.

The AMBA APB should be used to interface to any peripherals The AMBA APB should be used to interface to any peripherals which are low bandwidth and do not require the high which are low bandwidth and do not require the high performance of a pipelined bus interface.performance of a pipelined bus interface.

The AMBA APB appears as a local secondary bus that is The AMBA APB appears as a local secondary bus that is encapsulated as a single AHB or ASB slave device.encapsulated as a single AHB or ASB slave device.

Page 14: Amba bus

Advantages of AMBA APBAdvantages of AMBA APB

Performance is improved at high-frequency operationPerformance is improved at high-frequency operation

Performance is independent of the mark-space ratio of the Performance is independent of the mark-space ratio of the clock static timing analysis is simplified by the use of a single clock static timing analysis is simplified by the use of a single clock edgeclock edge

No special considerations are required for automatic test No special considerations are required for automatic test insertioninsertion

Many Many Application-Specific Integrated Circuit Application-Specific Integrated Circuit (ASIC) libraries (ASIC) libraries have a better selection of rising edge registers have a better selection of rising edge registers

Easy integration with cycle based simulators.Easy integration with cycle based simulators.

Page 15: Amba bus

AMBA APB BridgeAMBA APB Bridge

The APB bridge is the only bus master on the AMBAThe APB bridge is the only bus master on the AMBA

APB. APB.

In addition, the APB bridge is also a slave on theIn addition, the APB bridge is also a slave on the

higher-level system bus.higher-level system bus.

Page 16: Amba bus

APB bridge descriptionAPB bridge description

The bridge unit converts system bus transfers intoThe bridge unit converts system bus transfers into

APB transfers and performs the following functions:APB transfers and performs the following functions:

Latches the address and holds it valid throughout the Latches the address and holds it valid throughout the transfer.transfer.

Decodes the address and generates a peripheral select, PSELx. Decodes the address and generates a peripheral select, PSELx. Only one select signal can be active during a transfer.Only one select signal can be active during a transfer.

Drives the data onto the APB for a write transfer.Drives the data onto the APB for a write transfer.

Drives the APB data onto the system bus for a read transfer.Drives the APB data onto the system bus for a read transfer.

Generates a timing strobe, PENABLE, for the transferGenerates a timing strobe, PENABLE, for the transfer

Page 17: Amba bus

APB slave DescriptionAPB slave Description

APB slaves have a simple, yet flexible, interface.APB slaves have a simple, yet flexible, interface.

The exact implementation of the interface will be The exact implementation of the interface will be dependent on the design style employed and many dependent on the design style employed and many different options are possible.different options are possible.

Page 18: Amba bus

http://en.wikipedia.org/wiki/Advanced_Microcontroller_Bus_Architecturehttp://en.wikipedia.org/wiki/Advanced_Microcontroller_Bus_Architecture

http://digitalelectronics.blogspot.in/2005/02/advanced-microcontroller-bus.htmlhttp://digitalelectronics.blogspot.in/2005/02/advanced-microcontroller-bus.html

THANK YOU THANK YOU