AHB Lite Specification
AHB Lite Specification
AHB Lite Specification
v1.0
Specification
Change history
Proprietary Notice
Words and logos marked with ® or ™ are registered trademarks or trademarks of ARM in the EU and other
countries, except as otherwise stated below in this proprietary notice. Other brands and names mentioned
herein may be the trademarks of their respective owners.
Neither the whole nor any part of the information contained in, or the product described in, this document
may be adapted or reproduced in any material form except with the prior written permission of the copyright
holder.
The product described in this document is subject to continuous developments and improvements. All
particulars of the product and its use contained in this document are given by ARM in good faith. However,
all warranties implied or expressed, including but not limited to implied warranties of merchantability, or
fitness for purpose, are excluded.
This document is intended only to assist the reader in the use of the product. ARM shall not be liable for any
loss or damage arising from the use of any information in this document, or any error or omission in such
information, or any incorrect use of the product.
Where the term ARM is used it means “ARM or any of its subsidiaries as appropriate”.
THIS END USER LICENCE AGREEMENT (“LICENCE”) IS A LEGAL AGREEMENT BETWEEN YOU
(EITHER A SINGLE INDIVIDUAL, OR SINGLE LEGAL ENTITY) AND ARM LIMITED (“ARM”) FOR
THE USE OF THE RELEVANT AMBA SPECIFICATION ACCOMPANYING THIS LICENCE. ARM IS
ONLY WILLING TO LICENSE THE RELEVANT AMBA SPECIFICATION TO YOU ON CONDITION
THAT YOU ACCEPT ALL OF THE TERMS IN THIS LICENCE. BY CLICKING “I AGREE” OR
OTHERWISE USING OR COPYING THE RELEVANT AMBA SPECIFICATION YOU INDICATE THAT
YOU AGREE TO BE BOUND BY ALL THE TERMS OF THIS LICENCE. IF YOU DO NOT AGREE TO
THE TERMS OF THIS LICENCE, ARM IS UNWILLING TO LICENSE THE RELEVANT AMBA
SPECIFICATION TO YOU AND YOU MAY NOT USE OR COPY THE RELEVANT AMBA
SPECIFICATION AND YOU SHOULD PROMPTLY RETURN THE RELEVANT AMBA
SPECIFICATION TO ARM.
“Subsidiary” means, if You are a single entity, any company the majority of whose voting shares is now or
hereafter owned or controlled, directly or indirectly, by You. A company shall be a Subsidiary only for the
period during which such control exists.
ii Copyright © 2001, 2006, 2010 ARM Limited. All rights reserved. ARM IHI 0033A
Non-Confidential
1. Subject to the provisions of Clauses 2, 3 and 4, ARM hereby grants to LICENSEE a perpetual,
non-exclusive, non-transferable, royalty free, worldwide licence to:
(i) use and copy the relevant AMBA Specification for the purpose of developing and having developed
products that comply with the relevant AMBA Specification;
(ii) manufacture and have manufactured products which either: (a) have been created by or for LICENSEE
under the licence granted in Clause 1(i); or (b) incorporate a product(s) which has been created by a third
party(s) under a licence granted by ARM in Clause 1(i) of such third party’s ARM AMBA Specification
Licence; and
(iii) offer to sell, sell, supply or otherwise distribute products which have either been (a) created by or for
LICENSEE under the licence granted in Clause 1(i); or (b) manufactured by or for LICENSEE under the
licence granted in Clause 1(ii).
2. LICENSEE hereby agrees that the licence granted in Clause 1 is subject to the following restrictions:
(i) where a product created under Clause 1(i) is an integrated circuit which includes a CPU then either: (a)
such CPU shall only be manufactured under licence from ARM; or (b) such CPU is neither substantially
compliant with nor marketed as being compliant with the ARM instruction sets licensed by ARM from time
to time;
(ii) the licences granted in Clause 1(iii) shall not extend to any portion or function of a product that is not itself
compliant with part of the relevant AMBA Specification; and
(iii) no right is granted to LICENSEE to sublicense the rights granted to LICENSEE under this Agreement.
3. Except as specifically licensed in accordance with Clause 1, LICENSEE acquires no right, title or interest
in any ARM technology or any intellectual property embodied therein. In no event shall the licences granted
in accordance with Clause 1 be construed as granting LICENSEE, expressly or by implication, estoppel or
otherwise, a licence to use any ARM technology except the relevant AMBA Specification.
5. No licence, express, implied or otherwise, is granted to LICENSEE, under the provisions of Clause 1, to
use the ARM tradename, or AMBA trademark in connection with the relevant AMBA Specification or any
products based thereon. Nothing in Clause 1 shall be construed as authority for LICENSEE to make any
representations on behalf of ARM in respect of the relevant AMBA Specification.
6. This Licence shall remain in force until terminated by you or by ARM. Without prejudice to any of its other
rights if LICENSEE is in breach of any of the terms and conditions of this Licence then ARM may terminate
this Licence immediately upon giving written notice to You. You may terminate this Licence at any time.
Upon expiry or termination of this Licence by You or by ARM LICENSEE shall stop using the relevant
AMBA Specification and destroy all copies of the relevant AMBA Specification in your possession together
with all documentation and related materials. Upon expiry or termination of this Licence, the provisions of
clauses 6 and 7 shall survive.
7. The validity, construction and performance of this Agreement shall be governed by English Law.
ARM IHI 0033A Copyright © 2001, 2006, 2010 ARM Limited. All rights reserved. iii
Non-Confidential
Confidentiality Status
This document is Non-Confidential. The right to use, copy and disclose this document may be subject to
license restrictions in accordance with the terms of the agreement entered into by ARM and the party that
ARM delivered this document to.
Product Status
Web Address
http://www.arm.com
Note
In this PDF, published March 2010, pages ii to iv have been replaced, by an edit to the PDF, to
include an updated Proprietary Notice. The remainder of the PDF is the original published PDF.
This PDF therefore retains the original document number.
iv Copyright © 2001, 2006, 2010 ARM Limited. All rights reserved. ARM IHI 0033A
Non-Confidential
Contents
AMBA 3 AHB-Lite Protocol Specification
Preface
About this book ............................................................................................. xii
Feedback ..................................................................................................... xvi
Chapter 1 Introduction
1.1 About the protocol ....................................................................................... 1-2
1.2 Operation .................................................................................................... 1-5
1.3 Multi-layer AHB-Lite .................................................................................... 1-6
Chapter 3 Transfers
3.1 Basic transfers ............................................................................................ 3-2
3.2 Transfer types ............................................................................................. 3-5
3.3 Locked transfers ......................................................................................... 3-7
3.4 Transfer size ............................................................................................... 3-8
3.5 Burst operation ............................................................................................ 3-9
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. v
Contents
Glossary
vi Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
List of Tables
AMBA 3 AHB-Lite Protocol Specification
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. vii
List of Tables
viii Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
List of Figures
AMBA 3 AHB-Lite Protocol Specification
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. ix
List of Figures
x Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Preface
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. xi
Preface
Intended audience
This book is written to help hardware and software engineers design systems and
modules that are compliant with the AHB-Lite protocol.
Chapter 1 Introduction
Read this chapter for an overview of the AHB-Lite protocol.
Chapter 3 Transfers
Read this chapter for information about the different types of transfer
initiated by an AHB-Lite compliant master.
Glossary Read the Glossary for definitions of terms used in this specification.
Conventions
xii Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Preface
• Timing diagrams
• Signals on page xiv.
Typographical
monospace Denotes text that you can enter at the keyboard, such as
commands, file and program names, and source code.
monospace bold Denotes language keywords when used outside example code.
< and > Angle brackets enclose replaceable terms for assembler syntax
where they appear in code or code fragments. They appear in
normal font in running text. For example:
• MRC p15, 0 <Rd>, <CRn>, <CRm>, <Opcode_2>
• The Opcode_2 value selects which register is accessed.
Timing diagrams
The figure named Key to timing diagram conventions on page xiv explains the
components used in timing diagrams. Variations, when they occur, have clear labels.
You must not assume any timing information that is not explicit in the diagrams.
Shaded bus and signal areas are undefined so the bus or signal can assume any value
that the shaded area represents. The actual level is unimportant and does not affect
normal operation.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. xiii
Preface
&ORFN
+,*+WR/2:
7UDQVLHQW
+,*+/2:WR+,*+
%XVVWDEOH
%XVWRKLJKLPSHGDQFH
%XVFKDQJH
+LJKLPSHGDQFHWRVWDEOHEXV
Note
Single-bit signals are sometimes shown as HIGH and LOW at the same time and they
look similar to the bus change shown in Key to timing diagram conventions. If a
single-bit signal is shown like this then its value does not affect the accompanying
description.
Signals
Signal level The level of an asserted signal depends on whether the signal is
active-HIGH or active-LOW. Asserted means HIGH for
active-HIGH signals and LOW for active-LOW signals.
xiv Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Preface
Further reading
ARM Limited periodically provides updates and corrections to its documentation. See
http://www.arm.com for current errata sheets, addenda, and the Frequently Asked
Questions list.
ARM publications
This specification contains information that is specific to the protocol. See the following
documents for other relevant information:
• AMBA 3 APB Protocol Specification (ARM IHI 0024)
• AMBA AXI Protocol Specification (ARM IHI 0022)
• Multi-layer AHB Overview (ARM DVI 0045B).
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. xv
Preface
Feedback
ARM Limited welcomes feedback on the AHB-Lite protocol and its documentation.
Contact ARM Limited if you have any comments or suggestions about the AHB-Lite
protocol.
If you have any comments on this specification, send email to [email protected] giving:
• the title
• the number
• the relevant page number(s) to which your comments apply
• a concise explanation of your comments.
ARM Limited also welcomes general suggestions for additions and improvements.
xvi Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Chapter 1
Introduction
This chapter provides an overview of the AHB-Lite protocol. It contains the following
sections:
• About the protocol on page 1-2
• Operation on page 1-5
• Multi-layer AHB-Lite on page 1-6.
Note
For illustrative purposes, a 32-bit data bus is used in this specification. Additional data
bus widths are permitted, as Data bus width on page 6-5 shows.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 1-1
Introduction
Note
See Multi-layer AHB-Lite on page 1-6 for information about how to implement a
multi-master system based on the AHB-Lite bus interface.
The most common AHB-Lite slaves are internal memory devices, external memory
interfaces, and high bandwidth peripherals. Although low-bandwidth peripherals can be
included as AHB-Lite slaves, for system performance reasons they typically reside on
the AMBA Advanced Peripheral Bus (APB). Bridging between this higher level of bus
and APB is done using a AHB-Lite slave, known as an APB bridge.
Figure 1-1 shows a single master AHB-Lite system design with one AHB-Lite master
and three AHB-Lite slaves. The bus interconnect logic consists of one address decoder
and a slave-to-master multiplexor. The decoder monitors the address from the master so
that the appropriate slave is selected and the multiplexor routes the corresponding slave
output data back to the master.
+:'$7$>@
+$''5>@
+6(/B 6ODYH
'HFRGHU +6(/B
+6(/B
0DVWHU 6ODYH
0XOWLSOH[RU
VHOHFW
6ODYH
+5'$7$B
+5'$7$>@ +5'$7$B
+5'$7$B
1-2 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Introduction
Note
Figure 1-1 on page 1-2 does not show the master control signals. This is for clarity.
1.1.1 Master
An AHB-Lite master provides address and control information to initiate read and write
operations. Figure 1-2 shows an AHB-Lite master interface.
+$''5>@
7UDQVIHU +5($'< +:5,7(
UHVSRQVH +5(63 +6,=(>@
$GGUHVV
$+%/LWH +%8567>@
DQGFRQWURO
*OREDO +5(6(7Q PDVWHU +3527>@
VLJQDOV +&/. +75$16>@
+0$67/2&.
1.1.2 Slave
An AHB-Lite slave responds to transfers initiated by masters in the system. The slave
uses the HSELx select signal from the decoder to control when it responds to a bus
transfer. The slave signals back to the master:
• the success
• failure
• or waiting of the data transfer.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 1-3
Introduction
6HOHFW +6(/[
+$''5>@
+:5,7(
+6,=(>@ +5($'<287 7UDQVIHU
$GGUHVV +%8567>@ +5(63 UHVSRQVH
DQGFRQWURO +3527>@ $+%/LWH
+75$16>@ VODYH
+0$67/2&.
+5($'<
*OREDO +5(6(7Q
VLJQDOV +&/.
1.1.3 Decoder
This component decodes the address of each transfer and provides a select signal for the
slave that is involved in the transfer. It also provides a control signal to the multiplexor.
A single centralized decoder is required in all AHB-Lite implementations that use two
or more slaves. See Address decoding on page 4-2 for more information.
Note
In multi-layer AHB-Lite implementations, the decoder function is usually included in
the multi-layer interconnect component.
1.1.4 Multiplexor
A slave-to-master multiplexor is required to multiplex the read data bus and response
signals from the slaves to the master. The decoder provides control for the multiplexor.
Note
In multi-layer AHB-Lite implementations, the multiplexor function is typically
included in the multi-layer interconnect component.
1-4 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Introduction
1.2 Operation
The master starts a transfer by driving the address and control signals. These signals
provide information about the address, direction, width of the transfer, and indicate if
the transfer forms part of a burst. Transfers can be:
• single
• incrementing bursts that do not wrap at address boundaries
• wrapping bursts that wrap at particular address boundaries.
The write data bus moves data from the master to a slave, and the read data bus moves
data from a slave to the master.
A slave cannot request that the address phase is extended and therefore all slaves must
be capable of sampling the address during this time. However, a slave can request that
the master extends the data phase by using HREADY. This signal, when LOW, causes
wait states to be inserted into the transfer and enables the slave to have extra time to
provide or sample data.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 1-5
Introduction
$+%/LWH $+%/LWH
/D\HU
PDVWHU VODYH
$+%/LWH $+%/LWH
VODYH VODYH
$+%/LWH
VODYH
In Figure 1-4, master 1 and master 2 each have access to slaves 1, 2, and 3. The
multi-layer interconnect must prevent simultaneous access to a single slave by
implementing an arbitration scheme for the three shared slaves. Master 1 does not
require access to slaves 4 and 5, so these two slaves are kept local to master 2. This
reduces the complexity of the multi-layer interconnect component.
1-6 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Chapter 2
Signal Descriptions
This chapter describes the protocol signals. It contains the following sections:
• Global signals on page 2-2
• Master signals on page 2-3
• Slave signals on page 2-5
• Decoder signals on page 2-6
• Multiplexor signals on page 2-7.
Note
All AHB-Lite signals are prefixed with the letter H to differentiate them from other
similarly named signals in a system design.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 2-1
Signal Descriptions
HCLK Clock source The bus clock times all bus transfers. All signal timings are related to the rising edge of
HCLK.
See Clock on page 7-2 for more information.
HRESETn Reset controller The bus reset signal is active LOW and resets the system and the bus. This is the only
active LOW AHB-Lite signal.
See Reset on page 7-2 for more information.
2-2 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Signal Descriptions
HBURST[2:0] Slave The burst type indicates if the transfer is a single transfer or forms part of a burst.
Fixed length bursts of 4, 8, and 16 beats are supported. The burst can be
incrementing or wrapping. Incrementing bursts of undefined length are also
supported.
See Burst operation on page 3-9 for more information.
HMASTLOCK Slave When HIGH, this signal indicates that the current transfer is part of a locked
sequence. It has the same timing as the address and control signals.
See Locked transfers on page 3-7 for more information.
HPROT[3:0] Slave The protection control signals provide additional information about a bus access
and are primarily intended for use by any module that wants to implement some
level of protection.
The signals indicate if the transfer is an opcode fetch or data access, and if the
transfer is a privileged mode access or user mode access. For masters with a
memory management unit these signals also indicate whether the current access is
cacheable or bufferable.
See Protection control on page 3-22 for more information.
HSIZE[2:0] Slave Indicates the size of the transfer, that is typically byte, halfword, or word. The
protocol allows for larger transfer sizes up to a maximum of 1024 bits.
See Transfer size on page 3-8 for more information.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 2-3
Signal Descriptions
HTRANS[1:0] Slave Indicates the transfer type of the current transfer. This can be:
• IDLE
• BUSY
• NONSEQUENTIAL
• SEQUENTIAL.
See Transfer types on page 3-5 for more information.
HWDATA[31:0]a Slave The write data bus transfers data from the master to the slaves during write
operations. A minimum data bus width of 32 bits is recommended. However, this
can be extended to enable higher bandwidth operation.
See Data buses on page 6-2 for more information.
HWRITE Slave Indicates the transfer direction. When HIGH this signal indicates a write transfer
and when LOW a read transfer. It has the same timing as the address signals,
however, it must remain constant throughout a burst transfer.
See Basic transfers on page 3-2 for more information.
a. The write data bus width is not restricted to 32bits. Data bus width on page 6-5 lists the other permitted data widths.
2-4 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Signal Descriptions
HRDATA[31:0]a Multiplexor During read operations, the read data bus transfers data from the selected slave to the
multiplexor. The multiplexor then transfers the data to the master.
A minimum data bus width of 32 bits is recommended. However, this can be
extended to enable higher bandwidth operation.
See Data buses on page 6-2 for more information.
HREADYOUT Multiplexor When HIGH, the HREADYOUT signal indicates that a transfer has finished on the
bus. This signal can be driven LOW to extend a transfer.
See Bus interconnection on page 4-3 for more information.
HRESP Multiplexor The transfer response, after passing through the multiplexor, provides the master
with additional information on the status of a transfer.
When LOW, the HRESP signal indicates that the transfer status is OKAY.
When HIGH, the HRESP signal indicates that the transfer status is ERROR.
See Slave transfer responses on page 5-2 for more information.
a. The read data bus width is not restricted to 32bits. Data bus width on page 6-5 lists the other permitted data widths.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 2-5
Signal Descriptions
HSELxa Slave Each AHB-Lite slave has its own slave select signal HSELx and this signal indicates that the
current transfer is intended for the selected slave. When the slave is initially selected, it must
also monitor the status of HREADY to ensure that the previous bus transfer has completed,
before it responds to the current transfer.
The HSELx signal is a combinatorial decode of the address bus.
See Address decoding on page 4-2 for more information.
a. The letter x used in HSELx must be changed to a unique identifier for each AHB-Lite slave in a system. For example,
HSEL_S1, HSEL_S2, and HSEL_Memory.
Note
Usually the decoder also provides the multiplexor with the HSELx signals, or a
signal/bus derived from the HSELx signals, to enable the multiplexor to route the
appropriate signals, from the selected slave to the master. It is important that these
additional multiplexor control signals are retimed to the data phase.
2-6 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Signal Descriptions
HREADY Master and When HIGH, the HREADY signal indicates to the master and all slaves, that the
slave previous transfer is complete.
See Bus interconnection on page 4-3 for more information.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 2-7
Signal Descriptions
2-8 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Chapter 3
Transfers
This chapter describes AHB-Lite read and write transfers. It contains the following
sections:
• Basic transfers on page 3-2
• Transfer types on page 3-5
• Locked transfers on page 3-7
• Transfer size on page 3-8
• Burst operation on page 3-9
• Waited transfers on page 3-16
• Protection control on page 3-22.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-1
Transfers
Address Lasts for a single HCLK cycle unless its extended by the previous bus
transfer.
Data That might require several HCLK cycles. Use the HREADY signal to
control the number of clock cycles required to complete the transfer.
HWRITE controls the direction of data transfer to or from the master. Therefore, when:
• HWRITE is HIGH, it indicates a write transfer and the master broadcasts data on
the write data bus, HWDATA[31:0]
• HWRITE is LOW, a read transfer is performed and the slave must generate the
data on the read data bus, HRDATA[31:0].
The simplest transfer is one with no wait states, so the transfer consists of one address
cycle and one data cycle. Figure 3-1 shows a simple read transfer and Figure 3-2 shows
a simple write transfer.
$GGUHVVSKDVH 'DWDSKDVH
+&/.
+$''5>@ $ %
+:5,7(
+5'$7$>@ 'DWD$
+5($'<
$GGUHVVSKDVH 'DWDSKDVH
+&/.
+$''5>@ $ %
+:5,7(
+:'$7$>@ 'DWD$
+5($'<
3-2 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Transfers
1. The master drives the address and control signals onto the bus after the rising edge
of HCLK.
2. The slave then samples the address and control information on the next rising
edge of HCLK.
3. After the slave has sampled the address and control it can start to drive the
appropriate HREADY response. This response is sampled by the master on the
third rising edge of HCLK.
This simple example demonstrates how the address and data phases of the transfer occur
during different clock cycles. The address phase of any transfer occurs during the data
phase of the previous transfer. This overlapping of address and data is fundamental to
the pipelined nature of the bus and enables high performance operation while still
providing adequate time for a slave to provide the response to a transfer.
A slave can insert wait states into any transfer to enable additional time for completion.
$GGUHVVSKDVH 'DWDSKDVH
+&/.
+$''5>@ $ %
+:5,7(
+5'$7$>@ 'DWD$
+5($'<
$GGUHVVSKDVH 'DWDSKDVH
+&/.
+$''5>@ $ %
+:5,7(
+:'$7$>@ 'DWD$
+5($'<
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-3
Transfers
Note
For write operations the master holds the data stable throughout the extended cycles.
For read transfers the slave does not have to provide valid data until the transfer is about
to complete.
When a transfer is extended in this way it has the side-effect of extending the address
phase of the next transfer. Figure 3-5 shows three transfers to unrelated addresses, A, B,
and C with an extended address phase for address C.
7 7 7 7 7 7
+&/.
+$''5>@ $ % &
+5'$7$>@ 'DWD%
+5($'<
In Figure 3-5:
• the transfers to addresses A and C are zero wait state
• the transfer to address B is one wait state
• extending the data phase of the transfer to address B has the effect of extending
the address phase of the transfer to address C.
3-4 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Transfers
b00 IDLE Indicates that no data transfer is required. A master uses an IDLE transfer when it does
not want to perform a data transfer. It is recommended that the master terminates a locked
transfer with an IDLE transfer.
Slaves must always provide a zero wait state OKAY response to IDLE transfers and the
transfer must be ignored by the slave.
b01 BUSY The BUSY transfer type enables masters to insert idle cycles in the middle of a burst. This
transfer type indicates that the master is continuing with a burst but the next transfer
cannot take place immediately.
When a master uses the BUSY transfer type the address and control signals must reflect
the next transfer in the burst.
Only undefined length bursts can have a BUSY transfer as the last cycle of a burst. See
Burst termination after a BUSY transfer on page 3-10 for more information.
Slaves must always provide a zero wait state OKAY response to BUSY transfers and the
transfer must be ignored by the slave.
b11 SEQ The remaining transfers in a burst are SEQUENTIAL and the address is related to the
previous transfer.
The control information is identical to the previous transfer.
The address is equal to the address of the previous transfer plus the transfer size, in bytes,
with the transfer size being signaled by the HSIZE[2:0] signals. In the case of a wrapping
burst the address of the transfer wraps at the address boundary.
Figure 3-6 on page 3-6 shows the use of the NONSEQ, BUSY, and SEQ transfer types.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-5
Transfers
7 7 7 7 7 7 7 7
+&/.
+:5,7(
+%8567>@ ,1&5
+5($'<
In Figure 3-6:
T1-T2 The master is unable to perform the second beat and inserts a BUSY
transfer to delay the start of the second beat.
The slave provides the read data for the first beat.
T2-T3 The master is now ready to start the second beat, so a SEQ transfer is
signaled. The master ignores any data that the slave provides on the read
data bus.
T5-T6 The slave provides the read data for the third beat.
T6-T7 The slave provides the read data for the last beat.
3-6 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Transfers
Figure 3-7 shows the HMASTLOCK signal with a microprocessor SWP instruction.
+&/.
+$''5>@ $ $
+0$67/2&.
+5'$7$>@ 'DWD$
+:'$7$>@ 'DWD$
Note
After a locked transfer, it is recommended that the master inserts an IDLE transfer.
Most slaves have no requirement to implement HMASTLOCK because they are only
capable of performing transfers in the order they are received. Slaves that can be
accessed by more than one master, for example, a Multi-Port Memory Controller
(MPMC) must implement the HMASTLOCK signal.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-7
Transfers
Size
HSIZE[2] HSIZE[1] HSIZE[0] Description
(bits)
0 0 0 8 Byte
0 0 1 16 Halfword
0 1 0 32 Word
0 1 1 64 Doubleword
1 1 0 512 -
1 1 1 1024 -
Note
The transfer size set by HSIZE must be less than or equal to the width of the data bus.
For example, with a 32-bit data bus, HSIZE must only use the values b000, b001, or
b010.
Use HSIZE in conjunction with HBURST, to determine the address boundary for
wrapping bursts.
The HSIZE signals have exactly the same timing as the address bus. However, they
must remain constant throughout a burst transfer.
3-8 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Transfers
• Incrementing bursts access sequential locations and the address of each transfer
in the burst is an increment of the previous address.
• Wrapping bursts wrap when they cross an address boundary. The address
boundary is calculated as the product of the number of beats in a burst and the size
of the transfer. The number of beats are controlled by HBURST and the transfer
size is controlled by HSIZE.
For example, a four-beat wrapping burst of word (4-byte) accesses wraps at
16-byte boundaries. Therefore, if the start address of the transfer is 0x34, then it
consists of four transfers to addresses 0x34, 0x38, 0x3C, and 0x30.
HBURST[2:0] controls the burst type. Table 3-3 lists the possible burst types.
Masters must not attempt to start an incrementing burst that crosses a 1KB address
boundary.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-9
Transfers
Note
The burst size indicates the number of beats in the burst and not the number of bytes
transferred. Calculate the total amount of data transferred in a burst by multiplying the
number of beats by the amount of data in each beat, as indicated by HSIZE[2:0].
All transfers in a burst must be aligned to the address boundary equal to the size of the
transfer. For example, you must align word transfers to word address boundaries
(HADDR[1:0] = b00), and halfword transfers to halfword address boundaries
(HADDR[0] = 0). The address for IDLE transfers must also be aligned, otherwise
during simulation it is likely that bus monitors could report spurious warnings.
After a burst has started, the master uses BUSY transfers if it requires more time before
continuing with the next transfer in the burst.
During an undefined length burst, INCR, the master might insert BUSY transfers and
then decide that no more data transfers are required. Under these circumstances, it is
acceptable for the master to then perform a NONSEQ or IDLE transfer that then
effectively terminates the undefined length burst.
The protocol does not permit a master to end a burst with a BUSY transfer for fixed
length bursts of type:
• incrementing INCR4, INCR8, and INCR16
• or wrapping WRAP4, WRAP8, and WRAP16.
These fixed length burst types must terminate with a SEQ transfer.
The master is not permitted to perform a BUSY transfer immediately after a SINGLE
burst. SINGLE bursts must be followed by an IDLE transfer or a NONSEQ transfer.
If a slave provides an ERROR response then the master can cancel the remaining
transfers in the burst. However, this is not a strict requirement and it is also acceptable
for the master to continue the remaining transfers in the burst.
3-10 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Transfers
If the master does not complete that burst then there is no requirement for it to rebuild
the burst when it next accesses that slave. For example, if a master only completes three
beats of an eight-beat burst then it does not have to complete the remaining five transfers
when it next accesses that slave.
Although masters are not permitted to terminate a burst request early, slaves must be
designed to work correctly if the burst is not completed.
Figure 3-8 on page 3-12 shows a write transfer using a four-beat wrapping burst, with a
wait state added for the first transfer.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-11
Transfers
7 7 7 7 7 7 7
+&/.
+:5,7(
+%8567>@ :5$3
+6,=(>@ :RUG
+3527>@
+5($'<
'DWD[
+:'$7$>@ 'DWD[
'DWD[& 'DWD[
Because the burst is a four-beat burst of word transfers, the address wraps at 16-byte
boundaries, and the transfer to address 0x3C is followed by a transfer to address 0x30.
Figure 3-9 on page 3-13 shows a read transfer using a four-beat incrementing burst,
with a wait state added for the first transfer. In this case, the address does not wrap at a
16-byte boundary and the address 0x3C is followed by a transfer to address 0x40.
3-12 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Transfers
7 7 7 7 7 7 7
+&/.
+:5,7(
+%8567>@ ,1&5
+6,=(>@ :RUG
+3527>@
+5($'<
'DWD[ 'DWD[
+5'$7$>@
'DWD[& 'DWD[
7 7 7 7 7 7 7 7 7 7
+&/.
1216(4
+75$16>@ 6(4 6(4 6(4 6(4 6(4 6(4 6(4
+:5,7(
+%8567>@ :5$3
+6,=(>@ :RUG
+3527>@
+5($'<
'DWD[ 'DWD[ 'DWD[ 'DWD[
+5'$7$>@
'DWD[ 'DWD[& 'DWD[ 'DWD[&
Because the burst is an eight-beat burst of word transfers, the address wraps at 32-byte
boundaries, and the transfer to address 0x3C is followed by a transfer to address 0x20.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-13
Transfers
7 7 7 7 7 7 7 7 7 7
+&/.
1216(4
+75$16>@ 6(4 6(4 6(4 6(4 6(4 6(4 6(4
+:5,7(
+%8567>@ ,1&5
+6,=(>@ +DOIZRUG
+3527>@
+5($'<
'DWD[ 'DWD[$ 'DWD[( 'DWD[
+:'$7$>@
'DWD[ 'DWD[ 'DWD[& 'DWD[
This burst uses halfword transfers, therefore the addresses increase by two. Because the
burst is incrementing, the addresses continue to increment beyond the 16-byte address
boundary.
3-14 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Transfers
7 7 7 7 7 7 7 7
+&/.
+3527>@
+5($'<
'DWD[
+:'$7$>@
'DWD[ 'DWD[& 'DWD[
+5'$7$>@
'DWD[
• The first burst is a write consisting of two halfword transfers starting at address
0x20. These transfer addresses increment by two.
• The second burst is a read consisting of three word transfers starting at address
0x5C. These transfer addresses increment by four.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-15
Transfers
When the slave is requesting wait states, the master must not change the transfer type,
except as described in:
• IDLE transfer
• BUSY transfer, fixed length burst on page 3-17
• BUSY transfer, undefined length burst on page 3-18.
IDLE transfer
During a waited transfer, the master is permitted to change the transfer type from IDLE
to NONSEQ. When the HTRANS transfer type changes to NONSEQ the master must
keep HTRANS constant, until HREADY is HIGH.
Figure 3-13 shows a waited transfer for a SINGLE burst, with a transfer type change
from IDLE to NONSEQ.
7 7 7 7 7 7 7 7
+&/.
+5($'<
In Figure 3-13:
3-16 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Transfers
T3-T4 The master changes the transfer type to NONSEQ and initiates an INCR4
transfer to address B.
T4-T6 With HREADY LOW, the master must keep HTRANS constant.
T5-T6 SINGLE burst to address A completes with HREADY HIGH and the
master starts the first beat to address B.
T6-T7 First beat of the INCR4 transfer to address B completes and the master
starts the next beat to address B+4.
During a waited transfer for a fixed length burst, the master is permitted to change the
transfer type from BUSY to SEQ. When the HTRANS transfer type changes to SEQ
the master must keep HTRANS constant, until HREADY is HIGH.
Note
Because BUSY transfers must only be inserted between successive beats of a burst, this
does not apply to SINGLE bursts. Therefore this situation applies to the following burst
types:
• INCR4, INCR8, and INCR16
• WRAP4, WRAP8, and WRAP16.
Figure 3-14 shows a waited transfer in a fixed length burst, with a transfer type change
from BUSY to SEQ.
7 7 7 7 7 7 7 7
+&/.
+5($'<
'DWD[
+5'$7$>@
'DWD[
Figure 3-14 Waited transfer, BUSY to SEQ for a fixed length burst
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-17
Transfers
T0-T1 The master initiates the next beat of the INCR4 burst to address 0x24.
T3-T4 The master changes the transfer type to SEQ and initiates the next beat of
the burst to address 0x28.
T4-T6 With HREADY LOW, the master must keep HTRANS constant.
T6-T7 Third beat of the INCR4 transfer to address 0x28 completes and the
master starts the final beat to address 0x2C.
During a waited transfer for an undefined length burst, INCR, the master is permitted to
change from BUSY to any other transfer type, when HREADY is LOW. The burst
continues if a SEQ transfer is performed but terminates if an IDLE or NONSEQ transfer
is performed.
Figure 3-15 shows a waited transfer during an undefined length burst, with a transfer
type change from BUSY to NONSEQ.
7 7 7 7 7 7 7 7
+&/.
+5($'<
'DWD[
+5'$7$>@
'DWD[
Figure 3-15 Waited transfer, BUSY to NONSEQ for an undefined length burst
In Figure 3-15:
T0-T1 The master initiates the next beat of the INCR burst to address 0x64.
3-18 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Transfers
T3-T4 The master changes the transfer type to NONSEQ and initiates a new
burst to address 0x10.
T4-T6 With HREADY LOW, the master must keep HTRANS constant.
T5-T6 Undefined length burst completes with HREADY HIGH and the master
starts the first beat to address 0x10.
T6-T7 First beat of the INCR4 transfer to address 0x10 completes and the master
starts the next beat to address 0x14.
When the slave is requesting wait states, the master can only change the address once,
except as described in:
• During an IDLE transfer
• After an ERROR response on page 3-20.
During a waited transfer, the master is permitted to change the address for IDLE
transfers. When the HTRANS transfer type changes to NONSEQ the master must keep
the address constant, until HREADY is HIGH.
Figure 3-16 shows a waited transfer for a SINGLE burst, with the address changing
during the IDLE transfers.
7 7 7 7 7 7 7 7
+&/.
+5($'<
Figure 3-16 Address changes during a waited transfer, with an IDLE transfer
In Figure 3-16:
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-19
Transfers
T3-T4 The master changes the transfer type to NONSEQ and initiates an INCR4
transfer to address B. Until HREADY goes HIGH, no more address
changes are permitted.
T5-T6 SINGLE burst to address A completes with HREADY HIGH and the
master starts the first beat to address B.
T6-T7 First beat of the INCR4 transfer to address B completes and the master
starts the next beat to address B+4.
During a waited transfer, if the slave responds with an ERROR response then the master
is permitted to change the address when HREADY is LOW. See ERROR response on
page 5-3 for more information about the ERROR response.
Figure 3-17 shows a waited transfer, with the address changing following an ERROR
response from the slave.
7 7 7 7 7 7 7
+&/.
+5($'<
In Figure 3-17:
T0-T1 The master initiates the next beat of the burst to address 0x24.
T1-T3 The master initiates the next beat of the burst to address 0x28.
The slave responds with OKAY.
3-20 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Transfers
T4-T5 The master changes the transfer type to IDLE and is permitted to change
the address while HREADY is LOW.
The slave completes the ERROR response.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 3-21
Transfers
For masters with a memory management unit these signals also indicate if the current
access is cacheable or bufferable. Table 3-4 lists the HPROT signal encoding.
- - - 0 Opcode fetch
- - - 1 Data access
- - 0 - User access
- - 1 - Privileged access
- 0 - - Non-bufferable
- 1 - - Bufferable
0 - - - Non-cacheable
1 - - - Cacheable
Note
Many masters are not capable of generating accurate protection information. If a master
is not capable of generating accurate protection information, ARM Limited
recommends that:
The HPROT control signals have exactly the same timing as the address bus. However,
they must remain constant throughout a burst transfer.
3-22 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Chapter 4
Bus Interconnection
This chapter describes the additional interconnect logic required for AHB-Lite systems.
It contains the following sections:
• Address decoding on page 4-2
• Bus interconnection on page 4-3.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 4-1
Bus Interconnection
A slave must only sample the HSELx, address, and control signals when HREADY is
HIGH, indicating that the current transfer is completing. Under certain circumstances it
is possible that HSELx is asserted when HREADY is LOW, but the selected slave has
changed by the time the current transfer completes.
The minimum address space that can be allocated to a single slave is 1KB. All masters
are designed so that they do not perform incrementing transfers over a 1KB address
boundary. This ensures that a burst never crosses an address decode boundary.
Figure 4-1 shows the HSELx slave select signals generated by the decoder.
+$''5>@
6ODYH
+6(/B6
0DVWHU 6ODYH
'HFRGHU +6(/B6
+6(/B6
6ODYH
If a system design does not contain a completely filled memory map then you must
implement an additional default slave to provide a response when any of the nonexistent
address locations are accessed.
IDLE or BUSY transfers to nonexistent locations result in a zero wait state OKAY
response.
4-2 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Bus Interconnection
+$''5>@
'HFRGHU
; +5'$7$B
+5'$7$>@ ; < +5(63B 6ODYH
= +5($'<287B +5($'<,1
0DVWHU
0XOWLSOH[RU
; +5'$7$B
+5(63 < < +5(63B 6ODYH
= +5($'<287B +5($'<,1
; +5'$7$B
+5($'< = < +5(63B 6ODYH
= +5($'<287B +5($'<,1
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 4-3
Bus Interconnection
4-4 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Chapter 5
Slave Response Signaling
This chapter describes the slave response signaling. It contains the following section:
• Slave transfer responses on page 5-2.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 5-1
Slave Response Signaling
A slave must provide a response that indicates the status of the transfer when it is
accessed. The transfer status is provided by the HRESP signal. Table 5-1 lists the
HRESP states.
0 OKAY The transfer has either completed successfully or additional cycles are required for the slave
to complete the request.
The HREADY signal indicates whether the transfer is pending or complete.
1 ERROR An error has occurred during the transfer. The error condition must be signaled to the master
so that it is aware the transfer has been unsuccessful.
A two-cycle response is required for an error condition with HREADY being asserted in the
second cycle.
Table 5-1 shows that the complete transfer response is a combination of the HRESP and
HREADY signals. Table 5-2 lists the complete transfer response based on the status of
these two signals.
HREADY
HRESP 0 1
This means the slave can complete the transfer in the following three ways:
• immediately complete the transfer
• insert one or more wait states to enable time to complete the transfer
• signal an error to indicate that the transfer has failed.
5-2 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Slave Response Signaling
A typical slave uses HREADY to insert the appropriate number of wait states into the
data phase of the transfer. The transfer then completes with HREADY HIGH and an
OKAY response to indicate the successful completion of the transfer.
When a slave inserts a number of wait states prior to completing the response, it must
drive HRESP to OKAY.
Note
In general, every slave must have a predetermined maximum number of wait states that
it inserts before it backs off the bus. This enables you to calculate the latency for
accessing the bus.
It is recommended that slaves do not insert more than 16 wait states, to prevent any
single access locking the bus for a large number of clock cycles. However, this
recommendation is not applicable to some devices, for example, a serial boot ROM.
This type of device is usually only accessed during system startup and the impact on
system performance is negligible if greater than 16 wait states are used.
A slave uses the ERROR response to indicate some form of error condition with the
associated transfer. Usually this denotes a protection error such as an attempt to write
to a read-only memory location.
Although an OKAY response can be given in a single cycle, the ERROR response
requires two cycles. To start the ERROR response, the slave drives HRESP HIGH to
indicate ERROR while driving HREADY LOW to extend the transfer for one extra
cycle. In the next cycle HREADY is driven HIGH to end the transfer and HRESP
remains driven HIGH to indicate ERROR.
The two-cycle response is required because of the pipelined nature of the bus. By the
time a slave starts to issue an ERROR response then the address for the following
transfer has already been broadcast onto the bus. The two-cycle response provides
sufficient time for the master to cancel this next access and drive HTRANS[1:0] to
IDLE before the start of the next transfer.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 5-3
Slave Response Signaling
If the slave requires more than two cycles to provide the ERROR response then
additional wait states can be inserted at the start of the transfer. During this time
HREADY is LOW and the response must be set to OKAY.
7 7 7 7 7 7
+&/.
+$''5>@ $ %
+:5,7(
+:'$7$>@ 'DWD$
+5($'<
In Figure 5-1:
T1-T2 The slave inserts a wait state and provides an OKAY response.
T2-T3 The slave issues an ERROR response. This is the first cycle of the
ERROR response because HREADY is LOW.
T3-T4 The slave issues an ERROR response. This is the last cycle of the ERROR
response because HREADY is now HIGH.
The master changes the transfer type to IDLE. This cancels the intended
transaction to address B, that was registered by a slave at time T2.
If a slave provides an ERROR response then the master can cancel the remaining
transfers in the burst. However, this is not a strict requirement and it is also acceptable
for the master to continue the remaining transfers in the burst.
5-4 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Chapter 6
Data Buses
This chapter describes the AHB-Lite data buses. It contains the following sections:
• Data buses on page 6-2
• Data bus width on page 6-5.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 6-1
Data Buses
6.1.1 HWDATA
The master drives the write data bus during write transfers. If the transfer is extended
then the master must hold the data valid until the transfer completes, as indicated by
HREADY HIGH.
For transfers that are narrower than the width of the bus, for example a 16-bit transfer
on a 32-bit bus, the master only has to drive the appropriate byte lanes. The slave selects
the write data from the correct byte lanes.
Table 6-1 on page 6-3 and Table 6-2 on page 6-3 list which byte lanes on a 32-bit bus,
are active for a little-endian and big-endian system respectively.
The active byte lane is dependent on the endianness of the system. Because AHB-Lite
does not specify the required endianness, it is important that all masters and slaves on
the bus use the same endianness.
6.1.2 HRDATA
The appropriate slave drives the read data bus during read transfers. If the slave extends
the read transfer by holding HREADY LOW then the slave only has to provide valid
data in the final cycle of the transfer, as indicated by HREADY HIGH.
For transfers that are narrower than the width of the bus, the slave only requires to
provide valid data on the active byte lanes. The master selects the data from the correct
byte lanes.
A slave only has to provide valid data when a transfer completes with an OKAY
response. ERROR responses do not require valid read data.
6-2 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Data Buses
Table 6-1 lists the byte lanes on a 32-bit bus that are active in a little-endian system.
Table 6-1 Active byte lanes for a 32-bit little-endian data bus
Byte 0 - - - Active
Byte 1 - - Active -
Byte 2 - Active - -
Byte 3 Active - - -
Table 6-2 lists the byte lanes on a 32-bit bus that are active in a big-endian system.
Table 6-2 Active byte lanes for a 32-bit big-endian data bus
Byte 0 Active - - -
Byte 1 - Active - -
Byte 2 - - Active -
Byte 3 - - - Active
If required, you can extend the 32-bit data bus listed in Table 6-1 and Table 6-2 for
wider data bus implementations. Burst transfers that have a transfer size less than the
width of the data bus have different active byte lanes for each beat of the burst.
6.1.3 Endianness
It is essential that all modules are of the same endianness and also that any data routing
or bridges are of the same endianness for the system to function correctly.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 6-3
Data Buses
It is recommended that only modules designed for use in a wide variety of applications
are made bi-endian, with either a configuration pin or internal control bit to select the
endianness. For more application-specific blocks, fixing the endianness to either
little-endian or big-endian results in a smaller, lower power, higher performance
interface.
6-4 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Data Buses
Specifying a fixed width of bus means that, in many cases, the width of the bus is not
optimal for the application. Therefore an approach has been adopted that enables
flexibility of the width of bus but still ensures that modules are highly portable between
designs.
The protocol allows the AHB-Lite data bus to be 8, 16, 32, 64, 128, 256, 512, or
1024-bits wide. However, it is recommended that you use a minimum bus width of 32
bits. A maximum bus width of 256 bits is adequate for almost all applications.
For read and write transfers, the receiving module must select the data from the correct
byte lane on the bus. Replication of data across all byte lanes is not required.
Figure 6-1 shows how a slave module that has been originally designed to operate with
a 32-bit data bus can be converted to operate on a 64-bit bus. This only requires the
addition of external logic, rather than any internal design changes, the technique is
therefore applicable to hard macrocells.
+5($'<
$GGUHVVDQGFRQWURO 7UDQVIHUUHVSRQVH
+5(63
$+%/LWH
+:'$7$>@ VODYH +5'$7$>@
:'$7$>@ +5'$7$>@
+:'$7$>@ +5'$7$>@
+$''5>@ ' 4
+&/.
+5($'< (1
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 6-5
Data Buses
For the output, when converting a narrow bus to a wider bus, do one of the following:
• replicate the data on both halves of the wide bus as Figure 6-1 on page 6-5 shows
• use additional logic to ensure that only the appropriate half of the bus is changed.
This results in a reduction of power consumption.
A slave can only accept transfers that are as wide as its natural interface. If a master
attempts a transfer that is wider than the slave can support then the slave can use the
ERROR transfer response.
You can adapt predesigned or imported slaves to work with a narrower data bus by using
external logic. Figure 6-2 shows a wide slave being implemented on a narrow bus.
+5($'<
$GGUHVVDQGFRQWURO 7UDQVIHUUHVSRQVH
+5(63
$+%/LWH
+:'$7$>@ VODYH 5'$7$>@
+:'$7$>@ +5'$7$>@
+:'$7$>@ 5'$7$>@
+$''5>@ ' 4
+&/.
+5($'< (1
You can modify masters to work on a wider bus than originally intended in the same
way that the slave is modified to work on a wider bus. Do this by:
• multiplexing the input bus
• replicating the output bus.
Note
You cannot make masters work on a narrower bus than originally intended unless you
include some mechanism in the master to limit the width of transfers that the master
attempts. The master must never attempt a transfer where the width, as indicated by
HSIZE, is wider than the data bus that it connects to.
6-6 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Chapter 7
Clock and Reset
This chapter describes the timing of the protocol clock and reset signals. It contains the
following section:
• Clock and reset requirements on page 7-2.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. 7-1
Clock and Reset
7.1.1 Clock
Each AHB-Lite component uses a single clock signal, HCLK. All input signals are
sampled on the rising edge of HCLK. All output signal changes must occur after the
rising edge of HCLK.
7.1.2 Reset
The reset signal, HRESETn, is the only active LOW signal in the AHB-Lite protocol
and is the primary reset for all bus elements. The reset can be asserted asynchronously,
but is deasserted synchronously after the rising edge of HCLK.
During reset all masters must ensure the address and control signals are at valid levels
and that HTRANS[1:0] indicates IDLE.
7-2 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Glossary
This glossary describes some of the terms used in technical documents from ARM
Limited.
AXI is targeted at high performance, high clock frequency system designs and includes
a number of features that make it very suitable for high speed sub-micron interconnect.
Advanced High-performance Bus (AHB)
A bus protocol with a fixed pipeline between address/control and data phases. It only
supports a subset of the functionality provided by the AMBA AXI protocol. The full
AMBA AHB protocol specification includes a number of features that are not
commonly required for master and slave IP developments and it is recommended that
only a subset of the protocol is used. This subset is defined as the AMBA AHB-Lite
protocol.
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. Glossary-1
Glossary
Glossary-2 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A
Glossary
ARM IHI 0033A Copyright © 2001, 2006 ARM Limited. All rights reserved. Glossary-3
Glossary
Glossary-4 Copyright © 2001, 2006 ARM Limited. All rights reserved. ARM IHI 0033A