SlideShare a Scribd company logo
APB Protocol v 1.0
● Introduction
● Transfers
● Operating States
● Signal Descriptions
Conventions
This section describes the conventions that this
specification uses:
•Typographical
●
Timing diagrams
•Signals
Typographical
● This specification uses the following typographical conventions:
● Italic - Highlights important notes, introduces special
terminology,denotes internal cross-references, and citations.
● Bold - Highlights interface elements, such as menu names. Denotes
ARM processor signal names. Also used for terms in descriptive lists,
where appropriate.
● Monospace - Denotes text that you can enter at the keyboard, such as
commands, file and program names, and source code.
● Monospace - Denotes a permitted abbreviation for a command or
option. You can enter the underlined text instead of the full command
or option name.
●monospace italic - Denotes arguments to monospace text where the
argument is to be replaced by a specific value.
●monospace bold - denotes language keywords when used outside
example code.
●<and> - Angle brackets enclose replaceable terms for assembler syntax
where they appear in code or code fragments. They appear in normal font
in running text. For example:
● MRC p15, 0 <Rd>, <CRn>, <CRm>, <Opcode_2>
● The Opcode_2 value selects which register is accessed.
Timing diagrams
● The figure named Key to timing diagram conventions 
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.
Timing diagrams
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 and LOW for active-
LOW signals.
● Prefix P - Denotes AMBA 3 APB signals.
● Suffix n - Denotes AXI, AHB, and AMBA 3 APB reset
signals.
About the AMBA 3 APB
● The APB is part of the AMBA 3 protocol family. It provides a low
cost interface that is optimized for minimal power consumption and
reduced interface complexity.
● The APB interfaces to any peripherals that are low-bandwidth and do
not require the high performance of a pipelined bus interface. The
APB has unpipelined protocol.
● All signal transitions are only related to the rising edge of the clock to
enable the integration of APB peripherals easily into any design flow.
Every transfer takes at least two cycles.
● The APB can interface with the AMBA Advanced High-performance
Bus Lite (AHB-Lite) and AMBA Advanced Extensible Interface
(AXI). You can use it to provide access to the programmable control
registers of peripheral devices.
Changes for AMBA 3 APB Protocol
Specification v1.0
● This version includes:
● A ready signal, PREADY, to extend an APB
transfer.
● An error signal, PSLVERR, to indicate the failure of
a transfer.
Transfers
● Write transfers
● Two types of write transfer are described in this
section:
● With no wait states
● With wait states.
With no wait states
The write transfer starts with the address, write data, write signal
and select signal all changing after the rising edge of the clock.
The first clock cycle of the transfer is called the Setup phase. After
the following clock edge the enable signal is asserted, PENABLE,
and this indicates that the Access phase is taking place. The
address, data and control signals all remain valid throughout the
Access phase. The transfer completes at the end of this cycle.
The enable signal, PENABLE, is deasserted at the end of the
transfer. The select signal, PSELx, also goes LOW unless the
transfer is to be followed immediately by another
transfer to the same peripheral.
With wait states
● Figure shows how the PREADY signal from the slave can
extend the transfer. During an Access phase, when PENABLE is
HIGH, the transfer can be extended by driving PREADY LOW.
The following signals remain unchanged for the additional
cycles:
● address, PADDR
● write signal, PWRITE
● select signal, PSEL
● enable signal, PENABLE
● write data, PWDATA.
Write transfer with wait states
● PREADY can take any value when PENABLE is LOW.
This ensures that peripherals that have a fixed two cycle
access can tie PREADY HIGH.
● NOTE - It is recommended that the address and write
signals are not changed immediately after a transfer but
remain stable until another access occurs. This reduces
power consumption.
Read transfers
● Two types of read transfer are described in this
section:
● With no wait states
● With wait states.
With no wait states
Figure shows a read transfer. The timing of the address, write, select,
and enable signals are as described in Write transfers on page 2-2. The
slave must provide the data before the end of the read transfer
With wait states
● Figure shows how the PREADY signal can extend the transfer. The
transfer is extended if PREADY is driven LOW during an Access
phase. The protocol ensures that the following remain unchanged for
the additional cycles:
● address, PADDR
● write signal, PWRITE
● select signal, PSEL
● enable signal, PENABLE.
● Figure shows that two cycles are added using the PREADY signal.
However, you can add any number of additional cycles, from zero
upwards.
APB protocol v1.0
Error response
● You can use PSLVERR to indicate an error condition on an APB
transfer. Error conditions can occur on both read and write
transactions.
● PSLVERR is only considered valid during the last cycle of an
APB transfer, when PSEL, PENABLE, and PREADY are all
HIGH
● It is recommended, but not mandatory, that you drive PSLVERR
LOW when it is not being sampled. That is, when any of PSEL,
PENABLE, or PREADY are LOW.
Error response contd..
● Transactions that receive an error, might or might not have changed
the state of the peripheral. This is peripheral-specific and either is
acceptable. When a write transaction receives an error this does not
mean that the register within the peripheral has not been updated.
Read transactions that receive an error can return invalid data. There
is no requirement for the peripheral to drive the data bus to all 0s for a
read error.
● APB peripherals are not required to support the PSLVERR pin. This
is true for both existing and new APB peripheral designs. Where a
peripheral does not include this pin then the appropriate input to the
APB bridge is tied LOW.
Write transfer
● Figure shows an example of a failing write transfer that
completes with an error.
Read transfer
● A read transfer can also complete with an error response, indicating
that there is no valid read data available. Figure 2-6 on page 2-7
shows a read transfer completing with an error response.
Mapping of PSLVERR
● When bridging:
● From AXI to APB An APB error is mapped back to
RRESP/BRESP = SLVERR. This is achieved by mapping
PSLVERR to the AXI signals RRESP[1] for reads and
BRESP[1] for writes.
● From AHB to APB PSLVERR is mapped back to HRESP =
ERROR for both reads and writes. This is ac
Operating States
Figure shows the operational activity of the APB.
The state machine operates through the following
states:
● IDLE - This is the default state of the APB.
● SETUP - When a transfer is required the bus moves
into the SETUP state, where the appropriate select
signal, PSELx, is asserted. The bus only remains in
the SETUP state for one clock cycle and always
moves to the ACCESS state on the next rising edge
of the clock.
Contd....
● ACCESS - The enable signal, PENABLE, is asserted in the
ACCESS state. The address, write, select, and write data
signals must remain stable during the transition from the
SETUP to ACCESS state. Exit from the ACCESS state is
controlled by the PREADY signal from the slave:
1 - If PREADY is held LOW by the slave then the peripheral bus remains in
the ACCESS state.
2 - If PREADY is driven HIGH by the slave then the ACCESS state is exited
and the bus returns to the IDLE state if no more transfers are required.
Alternatively, the bus moves directly to the SETUP state if another transfer
follows.
Signal Descriptions
AMBA 3 APB signals
APB protocol v1.0
Ad

More Related Content

What's hot (20)

AMBA 2.0 PPT
AMBA 2.0 PPTAMBA 2.0 PPT
AMBA 2.0 PPT
Nirav Desai
 
Ambha axi
Ambha axiAmbha axi
Ambha axi
HARINATH REDDY
 
AXI Protocol.pptx
AXI Protocol.pptxAXI Protocol.pptx
AXI Protocol.pptx
Yazan Yousef
 
AMBA Ahb 2.0
AMBA Ahb 2.0AMBA Ahb 2.0
AMBA Ahb 2.0
Akhil Srivastava
 
AMBA_APB_pst
AMBA_APB_pstAMBA_APB_pst
AMBA_APB_pst
Bynaboina Krishna
 
Axi protocol
Axi protocolAxi protocol
Axi protocol
Azad Mishra
 
Axi
AxiAxi
Axi
Vinchipsytm Vlsitraining
 
Axi
AxiAxi
Axi
Azad Mishra
 
axi protocol
axi protocolaxi protocol
axi protocol
Azad Mishra
 
Verification of amba axi bus protocol implementing incr and wrap burst using ...
Verification of amba axi bus protocol implementing incr and wrap burst using ...Verification of amba axi bus protocol implementing incr and wrap burst using ...
Verification of amba axi bus protocol implementing incr and wrap burst using ...
eSAT Journals
 
Axi protocol
Axi protocolAxi protocol
Axi protocol
Rohit Kumar Pathak
 
Design and Implementation of Axi-Apb Bridge based on Amba 4.0
Design and Implementation of Axi-Apb Bridge based on Amba 4.0Design and Implementation of Axi-Apb Bridge based on Amba 4.0
Design and Implementation of Axi-Apb Bridge based on Amba 4.0
ijsrd.com
 
AHB To APB BRIDGE.pptx
AHB To APB BRIDGE.pptxAHB To APB BRIDGE.pptx
AHB To APB BRIDGE.pptx
GuckChick
 
Amba axi 29 3_2015
Amba axi 29 3_2015Amba axi 29 3_2015
Amba axi 29 3_2015
kiemnhatminh
 
Ral by pushpa
Ral by pushpa Ral by pushpa
Ral by pushpa
Pushpa Yakkala
 
AMBA AHB 5
AMBA AHB 5AMBA AHB 5
AMBA AHB 5
SUNODH GARLAPATI
 
AMBA 5 COHERENT HUB INTERFACE.pptx
AMBA 5 COHERENT HUB INTERFACE.pptxAMBA 5 COHERENT HUB INTERFACE.pptx
AMBA 5 COHERENT HUB INTERFACE.pptx
Sairam Chebrolu
 
UVM Methodology Tutorial
UVM Methodology TutorialUVM Methodology Tutorial
UVM Methodology Tutorial
Arrow Devices
 
Amba bus
Amba busAmba bus
Amba bus
rohitlinux
 
Amba presentation2
Amba presentation2Amba presentation2
Amba presentation2
Rashi Aggarwal
 

Viewers also liked (18)

Design and Implementation of an Advanced DMA Controller on AMBA-Based SoC
Design and Implementation of an Advanced DMA Controller on AMBA-Based SoCDesign and Implementation of an Advanced DMA Controller on AMBA-Based SoC
Design and Implementation of an Advanced DMA Controller on AMBA-Based SoC
Rabindranath Tagore University, Bhopal
 
AMBA3.0 james_20110801
AMBA3.0 james_20110801AMBA3.0 james_20110801
AMBA3.0 james_20110801
James Chang
 
I2 c protocol
I2 c protocolI2 c protocol
I2 c protocol
Azad Mishra
 
SystemVerilog Assertions verification with SVAUnit - DVCon US 2016 Tutorial
SystemVerilog Assertions verification with SVAUnit - DVCon US 2016 TutorialSystemVerilog Assertions verification with SVAUnit - DVCon US 2016 Tutorial
SystemVerilog Assertions verification with SVAUnit - DVCon US 2016 Tutorial
Amiq Consulting
 
AXI Introduction
AXI IntroductionAXI Introduction
AXI Introduction
Jason Boutselis
 
Presentation apb 2015 perdir
Presentation apb 2015   perdirPresentation apb 2015   perdir
Presentation apb 2015 perdir
Service Academique d'Information et d'Orientation
 
RESUME_VISHNU_PRIYA
RESUME_VISHNU_PRIYARESUME_VISHNU_PRIYA
RESUME_VISHNU_PRIYA
Vishnu Priya
 
memcached Binary Protocol in a Nutshell
memcached Binary Protocol in a Nutshellmemcached Binary Protocol in a Nutshell
memcached Binary Protocol in a Nutshell
Toru Maesaka
 
Delays in verilog
Delays in verilogDelays in verilog
Delays in verilog
JITU MISTRY
 
Design and Implementation of AMBA ASB APB Bridge
Design and Implementation of AMBA ASB APB BridgeDesign and Implementation of AMBA ASB APB Bridge
Design and Implementation of AMBA ASB APB Bridge
Manu BN
 
system verilog
system verilogsystem verilog
system verilog
Vinchipsytm Vlsitraining
 
Mac protocols of adhoc network
Mac protocols of adhoc networkMac protocols of adhoc network
Mac protocols of adhoc network
shashi712
 
Mac protocols
Mac protocolsMac protocols
Mac protocols
Anuj Gupta
 
Track 3 session 4 - st dev con 2016 - sensortile
Track 3   session 4 - st dev con 2016 - sensortileTrack 3   session 4 - st dev con 2016 - sensortile
Track 3 session 4 - st dev con 2016 - sensortile
ST_World
 
Track 1 session 4 - st dev con 2016 - mems piezo actuators
Track 1   session 4 - st dev con 2016 - mems piezo actuatorsTrack 1   session 4 - st dev con 2016 - mems piezo actuators
Track 1 session 4 - st dev con 2016 - mems piezo actuators
ST_World
 
UVM TUTORIAL;
UVM TUTORIAL;UVM TUTORIAL;
UVM TUTORIAL;
Azad Mishra
 
Top 10 protocol interview questions with answers
Top 10 protocol interview questions with answersTop 10 protocol interview questions with answers
Top 10 protocol interview questions with answers
gracemartinez012
 
Handy Culture Deck v1.0
Handy Culture Deck v1.0Handy Culture Deck v1.0
Handy Culture Deck v1.0
Handy
 
Design and Implementation of an Advanced DMA Controller on AMBA-Based SoC
Design and Implementation of an Advanced DMA Controller on AMBA-Based SoCDesign and Implementation of an Advanced DMA Controller on AMBA-Based SoC
Design and Implementation of an Advanced DMA Controller on AMBA-Based SoC
Rabindranath Tagore University, Bhopal
 
AMBA3.0 james_20110801
AMBA3.0 james_20110801AMBA3.0 james_20110801
AMBA3.0 james_20110801
James Chang
 
SystemVerilog Assertions verification with SVAUnit - DVCon US 2016 Tutorial
SystemVerilog Assertions verification with SVAUnit - DVCon US 2016 TutorialSystemVerilog Assertions verification with SVAUnit - DVCon US 2016 Tutorial
SystemVerilog Assertions verification with SVAUnit - DVCon US 2016 Tutorial
Amiq Consulting
 
RESUME_VISHNU_PRIYA
RESUME_VISHNU_PRIYARESUME_VISHNU_PRIYA
RESUME_VISHNU_PRIYA
Vishnu Priya
 
memcached Binary Protocol in a Nutshell
memcached Binary Protocol in a Nutshellmemcached Binary Protocol in a Nutshell
memcached Binary Protocol in a Nutshell
Toru Maesaka
 
Delays in verilog
Delays in verilogDelays in verilog
Delays in verilog
JITU MISTRY
 
Design and Implementation of AMBA ASB APB Bridge
Design and Implementation of AMBA ASB APB BridgeDesign and Implementation of AMBA ASB APB Bridge
Design and Implementation of AMBA ASB APB Bridge
Manu BN
 
Mac protocols of adhoc network
Mac protocols of adhoc networkMac protocols of adhoc network
Mac protocols of adhoc network
shashi712
 
Track 3 session 4 - st dev con 2016 - sensortile
Track 3   session 4 - st dev con 2016 - sensortileTrack 3   session 4 - st dev con 2016 - sensortile
Track 3 session 4 - st dev con 2016 - sensortile
ST_World
 
Track 1 session 4 - st dev con 2016 - mems piezo actuators
Track 1   session 4 - st dev con 2016 - mems piezo actuatorsTrack 1   session 4 - st dev con 2016 - mems piezo actuators
Track 1 session 4 - st dev con 2016 - mems piezo actuators
ST_World
 
Top 10 protocol interview questions with answers
Top 10 protocol interview questions with answersTop 10 protocol interview questions with answers
Top 10 protocol interview questions with answers
gracemartinez012
 
Handy Culture Deck v1.0
Handy Culture Deck v1.0Handy Culture Deck v1.0
Handy Culture Deck v1.0
Handy
 
Ad

Similar to APB protocol v1.0 (20)

APB2SPI.pptx
APB2SPI.pptxAPB2SPI.pptx
APB2SPI.pptx
SandeepkumarRangala
 
AMBA 2.0
AMBA 2.0AMBA 2.0
AMBA 2.0
Mayankprajapati29
 
AMBA Advanced High-performance Bus (AHB) protocol
AMBA Advanced High-performance Bus (AHB) protocolAMBA Advanced High-performance Bus (AHB) protocol
AMBA Advanced High-performance Bus (AHB) protocol
favecol712
 
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGEVLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSICS Design
 
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGEVLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSICS Design
 
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGEVLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSICS Design
 
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET Journal
 
8051d
8051d8051d
8051d
Senthil Kumar
 
Copy of AXI4_uploading_advanced_extended_interconnect.pptx
Copy of AXI4_uploading_advanced_extended_interconnect.pptxCopy of AXI4_uploading_advanced_extended_interconnect.pptx
Copy of AXI4_uploading_advanced_extended_interconnect.pptx
JyothikiranAnnam
 
ahb to convert apb bridge presentation ppt
ahb to convert  apb bridge presentation pptahb to convert  apb bridge presentation ppt
ahb to convert apb bridge presentation ppt
SandeepGowda53
 
8051d.ppt microcontroller instruction set summary
8051d.ppt microcontroller  instruction set summary8051d.ppt microcontroller  instruction set summary
8051d.ppt microcontroller instruction set summary
anushkayadav3011
 
mod 3-1.pptx
mod 3-1.pptxmod 3-1.pptx
mod 3-1.pptx
lekha349785
 
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterUniversal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Tejas Shetye
 
final
finalfinal
final
Shahar Gefen
 
40120130406005
4012013040600540120130406005
40120130406005
IAEME Publication
 
Computer organisation basic presentation
Computer organisation basic presentationComputer organisation basic presentation
Computer organisation basic presentation
ssuser6c234f
 
Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]
Guhan k
 
Fpga implemented ahb protocol
Fpga implemented ahb protocolFpga implemented ahb protocol
Fpga implemented ahb protocol
iaemedu
 
First seminar
First seminarFirst seminar
First seminar
Nishant Srivastav
 
Interfacing rs232
Interfacing rs232Interfacing rs232
Interfacing rs232
PRADEEP
 
AMBA Advanced High-performance Bus (AHB) protocol
AMBA Advanced High-performance Bus (AHB) protocolAMBA Advanced High-performance Bus (AHB) protocol
AMBA Advanced High-performance Bus (AHB) protocol
favecol712
 
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGEVLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSICS Design
 
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGEVLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSI DESIGN OF AMBA BASED AHB2APB BRIDGE
VLSICS Design
 
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGEVLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSICS Design
 
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET Journal
 
Copy of AXI4_uploading_advanced_extended_interconnect.pptx
Copy of AXI4_uploading_advanced_extended_interconnect.pptxCopy of AXI4_uploading_advanced_extended_interconnect.pptx
Copy of AXI4_uploading_advanced_extended_interconnect.pptx
JyothikiranAnnam
 
ahb to convert apb bridge presentation ppt
ahb to convert  apb bridge presentation pptahb to convert  apb bridge presentation ppt
ahb to convert apb bridge presentation ppt
SandeepGowda53
 
8051d.ppt microcontroller instruction set summary
8051d.ppt microcontroller  instruction set summary8051d.ppt microcontroller  instruction set summary
8051d.ppt microcontroller instruction set summary
anushkayadav3011
 
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterUniversal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Tejas Shetye
 
Computer organisation basic presentation
Computer organisation basic presentationComputer organisation basic presentation
Computer organisation basic presentation
ssuser6c234f
 
Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]
Guhan k
 
Fpga implemented ahb protocol
Fpga implemented ahb protocolFpga implemented ahb protocol
Fpga implemented ahb protocol
iaemedu
 
Interfacing rs232
Interfacing rs232Interfacing rs232
Interfacing rs232
PRADEEP
 
Ad

Recently uploaded (20)

Minimalist Business Slides XL by Slidesgo.pptx
Minimalist Business Slides XL by Slidesgo.pptxMinimalist Business Slides XL by Slidesgo.pptx
Minimalist Business Slides XL by Slidesgo.pptx
karenalavamoran
 
Take this ppt refference and give content on mahindra commitment to sustainab...
Take this ppt refference and give content on mahindra commitment to sustainab...Take this ppt refference and give content on mahindra commitment to sustainab...
Take this ppt refference and give content on mahindra commitment to sustainab...
kochars428
 
Are you Transitioning or Refining Now..?
Are you Transitioning or Refining Now..?Are you Transitioning or Refining Now..?
Are you Transitioning or Refining Now..?
Gregory Vigneaux
 
2nd taxonomy, nomen microorganisms-.pptx
2nd  taxonomy, nomen  microorganisms-.pptx2nd  taxonomy, nomen  microorganisms-.pptx
2nd taxonomy, nomen microorganisms-.pptx
ayeleasefa2
 
Oversized Off White Pulka Dot Cotton Shirt
Oversized Off White Pulka Dot Cotton ShirtOversized Off White Pulka Dot Cotton Shirt
Oversized Off White Pulka Dot Cotton Shirt
ZNKL.in
 
interpolacrcrdcrdrcrdctctfct frfctfction.ppt
interpolacrcrdcrdrcrdctctfct frfctfction.pptinterpolacrcrdcrdrcrdctctfct frfctfction.ppt
interpolacrcrdcrdrcrdctctfct frfctfction.ppt
pawan070201
 
Presentation for Schoool Management System
Presentation for Schoool Management SystemPresentation for Schoool Management System
Presentation for Schoool Management System
kolay922013
 
𝗗𝗲𝘀𝗶𝗴𝗻𝗶𝗻𝗴 𝗳𝗼𝗿 𝗮𝗹𝗹: 𝗜𝗻𝗰𝗹𝘂𝘀𝗶𝘃𝗲 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲 𝗳𝗼𝗿 𝗕𝗲𝘁𝘁𝗲𝗿 𝗘𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲𝘀
𝗗𝗲𝘀𝗶𝗴𝗻𝗶𝗻𝗴 𝗳𝗼𝗿 𝗮𝗹𝗹: 𝗜𝗻𝗰𝗹𝘂𝘀𝗶𝘃𝗲 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲 𝗳𝗼𝗿 𝗕𝗲𝘁𝘁𝗲𝗿 𝗘𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲𝘀𝗗𝗲𝘀𝗶𝗴𝗻𝗶𝗻𝗴 𝗳𝗼𝗿 𝗮𝗹𝗹: 𝗜𝗻𝗰𝗹𝘂𝘀𝗶𝘃𝗲 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲 𝗳𝗼𝗿 𝗕𝗲𝘁𝘁𝗲𝗿 𝗘𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲𝘀
𝗗𝗲𝘀𝗶𝗴𝗻𝗶𝗻𝗴 𝗳𝗼𝗿 𝗮𝗹𝗹: 𝗜𝗻𝗰𝗹𝘂𝘀𝗶𝘃𝗲 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲 𝗳𝗼𝗿 𝗕𝗲𝘁𝘁𝗲𝗿 𝗘𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲𝘀
Friends of Figm a, Sydney
 
AR.AKSHAYA PAMBALATH-PORTFOLIOFINAL_.pdf
AR.AKSHAYA PAMBALATH-PORTFOLIOFINAL_.pdfAR.AKSHAYA PAMBALATH-PORTFOLIOFINAL_.pdf
AR.AKSHAYA PAMBALATH-PORTFOLIOFINAL_.pdf
akshayap23
 
Hi! I'm Lori Vanzant. Please take a look
Hi! I'm Lori Vanzant. Please take a lookHi! I'm Lori Vanzant. Please take a look
Hi! I'm Lori Vanzant. Please take a look
vanzan01
 
10.1155-2024-1048933Figurefig0008.pptx.ppt
10.1155-2024-1048933Figurefig0008.pptx.ppt10.1155-2024-1048933Figurefig0008.pptx.ppt
10.1155-2024-1048933Figurefig0008.pptx.ppt
suchandasaha7
 
Modern Gradient Startup Pitch Deck PowerPoint Presentation and Google Slides ...
Modern Gradient Startup Pitch Deck PowerPoint Presentation and Google Slides ...Modern Gradient Startup Pitch Deck PowerPoint Presentation and Google Slides ...
Modern Gradient Startup Pitch Deck PowerPoint Presentation and Google Slides ...
SlidesBrain
 
Minimalist Pitch Deck by slide Slidesgo.pptx
Minimalist Pitch Deck by slide Slidesgo.pptxMinimalist Pitch Deck by slide Slidesgo.pptx
Minimalist Pitch Deck by slide Slidesgo.pptx
ESTEFANOANDREYGARCIA
 
Halstead’s_Software_Science_&_Putnam’s_Model[1].pptx
Halstead’s_Software_Science_&_Putnam’s_Model[1].pptxHalstead’s_Software_Science_&_Putnam’s_Model[1].pptx
Halstead’s_Software_Science_&_Putnam’s_Model[1].pptx
prachiikumarii1
 
The Irrational City | Unseen Forces of Placemaking
The Irrational City | Unseen Forces of PlacemakingThe Irrational City | Unseen Forces of Placemaking
The Irrational City | Unseen Forces of Placemaking
Leanne Munyori
 
Venngage AI Infographic Generator- AI-powered visuals that turn your ideas in...
Venngage AI Infographic Generator- AI-powered visuals that turn your ideas in...Venngage AI Infographic Generator- AI-powered visuals that turn your ideas in...
Venngage AI Infographic Generator- AI-powered visuals that turn your ideas in...
Venngage AI Infographic Generator
 
Lori Vanzant Portfolio. Please take a look !
Lori Vanzant  Portfolio. Please take a look !Lori Vanzant  Portfolio. Please take a look !
Lori Vanzant Portfolio. Please take a look !
vanzan01
 
19 Best B,u,y Verified Cash App Accounts
19 Best B,u,y Verified Cash App Accounts19 Best B,u,y Verified Cash App Accounts
19 Best B,u,y Verified Cash App Accounts
https://sellsusa.com/product/buy-verified-cash-app-accounts/
 
Emirates Agriculture Prensentation Badges GOLD.pdf
Emirates Agriculture Prensentation Badges GOLD.pdfEmirates Agriculture Prensentation Badges GOLD.pdf
Emirates Agriculture Prensentation Badges GOLD.pdf
asfianoor1
 
Baby panda 400.pdf de ciencias naturales
Baby panda 400.pdf de ciencias naturalesBaby panda 400.pdf de ciencias naturales
Baby panda 400.pdf de ciencias naturales
debbie loaiza
 
Minimalist Business Slides XL by Slidesgo.pptx
Minimalist Business Slides XL by Slidesgo.pptxMinimalist Business Slides XL by Slidesgo.pptx
Minimalist Business Slides XL by Slidesgo.pptx
karenalavamoran
 
Take this ppt refference and give content on mahindra commitment to sustainab...
Take this ppt refference and give content on mahindra commitment to sustainab...Take this ppt refference and give content on mahindra commitment to sustainab...
Take this ppt refference and give content on mahindra commitment to sustainab...
kochars428
 
Are you Transitioning or Refining Now..?
Are you Transitioning or Refining Now..?Are you Transitioning or Refining Now..?
Are you Transitioning or Refining Now..?
Gregory Vigneaux
 
2nd taxonomy, nomen microorganisms-.pptx
2nd  taxonomy, nomen  microorganisms-.pptx2nd  taxonomy, nomen  microorganisms-.pptx
2nd taxonomy, nomen microorganisms-.pptx
ayeleasefa2
 
Oversized Off White Pulka Dot Cotton Shirt
Oversized Off White Pulka Dot Cotton ShirtOversized Off White Pulka Dot Cotton Shirt
Oversized Off White Pulka Dot Cotton Shirt
ZNKL.in
 
interpolacrcrdcrdrcrdctctfct frfctfction.ppt
interpolacrcrdcrdrcrdctctfct frfctfction.pptinterpolacrcrdcrdrcrdctctfct frfctfction.ppt
interpolacrcrdcrdrcrdctctfct frfctfction.ppt
pawan070201
 
Presentation for Schoool Management System
Presentation for Schoool Management SystemPresentation for Schoool Management System
Presentation for Schoool Management System
kolay922013
 
𝗗𝗲𝘀𝗶𝗴𝗻𝗶𝗻𝗴 𝗳𝗼𝗿 𝗮𝗹𝗹: 𝗜𝗻𝗰𝗹𝘂𝘀𝗶𝘃𝗲 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲 𝗳𝗼𝗿 𝗕𝗲𝘁𝘁𝗲𝗿 𝗘𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲𝘀
𝗗𝗲𝘀𝗶𝗴𝗻𝗶𝗻𝗴 𝗳𝗼𝗿 𝗮𝗹𝗹: 𝗜𝗻𝗰𝗹𝘂𝘀𝗶𝘃𝗲 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲 𝗳𝗼𝗿 𝗕𝗲𝘁𝘁𝗲𝗿 𝗘𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲𝘀𝗗𝗲𝘀𝗶𝗴𝗻𝗶𝗻𝗴 𝗳𝗼𝗿 𝗮𝗹𝗹: 𝗜𝗻𝗰𝗹𝘂𝘀𝗶𝘃𝗲 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲 𝗳𝗼𝗿 𝗕𝗲𝘁𝘁𝗲𝗿 𝗘𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲𝘀
𝗗𝗲𝘀𝗶𝗴𝗻𝗶𝗻𝗴 𝗳𝗼𝗿 𝗮𝗹𝗹: 𝗜𝗻𝗰𝗹𝘂𝘀𝗶𝘃𝗲 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲 𝗳𝗼𝗿 𝗕𝗲𝘁𝘁𝗲𝗿 𝗘𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲𝘀
Friends of Figm a, Sydney
 
AR.AKSHAYA PAMBALATH-PORTFOLIOFINAL_.pdf
AR.AKSHAYA PAMBALATH-PORTFOLIOFINAL_.pdfAR.AKSHAYA PAMBALATH-PORTFOLIOFINAL_.pdf
AR.AKSHAYA PAMBALATH-PORTFOLIOFINAL_.pdf
akshayap23
 
Hi! I'm Lori Vanzant. Please take a look
Hi! I'm Lori Vanzant. Please take a lookHi! I'm Lori Vanzant. Please take a look
Hi! I'm Lori Vanzant. Please take a look
vanzan01
 
10.1155-2024-1048933Figurefig0008.pptx.ppt
10.1155-2024-1048933Figurefig0008.pptx.ppt10.1155-2024-1048933Figurefig0008.pptx.ppt
10.1155-2024-1048933Figurefig0008.pptx.ppt
suchandasaha7
 
Modern Gradient Startup Pitch Deck PowerPoint Presentation and Google Slides ...
Modern Gradient Startup Pitch Deck PowerPoint Presentation and Google Slides ...Modern Gradient Startup Pitch Deck PowerPoint Presentation and Google Slides ...
Modern Gradient Startup Pitch Deck PowerPoint Presentation and Google Slides ...
SlidesBrain
 
Minimalist Pitch Deck by slide Slidesgo.pptx
Minimalist Pitch Deck by slide Slidesgo.pptxMinimalist Pitch Deck by slide Slidesgo.pptx
Minimalist Pitch Deck by slide Slidesgo.pptx
ESTEFANOANDREYGARCIA
 
Halstead’s_Software_Science_&_Putnam’s_Model[1].pptx
Halstead’s_Software_Science_&_Putnam’s_Model[1].pptxHalstead’s_Software_Science_&_Putnam’s_Model[1].pptx
Halstead’s_Software_Science_&_Putnam’s_Model[1].pptx
prachiikumarii1
 
The Irrational City | Unseen Forces of Placemaking
The Irrational City | Unseen Forces of PlacemakingThe Irrational City | Unseen Forces of Placemaking
The Irrational City | Unseen Forces of Placemaking
Leanne Munyori
 
Venngage AI Infographic Generator- AI-powered visuals that turn your ideas in...
Venngage AI Infographic Generator- AI-powered visuals that turn your ideas in...Venngage AI Infographic Generator- AI-powered visuals that turn your ideas in...
Venngage AI Infographic Generator- AI-powered visuals that turn your ideas in...
Venngage AI Infographic Generator
 
Lori Vanzant Portfolio. Please take a look !
Lori Vanzant  Portfolio. Please take a look !Lori Vanzant  Portfolio. Please take a look !
Lori Vanzant Portfolio. Please take a look !
vanzan01
 
Emirates Agriculture Prensentation Badges GOLD.pdf
Emirates Agriculture Prensentation Badges GOLD.pdfEmirates Agriculture Prensentation Badges GOLD.pdf
Emirates Agriculture Prensentation Badges GOLD.pdf
asfianoor1
 
Baby panda 400.pdf de ciencias naturales
Baby panda 400.pdf de ciencias naturalesBaby panda 400.pdf de ciencias naturales
Baby panda 400.pdf de ciencias naturales
debbie loaiza
 

APB protocol v1.0

  • 1. APB Protocol v 1.0 ● Introduction ● Transfers ● Operating States ● Signal Descriptions
  • 2. Conventions This section describes the conventions that this specification uses: •Typographical ● Timing diagrams •Signals
  • 3. Typographical ● This specification uses the following typographical conventions: ● Italic - Highlights important notes, introduces special terminology,denotes internal cross-references, and citations. ● Bold - Highlights interface elements, such as menu names. Denotes ARM processor signal names. Also used for terms in descriptive lists, where appropriate. ● Monospace - Denotes text that you can enter at the keyboard, such as commands, file and program names, and source code. ● Monospace - Denotes a permitted abbreviation for a command or option. You can enter the underlined text instead of the full command or option name.
  • 4. ●monospace italic - Denotes arguments to monospace text where the argument is to be replaced by a specific value. ●monospace bold - denotes language keywords when used outside example code. ●<and> - Angle brackets enclose replaceable terms for assembler syntax where they appear in code or code fragments. They appear in normal font in running text. For example: ● MRC p15, 0 <Rd>, <CRn>, <CRm>, <Opcode_2> ● The Opcode_2 value selects which register is accessed.
  • 7. 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 and LOW for active- LOW signals. ● Prefix P - Denotes AMBA 3 APB signals. ● Suffix n - Denotes AXI, AHB, and AMBA 3 APB reset signals.
  • 8. About the AMBA 3 APB ● The APB is part of the AMBA 3 protocol family. It provides a low cost interface that is optimized for minimal power consumption and reduced interface complexity. ● The APB interfaces to any peripherals that are low-bandwidth and do not require the high performance of a pipelined bus interface. The APB has unpipelined protocol. ● All signal transitions are only related to the rising edge of the clock to enable the integration of APB peripherals easily into any design flow. Every transfer takes at least two cycles. ● The APB can interface with the AMBA Advanced High-performance Bus Lite (AHB-Lite) and AMBA Advanced Extensible Interface (AXI). You can use it to provide access to the programmable control registers of peripheral devices.
  • 9. Changes for AMBA 3 APB Protocol Specification v1.0 ● This version includes: ● A ready signal, PREADY, to extend an APB transfer. ● An error signal, PSLVERR, to indicate the failure of a transfer.
  • 10. Transfers ● Write transfers ● Two types of write transfer are described in this section: ● With no wait states ● With wait states.
  • 11. With no wait states
  • 12. The write transfer starts with the address, write data, write signal and select signal all changing after the rising edge of the clock. The first clock cycle of the transfer is called the Setup phase. After the following clock edge the enable signal is asserted, PENABLE, and this indicates that the Access phase is taking place. The address, data and control signals all remain valid throughout the Access phase. The transfer completes at the end of this cycle. The enable signal, PENABLE, is deasserted at the end of the transfer. The select signal, PSELx, also goes LOW unless the transfer is to be followed immediately by another transfer to the same peripheral.
  • 13. With wait states ● Figure shows how the PREADY signal from the slave can extend the transfer. During an Access phase, when PENABLE is HIGH, the transfer can be extended by driving PREADY LOW. The following signals remain unchanged for the additional cycles: ● address, PADDR ● write signal, PWRITE ● select signal, PSEL ● enable signal, PENABLE ● write data, PWDATA.
  • 14. Write transfer with wait states
  • 15. ● PREADY can take any value when PENABLE is LOW. This ensures that peripherals that have a fixed two cycle access can tie PREADY HIGH. ● NOTE - It is recommended that the address and write signals are not changed immediately after a transfer but remain stable until another access occurs. This reduces power consumption.
  • 16. Read transfers ● Two types of read transfer are described in this section: ● With no wait states ● With wait states.
  • 17. With no wait states Figure shows a read transfer. The timing of the address, write, select, and enable signals are as described in Write transfers on page 2-2. The slave must provide the data before the end of the read transfer
  • 18. With wait states ● Figure shows how the PREADY signal can extend the transfer. The transfer is extended if PREADY is driven LOW during an Access phase. The protocol ensures that the following remain unchanged for the additional cycles: ● address, PADDR ● write signal, PWRITE ● select signal, PSEL ● enable signal, PENABLE. ● Figure shows that two cycles are added using the PREADY signal. However, you can add any number of additional cycles, from zero upwards.
  • 20. Error response ● You can use PSLVERR to indicate an error condition on an APB transfer. Error conditions can occur on both read and write transactions. ● PSLVERR is only considered valid during the last cycle of an APB transfer, when PSEL, PENABLE, and PREADY are all HIGH ● It is recommended, but not mandatory, that you drive PSLVERR LOW when it is not being sampled. That is, when any of PSEL, PENABLE, or PREADY are LOW.
  • 21. Error response contd.. ● Transactions that receive an error, might or might not have changed the state of the peripheral. This is peripheral-specific and either is acceptable. When a write transaction receives an error this does not mean that the register within the peripheral has not been updated. Read transactions that receive an error can return invalid data. There is no requirement for the peripheral to drive the data bus to all 0s for a read error. ● APB peripherals are not required to support the PSLVERR pin. This is true for both existing and new APB peripheral designs. Where a peripheral does not include this pin then the appropriate input to the APB bridge is tied LOW.
  • 22. Write transfer ● Figure shows an example of a failing write transfer that completes with an error.
  • 23. Read transfer ● A read transfer can also complete with an error response, indicating that there is no valid read data available. Figure 2-6 on page 2-7 shows a read transfer completing with an error response.
  • 24. Mapping of PSLVERR ● When bridging: ● From AXI to APB An APB error is mapped back to RRESP/BRESP = SLVERR. This is achieved by mapping PSLVERR to the AXI signals RRESP[1] for reads and BRESP[1] for writes. ● From AHB to APB PSLVERR is mapped back to HRESP = ERROR for both reads and writes. This is ac
  • 25. Operating States Figure shows the operational activity of the APB.
  • 26. The state machine operates through the following states: ● IDLE - This is the default state of the APB. ● SETUP - When a transfer is required the bus moves into the SETUP state, where the appropriate select signal, PSELx, is asserted. The bus only remains in the SETUP state for one clock cycle and always moves to the ACCESS state on the next rising edge of the clock.
  • 27. Contd.... ● ACCESS - The enable signal, PENABLE, is asserted in the ACCESS state. The address, write, select, and write data signals must remain stable during the transition from the SETUP to ACCESS state. Exit from the ACCESS state is controlled by the PREADY signal from the slave: 1 - If PREADY is held LOW by the slave then the peripheral bus remains in the ACCESS state. 2 - If PREADY is driven HIGH by the slave then the ACCESS state is exited and the bus returns to the IDLE state if no more transfers are required. Alternatively, the bus moves directly to the SETUP state if another transfer follows.