Apb Protocol
Apb Protocol
Protocol
Specification
1 Introduction
4 Operating States
Khánh
Kiệt
Nhựt
Thành
I. Introduction
AMBA:
• AMBA(advanced Microcontroller Bus Architecture) was introduced in 1996 and
designed by the famous chip manufacturing company - ARM. Currently, AMBA
has been and is a widely used bus architecture in SoC systems.
• AMBA has 5 versions, some protocol standards can be mentioned as: APB, AHB,
AXI, ACE,…
• Some characteristics of AMBA: flexibility, high performance, high reliability, low
cost, easy integration into system components.
APB:
• APB stands for (Advanced Peripheral Bus) which is an advanced peripheral
communication standard.
• APB is one of the bus standards of the AMBA family.
• Main features of APB:
Few communication signals.
Simple data transmission method.
Low resource cost to design.
Low power consumption.
Each read/write requires less than 2 clock cycles.
EX: APB protocol connection example:
II. Signal Descriptions
2 Write strobes .
7 Wake-up signaling
3 Read transfers
8 User
4 Error response signaling
• For read transfers, the Requester must drive all bits of PSTRB
LOW.
3.2.1 PSTRB presence and compatibility
• PSTRB is an optional signal. An APB peripheral might support a limited set of access
types, which must be documented for the programmer. This means that all
combinations of PSTRB presence might be compatible, if this document states that
sparse writes are not supported.
• The compatibility of PSTRB when connecting Requesters and Completers is
described inTable 3-1.
3.3 Read transfers
• PSLVERR indicates an error condition during APB transfers, which can occur
during both reads and writes. PSLVERR is valid only during the final cycle when
PSEL, PENABLE, and PREADY are high. For write errors, the state of the peripheral
may or may not be updated. For read errors, data may be invalid but is not
required to be driven to zero. Completers may or may not support PSLVERR, and
if unsupported, the signal should be tied low.
3.4.1 Write transfer
Figure 3-6 shows an example of a failing write transfer that completes with an
error.
3.4.2 Read transfer
• A read transfer can also complete with an error response, indicating that there is no
valid read data available.
Figure 3-7 shows a read transfer completing with an error response.
3.4.3 Mapping of PSLVERR
• When bridging:
+ From AXI to APB An APB error on PSLVERR is mapped
back to RRESP for reads and BRESP for writes.
+ From AHB to APB An APB error on PSLVERR is mapped
back to HRESP for reads and writes.
3.5 Protection unit
3.5 Protection unit support support
The RME adds Root and Realm physical address spaces into the Arm architecture.
These can be used in permission checks of APB transactions.
• The wake-up signal, PWAKEUP, is used to indicate any activity associated with
any APB interface. PWAKEUP provides a glitch-free signal that can be routed
to a clock controller, or similar component, to enable power and clocks to
connected components.
3.8 User signaling
• The users of APB protocols can encounter an application that requires the
addition of signaling that is not specified in the APB protocol. User signaling
defines a standard method of adding this signaling to a transaction, without
defining the signal usage.
• Generally, it is recommended that User signals are not used. The APB
protocol interface does not define the function of these signals, causing
interoperability problems if two components use the same User signals in
an incompatible way.
Configuration of interface
2
protection
V. Interface parity Parity check
3
protection
4 Error detection behavior
• .Odd Parity Requirement: An odd number of bits must be asserted across the
interface signal and the check signal.
• 8-Bit Limit: Covers no more than 8 bits of payload, with each parity bit
assuming up to three logic levels.
• Critical Control Signals: A single parity bit is defined as the inversion of the
original signal.
• Cycle Accuracy: Must be correctly driven in every cycle when the Check
Enable term is True.
• Full Coverage: Parity signals must cover all associated data bits, even if not
in use
• Missing Signals: Missing signals are assumed to be LOW; if no signals are
present, the check signal is omitted.
5.4 Error detection behavior
• Check signals are synchronous to PCLK and must be driven correctly every cycle
in which the Check Enable term is True.
THANKS
FOR
WATCHING