Chi A
Chi A
® ®
Specification
Confidential
Change history
Proprietary Notice
This document is CONFIDENTIAL and any use by you is subject to the terms of the agreement between you and ARM or the
terms of the agreement between you and the party authorised by ARM to disclose this document to you.
This document is protected by copyright and other related rights and the practice or implementation of the information contained
in this document may be protected by one or more patents or pending patent applications. No part of this document may be
reproduced in any form by any means without the express prior written permission of ARM. No license, express or implied, by
estoppel or otherwise to any intellectual property rights is granted by this document unless specifically stated.
Your access to the information in this document is conditional upon your acceptance that you will not use or permit others to use
the information: (i) for the purposes of determining whether implementations infringe any third party patents; (ii) for developing
technology or products which avoid any of ARM’s intellectual property; or (iii) as a reference for modifying existing patents or
patent applications or creating any continuation, continuation in part, or extension of existing patents or patent applications; or
(iv) for generating data for publication or disclosure to third parties, which compares the performance or functionality of the ARM
technology described in this document with any other products created by you or a third party, without obtaining ARM’s prior
written consent.
THIS DOCUMENT IS PROVIDED “AS IS”. ARM PROVIDES NO REPRESENTATIONS AND NO WARRANTIES,
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, SATISFACTORY QUALITY, NON-INFRINGEMENT OR FITNESS FOR A PARTICULAR
PURPOSE WITH RESPECT TO THE DOCUMENT. For the avoidance of doubt, ARM makes no representation with respect to,
and has undertaken no analysis to identify or understand the scope and content of, third party patents, copyrights, trade secrets, or
other rights.
TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL ARM BE LIABLE FOR ANY DAMAGES,
INCLUDING WITHOUT LIMITATION ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, OR
CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING
OUT OF ANY USE OF THIS DOCUMENT, EVEN IF ARM HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
This document consists solely of commercial items. You shall be responsible for ensuring that any use, duplication or disclosure
of this document complies fully with any relevant export laws and regulations to assure that this document or any portion thereof
is not exported, directly or indirectly, in violation of such export laws. Use of the word “partner” in reference to ARM’s customers
is not intended to create or refer to any partnership relationship with any other company. ARM may make changes to this document
at any time and without notice.
If any of the provisions contained in these terms conflict with any of the provisions of any click through or signed written
agreement covering this document with ARM, then the click through or signed written agreement prevails over and supersedes
the conflicting provisions of these terms. This document may be translated into other languages for convenience, and you agree
that if there is any conflict between the English version of this document and any translation, the terms of the English version of
the Agreement shall prevail.
Words and logos marked with ® or ™ are registered trademarks or trademarks of ARM Limited or its affiliates in the EU and/or
elsewhere. All rights reserved. Other brands and names mentioned in this document may be the trademarks of their respective
owners.
Note
The term ARM can refer to versions of the ARM architecture, for example ARMv7 refers to version 7 of the ARM architecture.
The context makes it clear when the term is used in this way.”
Confidentiality Status
This document is Confidential. This document may only be used and distributed 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
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. iii
ID061214 Confidential
iv Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Contents
ARM AMBA 5 CHI Architecture Specification
Preface
About this specification ................................................................................................ x
Feedback ................................................................................................................... xv
Chapter 1 Introduction
1.1 Architecture overview ............................................................................................. 1-18
1.2 Topology ................................................................................................................ 1-20
1.3 Terminology ........................................................................................................... 1-21
1.4 Transaction classification ....................................................................................... 1-23
1.5 Coherence overview .............................................................................................. 1-24
1.6 Component naming ................................................................................................ 1-26
Chapter 2 Transactions
2.1 Channels overview ................................................................................................. 2-30
2.2 Channel Fields ....................................................................................................... 2-31
2.3 Transaction structure ............................................................................................. 2-35
2.4 Introduction to identifier fields ................................................................................ 2-49
2.5 Transaction identifier fields .................................................................................... 2-50
2.6 Transaction identifier field flows ............................................................................. 2-52
2.7 Logical Processor Identifier .................................................................................... 2-61
2.8 Address, Control, and Data .................................................................................... 2-62
2.9 Data transfer .......................................................................................................... 2-70
2.10 Request Retry ........................................................................................................ 2-78
Chapter 7 Ordering
7.1 Multi-copy atomicity .............................................................................................. 7-152
7.2 Completion Response and Ordering .................................................................... 7-153
7.3 Completion acknowledgement ............................................................................. 7-154
7.4 Transaction ordering ............................................................................................ 7-156
7.5 Barriers ................................................................................................................. 7-161
Appendix C Revisions
Glossary
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. vii
ID061214 Confidential
Contents
viii Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Preface
This preface introduces the AMBA 5 CHI Architecture Specification. It contains the following sections:
• About this specification on page x.
• Using this specification on page x.
• Conventions on page xii.
• Additional reading on page xiv.
• Feedback on page xv.
Intended audience
This specification is written for hardware and software engineers who want to become familiar with the CHI
architecture and design systems and modules that are compatible with the CHI architecture.
Chapter 1 Introduction
Read this for an introduction to the CHI architecture, and the terminology used in this specification.
Chapter 2 Transactions
Read this for an overview of the communication channels between nodes, the associated packet
fields, and the transaction structure.
Chapter 7 Ordering
Read this for a description of the mechanisms that the architecture includes to support system
ordering requirements.
Appendix C Revisions
Read this for a description of the technical changes between released issues of this specification.
Conventions
The following sections describe conventions that this specification can use:
• Typographical conventions.
• Timing diagrams.
• Signals on page xiv.
• Numbers on page xiv.
Typographical conventions
The typographical conventions are:
italic Highlights important notes, introduces special terminology, and denotes internal
cross-references and citations.
bold Denotes signal names, and is used for terms in descriptive lists, where appropriate.
monospace Used for assembler syntax descriptions, pseudocode, and source code examples.
Also used in the main text for instruction mnemonics and for references to other items
appearing in assembler syntax descriptions, pseudocode, and source code examples.
SMALL CAPITALS Used for a few terms that have specific technical meanings.
Timing diagrams
The Key to timing diagram conventions figure 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 within the shaded area at that
time. The actual level is unimportant and does not affect normal operation.
Clock
HIGH to LOW
Transient
HIGH/LOW to HIGH
Bus stable
Bus change
Timing diagrams sometimes show single-bit signals as HIGH and LOW at the same time and they look similar to
the bus change that the Key to timing diagram conventions figure shows. If a timing diagram shows a single-bit
signal in this way then its value does not affect the accompanying description.
xii Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Preface
About this specification
Time-Space diagrams
The Key to Time-Space diagram conventions figure explains the format used to illustrate protocol flow.
Protocol
nodes
RN-F HN-F
I I
Initial cache
state
Allocation
REQ
Direction of
message flow
RESP
Lifetime of a
transaction
Deallocation
Forward progress
is unblocked Time
I->UC
Space
• The protocol nodes are positioned along the horizontal axis and time is indicated vertically, top to bottom.
• The lifetime of a transaction at RN-F is from the allocation time to the de-allocation time.
• The diamond shape on the timeline indicates arrival of a request and whether its processing is blocked
waiting for another event to complete.
• The cache state transition, upon the occurrence of an event, is indicated by I->UC.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. xiii
ID061214 Confidential
Preface
About this specification
Signals
The signal conventions are:
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.
• LOW for active-LOW signals.
Numbers
Numbers are normally written in decimal. Binary numbers are preceded by 0b, and hexadecimal numbers by 0x.
Both are written in a monospace font.
Additional reading
This section lists relevant publications from ARM.
ARM publications
• AMBA AXI and ACE Protocol Specification (ARM IHI 0022).
xiv Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Preface
Feedback
Feedback
ARM welcomes feedback on its documentation.
xvi Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 1
Introduction
This chapter introduces the CHI architecture and the terminology used throughout this specification. It contains the
following sections:
• Architecture overview on page 1-18.
• Topology on page 1-20.
• Terminology on page 1-21.
• Transaction classification on page 1-23.
• Coherence overview on page 1-24.
• Component naming on page 1-26.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 1-17
ID061214 Confidential
1 Introduction
1.1 Architecture overview
The components of CHI based systems can comprise of standalone processors, processor clusters, graphic
processors, memory controllers, I/O bridges, PCIe subsystems and the interconnect itself.
• Scalable architecture enabling modular designs that scale from small to large systems.
• Independent layered approach, comprising of Protocol, Network, and Link layer, with distinct functionalities.
• All transactions handled by an interconnect based Home Node that co-ordinates required snoops, cache, and
memory accesses.
• Optional handling of barrier functionality completely at the source without propagation into the interconnect.
• Error reporting and propagation across components and interconnect for system reliability and integrity
needs.
1-18 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
1 Introduction
1.1 Architecture overview
Communication
Layer Primary function
granularity
Protocol Transaction The Protocol layer is the top-most layer in the CHI architecture. The function
of the Protocol layer is to:
• Generate and process requests and responses at the protocol nodes.
• Define the permitted cache state transitions at the protocol nodes that
include caches.
• Define the transaction flows for each request type.
• Manage the protocol level flow control.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 1-19
ID061214 Confidential
1 Introduction
1.2 Topology
1.2 Topology
The CHI architecture is primarily topology independent. However, certain topology dependent optimizations are
included in this specification to make implementation more efficient. Figure 1-1 shows three examples of topologies
selected to show the range of interconnect bandwidth and scalability options that are available.
0 1 2 3
0 1 2 3
4 5 6 7 Ring
0
8 9 10 11
1
4×4
Crossbar
2
12 13 14 15
3
4×4 Mesh
0 1 2 3
Router
Crossbar This topology is simple to build, and naturally provides an ordered network with low latency. It is
suitable where the wire counts are still relatively small. This topology is suitable for an interconnect
with a small number of nodes.
Ring This topology provides a good trade-off between interconnect wiring efficiency and latency. The
latency linearly increases with the number of nodes on the ring. This topology is suitable for a
medium size interconnect.
Mesh This topology provides greater bandwidth at the cost of more wires. It is very modular and can be
easily scaled to larger systems by adding more rows and columns of switches. This topology is
suitable for a larger scale interconnect.
1-20 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
1 Introduction
1.3 Terminology
1.3 Terminology
The following terms have a specific meaning in this specification:
Transaction A transaction carries out a single operation. Typically, a transaction either reads from
memory or writes to memory.
Message A Protocol layer term that defines the granule of exchange between two components.
Examples are:
• Request.
• Data response.
• Snoop request.
A single Data response message might be made up of a number of packets.
Packet The granule of transfer over the interconnect between endpoints. A message might be made
up of one or more packets. For example, a single Data response message might be made up
of 1 to 4 packets. Each packet contains routing information, such as destination ID and
source ID that enables it to be routed independently over the interconnect.
Flit The smallest flow control unit. A packet might be made up of one or more flits. All the flits
of a given packet follow the same path through the interconnect.
Note
For CHI, all packets consist of a single flit.
Phit The physical layer transfer unit. A flit might be made up of one or more phits. A phit is
defined as one transfer between two adjacent network devices.
Note
For CHI, all flits consist of a single phit.
PoS Point of Serialization. A point within the interconnect where the ordering between Requests
from different agents is determined.
PoC Point of Coherence. A point at which all agents that can access memory are guaranteed to
see the same copy of a memory location. In a typical CHI based system it is the HN-F in the
interconnect.
Downstream cache A downstream cache is defined from the perspective of a Request node. A downstream
cache for a Request, is a cache that the Request accesses using CHI Request transactions. A
Request Node can allocate cache lines into a downstream cache.
Requester A component that starts a transaction by issuing a Request message. The term Requester can
be used for a component that independently initiates transactions and such a component is
also referred to as a master. The term Requester can also be used for an interconnect
component that issues a downstream Request message as a side-effect of other transactions
that are occurring in the system.
Completer Any component that responds to a transaction it receives from another component. A
Completer can either be an interconnect component or a component, such as a slave, that is
outside of the interconnect.
Master An agent that independently issues transactions. Typically a master is the most upstream
agent in a system. A master can also be referred to as a Requester.
Slave An agent that receives transactions and completes them appropriately. Typically, a slave is
the most downstream agent in a system. A slave can also be referred to as a Completer or
Endpoint.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 1-21
ID061214 Confidential
1 Introduction
1.3 Terminology
Endpoint Another name for a slave component. As the name implies, an endpoint is the final
destination for a transaction.
Protocol Credit A credit, or guarantee, from a Completer that it will accept a transaction.
Link layer Credit A credit, or guarantee, that a flit will be accepted on the other side of the link. A Link layer
Credit (L-Credit) can be considered to be a credit for a single hop at the Link layer.
ICN A short form of interconnect, which is the CHI transport mechanism that is used for
communication between protocol nodes. An ICN might include a fabric of switches
connected in a ring, mesh, crossbar, or some other topology. The ICN might include
protocol nodes such as Home Node and Misc Node. The topology of the ICN is
IMPLEMENTATION DEFINED.
RN Request Node. Generates protocol transactions, including reads and writes, to the
interconnect.
HN Home Node. Node located within the interconnect that receives protocol transactions from
Request Nodes.
SN Slave Node. Node that receives a Request from a Home Node, completes the required
action, and returns a Response.
IO Coherent node An RN that generates some Snoopable requests in addition to Non-snoopable requests. The
Snoopable requests that an IO Coherent node generates do not result in the caching of the
received data in a coherent state. Therefore, an IO Coherent node does not receive any
Snoop requests.
Write-Invalidate protocol
A protocol in which an RN writing to a cache line that is shared in the system must
invalidate all the shared copies before proceeding with the write. The CHI protocol is a
Write-Invalidate protocol.
In a timely manner The protocol cannot define an absolute time within which something must occur. However,
in a sufficiently idle system, it will make progress and complete without requiring any
explicit action.
Don’t Care A field value that indicates that the field can be set to any value, including reserved or illegal
values. Any component receiving a packet with a field value set to Don't Care must ignore
the value set for that field.
1-22 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
1 Introduction
1.4 Transaction classification
The protocol transactions that this specification supports, and their major classification, is as follows:
Read
• ReadNoSnp.
• ReadOnce.
• ReadClean.
• ReadShared.
• ReadUnique.
Dataless
• CleanUnique.
• MakeUnique.
• CleanShared.
• CleanInvalid.
• MakeInvalid.
• Evict.
Write
• WriteNoSnp.
• WriteBack.
• WriteClean.
• WriteEvict.
• WriteUnique.
Other
• DVMOp.
• EOBarrier.
• ECBarrier.
• PCrdReturn.
Snoop
• SnpOnce.
• SnpClean.
• SnpShared.
• SnpUnique.
• SnpCleanShared.
• SnpCleanInvalid.
• SnpMakeInvalid.
• SnpDVMOp.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 1-23
ID061214 Confidential
1 Introduction
1.5 Coherence overview
Regions of memory are coherent if writes to the same memory location by two components are observable in the
same order by all components.
Coherent interconnect
ICN (ICN) Cache
Main
SN-F
memory
Slave 1
The coherence protocol ensures that all masters observe the correct data value at any given address location by
enforcing that no more than one copy exists whenever a store occurs to the location. After each store to a location,
other masters can obtain a new copy of the data for their own local cache, to permit multiple cached copies to exist.
All coherency is maintained at cache line granularity. A cache line is defined as a 64-byte aligned memory region
64-bytes in size.
The protocol does not require main memory to be up to date at all times. Main memory is only required to be updated
before a copy of the memory location is no longer held in any cache.
Note
Although not a requirement, it is acceptable to update main memory while cached copies still exist.
The protocol enables master components to determine whether a cache line is the only copy of a particular memory
location, or if there might be other copies of the same location, so that:
• If a cache line is the only copy, a master component can change the value of the cache line without notifying
any other master components in the system.
• If a cache line might also be present in another cache, a master component must notify the other caches, using
an appropriate transaction.
1-24 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
1 Introduction
1.5 Coherence overview
Valid, Invalid When Valid, the cache line is present in the cache. When Invalid, the cache line is not
present in the cache.
Unique, Shared When Unique, the cache line exists only in this cache. When Shared, the cache line might
exist in more than one cache, but this is not guaranteed.
Clean, Dirty When Clean, the cache does not have responsibility for updating main memory. When Dirty,
the cache line has been modified with respect to main memory, and this cache must ensure
that main memory is eventually updated.
Full, Partial, Empty A Full cache line has all bytes valid. A Partial cache line might have some bytes valid, but
not all bytes valid. An Empty cache line has no bytes valid.
Figure 1-3 shows the seven state cache model. Cache line states on page 4-92 gives further information about each
cache state.
Note
A valid cache state name that is not Partial or Empty is considered to be Full. In Figure 1-3 UC, UD, SC, and SD
are all Full cache line states.
Valid Invalid
Unique Shared
UC SC
Clean
UCE
I
UD SD
Dirty
UDP
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 1-25
ID061214 Confidential
1 Introduction
1.6 Component naming
RN Request Node. Generates protocol transactions, including reads and writes to the interconnect.
An RN is further categorized as:
RN-F Fully coherent Request Node:
• Includes a hardware-coherent cache.
• Permitted to generate all transactions defined by the protocol.
• Supports all snoop transactions.
RN-D IO coherent Request Node with DVM support:
• Receives DVM transactions.
• Does not include a hardware-coherent cache.
• Generates a subset of transactions defined by the protocol.
• Includes snoop functionality to receive DVM transactions.
RN-I IO coherent Request Node:
• Does not include a hardware-coherent cache.
• Does not receive DVM transactions.
• Generates a subset of transactions defined by the protocol.
• Does not require snoop functionality.
HN Home Node. Node located within the interconnect that receives protocol transactions from RNs.
An HN is further categorized as:
HN-F Is expected to receive all Request types except DVMOp and Barrier:
• Includes a Point of Coherence (PoC) that manages coherency by snooping the
required RN-Fs, consolidating the snoop responses for a transaction, and sending
a single response to the requesting RN.
• Is expected to be the Point of Serialization (PoS) that manages order between
memory requests.
• Might include a directory or snoop filter to reduce redundant snoops.
Note
IMPLEMENTATION SPECIFIC, can include an integrated ICN cache.
SN Slave Node. An SN receives a request from an HN, completes the required action and returns a
response.
An SN is further categorized as:
SN-F A slave node type used for Normal memory. It can process Non-snoopable read and
write requests, including exclusive variants of them.
SN-I A slave node type used for peripherals or Normal memory. It can process
Non-snoopable read and write requests, including exclusive variants of them, and
Barriers.
1-26 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
1 Introduction
1.6 Component naming
Figure 1-4 shows various protocol node types connected through an interconnect.
Masters
(Fully coherent)
Master
(IO coherent)
Interconnect (ICN)
MN
RN-I
SN-I SN-F
Slave Slave
(Peripheral and/or Memory) Slaves (Memory)
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 1-27
ID061214 Confidential
1 Introduction
1.6 Component naming
1-28 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 2
Transactions
This chapter gives an overview of the communication channels between nodes, the associated packet fields, and the
transaction structure. It contains the following sections:
• Channels overview on page 2-30.
• Channel Fields on page 2-31.
• Transaction structure on page 2-35.
• Introduction to identifier fields on page 2-49.
• Transaction identifier fields on page 2-50.
• Transaction identifier field flows on page 2-52.
• Logical Processor Identifier on page 2-61.
• Address, Control, and Data on page 2-62.
• Data transfer on page 2-70.
• Request Retry on page 2-78.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-29
ID061214 Confidential
2 Transactions
2.1 Channels overview
This section uses shorthand naming for the channels to describe the transaction structure. Table 2-1shows the
shorthand naming and the physical channel name that exists on the RN or SN component.
See Channels on page 11-201 for the mapping of physical channels on the RN and SN components.
2-30 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.2 Channel Fields
The term transaction structure is used to describe the different packets that build a transaction and the transaction
structure can vary depending on a number of factors. Table 2-2 shows which Request fields can affect the
transaction structure. More information on the different transaction structures can be found in Transaction structure
on page 2-35 and Flit packet definitions on page 11-210.
Affects
Field Description
structure
QoS No Quality of Service priority. Specifies 1 of 16 possible priority levels for the
transaction with ascending values of QoS indicating higher priority levels. See
Chapter 10 Quality of Service.
TgtID No Target ID. The physical node ID of the port on the interconnect to which the
packet is targeted. See Transaction identifier fields on page 2-50 and System
address map on page 3-84.
SrcID No Source ID. The physical node ID of the port on the interconnect from which the
packet was sent. See Transaction identifier fields on page 2-50.
TxnID No Transaction ID. A transaction has a unique transaction ID per source node. See
Transaction identifier fields on page 2-50.
Opcode Yes Request opcode. Specifies the transaction type and is the primary field that
determines the transaction structure. See Request types on page 4-94 and REQ
channel opcodes on page 11-216.
Size Yes Data size. Specifies the size of the data associated with the transaction. This
determines the number of data packets within the transaction. See Data transfer
on page 2-70.
Addr No Address. The address of the memory location being accessed for read and write
requests. See Address on page 2-62 and Addr on page 11-219.
LikelyShared No Likely Shared. Provides an allocation hint for downstream caches. See Memory
Attributes on page 2-62.
AllowRetry Yes Allow Retry. Determines if the transaction has a pre-allocated credit and if the
target is permitted to give a Retry response. See Request Retry on page 2-78.
Order Yes Order requirement. Determines the ordering requirement for this request with
respect to other transactions from the same agent. See Chapter 7 Ordering.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-31
ID061214 Confidential
2 Transactions
2.2 Channel Fields
Affects
Field Description
structure
PCrdType No Protocol Credit Type. Indicates the type of Protocol Credit being used by a
request that has the AllowRetry field deasserted. See Request Retry on
page 2-78.
MemAttr No Memory attribute. Determines the memory attributes associated with the
transaction. See Memory Attributes on page 2-62.
SnpAttr No Snoop attribute. Specifies the snoop attributes associated with the transaction.
See Snoop Attribute on page 2-65.
LPID No Logical processor ID. Used in conjunction with the SrcID field to uniquely
identify the logical processor that generated the request. See Logical Processor
Identifier on page 2-61.
ExpCompAck Yes Expect CompAck. Indicates that the transaction will include a Completion
Acknowledge message. See Transaction structure on page 2-35 and Chapter 7
Ordering.
Affects
Field Description
structure
Opcode Yes Snoop opcode. See Snoop request fields and SNP channel opcodes on page 11-218.
Addr No Address. The address of the memory location being accessed for snoop requests.
See Address on page 2-62 and Addr on page 11-219.
2-32 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.2 Channel Fields
Field Description
Opcode Data opcode. Indicates, for example, if the data packet is related to a Read
transaction, a Write transaction, or a Snoop transaction. See DAT channel
opcodes on page 11-218.
RespErr Response Error status. Indicates the error status of the response. See
Chapter 6 Exclusive Accesses and Error response fields on page 9-185.
Resp Response status. Used to indicate the cache line state associated with a Data
transfer. See Response types on page 4-103.
DBID Data Buffer ID. See Transaction identifier fields on page 2-50 and Chapter 7
Ordering.
CCID Critical Chunk Identifier. Replicates the address offset of the original
transaction request. See Data transfer on page 2-70.
DataID Data Identifier. Provides the address offset of the data provided in the packet.
See Data transfer on page 2-70.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-33
ID061214 Confidential
2 Transactions
2.2 Channel Fields
Field Description
Opcode Response opcode. Specifies the response type. See RSP channel opcodes on
page 11-217.
RespErr Response Error status. Indicates the error status of the response. See
Chapter 6 Exclusive Accesses and Error response fields on page 9-185.
Resp Response status. Used to indicate the cache line state associated with a
Response. See Response types on page 4-103.
DBID Data Buffer ID. See Transaction identifier fields on page 2-50 and Chapter 7
Ordering.
2-34 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.3 Transaction structure
The structure of a transaction is described as seen at a single interface. The transaction types presented in this section
are:
• Request transactions without a Retry.
• Request transactions with a Retry.
• Snoop transactions.
For a Request transaction to complete, a Snoop transaction might be required. However, such dependencies are not
visible at the Requester, so these two transaction types are presented separately. See Chapter 5 Interconnect Protocol
Flows for examples of how Request and Snoop flows are related.
All transaction types, except PCrdReturn, can have a Retry sequence at the start of the transaction. For ease of
presentation, the Retry sequence is described separately. See Transaction Retry sequence on page 2-45.
ReadNoSnp, ReadOnce
A ReadNoSnp transaction is used to carry out a read when the snooping of other masters is not required.
A ReadOnce transaction is used to carry out a read when the snooping of other masters is required but the Requester
is not going to Allocate the cache line in its own cache.
Note
ReadOnce obtains a snapshot of the coherent data value. If a component holds this value in a local buffer, or cache,
the data value will no longer be coherent.
There are two optional behaviors associated with a ReadNoSnp and ReadOnce transaction that are determined by
fields in the transaction request:
• The Order field of the request determines if the transaction requires a ReadReceipt.
• The ExpCompAck field of the request determines if the transaction requires a CompAck.
1. The Requester sends a request with the ReadNoSnp or ReadOnce opcode on the REQ channel.
2. If the request Order field indicates that ordering is required then a ReadReceipt response must be returned on
the CRSP channel when order has been established.
3. The Completer returns the read data and any associated transaction response with the CompData opcode on
the RDAT channel. The read data can be sent using multiple transfers. See Data transfer on page 2-70.
4. If the transaction request ExpCompAck bit is set, the Requester must return an acknowledgement, using the
CompAck opcode on the SRSP channel to indicate that the transaction has completed. This must not be sent
until all transfers of read data have been received.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-35
ID061214 Confidential
2 Transactions
2.3 Transaction structure
RN ICN
ReadNoSnp
REQ
ReadOnce
CRSP ReadReceipt
ReadReceipt is sent if
RDAT CompData Order is set in the
transaction request.
SRSP CompAck
CompAck is sent if
ExpCompAck is set in
the transaction request.
• CompData must only be sent by the Completer after the associated request is received.
• CompAck, if part of the transaction, must only be sent by the Requester after all transfers of CompData are
received.
• The Requester is permitted, but not required, to wait for the ReadReceipt before sending CompAck.
• The Completer is not permitted to wait for the CompAck before sending the ReadReceipt.
2-36 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.3 Transaction structure
Snoopable Read
The Snoopable Read transactions are:
• ReadClean.
• ReadShared.
• ReadUnique.
Snoopable Read transactions are used by a fully coherent Requester (RN-F) to carry out a read when the snooping
of other Snoopable Requesters (RN-Fs) is required.
1. The Requester sends a request on the REQ channel that includes the opcode for one of the following
transactions:
• ReadClean.
• ReadShared.
• ReadUnique.
2. The Completer returns the read data and any associated transaction response with the CompData opcode on
the RDAT channel. The read data can be sent using multiple transfers. See Data transfer on page 2-70.
3. The Requester returns an acknowledgement that the transaction has completed with the CompAck opcode on
the SRSP channel. This must only be sent after all transfers of read data are received.
RN ICN
Snoopable
REQ
Read
RDAT CompData
SRSP CompAck
• CompData must only be sent by the Completer after the associated request is received.
• CompAck must only be sent by the Requester after all transfers of CompData are received.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-37
ID061214 Confidential
2 Transactions
2.3 Transaction structure
Snoopable Dataless
The Snoopable Dataless transactions are:
• CleanUnique.
• MakeUnique.
• CleanShared.
• CleanInvalid.
• MakeInvalid.
• Evict.
1. The Requester sends a request on the REQ channel that includes the opcode for one of the following
transactions:
• CleanUnique.
• MakeUnique.
• CleanShared.
• CleanInvalid.
• MakeInvalid.
• Evict.
2. The Completer returns a Comp response on the CRSP channel. Only a single response is given for Dataless
transactions.
3. If the transaction request ExpCompAck field is set, the Requester must return an acknowledgement that the
transaction has completed with the CompAck opcode on the SRSP channel:
• For CleanUnique and MakeUnique, ExpCompAck must be set.
• For CleanShared, CleanInvalid and MakeInvalid, setting ExpCompAck is optional.
• For Evict, ExpCompAck must not be set.
2-38 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.3 Transaction structure
RN ICN
Snoopable
REQ
Dataless
CRSP Comp
SRSP CompAck
CompAck is sent if
ExpCompAck is set in the
transaction request.
WriteNoSnp
The WriteNoSnp transactions are:
• WriteNoSnpPtl, WriteNoSnpFull.
A WriteNoSnp transaction is used to carry out a store where the snooping of other masters is not required.
1. The Requester sends a request with the WriteNoSnpPtl or WriteNoSnpFull opcode on the REQ channel.
3. The Requester sends the write data and any associated byte enables with the NonCopyBackWrData opcode
on the WDAT channel. The write data can be sent using multiple transfers. See Data transfer on page 2-70.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-39
ID061214 Confidential
2 Transactions
2.3 Transaction structure
RN ICN RN ICN
DBIDResp
CRSP CRSP CompDBIDResp
Comp
WriteData refers to
RN ICN NonCopyBackWrData
REQ WriteNoSnp
Comp response
permitted to wait
CRSP DBIDResp for WriteData
WDAT WriteData
CRSP Comp
• The separate DBIDResp and Comp, or the combined CompDBIDResp, must only be sent by the Completer
after the associated request is received.
• WriteData must only be sent by the Requester after either DBIDResp or CompDBIDResp is received.
• The Completer is permitted to wait for the WriteData before sending the Comp response.
2-40 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.3 Transaction structure
WriteUnique
The WriteUnique transactions are:
• WriteUniquePtl, WriteUniqueFull.
WriteUnique transactions are used to perform a store to a location when the snooping of other Snoopable Requesters
(RN-Fs) might be required to obtain permission to store.
There is one optional behavior associated with WriteUnique transactions. The behavior is determined by the Order
field in the transaction request. See Streaming Ordered WriteUnique transactions on page 7-159 for details on the
use of CompAck to force the order in which requests are observed.
Note
When the Order field is non-zero, the Requester must also set the ExpCompAck field and the transaction
must complete with a CompAck transaction acknowledge.
1. The Requester sends a request with the WriteUniquePtl or WriteUniqueFull opcode on the REQ channel.
3. The Requester sends the write data and any associated byte enables with the NonCopyBackWrData opcode
on the WDAT channel. The write data can be sent using multiple transfers. See Data transfer on page 2-70.
4. If the ExpCompAck field is set in the transaction request, then the transaction completes with a CompAck
transaction acknowledge.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-41
ID061214 Confidential
2 Transactions
2.3 Transaction structure
RN ICN RN ICN
DBIDResp
CRSP CRSP CompDBIDResp
Comp
• The separate DBIDResp and Comp, or the combined CompDBIDResp, must only be sent by the interconnect
after the associated request is received.
• WriteData must only be sent by the Requester after either DBIDResp or CompDBIDResp is received.
• If the CompAck acknowledge is part of the transaction then CompAck must only be sent by the Requester
after either the Comp or CompDBIDResp response is received.
— The Requester is permitted to send the WriteData and CompAck in any order.
2-42 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.3 Transaction structure
CopyBack
The CopyBack transactions are:
• WriteBackPtl, WriteBackFull.
• WriteCleanPtl, WriteCleanFull.
• WriteEvictFull.
CopyBack transactions, except WriteEvictFull, are used to update main memory or a downstream cache for a
coherent location.
A WriteEvictFull transaction is used to update only a downstream cache for a coherent location.
1. The Requester sends a request on the REQ channel that includes the opcode for one of the following
transactions:
• WriteBackPtl, WriteBackFull.
• WriteCleanPtl, WriteCleanFull.
• WriteEvictFull.
2. The Completer returns a single combined CompDBIDResp response on the CRSP channel to indicate:
• It can accept the write data for the transaction.
• This request will complete before any snoop to the same address is received.
3. After the Requester has received the CompDBIDResp response it sends the write data, and any associated
byte enables, with the CopyBackWrData opcode on the WDAT channel. The write data can be sent using
multiple transfers. See Data transfer on page 2-70.
RN ICN
REQ CopyBack
CRSP CompDBIDResp
WDAT WriteData
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-43
ID061214 Confidential
2 Transactions
2.3 Transaction structure
Barrier
The Barrier transactions are:
• EOBarrier.
• ECBarrier.
A Barrier transaction is used to ensure ordering of two groups of transactions.
RN ICN
REQ Barrier
CRSP Comp
• Comp must only be sent by the Completer after the associated request is received.
DVM
The DVM transaction is DVMOp.
1. The Requester sends a request with the DVMOp opcode on the REQ channel.
2. The Completer returns a DBIDResp response that provides a data buffer identifier indicating that it can
accept the write data for the transaction.
3. The Requester sends the write data for the DVM transaction, with the NonCopyBackWrData opcode, on the
WDAT channel. Only a single data transfer occurs for a DVM transaction.
2-44 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.3 Transaction structure
RN ICN
REQ DVMOp
CRSP DBIDResp
WDAT WriteData
CRSP Comp
Retry sequence
Request transactions are first sent without a Protocol Credit (P-Credit). If the transaction cannot be accepted at its
Completer, then a RetryAck response must be given that indicates that the transaction has not been accepted and
can be sent again when an appropriate credit is provided. When a transaction is sent once more, with a credit, it is
guaranteed to be accepted.
For further details on the Retry process and the use of credits see Request Retry on page 2-78.
3. The Completer provides a PCrdGrant response on the CRSP channel, when appropriate, to indicate that a
credit is available to re-send the transaction.
4. The Requester sends the transaction again, with a credit, on the REQ channel.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-45
ID061214 Confidential
2 Transactions
2.3 Transaction structure
RN ICN
Transaction
REQ
no Credit
RetryAck
CRSP
PCrdGrant
Transaction
REQ
with Credit
• RetryAck must only be sent by the Completer after the associated request is received.
• PCrdGrant must only be sent by the Completer after the associated request is received.
• RetryAck is typically sent by the Completer before PCrdGrant. However, it is permitted to send RetryAck
after PCrdGrant.
• RetryAck is typically received by the Requester before PCrdGrant. However, it is permitted to receive
RetryAck after PCrdGrant.
• The transaction with credit must only be sent by the Requester after both the RetryAck response and an
appropriate PCrdGrant response are received.
Cancelled transaction
The protocol supports the cancelling of a transaction between the point that it receives a RetryAck and the point that
it is resent using a credit. The sequence is identical to the transaction Retry sequence that Figure 2-9 shows, except
that the final transaction with credit is sent as a PCrdReturn transaction. This acts as a null transaction and returns
the credit to the Completer.
The sequence and rules are identical to those for a Retry sequence.
RN ICN
Transaction
REQ
no Credit
RetryAck
RSP
PCrdGrant
REQ PCrdReturn
2-46 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.3 Transaction structure
• An RN-D only accepts a DVM maintenance operation and is only required to support the SnpDVMOp
transaction.
• An RN-F and RN-D must respond to received snoop requests, in a timely manner, without creating any
dependency on completion of outstanding requests.
The following Snoop transactions can complete with or without a Data response, as determined by the snooped RN:
• SnpShared.
• SnpClean.
• SnpOnce.
• SnpUnique.
• SnpCleanShared.
• SnpCleanInvalid.
For details on the different Snoop transactions, and if data is returned, see Snoop requests on page 4-100.
Note
Figures relating to Snoop transactions show the snooped Request Node (RN) on the right, and the interconnect
(ICN) on the left. This is consistent with the ordering of the Request/Snoop process.
1. The interconnect provides a snoop request on the SNP channel that can be any Snoop transaction supported
by the RN.
ICN RN-F
Snoop
SNP
Transaction
SRSP SnpResp
• SnpResp must only be sent by the RN after the associated snoop request is received.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-47
ID061214 Confidential
2 Transactions
2.3 Transaction structure
1. The interconnect provides a snoop request on the SNP channel. This can be one of the following Snoop
transactions:
• SnpShared.
• SnpClean.
• SnpOnce.
• SnpUnique.
• SnpCleanShared.
• SnpCleanInvalid.
2. The RN returns the data and associated response using the SnpRespData or SnpRespDataPtl opcode on the
DAT channel.
ICN RN-F
Snoop
SNP
transaction
SDATA SnpRespData
• SnpRespData or SnpRespDataPtl, as required, must only be sent by the RN-F after the associated snoop
request is received.
Snoop DVMOp
The progress of a SnpDVMOp transaction is as follows:
1. The interconnect provides two snoop requests with the SnpDVMOp opcode on the SNP channel.
2. The RN returns a single SnpResp snoop response on the SRSP channel.
ICN RN
SNP SnpDVMOp
RN-F or RN-D
SRSP SnpResp
• The SnpResp response must only be sent by the RN after both snoop requests are received.
2-48 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.4 Introduction to identifier fields
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-49
ID061214 Confidential
2 Transactions
2.5 Transaction identifier fields
A transaction request includes a TxnID that is used to identify the transaction from a given Requester. It is required
that the TxnID must be unique for a given Requester. The Requester is identified by the SrcID. This ensures that
any returning read data or response information can be associated with the correct transaction.
An 8-bit field is defined for the TxnID to accommodate up to 256 outstanding transactions. A Requester is permitted
to reuse a TxnID value after it has received all responses associated with a previous transaction that has used the
same value. Transaction identifier field flows on page 2-52 gives more detailed rules for the different transaction
types.
A transaction that is retried is not required to use the same TxnID. See Request Retry on page 2-78.
This specification includes the concept of a Data Buffer Identifier (DBID). The DBID field is primarily used by
Write transactions and also by transactions that include a CompAck packet. The DBID field permits the Completer
of a transaction to provide its own identifier for a transaction. The Completer sends a response that includes a DBID
value and this value is then used for the TxnID field of the write data or CompAck packet.
The DBID value used by a Completer in responses of a given transaction must be unique for a given Requester in
the following cases:
• Comp or DBIDResp or CompDBIDResp for Write transactions.
• DBIDResp for DVMOp transactions.
• CompData for Read transactions that include CompAck.
• Comp for Dataless transactions that include CompAck.
A Completer is not required to utilize the DBID field for the following:
• Read transactions without CompAck.
• Dataless transactions without CompAck.
A Comp response message sent separate from a DBIDResp message for a Write transaction must include the same
DBID field value in the Comp and DBIDResp message.
A Completer is permitted, but not required, to use the same DBID value for two transactions with different
Requesters. A Completer is permitted to reuse a DBID value after it has received all packets associated with a
previous transaction that has used the same value. Transaction identifier field flows on page 2-52 gives more
detailed rules for the different transaction types.
2. Completer sends a response to indicate it can accept the data. This Response packet contains the TxnID so
that the Requester can link it to a request. It also has a DBID field, which is the identifier that is used by the
Completer.
3. The Requester sends WriteData, using the supplied DBID in the TxnID field of the write data packets.
4. When the Completer receives the write data packets the TxnID contains the identifier that the Completer sent
in the DBID field enabling it to quickly identify which request the data is associated with.
2-50 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.5 Transaction identifier fields
The advantage of this flow is that the Completer can send the DBID value that it has assigned, for each request that
it receives. Therefore the Completer does not need to perform a lookup using TxnID and SrcID to determine which
transaction write data or completion acknowledge is associated with which request.
Note
If a Completer is using the same DBID value for different Requesters, which it must do if its operation requires more
than 256 DBID responses to be active at the same time, then it must use SrcID in combination with DBID to
determine which request should be associated with a write data or response message.
The DBID response is also used to provide certain ordering guarantees relating to the transaction. See Transaction
ordering on page 7-156.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-51
ID061214 Confidential
2 Transactions
2.6 Transaction identifier field flows
• All fields with the same color are the same value.
• The curved loop-back arrows show how the Requester and Completer use fields from earlier packets to
generate fields for subsequent packets.
• A box containing an asterix [*] indicates when a field is first generated, that is, it indicates the agent that
determines the original value of the field.
• A field enclosed in brackets indicates that the value is effectively a fixed value. Typically this is the case for
the SrcID field when a packet is sent, and the TgtID field when a packet arrives at its destination.
• A field that is crossed-out indicates that the field is not valid. Typically a field that is not valid can take any
value, including a reserved or illegal value.
• It is permitted for the TgtID of the original transaction to be re-mapped by the interconnect to a new value.
This is shown by a box containing the letter R. This is explained in more detail in Chapter 3 Network Layer.
Note
An identifier field, in every packet sent, belongs to one of the following categories:
• New value. An asterix indicates that a new value is generated.
• Generated from an earlier packet. A loop back arrow indicates the source.
• Fixed value. The value is enclosed in brackets.
• Not valid. The field is crossed-out.
The identifier field flow includes an optional ReadReceipt response from the Completer, and an optional CompAck
response from the Requester.
For read transactions that include a CompAck response the DBID is used by the Completer to associate the
CompAck with the original transaction.
A read transaction that does not include a CompAck response does not require a valid DBID field in the data
response.
Figure 2-14 on page 2-53 shows the transaction identifier field flow.
2-52 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.6 Transaction identifier field flows
Requester Completer
* TgtID R (TgtID)
REQ * (SrcID) SrcID
ReadReq
* TxnID TxnID
Optional
(TgtID) TgtID
SrcID (SrcID)
CRSP ReadReceipt
TxnID TxnID
DBID DBID
(TgtID) TgtID
SrcID (SrcID)
RDAT
TxnID CompData TxnID
DBID DBID *
Optional
TgtID (TgtID)
(SrcID) SrcID
SRSP CompAck
TxnID TxnID
DBID DBID
Figure 2-14 Identifier field flow for a Read request with ReadReceipt and CompAck
The required steps in the flow that Figure 2-14 shows are:
1. The Requester starts the transaction by sending a Request packet. The identifier fields of the request are
generated as follows:
• The TgtID is determined by the destination of the Request.
Note
The TgtID field can be re-mapped to a different value by the interconnect.
2. If the transaction includes a ReadReceipt, the Completer receives the Request packet and provides the read
receipt. The identifier fields of the ReadReceipt response are generated as follows:
• The TgtID is set to the same value as the SrcID of the request.
• The SrcID is a fixed value for the Completer. This also matches the TgtID received.
• The TxnID is set to the same value as the TxnID of the request.
• The DBID field is not valid.
3. The Completer receives the Request packet and provides the read data. The identifier fields of the read data
response are generated as follows:
• The TgtID is set to the same value as the SrcID of the request.
• The SrcID is a fixed value for the Completer. This also matches the TgtID received.
• The TxnID is set to the same value as the TxnID of the request.
• The Completer generates a unique DBID value if ExpCompAck in the request is asserted.
• The TgtID, SrcID, TxnID, and DBID fields must be the same value for all read data packets.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-53
ID061214 Confidential
2 Transactions
2.6 Transaction identifier field flows
4. The Requester receives the read data response, and if ExpCompAck was asserted in the request, the
Requester sends CompAck. The identifier fields of the CompAck response are generated as follows:
• The TgtID is set to the same value as the SrcID of the read data. This can be different from the original
TgtID of the request if the value was remapped by the interconnect.
• The SrcID is a fixed value for the Requester.
• The TxnID is set to the same value as the DBID value provided in the read data response.
• The DBID field is not used.
After receiving all read data packets, and if the transaction does not include a ReadReceipt, the Requester can reuse
the same TxnID value for another transaction.
If the transaction includes a ReadReceipt, then the Requester must only reuse the same TxnID after it has received
all read data packets and the ReadReceipt response.
After receiving the CompAck response, the Completer can reuse the same DBID value for another transaction.
The use of identifier fields is similar to Read transactions on page 2-52. The only difference is that the response
from the Completer to the Requester is sent as a single packet on the CRSP channel instead of multiple packets on
the RDAT channel.
Figure 2-15 on page 2-55 shows the transaction identifier field flow.
2-54 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.6 Transaction identifier field flows
Requester Completer
* TgtID R (TgtID)
REQ * (SrcID) CopyBack or SrcID
* TxnID WriteNoSnp TxnID
(TgtID) TgtID
SrcID (SrcID)
CRSP CompDBIDResp
TxnID TxnID
DBID DBID *
TgtID (TgtID)
(SrcID) SrcID
WDAT
TxnID WriteData TxnID
DBID DBID
Figure 2-15 Identifier flow for a WriteNoSnp with single response and CopyBack
The required steps in the flow that Figure 2-15 shows are:
1. The Requester starts the transaction by sending a Request packet. The identifier fields of the request are
generated as follows:
• The TgtID is determined by the destination of the Request.
Note
The TgtID field can be remapped to a different value by the interconnect.
2. The Completer receives the request packet and generates a CompDBIDResp response. The identifier fields
of the response are generated as follows:
• The TgtID is set to the same value as the SrcID of the request.
• The SrcID is a fixed value for the Completer. This also matches the TgtID received.
• The TxnID is set to the same value as the TxnID of the request.
• The Completer generates a unique DBID value.
3. The Requester receives the CompDBIDResp response and sends the write data. The identifier fields of the
write data are generated as follows:
• The TgtID is set to the same value as the SrcID of the CompDBIDResp response. This can be different
from the original TgtID of the request if the value was remapped by the interconnect.
• The SrcID is a fixed value for the Requester.
• The TxnID is set to the same value as the DBID value provided in the CompDBIDResp response.
• The DBID field in the write data is not used.
• The TgtID, SrcID, and TxnID fields must be the same for all write data packets.
After receiving the CompDBIDResp response, the Requester can reuse the same TxnID value used in the
request packet for another transaction.
4. The Completer receives the write data and uses the TxnID field, which now contains the DBID value that the
Completer generated, to determine which transaction the write data is associated with.
After receiving all write data packets, the Completer can reuse the same DBID value for another transaction.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-55
ID061214 Confidential
2 Transactions
2.6 Transaction identifier field flows
Requester Completer
* TgtID R (TgtID)
REQ * (SrcID) SrcID
WriteNoSnp
* TxnID TxnID
(TgtID) TgtID
SrcID (SrcID)
CRSP DBIDResp
TxnID TxnID
DBID DBID *
TgtID (TgtID)
(SrcID) SrcID
WDAT
TxnID WriteData TxnID
DBID DBID
(TgtID) TgtID
SrcID (SrcID)
CRSP Comp
TxnID TxnID
DBID DBID
Figure 2-16 Identifier field flow for a WriteNoSnp with multiple responses
The use of the identifier fields are the same as for a transaction with a combined response with the additional
requirements that:
• The identifier fields used for the separate DBIDResp and Comp responses must be identical.
• The TxnID value must only be reused by a Requester when both the DBIDResp and Comp responses have
been received.
The required steps in the flow that Figure 2-16 shows are:
1. The Requester starts the transaction by sending a Request packet. The identifier fields of the request are
generated as follows:
• The TgtID is determined by the destination of the Request.
Note
The TgtID field can be remapped to a different value by the interconnect.
2. The Completer receives the Request packet and generates a DBIDResp response. The identifier fields of the
response are generated as follows:
• The TgtID is set to the same value as the SrcID of the request.
• The SrcID is a fixed value for the Completer. This also matches the TgtID received.
• The TxnID is set to the same value as the TxnID of the request.
• The Completer generates a unique DBID value.
2-56 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.6 Transaction identifier field flows
3. The Requester receives the DBIDResp response and sends the write data. The identifier fields of the write
data are generated as follows:
• The TgtID is set to the same value as the SrcID of the DBIDResp response. This can be different from
the original TgtID of the request if the value was remapped by the interconnect.
• The SrcID is a fixed value for the Requester.
• The TxnID is set to the same value as the DBID value provided in the DBIDResp response.
• The DBID field in the write data is not used.
• The TgtID, SrcID, and TxnID fields must be the same for all write data packets.
4. The Completer receives the write data and uses the TxnID field, which now contains the DBID value that the
Completer generated, to determine which transaction the write data is associated with.
5. The Completer generates a Comp response when it has completed the transaction. The Comp response is sent
independent of the DBIDResp response and might be sent before or after the write data is received.
The identifier fields of the Comp response must be the same as the DBIDResp response and are generated as
follows:
• The TgtID is set to the same value as the SrcID of the request.
• The SrcID is a fixed value for the Completer. This also matches the TgtID received.
• The TxnID is set to the same value as the TxnID of the request.
• The Completer uses the same DBID value as is used in the DBIDResp response.
After receiving both the Comp and DBIDResp response, the Requester can reuse the same TxnID value for another
transaction.
After receiving all write data packets, the Completer can reuse the same DBID value for another transaction.
Note
There is no ordering requirement between the separate DBIDResp and Comp responses. The specification
requirement is that the values used are identical.
WriteUnique transaction
This section describes the use of the identifier fields for a WriteUnique transaction. A WriteUnique transaction can,
under certain circumstances, additionally include a CompAck response from the Requester to the Completer. In this
case, the additional rules for the use of the identifier fields are:
• The TgtID, SrcID, and, TxnID identifier fields of the CompAck response from the Requester to the
Completer must be the same as the fields used for the write data, that is:
— The TgtID is set to the same value as the SrcID of the CompDBIDResp response. If separate Comp
and DBIDResp responses are given, the TgtID is set to the same value as the SrcID of either the Comp
or DBIDResp response because the SrcID value in both must be identical. However, this can be
different from the original TgtID of the request if the value has been remapped by the interconnect.
— The SrcID is a fixed value for the Requester.
— The TxnID is set to the same value as the DBID value provided in the CompDBIDResp response. If
separate Comp and DBIDResp responses are given, the TxnID is set to the same value as the DBID of
either the Comp or DBIDResp response because the DBID value in both must be identical.
— The DBID field in the WriteData and in the CompAck is not used.
• The Completer must receive all items of write data and the CompAck response before reusing the same DBID
value for another transaction.
Figure 2-17 on page 2-58 shows the transaction identifier field flow with a combined CompDBIDResp response.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-57
ID061214 Confidential
2 Transactions
2.6 Transaction identifier field flows
Requester Completer
* TgtID R (TgtID)
REQ * (SrcID) SrcID
WriteUnique
* TxnId TxnID
(TgtID) TgtID
SrcID (SrcID)
CRSP CompDBIDResp
TxnID TxnID
DBID DBID *
TgtID (TgtID)
(SrcID) SrcID
WDAT
TxnID WriteData TxnID
DBID DBID
TgtID (TgtID)
(SrcID) SrcID
SRSP CompAck
TxnID TxnID
DBID DBID
2-58 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.6 Transaction identifier field flows
Figure 2-18 shows the transaction identifier field flow for a transaction request with retry.
Requester Completer
* TgtID R (TgtID)
REQ * (SrcID) SrcID
Request
* TxnID TxnID
(TgtID) TgtID
SrcID (SrcID)
RetryAck
CRSP TxnID TxnID
DBID DBID
PCrdType PCrdType *
(TgtID) TgtID
SrcID (SrcID)
PCrdGrant
CRSP TxnId TxnId
DBID DBID
PCrdType PCrdType
TgtID R (TgtID)
(SrcID) Request SrcID
REQ
* TxnID with Credit TxnID
PCrdType PCrdType
Figure 2-18 Identifier field flow for a transaction request with retry
The required steps in the flow that Figure 2-18 shows are:
1. The Requester starts the transaction by sending a Request packet. The identifier fields of the request are
generated as follows:
• The TgtID is determined by the destination of the Request.
Note
The TgtID field can be remapped to a different value by the interconnect.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-59
ID061214 Confidential
2 Transactions
2.6 Transaction identifier field flows
2. The Completer receives the Request packet and determines that it is going to send a RetryAck response. The
identifier fields of the RetryAck response are generated as follows:
• The TgtID is set to the same value as the SrcID of the request.
• The SrcID is a fixed value for the Completer. This also matches the TgtID received.
• The TxnID is set to the same value as the TxnID of the request.
• The DBID field is not valid.
• The Completer uses a PCrdType value that indicates the type of credit required to retry the transaction.
3. When the Completer is able to accept the retried transaction of a given PCrdType it sends a credit to the
Requester, using the PCrdGrant response. The identifier fields of the PCrdGrant response are generated as
follows:
• The TgtID is set to the same value as the SrcID of the request.
• The SrcID is a fixed value for the Completer. This also matches the TgtID of the request.
• The TxnID field is not used and must be set to zero.
• The DBID field is not used and must be set to zero.
• The PCrdType value is set to the type required to issue the original transaction again.
4. The Requester receives the credit grant and reissues the original transaction by sending a Request packet. The
identifier fields of the request are generated as follows:
• The TgtID is set to either the same value as the SrcID of the RetryAck response, which is also the same
as the SrcID of the PCrdGrant response, or the value used in the original request.
• The SrcID is a fixed value for the Requester.
• The Requester generates a unique TxnID field. This is permitted to be different from the original
request that received a RetryAck response.
• The PCrdType value is set to the PCrdType value in the RetryAck response to the original request,
which is also the same as the PCrdType of the PCrdGrant response.
• The Requester sends the Protocol Credit Return transaction by sending a PCrdReturn Request packet. The
identifier fields of the request are generated as follows:
— The TgtID must match the SrcID of the credit that was obtained.
— The SrcID is a fixed value for the Requester.
— The TxnID field is not used and must be set to zero.
The PCrdType must match the value of the PCrdType in the original PCrdGrant that was required to issue the
original transaction again.
There is no response or use made of the DBID field associated with Protocol Credit Return transactions.
The response to a Barrier transaction does not use the DBID field.
The TxnID of a Barrier transaction must only be reused after a completion response has been received.
2-60 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.7 Logical Processor Identifier
The LPID must be set to the correct value for the following transactions:
• For exclusive accesses, that can be one of the following transaction types:
— ReadClean.
— ReadShared.
— CleanUnique.
— ReadNoSnp.
— WriteNoSnp.
See Chapter 6 Exclusive Accesses for further details.
Note
For other transactions, the LPID value can be used to indicate the original logical processor that caused a transaction
to be issued. However, this information is not required in CHI and is optional.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-61
ID061214 Confidential
2 Transactions
2.8 Address, Control, and Data
2.8.1 Address
The REQ and SNP channel messages include an address field. In the REQ channel it is a 44-bit field labeled
Addr[43:0] and in the SNP channel it is a 41-bit field labeled Addr[43:3]. This field is used by the different message
types as follows:
• For Read, Dataless, and Write transactions the Addr field includes the address of the memory location being
accessed.
• For a snoop request, except SnpDVMOp, the field includes the address of the location being snooped:
— Addr[43:6] is the cache line address and is sufficient to uniquely identify the cache line to be accessed
by the snoop.
— Addr[5:4] identifies the critical chunk being accessed by the transaction. See Critical Chunk Identifier
on page 2-72. The snooped cache must return the data in wrap order with the critical chunk returned
first.
Note
Addr[3] is supplied, but is not used.
• For a DVMOp and SnpDVMOp request the Addr field is used to carry information related to a DVM
operation. See Chapter 8 DVM Operations.
• For ECBarrier, EOBarrier, and PCrdReturn transactions the Addr field value is not used and must be set to
zero.
This bit is defined so that when it is asserted the transaction is identified as a Non-secure transaction.
For Snoopable transactions this field can be considered as an additional address bit that defines two address spaces,
a Secure address space, and a Non-secure address space. Any aliasing between the Secure and Non-secure address
spaces must be handled correctly.
Note
Hardware coherency does not manage coherency between Non-Secure and Secure address spaces.
EWA
EWA indicates whether the write completion response for a transaction:
• Is permitted to come from an intermediate point in the interconnect, such as a Home Node.
• Must come from the final endpoint that a transaction is destined for.
If EWA is asserted, the write completion response for the transaction can come from an intermediate point or from
the endpoint. A completion that comes from an intermediate point must provide the same guarantees required by a
Comp as described in Completion Response and Ordering on page 7-153.
2-62 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.8 Address, Control, and Data
If EWA is deasserted, the write completion response for the transaction must come from the endpoint.
Note
It is permitted for an implementation not to use the EWA attribute, in this case completion must be given from the
endpoint.
Device
Device attribute indicates if the memory type is either Device or Normal.
Device memory type must be used for locations that exhibit side-effects. Use of Device memory type for locations
that do not exhibit side-effects is permitted but not recommended in this specification.
• A read must get its data from the endpoint. A read must not be forwarded data from a write to the same
address location that completed at an intermediate point.
• Combining requests to different locations into one request, or combining different requests to the same
location into one request, is not permitted.
• Writes to Device memory that obtain completion from an intermediate point must make the write data visible
to the endpoint in a timely manner.
Accesses to Device memory must use the following types, exclusive variants are permitted:
• Read accesses to a Device memory location must use ReadNoSnp.
• Write accesses to a Device memory location must use either WriteNoSnpFull or WriteNoSnpPtl.
Normal memory type is appropriate for memory locations that do not exhibit side-effects.
Accesses to Normal memory do not have the same restrictions regarding prefetching or forwarding as Device type
memory:
• A Read transaction that has EWA asserted can obtain read data from a Write transaction that has sent its
completion from an intermediate point and is to the same address location.
• Writes can be merged.
Any Read, Dataless, or Write transaction type can be used to access a Normal memory location. The transaction
type used is determined by the memory operation to be accomplished, and the Snoopable attributes.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-63
ID061214 Confidential
2 Transactions
2.8 Address, Control, and Data
Cacheable
Note
In a transaction that can take any Cacheable value, the value is typically determined from the page table attributes.
Allocate
The Allocate attribute is a an allocation hint. It indicates the recommended allocation policy for a transaction:
• If Allocate is asserted, it is recommended that the transaction is allocated into the cache for performance
reasons. However, it is permitted to not allocate the transaction.
• If Allocate is deasserted, it is recommended that the transaction is not allocated into the cache for
performance reasons. However, it is permitted to allocate the transaction.
• Can be asserted for transactions that have the Cacheable attribute asserted.
• Is inapplicable in DVMOp, ECBarrier, EOBarrier, PCrdReturn and Evict transactions and must be set to zero.
2-64 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.8 Address, Control, and Data
The snoop domain identifies a set of Request Nodes that for a particular set of address regions:
• Are hardware coherent.
• Generate Snoopable transactions.
• Receive snoops for Snoopable transactions.
The snoop domain can either be Inner or Outer. The characteristics and requirements of a snoop domain are:
• A system can be partitioned into multiple Inner and Outer snoop domains.
• An Outer snoop domain can include one or more Inner snoop domains.
• All components in an Inner snoop domain must be in the same Outer snoop domain.
• A Request Node does not need to be part of any snoop domain. Such a Request Node does not generate
Snoopable transactions.
For information on the concept of Inner and Outer domains see the AMBA AXI and ACE Protocol Specification
(ARM IHI 0022).
The Snoop Attribute (SnpAttr) indicates if a transaction requires snooping and, if so, the snoop domain for the
transaction.
0b00 Non-snoopable
0b10 Reserved
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-65
ID061214 Confidential
2 Transactions
2.8 Address, Control, and Data
Table 2-7 shows the snoop attributes for the different transaction types.
ReadNoSnp Y -
CleanUnique, MakeUnique - Y
Evict - Y
WriteNoSnp Y -
WriteUnique - Y
Note
For transactions that can take more than one value of SnpAttr, the value is typically determined from page table
attributes.
2-66 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.8 Address, Control, and Data
Table 2-8 Legal combinations of MemAttr, SnpAttr, and Order field values
LikelyShared
Cacheable
Allocate
Device
EWA
1 0 0 0 0 0 0 1 1 Device nRnE
0 0 1 0 0 0 1 1 Device nRE
0 0 1 0 0 0 0/1a 0 Device RE
a. Order = 0b10 is permitted in ReadOnce, WriteUnique, ReadNoSnp and WriteNoSnp transactions only.
b. Non-cacheable Non-bufferable is an AXI memory type, not an ARM memory type.
c. LikelyShared = 1 is only permitted for ReadShared, ReadClean, WriteBackFull, WriteCleanFull, WriteEvictFull,
WriteUniqueFull and WriteUniquePtl transactions.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-67
ID061214 Confidential
2 Transactions
2.8 Address, Control, and Data
Memory type
This section specifies the required behavior for each of the memory types that Table 2-8 on page 2-67 shows.
Device nRnE
Device nRE
The required behavior for the Device nRE memory type is the same as for the Device nRnE memory type except
that:
• The write response can be obtained from an intermediate point.
Device RE
The required behavior for the Device RE memory type is same as for the Device nRE memory type except that:
• Read and Write transactions from the same source to the same endpoint need not remain ordered.
• Read and Write transactions from the same source to addresses that overlap must remain ordered.
The required behavior for the Normal Non-cacheable Non-bufferable memory type is:
• The write response must be obtained from the final destination.
• Read data must be obtained from the final destination.
• Writes can be merged.
• Read and Write transactions from the same source to addresses that overlap must remain ordered.
The required behavior for the Normal Non-cacheable Bufferable memory type is:
• The write response can be obtained from an intermediate point.
• Write transactions must be made visible at the final destination in a timely manner.
Note
There is no mechanism to determine when a Write transaction is visible at its final destination.
2-68 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.8 Address, Control, and Data
Note
For a Normal Non-cacheable Bufferable read, data can be obtained from a Write transaction that is still progressing
to its final destination. This is indistinguishable from the Read and Write transactions propagating to arrive at the
final destination at the same time. Read data returned in this manner does not indicate that the Write transaction is
visible at the final destination.
Write-back No-allocate
The required behavior for the Write-back No-allocate memory type is:
• Write transactions are not required to be made visible at the final destination.
• Read and Write transactions from the same source to addresses that overlap must remain ordered.
• The No-allocate attribute is an allocation hint, that is, it is a recommendation to the memory system that, for
performance reasons, the transaction is not allocated. However, the allocation of the transaction is not
prohibited.
Write-back Allocate
The required behavior for the WriteBack Allocate memory type is the same as for WriteBack No-allocate memory.
However, in this case, the allocation hint is a recommendation to the memory system that, for performance reasons,
the transaction is allocated.
If the memory accesses from the different agents are made with mismatched snoopability or cacheability attributes
it is defined as a software protocol error. A software protocol error can cause a loss of coherency and result in the
corruption of data values. It is required that the system does not deadlock for a software protocol error, and that
transactions always make forward progress.
A software protocol error for an access in one 4KB memory region must not cause data corruption in a different
4KB memory region.
For locations held in Normal memory, the use of appropriate barriers and software cache maintenance can be used
to return memory locations to a defined state.
The use of mismatched memory attributes can result in an RN-F observing a Snoop transaction to the same address
that it is performing a ReadNoSnp or WriteNoSnp transaction to. In this situation there is no defined relationship
between the Snoop transaction and the transaction that the RN-F has issued.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-69
ID061214 Confidential
2 Transactions
2.9 Data transfer
Size[2:0] Bytes
0b000 1
0b001 2
0b010 4
0b011 8
0b100 16
0b101 32
0b110 64
0b111 Reserved
Normal memory
Transactions with a Normal memory type access the number of bytes defined by the Size field. Data
access is from the Aligned_Address, that is, the transaction address rounded down to the nearest Size
boundary, and ends at the byte before the next Size boundary.
This is calculated as:
Start_Address = Addr field value.
Number_Bytes = 2^Size field value.
INT(x) = Rounded down integer value of x.
Aligned_Address = (INT(Start_Address / Number_Bytes)) x Number_Bytes.
The bytes accessed are from (Aligned_Address) to (Aligned_Address + Number_Bytes) - 1.
Device Transactions with a Device memory type access the number of bytes from the transaction address
up to the byte before the next Size boundary.
The bytes accessed are from (Start_Address) to (Aligned_Address + Number_Bytes) - 1.
For write transactions to Device locations, byte enables must only be asserted for the bytes that are
accessed. See Byte Enables on page 2-71.
2-70 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.9 Data transfer
For Write transactions, an asserted byte enable indicates that the associated data byte is valid and must be updated
in memory or cache. A deasserted byte enable indicates that the associated data byte is not valid and must not be
updated in memory or cache.
The following Write transactions must have all byte enables asserted during the data transfers:
• WriteNoSnpFull.
• WriteBackFull.
• WriteCleanFull.
• WriteEvictFull.
• WriteUniqueFull.
The following Write transactions are permitted to have any combination of byte enables asserted during the data
transfers. This includes asserting all and asserting none:
• WriteBackPtl.
• WriteCleanPtl.
• WriteUniquePtl.
• For a transaction to Normal memory, any combination of byte enables can be asserted during the data
transfers. This includes asserting all and asserting none.
• For a transaction to Device memory, byte enables must only be asserted for bytes at or above the address
specified in the transaction. Any combination of byte enables can be asserted that meets this requirement.
This includes asserting all and asserting none.
For all Write transactions, byte enables that are not within the data window, specified by Addr and Size, must be
deasserted.
For snoop responses with data that use the SnpRespData opcode, all byte enables must be asserted.
For snoop responses with data that use the SnpRespDataPtl opcode, any combination of byte enables can be asserted
alongside the data transfers. This includes asserting all and asserting none.
The Data Identifier and Critical Chunk Identifier fields are used to identify data packets within a transaction.
A transaction size of up to 16-byte is always contained in a single packet. The DataID field value must be set to
Addr[5:4] because the DataID field represents Addr[5:4] of the lowest addressed byte within the packet.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-71
ID061214 Confidential
2 Transactions
2.9 Data transfer
For 32-byte and 64-byte transactions, Table 2-10 shows the relationship between the DataID field and the bytes that
are contained within the packet, for different transaction sizes, and data bus widths. See Size on page 11-219 and
DataID on page 11-225 for the field encodings.
Table 2-10 Bytes contained within a packet for different DataID values and transaction sizes
Number of bytes
Identifier fields Data bus width
within a transaction
In Table 2-10, the entries in the data bus width columns represent the byte offset of the data bytes within a 64 byte
cache line.
Within a data packet, all bytes are located at their natural byte positions. This is true even if fewer data bytes are
transferred than the width of the data bus.
The number of data packets used for transactions to Device memory is independent of the address of the transaction.
The number of data packets required is determined only by the Size field and the data bus width.
Note
For some transactions to Device memory, it can be determined from the address at the start of the transaction that
some data packets will not contain valid data and are redundant. However, this specification requires that these data
packets are transferred.
The CCID field must match the value of Addr[5:4] of the original request. Transactions which contain multiple data
packets must use the same CCID value for all data packets.
When read data or write data is reordered by the interconnect, the CCID field permits quick identification of the
most critical bytes within a transaction by comparing the CCID value with the DataID value. When the two values
match, the data bytes being transferred are the critical bytes.
2-72 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.9 Data transfer
Note
• This requirement ensures that interfacing to protocols that do not support data reordering, such as AXI, can
be done in the most efficient manner when an ordered interconnect is used.
Start_Address = Addr
Number_Bytes = 2^Size
Lower_Wrap_Boundary = Aligned_Address
Note
Some of the steps to maintain wrap order might overlap and not be required if the required bytes are included in a
previous step.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-73
ID061214 Confidential
2 Transactions
2.9 Data transfer
In most of the examples, the size of the transaction is 64-byte and the data bus width is 128-bit. This requires 4 data
packets for each transaction.
In the following examples, the accompanying text highlights some interesting aspects. It is not intended to describe
all aspects of the example.
Example 2-1 Normal memory 64-byte read transaction from an aligned address
Normal Memory
Read Transaction
Size = 0b110 (64B)
8F 80 7F 70 6F 60 5F 50 4F 40 3F 30 2F 20
• The order of the data packets, as indicated by Packet 0, Packet 1, Packet 2, and Packet 3, is such that they
follow wrap order.
• The DataID changes for each packet, while the CCID field remains constant.
• The packet containing the data bytes specified by the address of the transaction has the same value for the
CCID and DataID fields.
2-74 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.9 Data transfer
Example 2-2 Normal memory 64-byte read transaction from an unaligned address
Normal Memory
Read Transaction
Size = 0b110 (64B)
8F 80 7F 70 6F 68 67 60 5F 50 4F 40 3F 30 2F 20
• The order of the data packets, as indicated by Packet 0, Packet 1, Packet 2, and Packet 3, is such that they
follow wrap order.
• The DataID changes for each packet, while the CCID field remains constant.
• The packet containing the data bytes specified by the address of the transaction has the same value for the
CCID and DataID fields.
Example 2-3 Normal memory 32-byte read transaction from an unaligned address
Normal Memory
Read Transaction
Size = 0b101 (32B)
8F 80 7F 78 77 70 6F 60 5F 50 4F 40 3F 30 2F 20
Packet 0 Packet 1
• The size of the transaction is 32-byte and the data bus width is 128-bit, resulting in 2 data packets.
• The order of the data packets, as indicated by Packet 0 and Packet 1, is such that they follow wrap order.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-75
ID061214 Confidential
2 Transactions
2.9 Data transfer
Example 2-4 Normal memory 14-byte consecutive write transaction from an unaligned address
Normal Memory
Write Transaction
Size = 0b110 (64B)
8F 80 7F 70 6F 60 5F 58 57 50 4F 40 3F 30 2F 20
• The order of the data packets, as indicated by Packet 0, Packet 1, Packet 2, and Packet 3, is such that they
follow wrap order.
• The DataID changes for each packet, while the CCID field remains constant.
• The packet containing the data bytes specified by the address of the transaction has the same value for the
CCID and DataID fields.
• Fourteen consecutive bytes in memory are written, as indicated by the byte enables. However, other
combinations of byte enables are permitted. See Byte Enables on page 2-71.
2-76 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.9 Data transfer
Device
Read Transaction
Size = 0b110 (64B)
8F 80 7F 70 6F 60 5F 58 57 50 4F 40 3F 30 2F 20
• The shaded area indicates the valid bytes in the transaction. The valid bytes extend from the transaction
address up to the next Size boundary.
• The transaction includes the transfer of a packet that contains no valid data.
Device
Write Transaction
Size = 0b110 (64B)
8F 80 7F 70 6F 68 67 60 5F 50 4F 40 3F 30 2F 20
• Byte enables are only permitted to be asserted for the bytes from the transaction address up to the next Size
boundary. It is not required that all byte enables meeting this criteria are asserted.
• Byte enables for bytes below the start address must not be asserted.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-77
ID061214 Confidential
2 Transactions
2.10 Request Retry
A Requester is required to hold all the details of the request until it receives a response indicating that the request
has either been accepted, or must be sent again at a later point in time.
To meet this requirement, the AllowRetry field must be asserted the first time a transaction is sent.
A Completer that is receiving requests is able to give a RetryAck response to a request that it is not able to accept.
Typically, it will not be able to accept a request when it has limited resources and insufficient storage to hold the
current request until some earlier transactions have completed.
When a Completer gives a RetryAck response it is responsible for recording where the request came from, as
determined by the SrcID of the request. The Completer is also responsible for determining and recording the type
of Protocol Credit required to process the request. When required resources become available, at a later point in
time, the Completer must then send a P-Credit back to the Requester, using a PCrdGrant response. The PCrdGrant
response indicates to the Requester that the transaction can be retried.
Note
There is no explicit mechanism to request a credit. A transaction that is given a RetryAck response implicitly
requests a credit.
It is possible that a reordering interconnect can reorder the responses such that the PCrdGrant is received by the
Requester before the RetryAck response for the transaction is received. In this case, the Requester must record the
credit it has received, including the credit type, so that it can assign the credit appropriately when it does receive the
RetryAck response.
Note
It is expected to be rare that a PCrdGrant would be re-ordered with respect to a RetryAck response, as the delay
between a RetryAck and a PCrdGrant response will typically be much longer than any delay caused by interconnect
re-ordering.
When the Requester receives a credit, it can then resend the request with an indication that it has been allocated a
credit. This is done by de-asserting the AllowRetry field. This second attempt to carry out the transaction is
guaranteed to be accepted.
The transaction that is resent must have the same field values as the original request, except for the following:
• TgtID. See Target ID determination for Request messages on page 3-86.
• QoS.
• TxnID.
• AllowRetry, which must be deasserted.
• PCrdType, which must be set to the value in the Retry response for the original transaction.
There is no fixed relationship between credits and particular transactions. If a Requester has received multiple
RetryAck responses for different transactions and it then receives a credit, there is no fixed credit allocation, the
Requester is free to choose the most appropriate.
The retry mechanism supports up to four different credit types. This lets the Completer use different credit types for
different resources. For example, a Completer might use one credit type for the resources associated with Read
transactions, and another credit type for Write transactions. Using different credit types gives the Completer the
ability to efficiently manage its resources by controlling which of the retried requests can be sent again.
The transaction must only be retried by the Requester when a PCrdGrant is received with the correct PCrdType.
Note
If a Completer is only using one credit type, this specification recommends that the PCrdType value of 0b00 is used.
See PCrdType on page 2-80.
2-78 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.10 Request Retry
A Completer that is giving RetryAck responses must be able to record all the RetryAck responses that it has given
to ensure it can correctly distribute credits. If the Completer is using more than one credit type then the RetryAck
responses that have been given for each credit type must be recorded.
A Requester must limit the transactions it issues so that the Completer is never required to track more than 256
transactions that require a PCrdGrant response. This is achieved by limiting the maximum number of outstanding
transactions to 256 for each Requester.
A transaction is outstanding from the cycle that the request is first issued until either:
• The transaction is fully completed, as determined by the return of all the following responses that are
expected for the transaction:
— ReadReceipt, CompData, DBIDResp, Comp and CompDBIDResp.
Note
Typically, a Completer would be expected to record up to 256 RetryAck responses for each possible SrcID.
Each transaction request includes a QoS value which can be used by the Completer to influence the allocation of
credits as resources become available. See Chapter 10 Quality of Service for further details.
This specification does not define when this can occur, but two typical scenarios are:
• A transaction is canceled between the first attempt and the point at which it can be resent with P-Credit.
• A transaction is requested multiple times with increasing QoS values. However, only a single completion of
the transaction is required.
Note
If a Requester makes a second request before the first request has been given a RetryAck response then it must be
acceptable for both transactions to occur. However, as an example, this behavior would typically not be acceptable
for accesses to a peripheral device.
A Requester returns a credit by the use of the PCrdReturn transaction. This is effectively a No OPeration (NOP)
transaction that uses the credit that is not required. This transaction is used to inform the Completer that the allocated
resources are no longer required for the given PCrdType.
Any credits that are not required must be returned in a timely manner.
Note
Any unused pre-allocated credit must be returned to avoid components holding on to credits in expectation of using
them later. Such behavior is likely to result in an inefficient use of resources and to make analysis of the system
performance difficult.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-79
ID061214 Confidential
2 Transactions
2.10 Request Retry
AllowRetry
The AllowRetry field indicates if the Request transaction can be given a RetryAck response. See Table 11-18 on
page 11-220 for the AllowRetry value encodings. The AllowRetry field must be asserted the first time a transaction
is sent.
The AllowRetry field must be deasserted when the transaction is using a pre-allocated P-Credit.
PCrdType
The PCrdType field indicates the credit type associated with the request and is determined as follows:
• A PCrdReturn transaction must have the credit type set to the value of the credit type that is being returned.
See PCrdType on page 11-221 for the PCrdType value encodings.
• Destinations that have a single credit class, or do not implement credit type classification, must set the
PCrdType field to 0b00.
Note
The value a Completer assigns to PCrdType is IMPLEMENTATION DEFINED.
The Completer must implement a starvation prevention mechanism to ensure that all transactions, irrespective of
QoS value or credit type required, will eventually make forward progress, even if over a significantly long time
period. This is done by ensuring that credits are eventually given to every transaction that has received a RetryAck
response. See Chapter 10 Quality of Service for more details on the distribution of credits for the purposes of QoS.
2-80 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
2 Transactions
2.10 Request Retry
RN-F HN-F
ReadOnce
(AllowRetry = 1) HN-F buffer entry
(PCrdType = 0b00) not gained
RetryAck
(PCrdType = n)
PCrdGrant (P-Credit allocated)
(PCrdType = n)
Wait for
P-Credit
ReadOnce
(AllowRetry = 0)
(PCrdType = n)
2. The Completer receives the request and sends a RetryAck response because it is not able to process the
transaction at this time.
• The request is logged and a PCrdType is allocated at the Completer.
3. The Completer sends a P-Credit, using the PCrdGrant response, when it has allocated resource for the
transaction.
• The PCrdGrant includes the PCrdType allocated for the original request.
Note
• It is permitted, but not expected, for a Completer to send a PCrdGrant before it has sent the associated
RetryAck response.
• The second attempt at a transaction, must not be sent until both a RetryAck response and an appropriate
P-Credit is received for the transaction.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 2-81
ID061214 Confidential
2 Transactions
2.10 Request Retry
2-82 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 3
Network Layer
This chapter describes the network layer that is responsible for determining the node ID of a destination node. It
contains the following sections:
• System address map on page 3-84.
• Node ID on page 3-85.
• Target ID determination for messages from an RN on page 3-86.
• Network layer flow examples on page 3-88.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 3-83
ID061214 Confidential
3 Network Layer
3.1 System address map
The exact format and structure of the SAM is IMPLEMENTATION DEFINED and is outside the scope of this
specification.
The SAM must provide a complete decode of the entire address space. This specification recommends that any
address that does not correspond to a physical component is sent to an agent that can provide an appropriate error
response.
3-84 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
3 Network Layer
3.2 Node ID
3.2 Node ID
Each Port on the interconnect is assigned a node ID that is used to identify the source and destination of packets
communicated over the interconnect. A Port can be assigned multiple node IDs. A node ID value can be assigned
only to a single Port.
Defining and assigning a node ID for each node in a system is IMPLEMENTATION DEFINED and is outside the scope
of this specification.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 3-85
ID061214 Confidential
3 Network Layer
3.3 Target ID determination for messages from an RN
• If the request does not use a pre-allocated credit, then the target ID is determined by:
— Opcode for DVMOp, EOBarrier and ECBarrier.
— Address to node ID mapping for all other requests.
• If the request uses pre-allocated credit, the target ID of the request must be obtained from either the source
ID of the RetryAck, provided as a response to the original Request message, or the target ID of the original
request.
For PCrdReturn:
• The target ID provided by the RN must match the source ID included in the prior PCrdGrant which provided
the credit being returned.
For mapping of target ID in requests from the RN, this specification requires the SAM logic to be present in the RN
or in the interconnect. In the case of the interconnect, it might remap the target ID in the Request packet provided
by the RN.
Note
• An RN must expect the interconnect to remap the target ID of a request.
• For transactions from an RN, this specification expects Snoopable transaction to be targeted to HN-F and
Non-snoopable transaction to target HN-I or HN-F. It is legal for a Snoopable transaction to be targeted at an
HN-I. This might occur, for example, due to a software programming error. In this case, the HN-I is required
to respond to the transaction in a protocol compliant manner, but coherency is not guaranteed.
3-86 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
3 Network Layer
3.3 Target ID determination for messages from an RN
Comp Request
RetryAck Request
PCrdGrant Request
ReadReceipt Request
DBIDResp Request
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 3-87
ID061214 Confidential
3 Network Layer
3.4 Network layer flow examples
1. RN0 sends a request with Target ID of HN0 using the SAM internal to RN0.
• The interconnect does not remap the node ID.
5. RN0 sends, if required, a CompAck with TgtID of HN0 derived from the SrcID in the Data Response packet
to complete the transaction.
Addr
TgtID=RN0 TgtID=HN0
SrcID=HN0 SrcID=SN0
RDATA RDATA
TgtID=HN0
SrcID=RN0
Resp
3-88 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
3 Network Layer
3.4 Network layer flow examples
Note
Only the target ID of the request from the RN is remapped. The TgtID in all other packets in the transaction flow is
determined in a similar manner to Simple flow on page 3-88.
TgtID=HN1
TgtID=RN0 SrcID=SN0
SrcID=HN1
RDATA
RDATA
TgtID=HN1
SrcID=RN0
Resp
3. RN0 resends the request once both RetryAck and PCrdGrant responses are received.
• The TgtID in the retried request is the same as the SrcID in the received RetryAck or the TgtID in the
original request. The TgtID must pass through the remapping logic again.
4. The packets in the rest of the transaction flow get the TgtID in a similar manner to Flow with interconnect
based SAM.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 3-89
ID061214 Confidential
3 Network Layer
3.4 Network layer flow examples
TgtID=RN0
SrcID=HN1
Retry
PCrdGrant
TgtID=RN0 TgtID=HN1
SrcID=HN1 SrcID=SN0
RDATA RDATA
TgtID=HN1
SrcID=RN0
Resp
3-90 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 4
Coherence Protocol
This chapter describes the coherence protocol and contains the following sections:
• Cache line states on page 4-92
• Request types on page 4-94.
• Snoop requests on page 4-100.
• Request types and corresponding snoop requests on page 4-101.
• Response types on page 4-103.
• Silent cache state transitions on page 4-109.
• Cache state transitions on page 4-110.
• Legal snoop response combinations on page 4-117
• Hazard conditions on page 4-119
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-91
ID061214 Confidential
4 Coherence Protocol
4.1 Cache line states
I Invalid:
• The cache line is not present in the cache.
UC Unique Clean:
• The cache line is present only in this cache.
• The cache line has not been modified with respect to memory.
• The cache line can be modified without notifying other caches.
• The cache line is permitted, but not required, to be forwarded in response to a snoop that
requests data.
UD Unique Dirty:
• The cache line is present only in this cache.
• The cache line has been modified with respect to memory.
• The cache line must be written back to next level cache or memory on eviction.
• The cache line can be modified without notifying other caches.
• The cache line must be forwarded in response to a snoop that requests data.
SC Shared Clean:
• Other caches might have a shared copy of the cache line.
• The cache line might have been modified with respect to memory.
• It is not the responsibility of this cache to write the cache line back to memory on eviction.
• The cache line cannot be modified without invalidating any shared copies and obtaining
unique ownership of the cache line.
• The cache line must not be forwarded in response to a snoop.
4-92 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.1 Cache line states
SD Shared Dirty:
• Other caches might have a shared copy of the cache line.
• The cache line has been modified with respect to memory.
• The cache line must be written back to next level cache or memory on eviction.
• The cache line cannot be modified without invalidating any shared copies and obtaining
unique ownership of the cache line.
• The cache line must be forwarded in response to a snoop that requests data.
Note
A cache can implement a subset of these states.
In each of these cases, only a single cache will return data, thus avoiding multiple data providers.
The following are examples of when empty cache line ownership can occur:
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-93
ID061214 Confidential
4 Coherence Protocol
4.2 Request types
• Read requests:
— A data response is provided to the Requester.
— Can result in data movement among other agents in the system.
— Can result in a cache state change at the Requester.
— Can result in a cache state change at other Requesters in the system.
• Dataless requests:
— No data response is provided to the Requester.
— Can result in data movement among other agents in the system.
— Can result in a cache state change at the Requester.
— Can result in a cache state change at other Requesters in the system.
• Write requests:
— Move data from the Requester.
— Can result in data movement among other agents in the system.
— Can result in a cache state change at the Requester.
— Can result in a cache state change at other Requesters in the system.
• Other requests:
— Do not involve any data movement in the system.
— Used for miscellaneous actions such as propagating barriers into the interconnect, and assisting with
Distributed Virtual Memory (DVM) maintenance.
The following subsections enumerate the resulting transactions and their characteristics.
Note
In Read transactions, Dataless transactions on page 4-96 and Write transactions on page 4-97, information is
provided on the expected communicating node pairs. It is also legal for any transaction that is expected to target an
HN-F, but not an HN-I, to target an HN-I. This can occur in the case of an incorrect assignment of memory type for
a transaction. It is required that the HN-I responds to such a transaction in a protocol compliant manner. See
Appendix B Communicating Nodes for complete information on communication node pairs.
4-94 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.2 Request types
ReadOnce Read request to a Snoopable address region to obtain a snapshot of the coherent data.
• Data is included with the completion response.
• Data size is a cache line length.
• Data will not be cached at the Requester.
Note
It is permitted to retain a copy of the data obtained in a local cache, or buffer, but this
copy of the data will not remain coherent.
ReadUnique Read request to a Snoopable address region to carry out a store to the cache line.
• All other cached copies must be invalidated.
• Data is included with the completion response.
• Data size is a cache line length.
• Data must be provided to the Requester in unique state only:
— UC, or UD.
• Communicating node pairs:
— RN-F to ICN(HN-F).
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-95
ID061214 Confidential
4 Coherence Protocol
4.2 Request types
MakeUnique Request to Snoopable address region to obtain ownership of the line without a data
response. This request is used only when the Requester guarantees that it will carry out a
store to all bytes of the cache line.
• Data is not included with the completion response.
• Any dirty copy of the cache line at a snooped cache must be invalidated without
carrying out a data transfer.
• Communicating node pairs:
— RN-F to ICN(HN-F).
Evict Used to indicate that a Clean cache line is no longer cached by an RN.
• Data is not sent for this transaction.
• The cache line must not remain in the cache.
• Communicating node pairs:
— RN-F to ICN(HN-F).
CleanShared Ensures that all cached copies are changed to a Non-dirty state and any dirty copy is written
back to memory.
• Data is not included with the completion response.
• Communicating node pairs:
— RN-F, RN-D, RN-I to ICN(HN-F).
CleanInvalid Invalidates all cached copies and any dirty copy is written to memory.
• Data is not included with the completion response.
• Communicating node pairs:
— RN-F, RN-D, RN-I to ICN(HN-F).
MakeInvalid Invalidates all cached copies and any Dirty copy can be discarded.
• Data is not included with the completion response.
• Communicating node pairs:
— RN-F, RN-D, RN-I to ICN(HN-F).
A CMO intended for a particular address must not be sent to the interconnect before all previous transactions sent
to the same address have completed.
A transaction, except Evict and WriteEvictFull, intended for a particular address, must not be sent to the
interconnect before a previous CMO sent to the same address has completed.
4-96 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.2 Request types
Note
Any subsequent reference to WriteNoSnp and WriteUnique without a [Full] or [Ptl] suffix is to be read as applying
to both [Full] and [Ptl] versions of the transaction.
WriteUniqueFull Write to a Snoopable address region. Write a full cache line of data to the next-level cache
or memory when the cache line is invalid at the Requester.
• Data size is a cache line length.
• All byte enables must be asserted.
• Communicating node pairs:
— RN-F, RN-D, RN-I to ICN(HN-F).
WriteUniquePtl Write to a Snoopable address region. Write up to a cache line of data to the next-level cache
or memory when the cache line is invalid at the Requester.
• Data size is up to a cache line length.
• Byte enables must be asserted for the appropriate byte lanes within the specified data
size and deasserted in the rest of the data transfer.
• Communicating node pairs:
— RN-F, RN-D, RN-I to ICN(HN-F).
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-97
ID061214 Confidential
4 Coherence Protocol
4.2 Request types
CopyBack transactions
CopyBack transactions are a subclass of Write transactions. CopyBack transactions move coherent data from a
cache to the next level cache or memory. Each CopyBack transaction must assert the appropriate byte enables with
the data. CopyBack transactions do not require the snooping of other agents in the system.
WriteBackFull Write-back a full cache line of Dirty data to the next level cache or memory.
• Data size is a cache line length.
• All byte enables must be asserted.
• The cache line must not remain in the cache.
• Communicating node pairs:
— RN-F to ICN(HN-F).
WriteBackPtl Write-back up to a cache line of Dirty data to the next level cache or memory.
• Data size is a cache line length.
• All appropriate byte enables, up to all 64, must be asserted.
• The cache line must not remain in the cache.
• Communicating node pairs:
— RN-F to ICN(HN-F).
WriteCleanFull Write-back a full cache line of Dirty data to the next level cache or memory and retain a
Clean copy in the cache.
• Data size is a cache line length.
• All byte enables must be asserted.
• The cache line is expected to be in Clean state at completion of the transaction.
• Communicating node pairs:
— RN-F to ICN(HN-F).
WriteCleanPtl Write-back up to a cache line of dirty data to the next level cache or memory.
• Data size is up to a cache line length.
• All appropriate byte enables, up to all 64, must be asserted.
• The cache line state must be either retained in Unique state, without a copy of the
data, or not retained.
• Communicating node pairs:
— RN-F to ICN(HN-F).
4-98 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.2 Request types
DVM transactions
DVM transactions are used for virtual memory system maintenance.
DVMOp DVM Operation. Actions include the passing of messages between components within a distributed
virtual memory system. See Chapter 8 DVM Operations for details.
• Communicating node pairs:
— RN-F, RN-D to ICN(MN).
Barrier transactions
Barrier transactions are used to order individual requests or groups of requests.
EOBarrier Endpoint Order Barrier. An EOBarrier transaction is sent by an RN to the ICN to indicate that the
ICN must not permit any requests that are generated after the EOBarrier to reach their respective
endpoint before all requests before the EOBarrier have reached their respective endpoint.
• Communicating node pairs:
— RN-F, RN-D, RN-I to ICN(MN).
— ICN(HN-I) to SN-I.
ECBarrier Endpoint Completion Barrier. Same as EOBarrier. An RN will typically use EOBarrier and
ECBarrier for memory and synchronization barrier requirements respectively.
• Communicating node pairs:
— RN-F, RN-D, RN-I to ICN(MN).
— ICN(HN-I) to SN-I.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-99
ID061214 Confidential
4 Coherence Protocol
4.3 Snoop requests
SnpUnique Generated at the ICN on receipt of the ReadUnique or WriteUniquePtl request. Might also
be generated by the ICN without a corresponding request:
• Returns data with the snoop response if the target state is UD, UDP, or SD.
• Optionally returns data with the snoop response if the target state is UC.
• Must change the line to Invalid state.
4-100 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.4 Request types and corresponding snoop requests
Read ReadNoSnp -
ReadOnce SnpOnce
ReadClean SnpClean
ReadShared SnpShared
ReadUnique SnpUnique
MakeUnique SnpMakeInvalid
CleanShared SnpCleanShared
CleanInvalid SnpCleanInvalid
MakeInvalid SnpMakeInvalid
Evict -
Write WriteNoSnp -
WriteUniqueFull SnpMakeInvalid
WriteClean -
WriteEvictFull -
Others EOBarrier -
ECBarrier -
DVMOp SnpDVMOp
PCrdReturn -
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-101
ID061214 Confidential
4 Coherence Protocol
4.4 Request types and corresponding snoop requests
The interconnect has the following behavior when generating a snoop request on receipt of a request from an RN:
• This specification supports a snoop filter or directory within the interconnect to track the state of cache lines
present in RN-F caches. The tracking can be as detailed as knowing each RN-F that has a copy of the cache
line, or as nonspecific as knowing that a cache line is present in one of the RN-F caches. Such tracking
permits the ICN to filter unnecessary snooping of an RN-F, for example:
— If the snoop filter indicates that the cache line is not present in any of the RN-F caches, then the
interconnect does not send a snoop request.
— If the cache line in the RN-F caches is already in the required state, for example the received request
is ReadShared and all cached copies of the cache line are in SharedClean (SC) state, then the
interconnect does not send a snoop request.
• It is permitted for the interconnect to generate a snoop request spontaneously without a corresponding request
from an RN. For example, the interconnect can send a SnpUnique or SnpCleanInvalid request as a result of
a backward invalidation from a snoop filter or interconnect cache.
• This specification permits the interconnect to select which snoop request to send. For example:
— For a WriteUniquePtl request, either a SnpCleanInvalid or SnpUnique snoop request can be sent. Both
of these snoop transactions invalidate the cache line and if the cache line is dirty then data is returned
with the response. The write data is written to memory once all snoop responses are received and the
partial data has been merged with any dirty data received with the snoop response.
The only difference in the behavior between the SnpCleanInvalid and SnpUnique snoop requests is
that SnpUnique can return data from the UniqueClean (UC) state but SnpCleanInvalid does not. Using
SnpUnique therefore might result in an unnecessary data transfer. This example shows the
disadvantage of using SnpUnique instead of SnpCleanInvalid in certain circumstances.
4-102 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.5 Response types
The completion response includes the Resp field that indicates the following:
Cache state The final state the cache line is permitted to be in at the Requester. For ReadNoSnp transactions a
cached copy can be kept at the Requester, but it will not be coherent and the Read completion
indicates that the cache state must be I.
Pass Dirty Indicates if the responsibility for updating memory is passed to the Requester. The assertion of the
Pass Dirty bit is shown by _PD in the response name.
Table 4-2 shows the permitted Read transaction completion, the encoding of the Resp field, and the meaning of the
response.
Table 4-2 Permitted Read transaction completion and Resp field encodings
CompData_UC 0b010 The final state of the cache line can be UC, UCE, SC or I.
Responsibility for a Dirty cache line is not being passed.
CompData_UD_PD 0b110 The final state of the cache line can be UD or SD.
Responsibility for a Dirty cache line is being passed.
CompData_SD_PD 0b111 The final state of the cache line must be SD.
Responsibility for a Dirty cache line is being passed.
In a response with an error indication, the cache state is permitted to be any value, including reserved values. See
Errors and transaction structure on page 9-186.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-103
ID061214 Confidential
4 Coherence Protocol
4.5 Response types
The completion response includes the Resp field that indicates the following:
Cache state The final state the cache line is permitted to be in at the Requester.
Note
Dataless transactions do not pass responsibility for a Dirty cache line.
Table 4-3 shows the permitted Dataless transaction completion, the encoding of the Resp field, and the meaning of
the response.
Table 4-3 Permitted Dataless transaction completion and Resp field encodings
Comp_UC 0b010 The final state of the cache line can be UC, UCE, SC or I
In a response with an error indication, the cache state is permitted to be any value, including reserved values. See
Errors and transaction structure on page 9-186.
No cache state information, or responsibility for a Dirty cache line, is communicated using the Write transaction
completion. The Resp field of a Comp or CompDBIDResp response must be set to zero for a Write transaction
completion. All cache state information and responsibility for a Dirty cache line are communicated with the
WriteData, See WriteData response on page 4-105.
Comp Used when the Completion response is separate from the DBIDResp response.
CompDBIDResp Used when the Completion response is combined with the DBIDResp response. This
combined response is used by:
• CopyBack transactions. All CopyBack requests must use this completion response
type.
• Non-CopyBack writes, where the Completer can opportunistically combine the
Comp and DBIDResp responses if both are ready to be sent to the Requester.
4-104 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.5 Response types
The WriteData response is sent on the WDAT channel and uses either the CopyBackWrData or
NonCopyBackWrData opcode.
NonCopyBackWrData
• Used for WriteUnique and WriteNoSnp transactions.
• Used for a DVMOp transaction. WriteData provides additional information required
to perform DVM operations.
• The cache state in the response must be I.
The response includes the Resp field, which indicates the following:
Cache state Indicates the state of the cache line before sending the WriteData response. This state can differ from
the state of the cache line when the original transaction request was sent if a snoop request, to the
same address, is received by the Requester after sending the original transaction request, but before
sending the corresponding WriteData response.
Pass Dirty Indicates if the responsibility for updating memory is passed by the Requester. The assertion of the
Pass Dirty bit is shown by _PD in the response name.
Table 4-4 shows the permitted WriteData responses, the Opcode and Resp field encodings, and the meaning of the
response.
Table 4-4 Permitted WriteData responses and Opcode and Resp field encodings
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-105
ID061214 Confidential
4 Coherence Protocol
4.5 Response types
Note
The cache line state at the Requester after the write transaction has completed is not determined from the cache state
information in the WriteData response. It can be determined if the cache line remains Valid or not after the
transaction by the opcode of the transaction:
• A WriteBack or WriteEvict transaction must be in I state.
• A WriteClean transaction can remain allocated and in a Clean state.
The cache line state associated with a WriteData completion can be any value when the WriteData RespErr field
indicates there is a data error.
The Snoop response includes the Resp field, which indicates the following:
Cache state The final state of the cache line at the snooped node after sending the Snoop response.
Pass Dirty Indicates that the responsibility for updating memory is passed to the Requester or ICN.
Pass Dirty must only be asserted for a Snoop response with data. The assertion of the Pass Dirty bit
is shown by _PD in the response name.
These attributes convey sufficient information for the interconnect to determine the appropriate response to the
initial Requester, and to determine if data must be written back to memory. It is also sufficient to support snoop filter
or directory maintenance in the interconnect.
4-106 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.5 Response types
Note
The Snoop response cache state information provides the state of the cache line after the Snoop response is sent.
This is different from:
• A write data response, where the cache state information provides the state of the cache line at the point the
write data is sent.
• A read data response, where the cache state information indicates the permitted state of the cache line after
the transaction completes.
Table 4-5 shows the permitted Snoop responses without Data, the Opcode and Resp field encodings, and the
meaning of the response.
Table 4-5 Permitted Snoop responses without Data and the Opcode and Resp field encodings
Table 4-6 shows the permitted Snoop responses, the Opcode and Resp field encodings, and the meaning of the
response.
Table 4-6 Permitted Snoop responses with Data and the Opcode and Resp field encodings
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-107
ID061214 Confidential
4 Coherence Protocol
4.5 Response types
Table 4-6 Permitted Snoop responses with Data and the Opcode and Resp field encodings (continued)
Note
The cache line state associated with a Snoop response, either with or without data, must be a legal value, even if the
RespErr field indicates there is a error.
For all responses in this section the Resp and RespErr fields have no meaning and must be set to zero.
CompAck
• Sent by the Requester on receipt of the Completion response.
• Used by Read, Dataless, and WriteUnique transactions.
See Transaction structure on page 2-35.
RetryAck
• Sent by a Completer to a Requester if the request is not accepted at the Completer due to lack
of appropriate resources.
• Response is valid for any request transaction except PCrdReturn.
See Transaction Retry sequence on page 2-45.
PCrdGrant
• Grants a Protocol Credit. A subsequent request, sent using the Protocol Credit, is guaranteed
to be accepted by the target.
See Transaction Retry sequence on page 2-45.
ReadReceipt
• Sent for a request that requires Request Order in the interconnect with respect to other
ordered requests from the same Requester.
• Applies to ReadNoSnp and ReadOnce request transactions.
See ReadNoSnp, ReadOnce on page 2-35.
DBIDResp
• Response sent as part of a write transaction to signal to the Requester that resources are
available to accept the WriteData response.
See Transaction structure on page 2-35.
4-108 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.6 Silent cache state transitions
The legal silent cache state transitions are shown in Table 4-7. In some cases it is possible, but not required, to issue
a transaction to indicate that the transition has occurred. If such a transaction is issued then the cache state transition
is visible to the interconnect and is not classified as a silent transition.
The RN-F action described in Table 4-7 as Local sharing, describes the case where an RN-F specifies a Unique
cache line as Shared, effectively disregarding the fact that the cache line remains Unique to the RN-F. For example,
this can happen when the RN-F contains multiple internal agents and the cache line becomes shared between them.
• Cache eviction and Local sharing transitions can occur at any point and are IMPLEMENTATION DEFINED.
• Store and Cache Invalidate transitions can only occur as the result a deliberate action, which in the case of a
core is caused by the execution of a particular program instruction.
Present Next
Local sharing UC SC -
UD SD -
Note
Sequences of silent transitions can also occur. Any silent transition that results in the cache line being in UD, UDP,
or SC state can undergo a further silent transition.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-109
ID061214 Confidential
4 Coherence Protocol
4.7 Cache state transitions
Table 4-8 Cache state transitions at the Requester for Read request transactions
Request type Initial cache state Final cache state Comp Resp
ReadNoSnp I - I CompData_I
SC CompData_SC
UC CompData_UC
SD CompData_SD_PD
UD CompData_UD_PD
UC CompData_UC
Note
• The Other Permitted initial cache states in Table 4-8 are the cache states that are permitted while the
transaction is in progress.
• For any of the transactions in Table 4-8, it is legal to use the transaction if the cache line can silently transition
to any Expected or Other Permitted state. This silent transition must occur before the transaction is issued.
4-110 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.7 Cache state transitions
Table 4-9 Cache state transitions at the Requester for Dataless request transactions
Request type Initial cache state Final cache state Comp Response
SC UC UC Comp_UC
SD UD UD Comp_UC
Comp_SC
Comp_I
UC - UC Comp_UC
SC - UC Comp_UC
SC Comp_SC
CleanInvalid I - I Comp_I
MakeInvalid I - I Comp_I
Evict I - I Comp_I
Before a CleanInvalid, MakeInvalid or Evict transaction it is permitted for the cache state to be UC, UCE or SC.
However, it is required that the cache state transitions to the I state before the transaction is issued. Therefore
Table 4-9 shows I state as the only initial state.
Note
• The Other Permitted initial cache states in Table 4-9 are the cache states that are permitted while the
transaction is in progress.
• For any of the transactions in Table 4-9, it is legal to use the transaction if the cache line can silently transition
to any Expected or Other Permitted state. This silent transition must occur before the transaction is issued.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-111
ID061214 Confidential
4 Coherence Protocol
4.7 Cache state transitions
Table 4-10 Requester cache state transitions for Write request transactions
Request Type Cache state at Requester WriteData response Comp and Resp
UC I CBWrData_UC CompDBIDResp
SC I CBWrData_SC CompDBIDResp
I I CBWrData_I CompDBIDResp
I I CBWrData_I CompDBIDResp
UC UC CBWrData_UC CompDBIDResp
SC SC CBWrData_SC CompDBIDResp
I I CBWrData_I CompDBIDResp
I I CBWrData_I CompDBIDResp
SC I CBWrData_SC Comp
I I CBWrData_I Comp
a. A snoop might be received while a write is pending and result in a cache line state change before the WriteData response.
Note
After completion of a WriteClean transaction, it is possible for the cache line in a Unique state to immediately
transition to a Dirty state.
4-112 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.7 Cache state transitions
Table 4-11 Snooped requester cache state transactions and valid completion responses
Snoop request type Initial cache state Final cache state Comp response
SnpOnce I I - SnpResp_I
UC UC I, SC SnpRespData_UC
UC I, SC SnpResp_UC
SC I SnpRespData_SC
SC I SnpResp_SC
I - SnpRespData_I
I - SnpResp_I
I - SnpResp_I
UD UD SD SnpRespData_UD
SD - SnpRespData_SD
SC I SnpRespData_SC_PD
I - SnpRespData_I_PD
UDP I - SnpRespDataPtl_I_PD
UDP - SnpRespDataPtl_UD
SC SC I SnpResp_SC
I - SnpResp_I
SD SD - SnpRespData_SD
SC I SnpRespData_SC_PD
I - SnpRespData_I_PD
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-113
ID061214 Confidential
4 Coherence Protocol
4.7 Cache state transitions
Table 4-11 Snooped requester cache state transactions and valid completion responses (continued)
Snoop request type Initial cache state Final cache state Comp response
SnpClean, I I - SnpResp_I
SnpShared
UC SC I SnpRespData_SC
I - SnpRespData_I
SC I SnpResp_SC
I - SnpResp_I
UCE I - SnpResp_I
UD SD - SnpRespData_SD
SC I SnpRespData_SC_PD
I - SnpRespData_I_PD
UDP I - SnpRespDataPtl_I_PD
SC SC I SnpResp_SC
I - SnpResp_I
SD SD - SnpRespData_SD
SC I SnpRespData_SC_PD
I - SnpRespData_I_PD
SnpUnique I I - SnpResp_I
UC I - SnpRespData_I
I - SnpResp_I
UCE I - SnpResp_I
UD I - SnpRespData_I_PD
UDP I - SnpRespDataPtl_I_PD
SC I - SnpResp_I
SD I - SnpRespData_I_PD
4-114 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.7 Cache state transitions
Table 4-11 Snooped requester cache state transactions and valid completion responses (continued)
Snoop request type Initial cache state Final cache state Comp response
SnpCleanShared I I - SnpResp_I
UC UC I, SC SnpResp_UC
SC I SnpResp_SC
I - SnpResp_I
UCE I - SnpResp_I
UD UC I, SC SnpRespData_UC_PD
SC I SnpRespData_SC_PD
I - SnpRespData_I_PD
UDP I - SnpRespDataPtl_I_PD
SC SC I SnpResp_SC
I - SnpResp_I
SD SC I SnpRespData_SC_PD
I - SnpRespData_I_PD
SnpCleanInvalid I I - SnpResp_I
UC I - SnpResp_I
UCE I - SnpResp_I
UD I - SnpRespData_I_PD
UDP I - SnpRespDataPtl_I_PD
SC I - SnpResp_I
SD I - SnpRespData_I_PD
SnpMakeInvalid I I - SnpResp_I
UC I - SnpResp_I
UCE I - SnpResp_I
UD I - SnpResp_I
UDP I - SnpResp_I
SC I - SnpResp_I
SD I - SnpResp_I
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-115
ID061214 Confidential
4 Coherence Protocol
4.7 Cache state transitions
Note
• A response must be either a SnpResp or SnpRespData. In the case of multiple final cache state options, the
response that is used is IMPLEMENTATION DEFINED.
• A Request Node does not have to respond to a snoop with data when in UC state. Except for SnpOnce, the
receiver of the snoop response can not differentiate between:
— A Request Node not responding with data from an UC state.
— A Request Node silently transitioning to SC or I state, prior to receiving the snoop request, and
therefore not including data with the snoop response.
4-116 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.8 Legal snoop response combinations
If a cache line is held in any state that permits the returning of data, all the remaining snoop responses associated
with a single transaction must be either SnpResp_I or SnpResp_SC.
Table 4-12 shows the legal combinations of snoop responses from all snooped Requesters for a given snoop
transaction.
SnpRespData_UD SnpResp_I
SnpRespData_UC_PD SnpResp_I
SnpRespData_UC SnpResp_I
SnpResp_UC SnpResp_I
SnpRespDataPtl_I_PD SnpResp_I
SnpRespDataPtl_UD SnpResp_I
SnpRespData_SC SnpResp_I
SnpRespData_SD SnpResp_I
SnpResp_SC
SnpRespData_SC_PD SnpResp_I
SnpResp_SC
SnpRespData_I_PD SnpResp_I
SnpResp_SC
SnpRespData_I SnpResp_I
- SnpResp_I
SnpResp_SC
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-117
ID061214 Confidential
4 Coherence Protocol
4.8 Legal snoop response combinations
Alternatively, the legal snoop response combinations can be expressed in Backus–Naur Form (BNF):
(SnpResp_I*
SnpRespDataPtl_I_PD | SnpRespDataPtl_UD)) |
(SnpResp_I* SnpResp_SC*
(SnpResp_I* SnpResp_SC*)
Note
In the BNF representation, a Snoop Response with the suffix * implies that the Snoop Response can occur zero or
more times.
4-118 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.9 Hazard conditions
In addition to many Requesters issuing transactions at the same time, the protocol also permits each Requester to
make multiple outstanding requests, and to receive multiple outstanding snoop requests. It is the responsibility of
the interconnect, that is, ICN(HN-F, HN-I and MN), to ensure that there is a defined order in which transactions to
the same cache line can occur, and that the defined order is the same for all components.
• If the pending request is a CopyBack request then the following additional requirements apply:
— Request transaction flow must be completed after receiving the CompDBIDResp.
— The cache state in the WriteData response must be the state of the cache line after the snoop request is
processed, not the state at the time of sending the CopyBack request.
The RN-F might receive multiple snoop requests before it receives a response for a pending CopyBack request for
the same cache line, in which case the data response carries the cache line state after completion of the response to
the last snoop request. Such a scenario is possible because the CopyBack request can be queued behind multiple
Read and Dataless requests at the HN-F.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-119
ID061214 Confidential
4 Coherence Protocol
4.9 Hazard conditions
1. At time C:
• The SnpShared transaction ignores the hazard and reads the cache line data.
• The cache line state is changed from UD to SC.
2. At time D:
• The CompDBIDResp for the CopyBack is sent to RN-F0.
• RN-F0 sends back a CopyBackWrData_SC response.
• The cache line state is changed from SC to I.
The data is clean for coherence and is not required to be sent to the interconnect for correct functionality.
However, the protocol requires the CopyBack flow to be consistent irrespective of a snoop hazard.
The cache line state in the WriteData response is SC because that is the state of the cache line when the
WriteData response is sent.
4-120 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
4 Coherence Protocol
4.9 Hazard conditions
SnpShared
UD->SC Hazard detected
C Req2 progress
blocked
SnpRespData_SC_PD
Hazard with
CopyBack detected
but ignored
CompData_SC
WriteNoSnp
I->SC
CompAck
CompDBIDResp
B
SC->I
CompDBIDResp NCBWrData
D
CopyBackWrData_SC Req2 progress
(PS = SC, NS(implied) = I) un-blocked
CopyBack
Completed with a
WriteData response
PS = PresentState
NS = NextState
Note
• The response to a snoop request that hazards with an outstanding Evict must be SnpResp_I.
• During the period between receiving a snoop request and sending a snoop response, including data if
applicable, while a CopyBack request to the same address is pending, the only response that can be received
for the CopyBack request is a RetryAck.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 4-121
ID061214 Confidential
4 Coherence Protocol
4.9 Hazard conditions
Figure 4-2 shows a further example of a snoop request hazarding with an outstanding CopyBack request. In this
example, the snoop request is a SnpOnce request generated as a result of a ReadOnce request from RN-F1. The
SnpOnce request receives a copy of the data with the snoop response but does not change the cache line state. In
this case, the final data response from RN-F0 indicates that the data is Dirty and that HN-F must write the data back
to memory.
UD I I
ReadOnce
WriteBack
SnpOnce
UD->UD
Hazard detected
SnpRespData_UD WriteBack progress
Hazard detected blocked
but ignored
CompData_I
CompAck
ReadOnce
does not
write back
Data
WriteBack progress
CompDBIDResp
un-blocked
UD->I
CBWrData_UD
(PS=UD, NS[implied]=I)
CopyBack WrNoSnp
Completed with a
WriteData response
PS = PresentState
NS = NextState
4-122 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 5
Interconnect Protocol Flows
This chapter shows interconnect protocol flows for different transaction types, and interconnect hazard conditions.
The protocol flows are illustrated using Time-Space diagrams. It contains the following sections:
• Read transaction flows on page 5-124.
• Dataless transaction flows on page 5-130.
• Write transaction flows on page 5-133.
• Interconnect hazard conditions on page 5-136.
See Time-Space diagrams on page xiii for details of the conventions used to illustrate protocol flow in this
specification.
• The HN-F broadcasts snoops because it does not have any means to filter them.
• If the HN-F receives multiple data responses, that is, one response from a snooped RN-F and another from a
SN-F, then the data being forwarded to the Requester is highlighted in bold.
• There is no ICN cache at the HN-F, this results in all requests to the HN-F initiating a request to the SN-F.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 5-123
ID061214 Confidential
5 Interconnect Protocol Flows
5.1 Read transaction flows
Figure 5-1 shows the transaction flow, the copy of data being transferred is marked in bold.
ReadNoSnp
ReadNoSnp
CompData_I
CompData_I
I->I
CompAck
5-124 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
5 Interconnect Protocol Flows
5.1 Read transaction flows
In this flow, HN-F sends a speculative read to SN-F without waiting for the snoop responses.
Figure 5-2 shows the transaction flow, the copy of data being transferred is marked in bold.
Speculative
ReadUnique read
ReadNoSnp
SnpUnique
SnpUnique
SnpResp_I SnpResp_I
CompData_I
CompData_UC
I->UC
CompAck
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 5-125
ID061214 Confidential
5 Interconnect Protocol Flows
5.1 Read transaction flows
5.1.3 Read transaction with snoop response with data and no memory update
An example of this type of flow is a ReadUnique transaction. RN-F2 has the cache line in UC state and responds to
the snoop with a snoop response with data.
HN-F waits for all the snoop responses and forwards the data received from RN-F2 to the Requester. The Requester
must complete the transaction by sending a CompAck.
In this flow, HN-F sends a speculative read to SN-F without waiting for snoop responses, but discards the data
received from SN-F.
Figure 5-3 shows the transaction flow, the copy of data being transferred is marked in bold.
Speculative
ReadUnique read
ReadNoSnp
SnpUnique
SnpUnique
UC->I
SnpResp_I SnpRespData_I
CompData_I
CompData_UC
I->UC
CompAck
5-126 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
5 Interconnect Protocol Flows
5.1 Read transaction flows
5.1.4 Read transaction with snoop response with data and memory update
An example of this type of flow is a ReadClean transaction.
RN-F1 has the cache line in UD state and responds to the snoop with a snoop response with data. RN-F1 passes
responsibility of updating memory to HN-F.
HN-F waits for all the snoop responses and forwards the data received from RN-F1 to the Requester. Because the
request is ReadClean, HN-F does not pass responsibility of updating memory to the Requester.
HN-F sends a write request to update memory. HN-F in this case waits for both a CompAck and CompDBIDResp
from SN-F before deallocating the request.
In this flow HN-F also sends a speculative read to SN-F without waiting for snoop responses, but discards the data
received from SN-F.
Figure 5-4 shows the transaction flow, the copy of data being transferred is marked in bold.
Speculative
ReadClean
read
ReadNoSnp
SnpClean
SnpClean
CompData_I
UD->SC
SnpResp_I
SnpRespData_SC_PD
WriteNoSnp
CompData_SC CompDBIDResp
NCBWrData
I->SC
CompAck
NCBWrData = NonCopyBackWrData
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 5-127
ID061214 Confidential
5 Interconnect Protocol Flows
5.1 Read transaction flows
5.1.5 Read transaction with snoop response with partial data and no memory update
An example of this type of flow is a ReadUnique transaction.
RN-F1 has the cache line in UDP state. RN-F1 responds to the snoop with a snoop response with partial cache line
data and passes responsibility for updating memory.
HN-F waits for the data response from memory, merges the partial snoop response data with the data response from
memory, and sends the resultant data to the Requester.
HN-F does not update memory because responsibility for updating memory is passed on to the Requester.
Figure 5-5 shows the transaction flow, the copy of data being transferred is marked in bold.
ReadUnique
ReadNoSnp
SnpUnique
SnpUnique
UDP->I
SnpRespDataPtl_I_PD SnpResp_I
CompData_I
Merge
data
CompData_UD_PD
I->UD
CompAck
5-128 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
5 Interconnect Protocol Flows
5.1 Read transaction flows
5.1.6 Read transaction with snoop response with partial data and memory update.
An example of this type of flow is a ReadClean transaction.
RN-F1 has the cache line in UDP state. RN-F1 responds to the snoop with a snoop response with partial cache line
data and passes responsibility for updating memory.
HN-F waits for the data response from memory, merges the partial snoop response data with the data response from
memory, and sends the resultant data to the Requester.
HN-F updates memory as the responsibility for updating memory is not passed on to the Requester.
Figure 5-6 shows the transaction flow, the copy of data being transferred is marked in bold.
ReadClean
ReadNoSnp
SnpClean
SnpClean
UDP->I
SnpResp_I
SnpRespDataPtl_I_PD CompData_I
WriteNoSnp
CompData_UC Merge
data
I->UC
CompAck
CompDBIDResp
NCBWrData
NCBWrData = NonCopyBackWrData
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 5-129
ID061214 Confidential
5 Interconnect Protocol Flows
5.2 Dataless transaction flows
RN-F1 has the cache line in UC state. RN-F1 responds to the snoop with a snoop response without data and changes
the cache line state to I.
HN-F waits for all snoop responses and then sends a Comp_UC response to the Requester.
HN-F does not send a read request to SN-F because the request is a Dataless transaction.
MakeUnique
SnpMakeInvalid
SnpMakeInvalid
UC->I
SnpResp_I SnpResp_I
Comp_UC
I->UC
CompAck
5-130 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
5 Interconnect Protocol Flows
5.2 Dataless transaction flows
RN-F1 has the cache line in SD state and responds to the snoop with a snoop response with data and PD asserted.
HN-F waits for all snoop responses and then sends a Comp_UC response to the Requester.
HN-F sends a write request to update memory with the data received from RN-F1.
CleanUnique
SnpCleanInvalid
SnpCleanInvalid
SD->I
SnpRespData_I_PD
SnpResp_I
WriteNoSnp
CompDBIDResp
Comp_UC
NCBWrData
SC->UC
CompAck
NCBWrData = NonCopyBackWrData
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 5-131
ID061214 Confidential
5 Interconnect Protocol Flows
5.2 Dataless transaction flows
RN-F0 moves the cache line to I state and issues an Evict transaction.
Note
The Evict request is a hint. A Comp response can be given by HN-F without updating the Snoop Filter or Snoop
Directory.
UC->I
Evict
Update
Snoop Filter or
Snoop Directory
Comp_I
5-132 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
5 Interconnect Protocol Flows
5.3 Write transaction flows
6. RN-F0 waits for Comp from HN-F and deallocates its request.
Figure 5-10 shows the flow, the copy of data being transferred is marked in bold.
WriteNoSnp
DBIDResp
WriteNoSnp
NCBWrData
CompDBIDResp
NCBWrData
Comp
NCBWrData = NonCopyBackWrData
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 5-133
ID061214 Confidential
5 Interconnect Protocol Flows
5.3 Write transaction flows
The Comp_I response from HN-F must be sent when the coherency activity is complete at HN-F.
Figure 5-11 shows the transaction flow, the copy of data being transferred is marked in bold.
WriteUniquePtl
SnpCleanInvalid
SnpCleanInvalid
DBIDResp
UD->I
SnpRespData_I_PD
SnpResp_I
NCBWrData
Merge
data
WriteNoSnp
Comp_I
CompDBIDResp
NCBWrData
NCBWrData = NonCopyBackWriteData
5-134 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
5 Interconnect Protocol Flows
5.3 Write transaction flows
The data received from RN-F0 is written to SN-F by HN-F using a WriteNoSnp transaction.
Figure 5-12 shows the transaction flow, the copy of data being transferred is marked in bold.
WriteBackFull
CompDBIDResp
UD->I
CBWrData_UD_PD
WriteNoSnp
CompDBIDRresp
NCBWrData
CBWrData = CopyBackWrData
NCBWrData = NonCopyBackWrData
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 5-135
ID061214 Confidential
5 Interconnect Protocol Flows
5.4 Interconnect hazard conditions
An HN-F orders transactions to the same cache line by sequencing transaction responses and snoop transactions to
the Requesters. As the interconnect is not required to be ordered, the arrival order of these messages, in certain cases,
might not be the same as the order in which they were issued at the HN-F.
Once a completion is sent for a transaction, the HN-F must not send a snoop request to the same cache line until it
receives:
• A CompAck for any Read and Dataless requests except for ReadOnce and ReadNoSnp.
For ReadOnce and ReadNoSnp the HN-F must wait till it receives CompAck, if the request has
ExpCompAck asserted, else the interconnect has to wait until it sends a Comp.
If a Response message that includes data requires multiple packets or beats of transfers over the interconnect then
receiving or sending the message implies sending or receiving all the packets corresponding to that message. That
is, when a sender starts sending the message it must send all packets of the message without dependence on
completion of any other Request or Response message.
Similarly, a receiver, when it accepts part of the data message, must accept the remaining packets of that message
without any dependence on forward progress of any other request or response message.
When a subsequent action depends upon receiving a data message, the action must not occur until all data packets
are received.
5-136 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
5 Interconnect Protocol Flows
5.4 Interconnect hazard conditions
Figure 5-13 on page 5-138 shows an example where a ReadShared and a ReadUnique, for the same cache line,
arrive at the HN-F at approximately the same time. The steps required to resolve this hazard are:
1. At time A:
• ReadUnique from RN-F0 arrives and hazards a ReadShared request from RN-F2 for which the HN-F
has already sent snoop requests.
• ReadUnique progress is blocked at the HN-F.
2. At time B:
• The HN-F has completed the ReadShared transaction request from RN-F2.
• The ReadShared transaction is considered to be complete and the HN-F unblocks the ReadUnique
transaction request from RN-F0.
With the exception of ReadNoSnp, the flows will be similar if the two transactions, that Figure 5-13 on page 5-138
shows, are replaced by any Read request type, or Dataless request type:
• A Read transaction request is completed at the HN-F when both of the following are true:
— All CompData is sent and, if applicable, CompAck is received. A CompAck is only required for
transactions that assert ExpCompAck in the original Request message.
— A memory update is completed if required.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 5-137
ID061214 Confidential
5 Interconnect Protocol Flows
5.4 Interconnect hazard conditions
SC I I
Req1: ReadShared
Req2: ReadUnique
ReadNoSnp
A
Hazard detected
Req2 progress
SnpShared SnpShared blocked
SnpResp_SC
SnpResp_I
CompData_I
CompData_SC
I->SC
CompAck Req2 progress
un-blocked
B
SnpUnique ReadNoSnp
SnpUnique
SnpResp_I SC->I
SnpResp_I
CompData_I
CompData_UC
SC->UC
CompAck
5-138 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
5 Interconnect Protocol Flows
5.4 Interconnect hazard conditions
Figure 5-14 on page 5-140 shows the case where a ReadShared and a WriteBack, for the same cache line, arrive at
the HN-F at approximately the same time. The steps required to resolve this hazard are:
1. At time A:
• A WriteBack encounters a hazarding condition at the HN-F. The reason for the hazard is a ReadShared
transaction that is already in progress.
• The hazard detection results in the WriteBack being blocked.
• The ReadShared transaction receives data with the snoop response and needs to update memory in
addition to sending the data to the Requester.
2. At time B:
• The WriteBack is unblocked because the HN-F has sent the Data response to the Requester and a
WriteData response to memory for the ReadShared transaction.
If the ReadShared request reaches the HN-F, after the HN-F has started processing the WriteBack request, then the
ReadShared request will be blocked until completion of the WriteBack request.
A CopyBack request is completed at HN-F when both of the following are true:
• A Data message corresponding to the CopyBack request is received.
• A memory update is completed if required.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 5-139
ID061214 Confidential
5 Interconnect Protocol Flows
5.4 Interconnect hazard conditions
SnpShared
Hazard detected
UD->SC Req2 progress
blocked
SnpRespData_SC_PD
CompData_SC
WriteNoSnp
I->SC
CompAck
CompDBIDResp
B
CompDBIDResp NCBWrData
SC->I
CopyBackWrData_SC Req2 progress
(PS = SC, NS(implied) = I) un-blocked
PS = PresentState
NS = NextState
1. The regenerated request reaches the HN-F before the CompAck response associated with the earlier request.
2. The HN-F detects an address hazard and blocks the processing of the new request until the CompAck
response is received.
In such a scenario, upon arrival at HN-F, the CompAck response deallocates the previous request from the HN-F
and unblocks the processing of the new request.
5-140 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 6
Exclusive Accesses
This chapter describes the mechanisms that the architecture includes to support exclusive accesses. It contains the
following sections:
• Overview on page 6-142.
• Exclusive monitors on page 6-143.
• Exclusive transactions on page 6-146.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 6-141
ID061214 Confidential
6 Exclusive Accesses
6.1 Overview
6.1 Overview
The principles of exclusive accesses are that a Logical Processor (LP) performing an exclusive sequence does the
following:
• Performs an Exclusive Load from a location.
• Calculates a value to store to that location.
• Performs an Exclusive Store to the location.
For a Snoopable memory location, if the location is updated since the Exclusive Load, by a different LP, then the
Exclusive Store must fail. In this case, the store does not occur and the LP does not update the value held at the
location.
For a Non-snoopable memory location, if a write transaction, by any LP, has updated the same address location since
the Exclusive Load, then the Exclusive Store must fail. In this case, the store does not occur and the value held at
the location is not updated.
Note
• The term Exclusive Load is used to describe the action of an LP executing an appropriate program instruction
such as LDREX. This action requires:
— Obtaining the data from the location to which it wants to perform an exclusive sequence.
— Indicating that it is starting an exclusive sequence.
• The term Exclusive Load transaction is used to describe a transaction issued on the interface to obtain data
for an Exclusive Load, if the data is not available in the cache at the LP. Not every Exclusive Load requires
an Exclusive Load transaction.
• The term Exclusive Store is used to describe the action of an LP executing an appropriate program instruction
such as STREX. This action requires:
— Determining if the exclusive sequence had passed or failed.
— If appropriate, updating the data at the location.
An Exclusive Store can pass or fail and this result is known to the executing processor. When an Exclusive
Store passes, the data value at the address location is updated. When an Exclusive Store fails, this indicates
that the data value at the address location has not been updated, and the Exclusive sequence must be restarted.
• The term Exclusive Store transaction is used to describe a transaction issued on the interface that might be
required to complete an Exclusive Store. Not every Exclusive Store requires an Exclusive Store transaction.
An Exclusive Store transaction can pass or fail and this result is made known to the LP using the transaction
response.
6-142 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
6 Exclusive Accesses
6.2 Exclusive monitors
LP monitor Each LP within an RN-F must implement an exclusive monitor that observes the location used by
an exclusive sequence. The LP monitor is set when the LP executes an Exclusive Load. The LP
monitor is reset when either:
• The location is updated by another LP, which is indicated by an invalidating snoop request to
the same address.
• There is a store to that address within the same RN-F.
Note
It is IMPLEMENTATION DEFINED whether or not a non-exclusive store from the same LP resets the
monitor.
PoC monitor An HN-F must implement a PoC monitor that can pass or fail an Exclusive Store transaction. A pass
indicates that the transaction has been propagated to other coherent RN-Fs. A fail indicates that the
transaction has not been propagated to other coherent RN-Fs and therefore the Exclusive Store
cannot pass.
The monitor is used to ensure that an Exclusive Store transaction from an LP is only successful if
that LP could not have received a snoop transaction, relating to an Exclusive Store to the same
address from another LP, after it issued its own Exclusive Store transaction.
The minimum requirement of the PoC monitor is to record when any LP performs a Snoopable
transaction related to an exclusive sequence.
If an LP has performed a transaction related to an Exclusive sequence, and it then performs an
Exclusive Store transaction before a successful Exclusive Store transaction from another LP is
scheduled, then the Exclusive Store transaction must be successful.
The monitor must support the parallel monitoring of all exclusive-capable LPs in the system.
When the HN-F receives a transaction associated with an Exclusive Load or an Exclusive Store, the
monitor registers that the LP is attempting an exclusive sequence.
When the HN-F receives an Exclusive Store transaction:
• If the PoC monitor has registered that the LP is performing an exclusive sequence, that is, it
has not been reset by an Exclusive Store transaction from another LP, then the Exclusive
Store transaction is successful and is permitted to proceed. In such a case, registered attempts
of all other LPs must be reset. This specification recommends, but does not require, that the
PoC monitor for the successful LP is left as registered.
• If the PoC monitor has not registered that the LP is performing an exclusive sequence, that
is, it has been reset by an Exclusive Store from another LP, then the Exclusive Store
transaction is failed and is not permitted to proceed. The monitor must register that the LP is
attempting an exclusive sequence.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 6-143
ID061214 Confidential
6 Exclusive Accesses
6.2 Exclusive monitors
Note
A successful Exclusive Store transaction from an LP does not have to reset that the LP is
performing an exclusive sequence. The LP can continue to perform a sequence of Exclusive
Store transactions, which will all be successful, until another LP performs a successful
Exclusive Store transaction.
From initial system reset, the first LP to perform an Exclusive Store transaction can be
successful, but this specification does not require it. At that point, all other LPs must then
register the start of their exclusive sequence for their Exclusive Store transaction to be
successful.
When an Exclusive Store transaction from one LP passes and the registered attempts of all
other LPs is reset, the other LPs can only register a new exclusive sequence after the
CompAck response is observed for the Exclusive Store transaction that passed.
Note
An LP and PoC monitor pair are required to support an exclusive access to a Snoopable memory location.
6-144 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
6 Exclusive Accesses
6.2 Exclusive monitors
A monitor that includes additional address comparison must still include a minimum monitor of a single bit for
every Exclusive-capable LP to ensure forward progress.
• The address monitor has registered an exclusive sequence for a matching address from the same LP and has
not been reset by an Exclusive Store transaction from a different LP with a matching address.
• The minimum single-bit monitor has been set by an exclusive sequence from the same LP, and it has not been
reset by an Exclusive Store transaction from a different LP to any address.
Note
• The term matching address is used to describe where a monitor only records a subset of address bits. The
address bits that are recorded are identical, but the address bits that are not recorded can be different.
• An implementation does not require an address monitor for each Exclusive-capable LP. Because the address
monitor provides a performance enhancement it is acceptable to have fewer address monitors and for the use
of these to be IMPLEMENTATION DEFINED. For example, additional address monitors can be used on a
first-come first-served basis, or by allocation to particular LPs. Alternatively, a more complex algorithm
might be implemented.
• Additional PoC exclusive monitor functionality can be provided to prevent interference, or denial of service,
caused by one agent in the system issuing a large number of exclusive access transactions. This specification
recommends that Secure exclusive accesses are permitted to make forward progress independently of the
progress of Non-secure accesses.
System monitor The System monitor tracks exclusive accesses to a Non-snoopable region. This monitor
type is set by a ReadNoSnp(Excl) transaction and reset by an update to the location by
another LP.
System monitors can be placed at a PoS or at endpoint devices. Potentially, the number of
devices in the system is much larger than the number of PoS and placing System monitors
at a PoS can:
• Reduce System monitor duplication.
• Reduce the time taken for the system to detect failure of an exclusive access.
A System monitor must be located so it can observe all transactions to the monitored
location.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 6-145
ID061214 Confidential
6 Exclusive Accesses
6.3 Exclusive transactions
An exclusive transaction must use the correct LPID value, See Logical Processor Identifier on page 2-61.
The Exclusive Okay response must only be given for a transaction that has the Excl attribute set.
Not all memory locations are required to support exclusive accesses. An Exclusive Load transaction to a location
that does not support exclusive accesses must not be given an Exclusive Okay response.
Whether or not an Exclusive Store transaction to a location that does not support exclusive accesses will update that
location is IMPLEMENTATION DEFINED.
This specification recommends that an Exclusive Store transaction is not performed to a location that does not
support exclusive accesses.
Table 6-1 shows the Snoopable attributes of the request, the relevant monitor type and possible reasons for fail
conditions and response requirements.
ReadNoSnp(Excl) No System Target does not support Target must return a data
exclusive accesses response
6-146 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
6 Exclusive Accesses
6.3 Exclusive transactions
ReadShared(Excl) Yes LP, PoC Target does not support Target must return a data
ReadClean(Excl) exclusive accesses response
CleanUnique(Excl) Yes LP, PoC Address content modified Target must return a Comp
response
Address not present due to
monitor overflow
• Should include a monitor per LP for the efficient handling of exclusive accesses.
• Must have a starvation prevention mechanism for all exclusive requests, whether using the monitor
mechanism or some other means.
• This specification recommends that progress on Secure Exclusive requests is independent of progress on
Non-secure Exclusive accesses.
An LP wanting to perform an exclusive access to a Snoopable location might already hold the cache line in its local
cache:
• If the LP holds the cache line in a Unique state, then it is permitted, but not recommended by this
specification, that it performs an Exclusive Load transaction.
• If the LP holds the cache line in a Shared state, then it is permitted, but not required by this specification, that
it performs an Exclusive Load transaction.
• If the LP does not hold a copy of the cache line, this specification recommends that the LP uses an Exclusive
Load transaction to obtain the cache line, but is permitted to use ReadClean or ReadShared without the Excl
attribute asserted.
It is not required that an LP always completes an exclusive sequence. For example, the value obtained by the
Exclusive Load can indicate that a semaphore is held by another LP and that the value cannot be changed until the
semaphore is released by the other LP. Therefore, a new exclusive sequence can be started with no attempt to
complete the current exclusive sequence.
During the time between the Exclusive Load and the Exclusive Store the LP exclusive monitor must monitor the
location to determine whether another LP might have updated the location.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 6-147
ID061214 Confidential
6 Exclusive Accesses
6.3 Exclusive transactions
• If the LP exclusive monitor has been reset the Exclusive Store must fail and the LP must not issue an
Exclusive Store transaction. The LP must restart the exclusive sequence.
Note
When the LP monitor has been reset, not issuing a transaction for an Exclusive Store that must eventually fail
avoids unnecessary invalidation of other copies of the cache line.
• If the cache line is held in a Unique state and the LP exclusive monitor is set then the Exclusive Store has
passed and it can update the location without issuing a transaction.
• If the cache line is held in a Shared state and the LP exclusive monitor is set then the LP must issue an
Exclusive Store transaction. A CleanUnique transaction with the Excl attribute asserted must be used. The
LP exclusive monitor must continue to operate and check that the cache line is not updated while the
CleanUnique transaction is in progress.
The transaction will receive a Normal Okay or an Exclusive Okay response.
If the transaction receives an Exclusive Okay response, then this indicates that the transaction has passed and
has completed invalidating all other copies of the cache line. After an exclusive transaction completes with
an Exclusive Okay response the LP must again check the LP exclusive monitor:
— If the LP exclusive monitor is set then the Exclusive Store has passed and the update is performed.
— If the LP exclusive monitor is not set, it indicates that an update to the cache line has occurred between
the point that the Exclusive Store transaction was issued and the point that it completed. The Exclusive
Store must fail and the exclusive sequence must be restarted.
— If the LP has not been able to track the exclusive nature of the cache line, because the cache line has
been evicted, then the Exclusive Store must fail and the exclusive sequence must be restarted.
If the Exclusive Store transaction receives a Normal Okay response then this indicates another LP has been
permitted to progress a transaction associated with an Exclusive Store. The transaction associated with the
Exclusive Store, from this LP, has failed and has not propagated to other LPs in the system. When an
Exclusive Store transaction completes with a Normal Okay response the options are:
— The LP can fail the Exclusive Store and restart the exclusive sequence with or without checking the
state of the cache line when the access completed.
— The LP can check the LP exclusive monitor, and if the LP exclusive monitor has been reset, then the
LP must fail the Exclusive Store and restart the exclusive sequence.
— The LP can check the LP exclusive monitor, and if the LP exclusive monitor is set, then the LP can
repeat the Exclusive Store transaction.
6-148 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
6 Exclusive Accesses
6.3 Exclusive transactions
• The address of an exclusive access must be aligned to the total number of bytes in the transaction.
• The number of bytes to be transferred in an exclusive access must be a legal data transfer size, that is, 1, 2,
4, 8, 16, 32, or 64 bytes.
For exclusive Read and Write transactions to be considered a pair, the following criteria must apply:
• The addresses of the exclusive read and the exclusive write must be identical.
• The value of the control signals, that is MemAttr and SnpAttr of the exclusive read and the exclusive write
transaction, must be identical.
• The data size in the exclusive read and the exclusive write must be identical.
• The LPID value of the exclusive read must match the LPID value of the exclusive write transaction.
The minimum number of bytes to be monitored during an exclusive operation is defined by the transaction size. The
System monitor can monitor a larger number of bytes, up to 64, which is the maximum size of an exclusive access.
However, this can result in a successful exclusive access being indicated as failing because a neighboring byte was
updated while the exclusive access was in progress.
Multiple exclusive transactions to Non-snoopable memory locations, either read or write, to the same or different
addresses, from the same LP must not be outstanding at the same time.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 6-149
ID061214 Confidential
6 Exclusive Accesses
6.3 Exclusive transactions
6-150 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 7
Ordering
This chapter describes the mechanisms that the protocol includes to support system ordering requirements. It
contains the following sections:
• Multi-copy atomicity on page 7-152.
• Completion Response and Ordering on page 7-153.
• Completion acknowledgement on page 7-154.
• Transaction ordering on page 7-156.
• Barriers on page 7-161.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 7-151
ID061214 Confidential
7 Ordering
7.1 Multi-copy atomicity
• All writes to the same location are serialized, that is, they are observed in the same order by all Requesters,
although some Requesters might not observe all of the writes.
• A read of a location does not return the value of a write until all Requesters observe that write.
In this specification, two addresses are considered to be the same with respect to coherence, observability, and
hazarding if their cache line addresses and NS attribute are the same.
7-152 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
7 Ordering
7.2 Completion Response and Ordering
• For a Read transaction to a Non-cacheable or Device location, a CompData response guarantees that the
transaction is observable to a later transaction from any agent to the same endpoint address range. The size
of the endpoint address range is IMPLEMENTATION DEFINED.
• For a Read transaction to a Cacheable location, a CompData response guarantees that the transaction is
observable to a later transaction from any agent to the same location.
• For a Dataless transaction that is only permitted to a Cacheable memory location, a Comp response
guarantees that the transaction is observable to a later transaction from any agent to the same memory
location.
• For a Write transaction with Early Write Acknowledge (EWA) de-asserted, to a Non-cacheable or Device
location, a Comp response guarantees that the transaction is observable to a later transaction from any agent
to the same endpoint address range. The size of the endpoint address range is IMPLEMENTATION DEFINED.
• For a Write transaction with EWA asserted, to a Non-cacheable or Device location, a Comp response
guarantees that the transaction is observable to a later transaction from any agent to the same location.
If the handling of barriers at source is required, see Barrier transaction flow on page 7-163, then the response
must also guarantee that the transaction is observable to a later transaction from any agent to the same
endpoint address range.
• For a Write transaction to a Cacheable location, a Comp response guarantees that the transaction is
observable to a later transaction from any agent to the same location.
Note
• The size of an endpoint address range is IMPLEMENTATION DEFINED. Typically, this is:
— The size of a peripheral device, for a region used for peripherals.
— The size of a cache line, for a region used for memory.
• A Cacheable location can be determined by the assertion of the MemAttr[2] Cacheable bit in the request. A
Non-cacheable or Device location can be determined by the de-assertion of the MemAttr[2] Cacheable bit
in the request.
If the Comp response for a Write transaction, with EWA asserted, to a Non-cacheable or Device location does not
guarantee that the transaction is observable to a later transaction from any agent to the same endpoint address range,
then one of the following techniques can be used to ensure ordering to the same endpoint address range:
• If the Write transaction has an Endpoint Order requirement, then a later transaction from the same agent that
also has an Endpoint Order requirement and is to the same endpoint address range will be ordered. See
Transaction ordering on page 7-156.
• A Barrier transaction ensures the ordering with respect to a later transaction from any agent to any location
within the same endpoint address range. See Barrier transaction flow on page 7-163.
• The CompData response of a later Read transaction to the same location ensures the ordering of the Write
transaction with respect to a later transaction from any agent to any location within the same endpoint address
range.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 7-153
ID061214 Confidential
7 Ordering
7.3 Completion acknowledgement
The sequencing of the completion of a transaction and the sending of CompAck is as follows:
1. An RN-F sends a CompAck after receiving Comp or CompData.
2. An HN-F waits for CompAck before sending a subsequent snoop to the same address.
This sequence guarantees that an RN-F receives completion for a transaction and a snoop to the same cache line in
the same order as they are sent from an HN-F. This ensures transactions to the same cache line are observed in the
correct order.
The use of CompAck for a transaction is determined by the Requester setting the ExpCompAck field in the original
request. The rules for an RN setting the ExpCompAck field and generating a CompAck response are as follows:
• An RN-F must include a CompAck response in all Read and Dataless transactions except ReadNoSnp,
ReadOnce, and Evict.
• Although not required, an RN-F is permitted to include a CompAck response in ReadNoSnp and ReadOnce
transactions.
• An RN-I or RN-D is permitted, but not required, to include a CompAck response in Read and Dataless
transactions.
• For Write transactions, CompAck can only be used for WriteUnique transactions. See Streaming Ordered
WriteUnique transactions on page 7-159.
For transactions between an RN and an HN, where the HN is the Completer, the HN must support the use of
CompAck for all transactions that are required or permitted to use CompAck.
A Requester, such as an HN-F or HN-I that communicates with an SN-F or SN-I respectively, must not send a
CompAck response.
Table 7-1 shows the request types that require a CompAck response, and the corresponding Requester types that are
required to provide that response.
ReadClean Yes -
ReadShared Yes -
ReadUnique Yes -
CleanUnique Yes -
MakeUnique Yes -
7-154 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
7 Ordering
7.3 Completion acknowledgement
WriteBack No -
WriteClean No -
Evict No -
WriteEvictFull No -
WriteNoSnp No No
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 7-155
ID061214 Confidential
7 Ordering
7.4 Transaction ordering
Requester Order between an RN, HN pair and a HN-I, SN-I pair is supported by the Order field in a request. The
Order field indicates that the transaction requires one of the following forms of ordering:
Request Order This guarantees the order of multiple transactions, from the same agent, to the same address
location. For WriteNoSnp transactions this further guarantees order of transactions to the
same address location from any agent.
Endpoint Order This guarantees the order of multiple transactions, from the same agent, to the same
endpoint address range. This guarantee also includes the guarantee of Request Order.
Order[1:0] Description
0b01 Reserved
• The RN requires a ReadReceipt to determine when it can send the next ordered request.
• At the Completer a ReadReceipt means the request has reached the next ordering point that will maintain
requests in the order they were received:
— For requests that require Request Order it will maintain order between requests to the same address
from the same source.
— For requests that require Endpoint Order it will maintain order between requests to the same endpoint
address range from the same source.
• The RN requires a DBIDResp to determine when it can send the next ordered request.
• The Completer sending a DBIDResp response means that a data buffer is available, and that the write request
has reached a PoS that will maintain requests in the order they were received:
— For requests that require Request Order it will maintain order between requests to the same address
from the same source.
7-156 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
7 Ordering
7.4 Transaction ordering
— For requests that require Endpoint Order it will maintain order between requests to the same endpoint
address range from the same source.
— In addition, for requests that require Request Order or Endpoint Order, it will also maintain order
between all requests to the same address, from any source.
Table 7-3 shows the ordering guarantee that is obtained for different combinations of transactions that require order.
The transactions that Table 7-3 shows as First Transaction and Second Transaction are from the same Requester.
When transactions from the same Requester specify a different ordering requirement, the ordering guarantee that is
provided is the least restrictive of the two.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 7-157
ID061214 Confidential
7 Ordering
7.4 Transaction ordering
RN HN
ReadNoSnp-1
Request
accepted
ReadReceipt-1
ReadNoSnp-2 is sent
after ReadReceipt-1
is received
ReadNoSnp-2
Request gets
a Retry
ReadNoSnp-3 waits response
for ReadNoSnp-2 to RetryAck-2
make progress
PCrdGrant
ReadNoSnp-2 waits
for a CreditGrant
ReadNoSnp-2
ReadNoSnp-3 is sent
after Read Receipt-2
ReadReceipt-2
is received
ReadNoSnp-3
ReadReceipt-3
CompData_I-3
7-158 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
7 Ordering
7.4 Transaction ordering
Note
Figure 7-1 on page 7-158 shows a single ordered stream of three reads from RN. However, an RN can have multiple
streams of reads, in which case requests must be ordered within a stream, but ordering dependency does not exist
between streams. One example of this is when the streams are from different threads within the RN, in which case,
the RN waits for the ReadReceipt of the previous request from the same stream only before sending out the next
ordered request from that stream.
The Streaming Ordered WriteUniques mechanism relies on the use of the Ordered Write Observation ordering
requirement and CompAck. Responsibilities of Requesters and HN-F when utilizing the Streaming Ordered
WriteUnique solution are:
• The Requester must set the Order field to require Ordered Write Observation and ExpCompAck on the
WriteUnique request.
• The Ordered Write Observation requirement in a WriteUnique request indicates to the HN-F that the
completion of coherence action on this write must not depend on completion of coherence action on a
subsequent write.
• The Requester must wait for DBIDResp for a WriteUnique transaction before sending the next WriteUnique
request.
• The Requester must send a CompAck response after receiving Comp for the corresponding WriteUnique, as
well as Comp responses for all earlier ordered WriteUniques.
Note
Waiting to send CompAck until all prior ordered WriteUniques have received their Comp responses ensures
that they have completed their operations at their respective HN-Fs and any Requester observing the
WriteUnique for which CompAck is sent will also observe all prior ordered WriteUniques.
• HN-F must wait for a CompAck response from RN before de-allocating a WriteUnique transaction and
making the write visible to other observers.
An implementation using an optimized or non-optimized Streaming Ordered WriteUniques solution must avoid
deadlock and livelock situations.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 7-159
ID061214 Confidential
7 Ordering
7.4 Transaction ordering
Note
A technique for avoiding resource related deadlock or livelock issues is to limit Streaming Ordered WriteUniques
optimization to one Requester in the system. All other Requesters in the system can use the Streaming Ordered
WriteUniques solution without the optimization.
In a typical system, the optimized Streaming Ordered WriteUniques solution is most beneficial to an RN-I that is a
conduit for PCIe style, non-relaxed order, Snoopable writes. In most systems, one RN-I hosting this type of PCIe
traffic is adequate.
Figure 7-2 shows a typical transaction flow in which an RN-I uses Streaming Ordered WriteUniques. This flow
prevents a read acquiring the new value of Write-B before Write-A has completed.
Note
For clarity, in Figure 7-2 the Write-B DBIDResp and the NCBWrData flow is omitted.
I I I
SnpResp_I-A NCBWrData-A
WriteUnique-B
SnpCleanInvalid-A
SnpCleanInvalid-B
SnpCleanInvalid-B
SnpResp_I-B
SnpResp_I-A
SnpResp_I-B
Comp-B
CompAck-B
7-160 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
7 Ordering
7.5 Barriers
7.5 Barriers
Barriers are an ordering mechanism for use with a weakly ordered memory model. Barriers can be used to provide
order between groups of memory transactions, and to ensure ordering of endpoint completion for some classes of
operations. Endpoint for an address in this specification is defined as a peripheral or memory.
Barrier transactions are only used to ensure ordering of Normal Non-cacheable, and Device type transactions. It is
the responsibility of the RN to ensure the required observation of Cacheable transactions, by waiting for the
appropriate transaction response.
A barrier guarantees that all Normal Non-cacheable, and Device type Write transactions targeting an HN-I, that are
issued before the barrier, will reach a single endpoint before any Normal Non-cacheable, or Device type transactions
to the same endpoint that are issued by any agent after the barrier completion. In order to guarantee this ordering a
barrier might need to be propagated into the system beyond the CHI interconnect.
This specification does not require the interconnect to handle the two barrier transaction types in exactly in the same
manner provided that the interconnect provides the guarantees required.
Note
An RN might prefer to track its original barrier intent by mapping memory barriers and synchronization barriers to
EOBarrier and ECBarrier transactions respectively.
7.5.1 RN requirements
The responsibilities of an RN that issues barrier requests are:
• An RN must wait until all Normal Non-cacheable writes, and all Device type writes, that are targeting an
HN-I, have received a completion response before issuing an EOBarrier or an ECBarrier request. An RN in
a system that cannot guarantee that the TgtID will not be re-assigned by the interconnect must presume that
the potential target of any Normal Non-cacheable, and Device memory request it generates is to an HN-I.
• An RN must send a transaction that is required to be ordered by the barrier only after:
— The barrier response is received.
— Comp responses are received for all read requests that are before the barrier.
— Comp responses are received for all Non-snoopable Cacheable Write Requests that are before the
barrier.
— Comp responses are received for all write requests targeting an HN-F that are before the barrier. If it
cannot be guaranteed that the TgtID will not be remapped then the RN must presume that all write
requests are targeting an HN-F.
• This specification recommends that an RN only issues an EOBarrier or ECBarrier if it has issued a Normal
Non-cacheable, or Device type memory write request since previously completing an EOBarrier or
ECBarrier.
Note
This is not a strict requirement, as it is functionally correct for an RN to issue more barriers than are required.
• An RN is not required to issue barriers if a completion response for a write request targeting an HN-I
guarantees that requests from any source received, after the write completion, will be ordered behind those
writes to the same endpoint address range.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 7-161
ID061214 Confidential
7 Ordering
7.5 Barriers
1. The HN-I marks all writes received before the barrier where the writes have the same SrcID and LPID as the
barrier.
2. The HN-I can then handle the barrier using one of the following methods:
• Respond then track:
1. Responds to the barrier with a barrier completion.
2. Reads and writes requests from any agent that are to the same endpoint, as the marked writes
are ordered with respect to those writes.
• Track then respond:
1. The HN-I receives a downstream completion response for all the marked writes.
2. The HN-I sends a barrier completion without having to hazard and block any requests.
Note
• It is acceptable for an HN-I to handle a barrier in either manner. In some circumstances, track then respond
might be the preferred option. In this case, the barrier is not required to block any transactions in the
interconnect and does not affect requests with a different SrcID.
• A barrier might need to be propagated downstream of the HN-I if write completions from downstream do not
provide the guarantees required by a barrier.
• The combination of the RN requirements, described in RN requirements on page 7-161, and the functionality
of a barrier at the HN-I, described in HN-I requirements, are sufficient to meet the requirements of a memory
barrier within an RN that is used to establish an order of completion at a single endpoint between Normal
Non-cacheable or Device type memory operations from that RN, that precede the memory barrier, and
Normal Non-cacheable or Device type memory operations from that RN, that follow the memory barrier.
• The combination of the RN requirements described in RN requirements on page 7-161 and the functionality
of a barrier at the HN-I, described in HN-I requirements, are also sufficient to meet the requirements of a
synchronization barrier within an RN that is used to guarantee the following:
— All Device endpoint ordered and non-EWA memory operations from that RN that precede the
synchronization barrier and target an HN-I, have reached their respective endpoints prior to the
completion of the barrier.
— All memory bound requests from that RN that precede a DVMOp(Sync) snoop request have reached,
or appear to have reached, their respective endpoints, have returned a completion response, and have
been applied at the target as required by the DVMOp, prior to responding to the DVMOp(Sync).
7-162 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
7 Ordering
7.5 Barriers
2. RN1 waits for all Normal Non-cacheable, and Device type memory write transactions, prior to the barrier, to
receive completion responses.
4. MN forwards the barrier request to all the HN-I nodes in the system. In this example there are two HN-I
nodes, HN-I0. and HN-I1.
5. HN-Is set markers in the transaction queue, marking all the writes received from the same SrcID as the barrier
and return a completion to the MN.
6. MN waits for Comp responses from all HN-I nodes before sending a consolidated Comp message to RN1
EOBarrier
EOBarrier EOBarrier
Comp
Comp
Comp
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 7-163
ID061214 Confidential
7 Ordering
7.5 Barriers
• An HN-I implementation configuration pin or bit to force write Comp responses to be given only when
barrier guarantees can be provided. If the interconnect downstream of the HNI cannot provide sufficient
ordering guarantees, then this might require early write completions from the HN-I to be disabled.
• An RN configuration pin or bit to force barriers to be handled at source and not be issued into the system.
When an HN-I’s early write acknowledgement is permitted, and the HN-I cannot provide the guarantees required
by a barrier, the RN configuration pin or bit that disables the issue of barriers into the system must not be asserted.
7-164 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 8
DVM Operations
This chapter describes Distributed Virtual Memory (DVM) operations that the protocol uses to manage virtual
memory. It contains the following sections:
• DVM transaction flow on page 8-166.
• DVM Operation types on page 8-174.
• DVM Operations on page 8-177.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 8-165
ID061214 Confidential
8 DVM Operations
8.1 DVM transaction flow
DVMOp(Non-sync)
DBIDResp
NCBWrData
SnpDVMOp_P1
SnpDVMOp_P1
Snoop sent SnpDVMOp_P2
to core SnpDVMOp_P2
SnpResp_I
SnpResp_I
NCBWrData = NonCopyBackWrData
8-166 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
8 DVM Operations
8.1 DVM transaction flow
The required steps that Figure 8-1 on page 8-166 shows are:
1. RN-F0 sends a DVMOp(Non-sync) to the MN using the appropriate write semantics for the DVMOp type.
4. The MN broadcasts the SnpDVMOp snoop request to all the RN-F and RN-D nodes in the system. The
SnpDVMOp is sent on the snoop channel, and requires two snoop requests. The two parts of the SnpDVMOp
are labeled by the suffix _P1 and _P2 respectively.
Note
• Both parts of the message must carry the same Transaction ID (TxnID).
• RN must have resources available to accept the SnpDVMOp. See Flow control on page 8-169.
5. After forwarding the required operation, each recipient of the SnpDVMOp sends a single SnpResp response
to the MN.
Note
Sending of a SnpResp implies that the target RN has forwarded the SnpDVMOp to the required RN structures
and has freed up the resources needed to accept another DVM operation. It does not imply that the requested
DVM operation has completed. See Sync type DVM transaction flow on page 8-168.
6. After receiving all the SnpResp responses, the MN sends a Comp response to the requesting node.
Note
DBIDResp and Comp responses cannot be opportunistically combined for DVMOps, not even in the case
when an MN might have the opportunity to combine the two responses after receiving DVMOp, it has
determined that SnpDVMOps do not need to be sent, and it is ready to respond with Comp before DBIDResp
has been sent.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 8-167
ID061214 Confidential
8 DVM Operations
8.1 DVM transaction flow
DVMOp(Sync)
DBIDResp
NCBWrData
SnpDVMOp_P1
SnpDVMOp_P2
Comp
NCBWrData = NonCopyBackWrData
8-168 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
8 DVM Operations
8.1 DVM transaction flow
The required steps that Figure 8-2 on page 8-168 shows are:
Note
All previous DVMOp requests whose completion needs to be guaranteed by the DVMOp(Sync) must have
received a Comp response before the RN can send a DVMOp(Sync).
2. The MN accepts the DVMOp(Sync) request and sends a DBIDResp response to the Requester.
4. The MN sends the SnpDVMOp to RN-F1. The SnpDVMOp is sent on the snoop channel, and requires two
snoop requests. The two parts of a SnpDVMOp are labeled by the suffix _P1 and _P2 respectively.
5. After completing the DVM Sync operation, RN-F1 sends a SnpResp response to the MN.
Note
Sending of a SnpResp implies that all DVM related operations have completed at the RN structures and the
target RN has freed up the resources needed to accept another SnpDVMOp.
• A DVMOp that receives a RetryAck response must wait for a PCrdGrant response from the MN that has the
appropriate PCrdType.
• All previous DVMOp requests whose completion needs to be guaranteed by the DVMOp(Sync) must have
received a Comp response before the RN can send the DVMOp(Sync).
• It is permitted to overlap a DVMOp(Non-Sync) and a DVMOp(Sync), from the same RN, if the
DVMOp(Sync) is not required to guarantee completion of the DMVOp(Non-Sync).
• Both SnpDVMOp request packets corresponding to a single transaction must use the same TxnID.
• The two SnpDVMOp request packets corresponding to a single transaction can be sent or received in any
order.
• To prevent deadlocks, due to the two part SnpDVMOp requests that uses the snoop channel, a SnpDVMOp
transaction must only be sent when the receiving RN has pre-allocated resources to accept both parts of the
SnpDVMOp transaction.
• An RN must provide a response to a SnpDVMOp transaction only after it has received both SnpDVMOp
request packets corresponding to that transaction.
• An RN must provide a response to a SnpDVMOp only when it can accept a further SnpDVMOp from an MN.
• Each RN-F and RN-D in the system specifies the number of SnpDVMOp transactions it can accept
concurrently.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 8-169
ID061214 Confidential
8 DVM Operations
8.1 DVM transaction flow
• Each RN-F and RN-D in the system must be able to accept at least one SnpDVMOp(Non-Sync) transaction
in addition to a SnpDVMOp(Sync) transaction.
• The minimum number of SnpDVMOp transactions that must be accepted concurrently is two. This is the
default number for RNs that do not specify a number.
TxnID An ID generated by the Requester. Must follow the same rules as any other
transaction.
NS Must be zero.
PCrdType Must be zero if AllowRetry is asserted, otherwise the credit type value.
8-170 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
8 DVM Operations
8.1 DVM transaction flow
Data Unused bits must be zero for Data[63:0] and Data[n:64] = Don’t care.
NS Must be zero.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 8-171
ID061214 Confidential
8 DVM Operations
8.1 DVM transaction flow
8-172 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
8 DVM Operations
8.1 DVM transaction flow
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 8-173
ID061214 Confidential
8 DVM Operations
8.2 DVM Operation types
The various fields in the payload and their encodings are shown in Table 8-2.
VMID Valid 1 0b1 indicates that the Virtual Machine IDentifier (VMID) or Virtual Index (VI) is valid
ASID Valid 1 0b1 indicates that the Address Space IDentifier (ASID) or VI is valid
8-174 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
8 DVM Operations
8.2 DVM Operation types
Leaf Entry Invalidation 1 0b1 indicates that only leaf level translation invalidation is required
a. DVMv8 only.
b. When used as Virtual Index, the upper 8-bits of ASID are Don’t care.
In the DVMOp, the combination of the address field in the request and the 8-byte write data transports the complete
payload. Addr[3] is not used in the request and must be set to zero.
In the two SnpDVMOp requests the combination of the two address fields transports the complete payload. Addr[3]
is used in a SnpDVMOp request to indicate which part of the payload is being transported.
Bits [43:3] are used in the DVMOp request address field so that the mapping between the DVMOp request and
SnpDVMOp request are similar.
A 44-bit physical and a 49-bit virtual address are used in the payload mapping.
Table 8-3 DVMOp and SnpDVMOp request payloads using a 49-bit VA and 44-bit PA
Part 1 Part 2
Part Num 1 [3] - [3] [3] Must be 0b0 for the Request and Snoop Part 1.
Must be 0b1 for Snoop Part 2.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 8-175
ID061214 Confidential
8 DVM Operations
8.2 DVM Operation types
Table 8-3 DVMOp and SnpDVMOp request payloads using a 49-bit VA and 44-bit PA (continued)
Part 1 Part 2
8-176 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
8 DVM Operations
8.3 DVM Operations
Table 8-4 shows the values for the Part Num field in all supported DVM Operations.
Part 1 Part 2
[3] Part Num 0b0 0b0 0b1 Not utilized in the Request, must be
set to zero.
Addr Operation
0b000 0b10 0b10 0b0 0b0 0b0 0b00a 0b0 Secure TLB Invalidate all
All Guest OS Secure Ignore Ignore Ignore Ignore
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 8-177
ID061214 Confidential
8 DVM Operations
8.3 DVM Operations
Addr Operation
0b000 0b10 0b11 0b0 0b0 0b0 0b00a 0b0 All Guest OS TLB Invalidate
All Guest OS Non-secure Ignore Ignore Ignore Ignore all
0b000 0b11 0b11 0b0 0b0 0b0 0b00a 0b0 Hypervisor TLB Invalidate all
Hypervisor Non-secure Ignore Ignore Ignore Ignore
0b01 0b10 0b0 0b0 0b0 0b00a 0b1 EL3 TLB Invalidate by VA
EL3 Secure Ignore Ignore Ignore Match
8-178 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
8 DVM Operations
8.3 DVM Operations
Table 8-6 shows the fixed value fields in the Branch Predictor Invalidate operation.
Bits Field
Note
The use of Branch Predictor Invalidate with a 16-bit ASID is not supported.
Addr Operation
[13:11] [4]
DVMOp type VA valid
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 8-179
ID061214 Confidential
8 DVM Operations
8.3 DVM Operations
Table 8-8 shows the fixed value fields in the Physical Instruction Cache Invalidate operation.
Bits Field
Table 8-9 shows the operations supported by Physical Instruction Cache Invalidate.
Note
When Virtual Index is 0b11, then VA[19:12] and VA[27:20], at Addr[29:22] and Addr[21:14] respectively, are used
as part of the Physical Address. Addr[37:30] are not used, and are Don’t care values.
0b010 0b10 0b00 0b0 Secure Physical Address Cache Invalidate all
Secure Ignore
0b00 0b1 Secure Physical Address Cache Invalidate by PA without Virtual Index
Match
0b11 0b1 Secure Physical Address Cache Invalidate by PA with Virtual Index
Match
8-180 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
8 DVM Operations
8.3 DVM Operations
Table 8-10 shows the fixed value fields in the Virtual Instruction Cache Invalidate operation.
Bits Field
Table 8-11 shows the operations supported by Virtual Instruction Cache Invalidate.
Addr Operation
0b011 0b00 0b00 0b0 0b0 0b0 Invalidate all. Applies to Secure and Non-secure.
Ignore Ignore Ignore Applies to Hypervisor and all Guest OS.
0b10 0b10 0b1 0b0 0b1 Secure Invalidate by ASID and VA.
Match Ignore Match
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 8-181
ID061214 Confidential
8 DVM Operations
8.3 DVM Operations
8.3.5 Synchronization
This section shows the DVMSync Operation.
Table 8-12 shows the fixed value fields in the Sync operation.
Bits Field
8-182 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 9
Error Handling
This chapter describes the error handling requirements. It contains the following sections:
• Error types on page 9-184.
• Error response fields on page 9-185.
• Errors and transaction structure on page 9-186.
• Error response use by transaction type on page 9-187.
• Hardware and software error categories on page 9-191.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 9-183
ID061214 Confidential
9 Error Handling
9.1 Error types
Data Error Used when the correct address location has been accessed, but an error is detected within
the data. Typically, this is used when data corruption has been detected by ECC or a parity
check.
Non-data Error Used when an error is detected that is not related to data corruption. This specification does
not define all cases when this error type is reported. Typically, this error type is reported for:
• An attempt to access a location that does not exist.
• An illegal access, such as a write to a read only location.
• An attempt to use a transaction type that is not supported.
9-184 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
9 Error Handling
9.2 Error response fields
Table 9-1 shows the encoding of the RespErr field. See Responses to exclusive requests on page 6-146 for more
details on the Exclusive Okay response.
0b01 EXOK Exclusive Okay. Indicates that either the read or write portion of an
exclusive access has been successful.
The mixing of OK, DERR, and NDERR responses within a single transaction is permitted.
The mixing of EXOK, DERR and NDERR responses within a single transaction is permitted.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 9-185
ID061214 Confidential
9 Error Handling
9.3 Errors and transaction structure
If the transaction contains data packets then the source of the data packets is required to send the correct number of
packets, but the data values are not required to be valid.
The Resp field gives the cache states associated with a transaction and can be influenced by an error condition. See
Response types on page 4-103 for more details on the legal Resp field values. If a response to a transaction does not
have a legal cache state, then the RespErr field must indicate a Data Error or Non-data Error for all data packets.
The Resp field in a response must have the same value for every packet of a data message regardless of whether or
not there is an error condition.
9-186 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
9 Error Handling
9.4 Error response use by transaction type
The tables that follow show the Data and Response packets associated with the following transaction types:
• Read Transactions.
• Dataless transactions on page 9-188.
• Write transactions on page 9-188
• Other transactions on page 9-189
• Snoop transactions on page 9-190
ReadNoSnp OK Y Y Y Y OK
ReadOnce OK Y N Y Y OK
ReadClean - Y Y Y Y OK
ReadShared
ReadUnique - Y N Y Y OK
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 9-187
ID061214 Confidential
9 Error Handling
9.4 Error response use by transaction type
Comp CompAck
CleanUnique Y Y Y Y OK
CleanShared Y N Y Y OK
CleanInvalid
MakeInvalid
MakeUnique
Evict Y N N Y -
For a Write transaction an error can be signalled from the Completer back to the Requester using either the
combined CompDBIDResp or using the Comp response. It is permitted for the Completer to signal an error even
before it has observed the WriteData for the transaction and this can occur when the processing of the transaction,
such as the cache lookup, encounters a data corruption error.
Table 9-4 Write transaction response packets legal RespErr field values
WriteNoSnp OK Y Y Y Y Y Y Y Y -
WriteUnique OK Y N Y Y Y N Y Y OK
WriteBack - - - - - Y N Y Y -
WriteClean
WriteEvict
9-188 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
9 Error Handling
9.4 Error response use by transaction type
A Requester that detects an error in the write data to be sent can include an error indication with the write data
packet. This indicates that the data value is known to be corrupt.
Table 9-5 Write transaction data packets legal RespErr field values
WriteData
WriteNoSnp Y N Y N
WriteUnique Y N Y N
WriteBack Y N Y N
WriteClean
WriteEvict
Table 9-6 Barrier transaction response packet legal RespErr field value
Comp
EOBarrier OK
ECBarrier
A DVMOp transaction can include a Non-data Error in the Comp response. The interconnect must consolidate error
responses from all the snoop responses for a DVMOp and include a single error response in the final Comp message
to the Requester. DBIDResp and WriteData packets must only use the OK response.
DVMOp OK OK Y N N Y
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 9-189
ID061214 Confidential
9 Error Handling
9.4 Error response use by transaction type
Table 9-8
SnpResp SnpRespData
SnpOnce Y N N Y Y N Y N
SnpClean
SnpShared
SnpUnique
SnpCleanShared
SnpCleanInvalid
SnpMakeInvalid Y N N Y - - - -
SnpDVMOp
9-190 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
9 Error Handling
9.5 Hardware and software error categories
A software based error can cause a loss of coherency and the corruption of data values. This specification requires
that the system does not deadlock for a software based error, and that transactions always progress through a system
in a timely manner.
A software based error, for an access within one 4KB memory region, must not cause data corruption within a
different 4KB memory region.
For locations held in Normal memory, the use of appropriate barriers and software cache maintenance can be used
to return memory locations to a defined state.
When accessing a peripheral device the correct operation of the peripheral cannot be guaranteed. The only
requirement is that the peripheral continues to respond to transactions in a protocol compliant manner. The sequence
of events that might be required to return a peripheral device that has been accessed incorrectly to a known working
state is IMPLEMENTATION DEFINED.
Warning
If a hardware based error occurs then recovery from the error is not guaranteed. The system might crash, lock-up,
or suffer some other non-recoverable failure.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 9-191
ID061214 Confidential
9 Error Handling
9.5 Hardware and software error categories
9-192 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 10
Quality of Service
This chapter describes the mechanisms in the CHI protocol to support Quality of Service (QoS). It contains the
following sections:
• Overview on page 10-194.
• QoS priority value on page 10-195.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 10-193
ID061214 Confidential
10 Quality of Service
10.1 Overview
10.1 Overview
A system might utilize a QoS scheme to achieve:
• A guaranteed maximum latency for transactions in a particular stream.
• Minimum bandwidth guarantees for a stream of requests.
• Best effort value of bandwidth and latency provided to requests of a particular stream.
The low latency, or guaranteed throughput requirements, required to meet system QoS demands are primarily the
responsibility of the transaction end points with support from the intermediate interconnect. The protocol supports
this by defining a QoS priority value for packets and controlling request flow using a defined credit mechanism.
10-194 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
10 Quality of Service
10.2 QoS priority value
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 10-195
ID061214 Confidential
10 Quality of Service
10.3 Repeating a transaction with higher QoS value
In this situation, if one of the transactions receives a RetryAck response, then it is permitted to cancel the transaction
and return the credit. See Credit Return on page 2-79.
10-196 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 11
Link Layer
This chapter describes the Link layer that provides a streamlined mechanism for packet based communication
between nodes and the interconnect across links. It contains the following sections:
• Introduction on page 11-198
• Links on page 11-199.
• Flits on page 11-200.
• Channels on page 11-201.
• Port on page 11-203.
• Node interface definitions on page 11-204.
• Channel interface signals on page 11-207.
• Flit packet definitions on page 11-210.
• Protocol flit fields on page 11-215.
• Link flit on page 11-227.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-197
ID061214 Confidential
11 Link Layer
11.1 Introduction
11.1 Introduction
The Link layer provides a streamlined mechanism for packet based communication between nodes and the
interconnect.
Tx Rx Tx Rx Tx Rx
Interconnect Links
Tx Rx Tx Rx Tx Rx
Rx Tx Rx Tx Rx Tx
Node 4 Node 5 Node 6
11-198 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.2 Links
11.2 Links
Flit communication occurs between a transmitter and a receiver pair.
Two-way communication between a node and the interconnect requires a pair of links. Figure 11-2 shows the link
requirements.
Node Interconnect
Transmitter Receiver
Link 1
(TX) (RX)
Receiver Transmitter
Link 2
(RX) (TX)
The link used by a receiver to receive packets is defined as the inbound link.
Figure 11-3 shows the outbound and inbound links at a node. The interface at the interconnect has a complementary
pair of links.
Node
Transmitter
Outbound Link
(TX)
Receiver
Inbound Link
(RX)
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-199
ID061214 Confidential
11 Link Layer
11.3 Flits
11.3 Flits
A flit is the basic unit of transfer in the Link layer.
Packets are formatted into flits and transmitted across a link. There are two types of flits:
Protocol flit A Protocol flit carries a protocol packet in its payload. In this specification, every protocol packet
is mapped into exactly one protocol flit.
Link flit A Link flit carries messages associated with link maintenance. For example, a transmitter uses a
Link flit to return a Link layer Credit, also referred to as an L-Credit, to the receiver during a link
deactivation sequence.
Link flits originate at a link transmitter and terminate at the link receiver connected at the other side
of the link.
11-200 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.4 Channels
11.4 Channels
In this specification, the Link layer provides a set of generic channels for flit communication.
The generic channel is used to determine the flit format that is used and, in some cases, this can be used on both an
inbound and outbound channel.
Table 11-1 shows the generic channels, and the mapping onto channels on the RN and SN components.
REQ The request channel transfers flits associated All Requests TXREQ RXREQ
Request with request messages such as Read and
Write Requests. See REQ channel on
page 11-207.
RSP The response channel transfers flits Responses from the Completer RXRSP TXRSP
Response associated with response messages that do
not have a data payload such as write Snoop Response and Completion TXRSP -
completion messages. See RSP channel on Acknowledge
page 11-207.
SNP The snoop channel transfers flits associated All Snoop requests RXSNP -
Snoop with Snoop and SnpDVMOp Request
messages. See SNP channel on page 11-208.
DAT The data channel transfers flits associated Write data, and snoop data for an RN TXDAT RXDAT
Data with protocol messages that have a data
payload such as read completion and write Read data RXDAT TXDAT
data messages. See DAT channel on
page 11-209.
For RN:
• An RN is permitted to wait for forward progress on the outbound REQ channel, before making forward
progress on the inbound SNP channel.
• An RN is permitted to wait for forward progress on the outbound RSP channel before making forward
progress on the inbound SNP channel.
• An RN is permitted to wait for forward progress on the outbound DAT channel before making forward
progress on the inbound SNP channel.
• An RN must make forward progress on the inbound RSP channel without requiring forward progress on any
other channel.
• An RN must make forward progress on the inbound DAT channel without requiring forward progress on any
other channel.
Note
The requirement that an RN must make forward progress on the inbound RSP and DAT channel, without requiring
forward progress on any other channel, means that an RN must be able to accept all Comp and CompData responses
for outstanding transactions without sending any CompAck responses.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-201
ID061214 Confidential
11 Link Layer
11.4 Channels
For SN:
• An SN is permitted to wait for forward progress on the outbound RSP channel before making forward
progress on the inbound REQ channel.
• An SN must make forward progress on the inbound REQ channel without requiring forward progress on the
outbound DAT channel.
• An SN must make forward progress on the inbound DAT channel without requiring forward progress on any
other channel.
11-202 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.5 Port
11.5 Port
A Port is defined as the set of all links at the interface of a node.
Figure 11-4 shows the relationship between links, channels, and port. See Node interface definitions on page 11-204
for the specific node requirements, See Channel interface signals on page 11-207, and Chapter 12 Link Handshake
for signal details.
Port
RN-F
TXSACTIVE
RXSACTIVE
Outbound Link
TXLINKACTIVEREQ
TXLINKACTIVEACK
REQ channel
TXREQFLITPEND
TXREQFLITV
TXREQFLIT
TXREQLCRDV
TX
RSP channel
TXRSPFLITPEND
TXRSPFLITV
TXRSPFLIT
TXRSPLCRDV
DAT channel
TXDATFLITPEND
TXDATFLITV
Inbound Link TXDATFLIT
TXDATLCRDV
RXLINKACTIVEREQ
RXLINKACTIVEACK
RSP channel
RXRSPFLITPEND
RXRSPFLITV
RXRSPFLIT
RXRSPLCRDV
RX
DAT channel
RXDATFLITPEND
RXDATFLITV
RXDATFLIT
RXDATLCRDV
SNP channel
RXSNPFLITPEND
RXSNPFLITV
RXSNPFLIT
RXSNPLCRDV
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-203
ID061214 Confidential
11 Link Layer
11.6 Node interface definitions
Note
The LINKACTIVE interface pins and signals used by each node for link management are described in Chapter 12
Link Handshake.
RN-F
The RN-F interface uses all channels and is used by a fully coherent Requester such as a core or cluster. Figure 11-5
shows the RN-F interface.
ICN
RN-F
TXREQ REQ RXREQ
RXRSP RSP TXRSP
RXDAT DAT TXDAT
RXSNP SNP TXSNP
TXRSP RSP RXRSP
TXDAT DAT RXDAT
11-204 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.6 Node interface definitions
RN-D
The RN-D interface uses all channels and is used by an IO coherent node that processes DVM messages. Use of the
SNP channel is limited to DVM data transfers. See DVM transaction flow on page 8-166 for details. Figure 11-6
shows the RN-D interface.
ICN
RN-D
TXREQ REQ RXREQ
RXRSP RSP TXRSP
RXDAT DAT TXDAT
RXSNP SNP(DVM) TXSNP
TXRSP RSP RXRSP
TXDAT DAT RXDAT
RN-I
The RN-I interface uses all channels, with the exception of the SNP channel, and is used by an IO coherent Request
Node such as a GPU or IO bridge. A SNP channel is not required because an RN-I node does not include a
hardware-coherent cache or TLB. Figure 11-7 shows the RN-I interface.
ICN
RN-I
TXREQ REQ RXREQ
RXRSP RSP TXRSP
RXDAT DAT TXDAT
TXRSP RSP RXRSP
TXDAT DAT RXDAT
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-205
ID061214 Confidential
11 Link Layer
11.6 Node interface definitions
ICN
SN-F - SN-I
11-206 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.7 Channel interface signals
Transmitter Receiver
TXREQFLITPEND REQFLITPEND RXREQFLITPEND
TXREQFLITV REQFLITV RXREQFLITV
TXREQFLIT REQFLIT[(r-1):0] RXREQFLIT
Signal Description
REQFLITPEND Request Flit Pending. Early indication that a request flit might be transmitted in the following
cycle. See Flit level clock gating on page 12-233.
REQFLITV Request Flit Valid. The transmitter sets this signal HIGH to indicate when REQFLIT[(r-1):0] is
valid.
REQFLIT[(r-1):0] Request Flit. See Request flit on page 11-210 for a description of the request flit format.
REQLCRDV Request L-Credit Valid. The receiver sets this signal HIGH to return a request channel L-Credit to
a transmitter. See L-Credit flow control on page 12-231.
Transmitter Receiver
TXRSPFLITPEND RSPFLITPEND RXRSPFLITPEND
TXRSPFLITV RSPFLITV RXRSPFLITV
TXRSPFLIT RSPFLIT[44:0] RXRSPFLIT
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-207
ID061214 Confidential
11 Link Layer
11.7 Channel interface signals
Signal Description
RSPFLITPEND Response Flit Pending. Early indication that a response flit might be transmitted in the following
cycle. See Flit level clock gating on page 12-233.
RSPFLITV Response Flit Valid. The transmitter sets this signal HIGH to indicate when RSPFLIT[44:0] is
valid.
RSPFLIT[44:0] Response Flit. See Response flit on page 11-211 for a description of the response flit format.
RSPLCRDV Response L-Credit Valid. The receiver sets this signal HIGH to return a response channel L-Credit
to a transmitter. See L-Credit flow control on page 12-231.
Transmitter Receiver
TXSNPFLITPEND SNPFLITPEND RXSNPFLITPEND
TXSNPFLITV SNPFLITV RXSNPFLITV
TXSNPFLIT SNPFLIT[64:0] RXSNPFLIT
Signal Description
SNPFLITPEND Snoop Flit Pending. Early indication that a snoop flit might be transmitted in the following cycle.
See Flit level clock gating on page 12-233.
SNPFLITV Snoop Flit Valid. The transmitter sets this signal HIGH to indicate when SNPFLIT[64:0] is valid.
SNPFLIT[64:0] Snoop Flit. See Snoop flit on page 11-212 for a description of the snoop flit format.
SNPLCRDV Snoop L-Credit Valid. The receiver sets this signal HIGH to return a snoop channel L-Credit to a
transmitter. See L-Credit flow control on page 12-231.
11-208 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.7 Channel interface signals
Transmitter Receiver
TXDATFLITPEND DATFLITPEND RXDATFLITPEND
TXDATFLITV DATFLITV RXDATFLITV
TXDATFLIT DATFLIT[(d-1):0] RXDATFLIT
Signal Description
DATFLITPEND Data Flit Pending. Early indication that a data flit might be transmitted in the following cycle. See
Flit level clock gating on page 12-233.
DATFLITV Data Flit Valid. The transmitter sets this signal HIGH to indicate when DATFLIT[(d–1):0] is
valid.
DATFLIT[(d-1):0] Data Flit. See Data flit on page 11-213 for a description of the data flit format.
DATLCRDV Data L-Credit Valid. The receiver sets this signal HIGH to return a data channel L-Credit to a
transmitter. See L-Credit flow control on page 12-231.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-209
ID061214 Confidential
11 Link Layer
11.8 Flit packet definitions
The value of r, the Request flit width, depends on the supported RSVDC bus width y.
REQFLIT[(r-1):0] format
QoS 4 [3:0]
TgtID 7 [10:4]
SrcID 7 [17:11]
TxnID 8 [25:18]
Opcode 5 [30:26]
Size 3 [33:31]
Addr 44 [77:34]
NS 1 [78]
LikelyShared 1 [79]
AllowRetry 1 [80]
Order 2 [82:81]
PCrdType 2 [84:83]
MemAttr 4 [88:85]
SnpAttr 2 [90:89]
LPID 3 [93:91]
Excl 1 [94]
ExpCompAck 1 [95]
11-210 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.8 Flit packet definitions
REQFLIT[(r-1):0] format
RSVDC y=0 -
y=4 [99:96]
y=8 [103:96]
y = 12 [107:96]
y = 16 [111:96]
y = 24 [119:96]
y = 32 [127:96]
RSPFLIT[44:0] format
QoS 4 [3:0]
TgtID 7 [10:4]
SrcID 7 [17:11]
TxnID 8 [25:18]
Opcode 4 [29:26]
RespErr 2 [31:30]
Resp 3 [34:32]
DBID 8 [42:35]
PCrdType 2 [44:43]
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-211
ID061214 Confidential
11 Link Layer
11.8 Flit packet definitions
SNPFLIT[64:0] format
QoS 4 [3:0]
SrcID 7 [10:4]
TxnID 8 [18:11]
Opcode 4 [22:19]
Addr[43:3] 41 [63:23]
NS 1 [64]
11-212 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.8 Flit packet definitions
The data channel interface supports a 128-bit, 256-bit, and 512-bit data bus width. There are three data flit formats
defined, one for each of the three data bus widths supported at the data channel interface.
The value of d, the Data flit width, depends on the supported RSVDC bus width y, plus the supported Data bus
width n.
DATFLIT[d-1:0] format
QoS 4 [3:0]
TgtID 7 [10:4]
SrcID 7 [17:11]
TxnID 8 [25:18]
Opcode 3 [28:26]
RespErr 2 [30:29]
Resp 3 [33:31]
DBID 8 [41:34]
CCID 2 [43:42]
DataID 2 [45:44]
RSVDC y=0 -
y=4 [49:46]
y=8 [53:46]
y = 12 [57:46]
y = 16 [61:46]
y = 24 [69:46]
y = 32 [77:46]
BE 16 [(61+y):(46+y)]
BE 32 [(71+y):(46+y)]
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-213
ID061214 Confidential
11 Link Layer
11.8 Flit packet definitions
DATFLIT[d-1:0] format
BE 64 [(109+y):(46+y)]
11-214 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.9 Protocol flit fields
The following sections describe the encoding of the Protocol flit fields:
• QoS
• TgtID
• SrcID
• TxnID on page 11-216
• Opcode on page 11-216
• Size on page 11-219
• Addr on page 11-219
• NS on page 11-219
• LikelyShared on page 11-220
• AllowRetry on page 11-220
• Order on page 11-220
• PCrdType on page 11-221
• MemAttr on page 11-221
• SnpAttr on page 11-222
• LPID on page 11-222
• Excl on page 11-222
• ExpCompAck on page 11-222
• RespErr on page 11-223
• Resp on page 11-224
• DBID on page 11-225
• CCID on page 11-225
• DataID on page 11-225.
11.9.1 QoS
Quality of Service priority level. Ascending values of QoS indicate higher priority levels. See Chapter 10 Quality
of Service for more information.
11.9.2 TgtID
Target Identifier associated with the message. The unique 7-bit physical node ID of the component to which the
message is targeted. This is used by the interconnect to determine the port to which the message is routed. See
Transaction identifier fields on page 2-50.
11.9.3 SrcID
Source Identifier associated with the message. The unique 7-bit physical node ID of the component from which the
message is sent. This is used by the interconnect to determine the port from which the message has been routed. See
Transaction identifier fields on page 2-50.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-215
ID061214 Confidential
11 Link Layer
11.9 Protocol flit fields
11.9.4 TxnID
Transaction Identifier associated with the message. Every new transaction from a given source node, except a link
flit, has a unique 8-bit transaction ID. See Transaction identifier fields on page 2-50.
Link flits do not have a unique ID. Table 11-10 shows the link flit TxnID field value encodings.
TxnID Description
11.9.5 Opcode
Specifies the operation to be carried out. The Opcode encodings are specific to each channel. See:
• REQ channel opcodes.
• RSP channel opcodes on page 11-217.
• SNP channel opcodes on page 11-218.
• DAT channel opcodes on page 11-218.
0x00 ReqLCrdReturn
0x01 ReadShared
0x02 ReadClean
0x03 ReadOnce
0x04 ReadNoSnp
0x05 PCrdReturn
0x06 Reserved
0x07 ReadUnique
0x08 CleanShared
0x09 CleanInvalid
0x0A MakeInvalid
0x0B CleanUnique
0x0C MakeUnique
0x0D Evict
0x0E EOBarrier
0x0F ECBarrier
11-216 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.9 Protocol flit fields
0x14 DVMOp
0x15 WriteEvictFull
0x16 WriteCleanPtl
0x17 WriteCleanFull
0x18 WriteUniquePtl
0x19 WriteUniqueFull
0x1A WriteBackPtl
0x1B WriteBackFull
0x1C WriteNoSnpPtl
0x1D WriteNoSnpFull
0x0 RespLCrdReturn
0x1 SnpResp
0x2 CompAck
0x3 RetryAck
0x4 Comp
0x5 CompDBIDResp
0x6 DBIDResp
0x7 PCrdGrant
0x8 ReadReceipt
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-217
ID061214 Confidential
11 Link Layer
11.9 Protocol flit fields
0x0 SnpLCrdReturn
0x1 SnpShared
0x2 SnpClean
0x3 SnpOnce
0x7 SnpUnique
0x8 SnpCleanShared
0x9 SnpCleanInvalid
0xA SnpMakeInvalid
0xD SnpDVMOp
0x0 DataLCrdReturn
0x1 SnpRespData
0x2 CopyBackWrData
0x3 NonCopyBackWrData
0x4 CompData
0x5 SnpRespDataPtl
11-218 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.9 Protocol flit fields
11.9.6 Size
Size. Specifies the size of the data associated with the transaction. See Data size on page 2-70.
Size[2:0] Bytes
0b000 1
0b001 2
0b010 4
0b011 8
0b100 16
0b101 32
0b110 64
0b111 Reserved
11.9.7 Addr
Address. Specifies the address associated with the message:
• Request messages support a 44-bit address field, Addr[43:0].
• Snoop messages support a 41-bit address field, Addr[43:3]:
— Addr[43:6] specifies the aligned address of the 64-byte cache line.
— Addr[5:4] indicates the 16-byte critical chunk within the cache line. See Critical Chunk Identifier on
page 2-72.
— Addr[3] is relevant in SnpDVMOp, for all other snoop packets it must be set to zero.
11.9.8 NS
Non Secure. Indicates a Non-secure access or a Secure access.
NS Description
0 Secure access
1 Non-secure access
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-219
ID061214 Confidential
11 Link Layer
11.9 Protocol flit fields
11.9.9 LikelyShared
Likely Shared. Indicates whether the requested data is likely to be shared with another RN.
LikelyShared Description
11.9.10 AllowRetry
Allow Retry. Specifies that the request is being sent without a P-Credit and that the target can determine if a retry
response is given. See Transaction Retry mechanism on page 2-80.
AllowRetry Description
11.9.11 Order
Specifies the ordering requirements for a transaction. See Chapter 7 Ordering for more information on the ordering
requirements.
Order[1:0] Description
0b01 Reserved
11-220 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.9 Protocol flit fields
11.9.12 PCrdType
Protocol Credit Type. Indicates the type of credit being granted or returned. See Transaction Retry mechanism on
page 2-80.
PCrdType Description
11.9.13 MemAttr
Memory Attribute. Memory attribute associated with the transaction.
MemAttr[3:0] Description
[3] Allocate hint bit. Indicates whether or not the cache receiving the transaction is recommended
to allocate the transaction:
0 Recommend that it does not allocate.
1 Recommend that it allocates.
[2] Cacheable bit. Indicates a Cacheable transaction for which the cache, when present, must be
looked up in servicing the transaction:
0 Non-cacheable.
1 Cacheable.
[1] Device bit. Indicates if the memory type associated with the transaction is Device or Normal:
0 Normal memory type.
1 Device memory type.
[0] Early Write Acknowledge bit. Specifies the Early Write Acknowledge status for the
transaction:
0 Early Write Acknowledge not permitted.
1 Early Write Acknowledge permitted.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-221
ID061214 Confidential
11 Link Layer
11.9 Protocol flit fields
11.9.14 SnpAttr
Snoop Attribute. Specifies the snoop attributes associated with the transaction.
0b00 Non-snoopable
0b10 Reserved
11.9.15 LPID
Logical Processor Identifier. Used in conjunction with the SrcID to uniquely identify the logical processor that
generated the request. See Logical Processor Identifier on page 2-61.
11.9.16 Excl
Exclusive bit. Indicates that the corresponding transaction is an Exclusive type transaction. The Exclusive bit must
only be used with the following transactions:
• ReadShared.
• ReadClean.
• CleanUnique.
• ReadNoSnp.
• WriteNoSnp.
Excl Description
0 Normal transaction
1 Exclusive transaction
11.9.17 ExpCompAck
Expect CompAck bit. Indicates that the transaction will include a CompAck response.
ExpCompAck Description
11-222 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.9 Protocol flit fields
11.9.18 RSVDC
Reserved for customer use. Any value is valid in a Protocol flit. Propagation of this field through the interconnect
is IMPLEMENTATION DEFINED.
When connecting TX and RX flit interfaces that have mismatched RSVDC widths:
• The corresponding lower-order bits of the RSVDC field must be connected at each side of the interface.
• The higher-order RSVDC bits at the RX interface that do not have corresponding bits at the TX interface
must be tied LOW.
11.9.19 RespErr
Response Error. This field indicates the error status of the response.
RespErr[1:0] Description
0b01 Exclusive Okay. Indicates that either the read or write portion of an exclusive access was successful.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-223
ID061214 Confidential
11 Link Layer
11.9 Protocol flit fields
11.9.20 Resp
Response Status. The Resp field must have the same value in all data flits of a multi-flit data transfer.
Resp[2:0] Description
Resp[2] PassDirty. Indicates that the data included in the response message is Dirty with
respect to memory and that the responsibility of writing back the cache line is being
passed to the recipient of the response message.
0 Returned data is not Dirty.
1 Returned data is Dirty and the responsibility of writing back the
cache line is being passed on.
Resp[1:0] For snoop responses, this field indicates the final state of the snooped target node.
For completion responses, this field indicates the final state in the RN.
For write data responses, this field indicates the current state of the data in the RN.
Table 11-27 Valid Resp value encodings for different message types
0b001 SC
0b010 UC, UD
0b011 SD
0b100 I_PD
0b101 SC_PD
0b110 UC_PD
0b111 - Reserved
0b001 SC
0b010 UC
0b011 - Reserved
0b100 -
0b101 -
0b111 SD_PD
11-224 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.9 Protocol flit fields
Table 11-27 Valid Resp value encodings for different message types (continued)
WriteData responses 0b000 I State of the cache line at the RN-F when data is sent
0b001 SC
0b010 UC
0b011 - Reserved
0b100 -
0b101 -
0b110 UD_PD State of the cache line at the RN-F when data is sent
0b111 SD_PD
11.9.21 DBID
Data Buffer Identifier. The DBID is associated with a Write transaction. In response to Write requests, the DBID is
sent to the requester. See Transaction identifier fields on page 2-50.
11.9.22 CCID
Critical Chunk Identifier. The CCID indicates the critical 128-bit chunk of the data that is being requested.
0b00 Data[127:0]
0b01 Data[255:128]
0b10 Data[383:256]
0b11 Data[511:384]
11.9.23 DataID
Data Identifier. The DataID indicates the relative position of the data chunk within the 512-bit cache line that is
being transferred. See Data packetization on page 2-71 for the permitted DataID encodings for all supported data
widths and transaction sizes.
Table 11-29
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-225
ID061214 Confidential
11 Link Layer
11.9 Protocol flit fields
11.9.24 BE
Byte Enable. The BE field is defined for write data, DVM payload, and snoop response data transfers. For read
response data transfers, this field can have any value. It consists of a bit for each data byte in the DAT flit. See Byte
Enables on page 2-71.
11.9.25 Data
Data payload. The following data bus widths are supported:
• 128-bit.
• 256-bit.
• 512-bit.
11-226 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
11 Link Layer
11.10 Link flit
A link flit is identified by a zero value in the Opcode field. The TxnID field of the link flit is required to be zero.
The remaining fields are not used and can be any value. See TxnID on page 11-216 for the link flit type encoding.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 11-227
ID061214 Confidential
11 Link Layer
11.10 Link flit
11-228 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 12
Link Handshake
This chapter describes the link handshake requirements. It contains the following sections:
• Clock, and initialization on page 12-230.
• Link layer Credit on page 12-231.
• Low power signaling on page 12-232.
• Flit level clock gating on page 12-233.
• Interface activation and deactivation on page 12-234.
• Transmit and receive link Interaction on page 12-240.
• Protocol layer activity indication on page 12-246.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-229
ID061214 Confidential
12 Link Handshake
12.1 Clock, and initialization
12.1.1 Clock
This architecture specification does not define a specific clocking microarchitecture, but it is expected that all
devices, interconnects, etc. will include one or more clocks that can be relied upon by other Link layer functions
that require synchronous communication. A generic clock signal is referred to as CLK in the following sections,
where applicable.
12.1.2 Reset
This architecture specification does not define a specific reset microarchitecture, but it is expected that all devices,
interconnects, etc will include a specific reset deassertion event that can be relied upon by other Link layer
functions. A generic reset signal is referred to as RESETn in the following sections, where applicable.
12.1.3 Initialization
During reset the following interface signals must be deasserted by the component:
• TX***LCRDV.
• TX***FLITV.
• TXLINKACTIVEREQ and RXLINKACTIVEACK.
The earliest point after reset that it is permitted to begin driving these signals HIGH is at a rising CLK edge after
RESETn is HIGH.
12-230 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
12 Link Handshake
12.2 Link layer Credit
Each transfer of a flit from the transmitter to the receiver consumes one L-Credit.
The minimum number of L-Credits that a receiver can provide is one. The maximum number of L-Credits that a
receiver can provide is 15.
A receiver must guarantee that it can accept all the flits for which it has issued L-Credits.
When the link is active, the receiver must provide L-Credits in a timely manner without requiring any action on the
part of the transmitter.
Note
An L-Credit cannot be used in the cycle it is received.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-231
ID061214 Confidential
12 Link Handshake
12.3 Low power signaling
Link Activation
Link activation and deactivation is supported to permit the interface to be taken to a safe state, so
that both-sides of the interface can enter a low power state that permits them to be either clock-gated
or power-gated.
12-232 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
12 Link Handshake
12.4 Flit level clock gating
CLK
FLITPEND
FLITV
FLIT
flit flit
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-233
ID061214 Confidential
12 Link Handshake
12.5 Interface activation and deactivation
On exit from reset, or when moving to a full running operational state, the interface will start in an idle state and the
transfer of flits can only commence when L-Credits have been exchanged. L-Credits can only be exchanged when
the sender of the credits knows the receiver is ready to receive them.
A two signal, four phase, handshake mechanism is used. This two signal interface is used for all channels traveling
in the same direction, rather than being required for each individual channel. An entire interface uses a total of four
signals, two signals are used for all the transmit channels and two signals are used for all the receive channels.
This section describes the operation of the LINKACTIVEREQ and LINKACTIVEACK handshake pairs for all
channels moving in one direction. Transmit and receive link Interaction on page 12-240 describes the interaction
between the handshake pairs for the transmit channels and those for the receive channels.
For a single channel, or group of channels traveling in the same direction, Figure 12-2 shows the relationship
between the Payload, Credit, LINKACTIVEREQ and LINKACTIVEACK signals.
LINKACTIVEREQ
LINKACTIVEACK
Transmitter Receiver
Payload
Credit
As Figure 12-2 shows, during normal operation the transmitter, which sends the payload flits, requires a credit
before it can send a flit. A credit is passed from the receiver when it has resources available to accept a flit:
• On exit from reset, credits are held by the receiver and must be passed to the transmitter before flit transfer
can begin.
• During normal operation there is an ongoing exchange of flits and credits between the two sides of the
interface.
• Before entering a low power state the sending of payload flits must be stopped and all credits must be returned
to the receiver, this effectively returns the interface to the same state that it was at immediately after reset.
12-234 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
12 Link Handshake
12.5 Interface activation and deactivation
RUN There is an ongoing exchange of flits and credits between the two components.
STOP The interface is in a low power state and it is not operational. All credits are held by the
receiver and the transmitter is not permitted to send any flits.
ACTIVATE This state is used when moving from the STOP state to the RUN state.
DEACTIVATE This state is used when moving from the RUN state to the STOP state.
RUN and STOP are stable states and when one of these states is entered a channel can remain in this state for an
indefinite period of time.
DEACTIVATE and ACTIVATE are transient states and it is expected that when one of these states is entered a
channel will move to the next stable state in a relatively short period of time.
Note
The specification does not define a maximum period of time in a transient state, but it is expected that for any given
implementation it is deterministic.
The state is determined by the LINKACTIVEREQ and LINKACTIVEACK signals. Figure 12-3 shows the
relationship between the four states.
STOP
00 10
DEACTIVATE ACTIVATE
01 11
RUN
LINKACTIVEREQ LINKACTIVEACK
STOP 0 0
ACTIVATE 1 0
RUN 1 1
DEACTIVATE 0 1
Table 12-2 on page 12-236 describes the behavior of both the transmitter and the receiver of a single link for each
of the four states.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-235
ID061214 Confidential
12 Link Handshake
12.5 Interface activation and deactivation
STOP The transmitter has no credits and must not send any flits. The receiver is guaranteed not to receive any flits.
The transmitter is guaranteed not to receive any credits. The receiver must not send any credits.
The transmitter must assert LINKACTIVEREQ to
move to the ACTIVATE state if it has flits to send.
ACTIVATE The transmitter must not send any flits. The receiver is guaranteed not to receive any flits.
(ACT) The transmitter must be prepared to receive credits in this The receiver must not send any credits.
state, although it must not use them until in the RUN The ACTIVATE state is a transient state and the
state. receiver controls the move to the RUN state by
The transmitter remains in the ACTIVATE state while it asserting LINKACTIVEACK.
is waiting for the receiver to acknowledge the move to the The receiver must assert LINKACTIVEACK and
RUN state. move to the RUN state before sending credits. It is
Note permitted to assert LINKACTIVEACK and send a
credit in the same cycle.
The transmitter will only receive credits in the
ACTIVATE state when there is a race between the Note
receiver sending credits and asserting It can appear that a receiver has sent credits in the
LINKACTIVEACK to move to the RUN state. ACTIVATE state if there is a race between the receiver
sending credits and asserting LINKACTIVEACK to
move to the RUN state.
RUN The transmitter can receive credits. The receiver can receive flits corresponding to the
The transmitter can send flits when it has credits credits it has sent.
available. The receiver sends credits when it has resources
The transmitter deasserts LINKACTIVEREQ to exit available to accept further flits.
from this state if it wants to move to a low power state. The receiver must remain in the RUN state until it
observers the de-assertion of LINKACTIVEREQ.
DEACTIVATE The transmitter must return credits using Protocol flits or During this state the receiver stops sending credits and
(DEACT) L-Credit return flits. collects all returned credits.
It is recommended that the transmitter enters the The receiver must be prepared to receive flits, other
DEACTIVATE state only when it has no more Protocol than Link flits to return credits, in this state. This is not
flits to send. Therefore, it is expected that the transmitter expected, but can occur.
will return credits using only L-Credit return flits. The receiver is permitted to send credits when first
The transmitter must be prepared to continue receiving entering this state. However, it must have stopped
credits. For each additional credit received it must send sending credits and had all credits returned before
an L-Credit return flit to return the credit. exiting this state.
The transmitter remains in the DEACTIVATE state while The receiver will receive L-Credit return flits until all
it is waiting for the receiver to acknowledge the move to credits are returned.
the STOP state. At this point, it will be guaranteed to The receiver must wait for all credits to be returned
receive no more credits. before deasserting LINKACTIVEACK.
Note
The receiver will only receive flits in the
DEACTIVATE state when there is a race between the
transmitter sending the last remaining flits and
deasserting LINKACTIVEREQ to move to the
DEACTIVATE state.
12-236 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
12 Link Handshake
12.5 Interface activation and deactivation
Table 12-5 on page 12-244 summarizes the required behavior described in detail in Table 12-2 on page 12-236.
Table 12-3 Summary of behavior for each Request and Acknowledge state
Transmitter Receiver
DEACT Must not send flits, except for credit return flits. Must accept flits.
Must accept credits. Must stop sending credits.
Must return credit.
Race conditions
There are two situations where one side of the interface performs two actions at or around the same time:
• Changing the LINKACTIVEREQ or LINKACTIVEACK signal to change the state of the interface.
• Sending an associated credit or flit around the time of the state change.
• When the receiver is asserting LINKACTIVEACK, to move from ACTIVATE to RUN, it is also permitted
to start sending credits:
— A race can occur between the sending of a credit, which is expected in the new state, and the assertion
of the LINKACTIVEACK signal indicating the state change.
— This is acceptable because the transmitter is required to be able to accept the credit in the previous state
as well as in the new state.
— For the receiver, it is permitted to send a credit in the same cycle that LINKACTIVEACK is asserted.
— For the transmitter, it is required to accept a credit both before and after the assertion of
LINKACTIVEACK.
• When the transmitter is deasserting LINKACTIVEREQ, to move from RUN to DEACTIVATE, it must stop
sending flits, other than L-Credit return flits:
— A race can occur between the last flit sent, which is expected in the previous state, and the deassertion
of the LINKACTIVEREQ signal indicating the state change.
— This is acceptable because the receiver is required to be able to accept the flit in the next state, as well
as in the previous state.
— For the transmitter, it is permitted to send a flit in the last cycle that LINKACTIVEACK is asserted.
— For the receiver, it is required to accept flits both before and after the deassertion of
LINKACTIVEACK.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-237
ID061214 Confidential
12 Link Handshake
12.5 Interface activation and deactivation
If the state change requires a component to start sending flits or credits, then there is no defined limit on the time
taken for the component to start the new behavior. This new behavior will only occur in the new state.
If the state change requires a component to stop sending flits or credits, then the component is permitted to take
some time to respond. In this scenario, it is possible to see behavior when first entering a new state which is not
expected within that state.
The state change from RUN to DEACTIVATE is the point at which flits and credits stop being sent.
Flits are sent by the transmitter, which is also the component that determines the state change, and therefore the
transmitter can ensure flits are not sent after the state change. However, a race condition might still occur as
described in Race conditions on page 12-237.
Credits are sent by the receiver, but that component does not determine the state change. The receiver might take
some time to react to the state change and therefore it is possible for credits to be sent when first entering the
DEACTIVATE state.
The protocol requires that the receiver has stopped sending credits and has had all credits returned before it signals
the change from DEACTIVATE to STOP.
The transmitter itself can determine that a state change is needed. This can happen through a number of mechanisms.
The following examples are not exhaustive:
• The transmitter can determine that it has flits to send, so must move from STOP to RUN.
• The transmitter can determine that it has no activity to perform for a significant period of time, so can move
from RUN to STOP.
• The transmitter can observe an independent sideband signal that indicates it should move either from RUN
to STOP, or from STOP to RUN.
• The transmitter can determine that a transaction is not fully complete and therefore the channels should
remain in RUN state until all activity has completed.
• The transmitter can observe a state change on the channel, or set of channels, that are used in the opposite
direction. See Transmit and receive link Interaction on page 12-240.
12-238 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
12 Link Handshake
12.5 Interface activation and deactivation
LINKACTIVEREQ
LINKACTIVEACK
Payload flit
Credit
Transmitter Receiver
Payload flit
Credit
Payload flit
Credit
The rules regarding the relationship between the LINKACTIVEREQ and LINKACTIVEACK signals must be
applied appropriately across all channels:
• When a state change requires the transmitter to be able to accept credits it must be able to accept credits on
all channels.
• When a state change requires the receiver to be able to accept flits it must be able to accept flits on all
channels.
• When the sending of flits must stop before a state change the sending of flits must stop on all channels.
• When the sending of credits must stop before a state change the sending of flits must stop on all channels.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-239
ID061214 Confidential
12 Link Handshake
12.6 Transmit and receive link Interaction
12.6.1 Introduction
A single component has a number of different channels, some of which are inputs and some of which are outputs.
This specification requires that the activation and de-activation of the TXLINK and RXLINK are coordinated.
When the TXLINK and RXLINK are both in the stable STOP state:
• If the RXLINK moves to the ACTIVATE state, which is controlled by the component on the other side of the
interface, then it is required that the TXLINK also moves to the ACTIVATE state, in a timely manner.
• If a component moves the TXLINK to the ACTIVATE state, which it controls, then it can expect the
RXLINK to also move to the ACTIVATE state, in a timely manner.
When the TXLINK and RXLINK are both in the stable RUN state:
• If the RXLINK moves to the DEACTIVATE state, which is controlled by the component on the other side of
the interface, then it is required that the TXLINK also moves to the DEACTIVATE state, in a timely manner.
• If a component moves the TXLINK to the DEACTIVATE state, which it controls, then it can expect the
RXLINK to also move to the DEACTIVATE state, in a timely manner.
When the TXLINK and RXLINK are changing states, the rules about the sending and receiving of credits and flits
can be considered independently for each link.
12-240 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
12 Link Handshake
12.6 Transmit and receive link Interaction
Banned
TxStop Remote TxStop TxStop
TxStop RxStop Initiate RxAct
Output
RxRun+
Race
Local
TXREQ Initiate
Async
TxAct TxAct TxAct TxAct
TxAct RxStop RxAct RxRun
Input
RxDeact+
Race
Async Pe
rm
TXACK Input itt
Race ed
Banned
TxRun+ TxRun TxRun Remote TxRun TxRun
TxRun RxStop RxAct RxRun Initiate RxDeact
Output
RxStop+
Race
Banned Pe Pe
TXREQ rm Local rm
Output itt itt
ed Initiate ed
Race
Async
TxDeact+ TxDeact TxDeact TxDeact TxDeact
TxDeact RxAct RxRun RxDeact RxStop
Input
RxAct+
Race
Async Pe Pe
TXACK rm rm
Input itt itt
Race ed ed
Banned Pe
rm
TXREQ Output itt
Race ed
TxAct+ TxAct
TxAct RxDeact RxStop
Figure 12-5 shows the combined Tx and Rx state machines for a single component:
• For clarity, shortened state names and signal names are used.
• A green arrow represents a transition that the local agent can control.
• A blue arrow represents a transition that is under the control of the remote agent on the other side of the
interface.
• A black arrow represents a transition that is made when both the local and remote agents make a transition
at the same time.
• Around the edge of Figure 12-5 is an indication of the individual Tx and Rx states, the green and blue arrows
show which agent controls the transition. There is also an indication of the signal change that causes the state
transition.
• A vertical or horizontal arrow is a state change caused by just one signal change, that is, only the Rx state
machine or the Tx state machine changes state, not both.
• A diagonal arrow is a state change caused by two signals changing at the same time. If the diagonal arrow is
green or blue then the same agent is changing both signals.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-241
ID061214 Confidential
12 Link Handshake
12.6 Transmit and receive link Interaction
• There are a few cases where, by coincidence, a state change occurs due to two events, one on each side of the
link, occurring at the same time. This is always a diagonal path and is shown by a black arrow.
• The stub-lines show dead-end paths where an exit from a state is not permitted. The color of a stub-line
indicates which agent is responsible for ensuring that the path is not taken.
• The TxStop/RxStop and TxRun/RxRun states are expected to be stable states, and are typically the states
where the state machines stay for long periods of time. These states are highlighted with a bold outline. All
other states are considered transient states that are exited in a timely manner.
• The grey states, on the bottom right of Figure 12-5 on page 12-241, are replications of those on the top left.
They are shown to aid clarity and maintain the symmetry of the diagram.
• The yellow states can only be reached by observing a race between two input signals. The transition into these
states is labeled with Async Input Race. See Asynchronous race condition on page 12-244.
• The red states can only be reached by observing a race between two output signals. A race between two
outputs is not permitted at the edge of a component and therefore the transition into these states is labeled
with Banned Output Race. These states can only be observed at a midpoint between two components. See
Asynchronous race condition on page 12-244.
• The bold arrows are used to indicate the expected transitions around the state machine. These are described
in more detail in Expected transitions on page 12-243.
• The arrows labeled Permitted are state transactions that would not normally be expected, but they are
permitted by the protocol.
State naming
Figure 12-5 on page 12-241 shows the full set of states, including those that can only be reached through race
conditions. A more detailed discussion of race conditions can be found in Asynchronous race condition on
page 12-244.
There are two different TxStop/RxRun states, and two different TxRun/RxStop states. These states differ in how
they are reached and how it is permitted to exit from them. To differentiate between these states, a [+] suffix is used
to indicate which state machine, that is, Tx or Rx, is running ahead. For example:
• TxStop/RxRun+ indicates that the Tx state machine has remained in the previous Stop state, while the Rx
state machine has advanced to the next Run state.
• TxStop+/RxRun indicates that the Tx state machine has advanced to the next Stop state, while the Rx state
machine remains in the previous Run state.
12-242 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
12 Link Handshake
12.6 Transmit and receive link Interaction
Banned
TxStop Remote TxStop TxStop
TxStop RxStop Initiate RxAct
Output
RxRun+
Race
Local
TXREQ Initiate
Async
TxAct TxAct TxAct TxAct
TxAct RxStop RxAct RxRun
Input
RxDeact+
Race
Async Pe
rm
TXACK Input itt
Race ed
Banned
TxRun+ TxRun TxRun Remote TxRun TxRun
TxRun RxStop RxAct RxRun Initiate RxDeact
Output
RxStop+
Race
Banned Pe Pe
TXREQ rm Local rm
Output itt itt
ed Initiate ed
Race
Async
TxDeact+ TxDeact TxDeact TxDeact TxDeact
TxDeact RxAct RxRun RxDeact RxStop
Input
RxAct+
Race
Async Pe Pe
TXACK rm rm
Input itt itt
Race ed ed
Banned Pe
rm
TXREQ Output itt
Race ed
TxAct+ TxAct
TxAct RxDeact RxStop
The difference between the two routes moving from TxStop/RxStop to TxRun/RxRun states compared to moving
from TxRun/RxRun to TxStop/RxStop states is due to the requirement to return Link layer Credits (L-Credits) in
the latter case. The differences are detailed in the following sections.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-243
ID061214 Confidential
12 Link Handshake
12.6 Transmit and receive link Interaction
The annotations on the diagram arrows in Figure 12-6 on page 12-243 are:
Local Initiate Indicates that the local agent has initiated the process of leaving one stable state towards the
other stable state.
Remote Initiate Indicates that the remote agent on the other side of the interface has initiated the process of
leaving one stable state towards the other stable state.
There are four expected routes from a stable Run/Run to Stop/Stop state. Table 12-5 shows, in terms of the state
transitions, the four expected paths.
In the majority of cases, moving to the stable Run/Run or Stop/Stop state would be expected.
The most likely use case for wanting to move quickly out of one of the stable states is when an interface has started
to enter a low power state, but there is still some activity required. It might be that the low power state was entered
prematurely, or it might be that some new activity arose, by coincidence, while the low power state was being
entered. In this use case, it is desirable to be able to move back to the Run/Run state as quickly as possible.
• Output X must change after or at the same time as output Y, but it is not permitted to change before output Y.
In Figure 12-5 on page 12-241, these transitions are labeled as Banned Output Race and the resultant state is shown
in red.
It is possible to observe these states if monitoring the output signals at a point in the system where asynchronous
race conditions can result in two signals, that are asserted within the same cycle, are observed in different clock
cycles.
A component that is on the other side of the interface, and has the two signals as inputs, can see the state transition
if an asynchronous input race occurs. These transitions are labeled on the diagram as Aysnc Input Race and the
resultant state is shown in yellow.
12-244 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
12 Link Handshake
12.6 Transmit and receive link Interaction
For all input race conditions, a component that observes the input race is required to wait for both signals before
changing any output signals. This is represented in Figure 12-5 on page 12-241 by the fact that the only permitted
output transition from a race state is caused by the arrival of the other signal associated with the race condition.
Local
TXREQ Initiate
Pe
rm
TXACK itt
ed
Pe Pe
TXREQ rm Local rm
itt Initiate itt
ed ed
Pe Pe
TXACK rm rm
itt itt
ed ed
Pe
rm
TXREQ itt
ed
TxAct
TxAct RxStop
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-245
ID061214 Confidential
12 Link Handshake
12.7 Protocol layer activity indication
12.7.1 Introduction
SACTIVE signaling indicates that there are transactions in progress.
TXSACTIVE is an output signal that is asserted by an interface where there is a transaction either in progress or
about to start:
• TXSACTIVE must be asserted before or in the same cycle in which the first flit relating to a transaction is
sent.
• TXSACTIVE must remain asserted until after the last flit relating to all transactions is sent or received.
This means that the de-assertion of TXSACTIVE on an interface implies that the component has completed all
transactions in progress and does not need to send or receive any further flits.
A transaction that is given a RetryAck response is considered to be in progress, so TXSACTIVE must remain
asserted until the associated credit has been supplied and used or returned.
RXSACTIVE is an input signal which indicates that the other side of the interface has ongoing Protocol layer
activity. When RXSACTIVE is asserted a component must respond to Protocol layer activity in a timely manner.
• A component that asserts TXSACTIVE must also, if required, initiate the link activation sequence. It is not
permitted for a component to assert the TXSACTIVE signal and then wait for the other side of the interface
to initiate the link activation sequence.
• TXSACTIVE must remain asserted until after the last flit relating to all transactions is sent or received.
• It is permitted for TXSACTIVE to be deasserted while transmitting link flits as part of the link deactivation
sequence.
12-246 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
12 Link Handshake
12.7 Protocol layer activity indication
Figure 12-8 shows the requirements for TXSACTIVE assertion during the life of a transaction.
ReadUnique
ReadNoSnp
SnpUnique
SnpUnique
SnpResp_I CompData
SnpResp_I
CompData_UC
I->UC
CompAck
Interconnect
=TXSACTIVE
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-247
ID061214 Confidential
12 Link Handshake
12.7 Protocol layer activity indication
The type of flit that completes a transaction initiated by an RN will depend on both the transaction type and the
manner in which the transaction progresses. For example, a ReadNoSnp transaction might typically complete with
the receipt of the last CompData flit, but could equally complete with a ReadReceipt, if this is later than the last
CompData flit.
Table 12-6 shows the flit types that can complete a transaction.
An RN-F or RN-D component must also assert TXSACTIVE while a Snoop transaction is in progress.
TXSACTIVE must be asserted after receiving an initiating Snoop or SnpDVMOp flit, and no later than when its
first Response flit is sent. It must keep TXSACTIVE asserted until after the final completing flit is sent for all
Snoop transactions. The Response flit will be either SnpResp or SnpRespData.
For an RN-F or RN-D the TXSACTIVE output is the logical OR of the requirements for the Request interface and
the Snoop interface.
It must assert TXSACTIVE after receiving a transaction initiating flit and it must be asserted before or in the same
cycle in which its first Response flit is sent. It must keep TXSACTIVE asserted until after the final completing flit
is sent or received.
• On receiving a transaction initiating flit, it must be asserted before or in the same cycle in which its first
Response flit is sent. It must keep TXSACTIVE asserted until after the final completing flit is sent or
received.
• Before or in the same cycle in which its initiating Snoop or SnpDVMOp flit is sent. It must keep
TXSACTIVE asserted until after the final completing flit is sent, which will be either SnpResp or
SnpRespData.
12-248 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
12 Link Handshake
12.7 Protocol layer activity indication
Note
The deassertion of RXSACTIVE does not indicate that all Protocol layer activity has completed. It is possible for
a receiver to receive a Protocol flit, which corresponds to a transaction that was in progress while RXSACTIVE
was asserted, after RXSACTIVE is deasserted.
RXSACTIVE can be used in combination with a knowledge of the ongoing transactions, which will be indicated
by the components TXSACTIVE output, to indicate that no further transactions are required. This can be used to
control entry to a low power state.
LINKACTIVE state is an indication of the Link layer activity. The Link layer at a node, or interconnect, can be
considered inactive when its receiver is in TxStop state and its receiver is in RxStop state.
SACTIVE signaling is orthogonal to the LINKACTIVE states with one constraint as specified in RXSACTIVE
signal.
A node, or interconnect, should only enable higher level clock gating and low power optimizations when both its
Protocol and Link layers are inactive.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 12-249
ID061214 Confidential
12 Link Handshake
12.7 Protocol layer activity indication
12-250 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Chapter 13
Optional Interface Signals
This chapter describes the optional signals that provide flexibility in the mapping of domain and Snoopable
attributes. It contains the following sections:
• Broadcast signals on page 13-252.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. 13-251
ID061214 Confidential
13 Optional Interface Signals
13.1 Broadcast signals
• Flexibility in mapping the domain and Snoopable attributes provided by the domain partitioning components.
These signals are optional in CHI systems and are not part of the CHI protocol.
A CHI implementation that includes these signals at the interface must ensure that the signal values are stable when
reset is deasserted.
BROADCASTINNER
Asserted if the component at the interface must broadcast Inner Snoopable transactions.
BROADCASTOUTER
Asserted if the component at the interface must broadcast Outer Snoopable transactions.
BROADCASTOUTER must also be asserted when BROADCASTINNER is asserted.
BROADCASTCACHEMAINTENANCE
Asserted when CleanShared, CleanInvalid, or MakeInvalid transactions must be broadcast beyond
the interface for maintenance of downstream caches.
When this signal is deasserted, broadcasting of the Cache Maintenance Operation (CMO) beyond
the interface is determined, as Table 13-1 shows, by both:
• The domain attribute of the CMO.
• Assertion of the BROADCASTINNER and BROADCASTOUTER signals.
Table 13-1 shows the broadcast signal encodings using the following keys:
BI BROADCASTINNER.
BO BROADCASTOUTER.
BCM BROADCASTCACHEMAINTENANCE.
BI BO BCM
0 0 0 None.
13-252 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Appendix A
Message Field Mappings
This appendix shows the field mappings for the request, response, data, and snoop request messages. It contains the
following sections:
• Request message field mappings on page A-255.
• Response message field mappings on page A-256.
• Data message field mappings on page A-257.
• Snoop Request message field mappings on page A-258.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. A-253
ID061214 Confidential
Appendix A Message Field Mappings
Table A-1 shows the conventions used in the field mapping tables.
Symbol Description
A-254 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Appendix A Message Field Mappings
A.1 Request message field mappings
MemAttr
ExpCompAck
LikelyShared
AllowRetry
Cacheable
Request
PCrdType
Allocate
Opcode
SnpAttr
RSVDC
message
Device
TxnID
Order
SrcID
TgtID
Addr
EWA
LPID
Excl
Size
Qos
NS
ReqLCrdReturn X X X 0 Y X X X X X X X X X X X X X X X X
ReadShared Y Y Y Y Y 64B Y Y Y Y 0 Y Y 1 0 1 Y Y Y 1 Y
ReadClean Y Y Y Y Y 64B Y Y Y Y 0 Y Y 1 0 1 Y Y Y 1 Y
ReadOnce Y Y Y Y Y 64B Y Y 0 Y Y Y Y 1 0 1 Y Y 0 Y Y
ReadNoSnp Y Y Y Y Y Y Y Y 0 Y Y Y Y Y Y Y 00 Y Y Y Y
ReadUnique Y Y Y Y Y 64B Y Y 0 Y 0 Y Y 1 0 1 Y Y 0 1 Y
CleanShared Y Y Y Y Y 64B Y Y 0 Y 0 Y Y Y 0 1 Y Y 0 Y Y
CleanInvalid Y Y Y Y Y 64B Y Y 0 Y 0 Y Y Y 0 1 Y Y 0 Y Y
MakeInvalid Y Y Y Y Y 64B Y Y 0 Y 0 Y Y Y 0 1 Y Y 0 Y Y
CleanUnique Y Y Y Y Y 64B Y Y 0 Y 0 Y Y 1 0 1 Y Y Y 1 Y
MakeUnique Y Y Y Y Y 64B Y Y 0 Y 0 Y Y 1 0 1 Y Y 0 1 Y
Evict Y Y Y Y Y 64B Y Y 0 Y 0 Y 0 1 0 1 Y Y 0 0 Y
EOBarrier Y Y Y Y Y 0a 0a 0a 0a Y 0a Y 0a 0a 0a 0a 00a Y 0a 0 Y
ECBarrier Y Y Y Y Y 0a 0a 0a 0a Y 0a Y 0a 0a 0a 0a 00a Y 0a 0 Y
DVMOp Y Y Y Y Y 8B Yb 0a 0a Y 0a Y 0a 0a 0a 0a 00a Y 0a 0 Y
PCrdReturn Y Y Y 0a Y 0a 0a 0a 0a 0 0a Y 0a 0a 0a 0a 00a 0a 0a 0 Y
WriteEvictFull Y Y Y Y Y 64B Y Y Y Y 0 Y Y 1 0 1 Y Y 0 0 Y
WriteCleanPtl Y Y Y Y Y 64B Y Y 0 Y 0 Y Y 1 0 1 Y Y 0 0 Y
WriteCleanFull Y Y Y Y Y 64B Y Y Y Y 0 Y Y 1 0 1 Y Y 0 0 Y
WriteUniquePtl Y Y Y Y Y Y Y Y Y Y Y Y Y 1 0 1 Y Y 0 Y Y
WriteUniqueFull Y Y Y Y Y 64B Y Y Y Y Y Y Y 1 0 1 Y Y 0 Y Y
WriteBackPtl Y Y Y Y Y 64B Y Y 0 Y 0 Y Y 1 0 1 Y Y 0 0 Y
WriteBackFull Y Y Y Y Y 64B Y Y Y Y 0 Y Y 1 0 1 Y Y 0 0 Y
WriteNoSnpPtl Y Y Y Y Y Y Y Y 0 Y Y Y Y Y Y Y 00 Y Y 0 Y
WriteNoSnpFull Y Y Y Y Y 64B Y Y 0 Y Y Y Y Y Y Y 00 Y Y 0 Y
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. A-255
ID061214 Confidential
Appendix A Message Field Mappings
A.2 Response message field mappings
PCrdType
RespErr
Opcode
Response message
TxnID
SrcID
TgtID
Resp
DBID
QoS
RespLCrdReturn X X X 0 Y X X X X
SnpResp Y Y Y Y Y Y Y X 0a
CompAck Y Y Y Y Y 0 0a X 0a
RetryAck Y Y Y Y Y 0 0a X Y
Comp Y Y Y Y Y Y Y Y 0a
CompDBIDResp Y Y Y Y Y Y 0 Y 0a
DBIDResp Y Y Y Y Y 0 0a Y 0a
PCrdGrant Y Y Y 0a Y 0 0a 0a Y
ReadReceipt Y Y Y Y Y 0 0a X 0a
A-256 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Appendix A Message Field Mappings
A.3 Data message field mappings
RespErr
Opcode
RSVDC
DataID
TxnID
SrcID
Data Message
TgtID
Resp
DBID
CCID
Data
QoS
BE
DataLCrdReturn X X X 0 Y X X X X X X X X
SnpRespData Y Y Y Y Y Y Y Ya Y Y Y Y Y
CopyBackWrData Y Y Y Y Y Y Y Ya Y Y Y Y Y
NonCopyBackWrData Y Y Y Y Y Y Y Ya Yb Yb Y Y Y
CompData Y Y Y Y Y Y Y Y Y Y Y X Y
SnpRespDataPtl Y Y Y Y Y Y Y Ya Y Y Y Y Y
a. Must be zero or must be set to the TxnID of the originating request. For SnpRespData and SnpRespDataPtl the originating
request is the snoop request.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. A-257
ID061214 Confidential
Appendix A Message Field Mappings
A.4 Snoop Request message field mappings
Addr[43:3]
Opcode
Snoop Request Message
TxnID
SrcID
QoS
NS
SnpLCrdReturn X X 0 Y X X
SnpShared Y Y Y Y Y Y
SnpClean Y Y Y Y Y Y
SnpOnce Y Y Y Y Y Y
SnpUnique Y Y Y Y Y Y
SnpCleanShared Y Y Y Y Y Y
SnpCleanInvalid Y Y Y Y Y Y
SnpMakeInvalid Y Y Y Y Y Y
SnpDVMOp Y Y Y Y Yc 0a
A-258 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Appendix B
Communicating Nodes
This appendix specifies, for each packet type, the nodes that communicate using that packet type. It contains the
following sections:
• Request communicating nodes on page B-260.
• Snoop communicating nodes on page B-261.
• Response communicating nodes on page B-262.
• Data communicating nodes on page B-263.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. B-259
ID061214 Confidential
Appendix B Communicating Nodes
B.1 Request communicating nodes
For some Requests, both an expected target and a permitted target are given. The use of the permitted target can
occur in the case of an incorrect address decode. The permitted target must complete the transaction in a protocol
compliant manner, this might require the use of an error response.
Request From To
Expected Permitted
ICN(HN-F) SN-F
ICN(HN-I) SN-I
B-260 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Appendix B Communicating Nodes
B.2 Snoop communicating nodes
Snoop From To
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. B-261
ID061214 Confidential
Appendix B Communicating Nodes
B.3 Response communicating nodes
Response From To
SN-F ICN(HN-F)
SN-I ICN(HN-I)
SN-I ICN(HN-I)
B-262 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Appendix B Communicating Nodes
B.4 Data communicating nodes
For some Data, both an expected target and a permitted target are given. The use of the permitted target can occur
in the case of an incorrect address decode. The permitted target must complete the transaction in a protocol
compliant manner.
Data From To
Expected Permitted
SN-F ICN(HN-F) -
SN-I ICN(HN-I) -
ICN(HN-F) SN-F -
ICN(HN-I) SN-I -
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. B-263
ID061214 Confidential
Appendix B Communicating Nodes
B.4 Data communicating nodes
B-264 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Appendix C
Revisions
This appendix describes the technical changes between released issues of this specification.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. C-265
ID061214 Confidential
Appendix C Revisions
C-266 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Glossary
This glossary describes some of the technical terms used in AMBA 5 CHI documentation.
Aligned A data item stored at an address that is divisible by the highest power of 2 that divides into its size in bytes. Aligned
halfwords, words, and doublewords therefore have addresses that are divisible by 2, 4, and 8 respectively.
An aligned access is one where the address of the access is aligned to the size of each element of the access.
Blocking Describes an operation that prevents following actions from continuing until the operation completes.
Cache Any cache, buffer, or other storage structure that can hold a copy of the data value for a particular address location.
Cache line The basic unit of storage in a cache. Its size in words is always a power of two. A cache line must be aligned to the
size of the cache line.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. Glossary-267
ID061214 Confidential
Glossary
Channel A set of signals grouped together to communicate a particular set of messages between a transmitter and receiver
pair. For example Request channel is used to communicate request messages.
A channels consist of a set of information signals and a separate Valid and Credit signal to provide the channel
handshake mechanism.
Coherent Data accesses from a set of observers to a memory location are coherent accesses to that memory location by the
members of the set of observers are consistent with there being a single total order of all writes to that memory
location by all members of the set of observers.
Coherency granule
The minimum size of the block of memory affected by any coherency consideration. For example, an operation to
make two copies of an address coherent makes the two copies of a block of memory coherent, where that block of
memory is:
• At least the size of the coherency granule.
• Aligned to the size of the coherency granule.
Component A distinct functional unit that has at least one AMBA interface. Component can be used as a general term for master,
slave, peripheral, and interconnect components.
See also Interconnect component, Master component, Memory slave component, Peripheral slave component,
Slave component.
Deprecated Something that is present in the specification for backwards compatibility. Whenever possible you must avoid using
deprecated features. These features might not be present in future versions of the specification.
Downstream A transaction operates between a master component and one or more slave components, and can pass through one
or more intermediate components. At any intermediate component, for a given transaction, downstream means
between that component and a destination slave component, and includes the destination slave component.
Downstream and upstream are defined relative to the transaction as a whole, not relative to individual data flows
within the transaction.
Downstream Cache
See Downstream cache on page 1-21.
In a timely manner
See In a timely manner on page 1-22.
IMPLEMENTATION DEFINED
Behavior that is not defined by the architecture, but is defined and documented by individual implementations.
Glossary-268 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Glossary
IMPLEMENTATION SPECIFIC
Behavior that is not architecturally defined, and might not be documented by an individual implementation. Used
when there are a number of implementation options available and the option chosen does not affect software
compatibility.
IO Coherent node
See IO Coherent node on page 1-22.
Link A Link is the connection used for communicating between a transmitter and receiver pair.
Load The action of a master component reading the value held at a particular address location. For a processor, a load
occurs as the result of executing a particular instruction. Whether the load results in the master issuing a read
transaction depends on whether the accessed cache line is held in the local cache.
Main memory The memory that holds the data value of an address location when no cached copies of that location exist. For any
location, main memory can be out of date with respect to the cached copies of the location, but main memory is
updated with the most recent data value when no cached copies exist neither in the RNs nor in the Interconnect.
Main memory can be referred to as memory when the context makes the intended meaning clear.
Master component
A component that initiates transactions.
It is possible that a single component can act as both a master component and as a slave component. For example,
a Direct Memory Access (DMA) component can be a master component when it is initiating transactions to move
data, and a slave component when it is being programmed.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. Glossary-269
ID061214 Confidential
Glossary
Observer A processor or other master component, such as a peripheral device, that can generate reads from or writes to
memory.
Outstanding Request
A transaction is outstanding from the cycle that the Request is first issued until either:
• The transaction is fully completed, as determined by the return of all ReadReceipt, CompData, DBIDResp,
Comp, CompDBIDResp responses that are expected for the transaction.
Peer node A protocol node of the same type with reference to itself. For example, the peer node for a Request Node is another
Request Node.
Permission to store
A component has permission to store if it can perform a store to the associated cache line without informing any
other components or the interconnect.
Prefetching Prefetching refers to speculatively fetching instructions or data from the memory system. In particular, instruction
prefetching is the process of fetching instructions from memory before the instructions that precede them, in simple
sequential execution of the program, have finished executing. Prefetching an instruction does not mean that the
instruction has to be executed.
In this specification, references to instruction or data fetching apply also to prefetching, unless the context explicitly
indicates otherwise.
Protocol Credit See Protocol Credit on page 1-22.
Slave component
A component that receives transactions and responds to them.
It is possible that a single component can act as both a slave component and as a master component. For example,
a Direct Memory Access (DMA) component can be a slave component when it is being programmed and a master
component when it is initiating transactions to move data.
See also Master component, Memory slave component, Peripheral slave component.
Glossary-270 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214
Glossary
Snoop filter A snoop filter is able to track the cache lines that might be allocated within a master.
Speculative read
A transaction that a component issues when it might not need the transaction to be performed because it already has
a copy of the accessed cache line in its local cache. Typically, a speculative read is performed in parallel with a local
cache lookup. This gives lower latency than looking in the local cache first, and then issuing a read transaction only
if the required cache line is not found in the local cache.
Store The action of a master component changing the value held at a particular address location. For a processor, a store
occurs as the result of executing a particular instruction. Whether the store results in the master issuing a read or
write transaction depends on whether the accessed cache line is held in the local cache, and if it is in the local cache,
the state it is in.
Synchronization barrier
See Barrier.
See also System Memory Management Unit (SMMU), Translation table, Translation table walk.
Translation table
A table held in memory that defines the properties of memory areas of various sizes from 1KB.
Unaligned An unaligned access is an access where the address of the access is not aligned to the size of an element of the access.
ARM IHI 0050A Copyright © 2014 ARM. All rights reserved. Glossary-271
ID061214 Confidential
Glossary
Upstream A transaction operates between a master component and one or more slave components, and can pass through one
or more intermediate components. At any intermediate component, for a given transaction, upstream means
between that component and the originating master component, and includes the originating master component.
Downstream and upstream are defined relative to the transaction as a whole, not relative to individual data flows
within the transaction.
Write-Back cache
A cache in which, when a store is permitted to store, the data is only written to the cache. Data in the cache can
therefore be more up-to-date than data in main memory. Any such data is written back to next level cache or main
memory when the cache line is cleaned or re-allocated. Another common term for a Write-Back cache is a
Copy-Back cache.
Write-Invalidate protocol
See Write-Invalidate protocol on page 1-22.
Glossary-272 Copyright © 2014 ARM. All rights reserved. ARM IHI 0050A
Confidential ID061214