SlideShare ist ein Scribd-Unternehmen logo
1 von 32
AMBA
 Advanced Microcontroller Bus Architecture (AMBA) is
an architecture that is widely used in system-on-chip
designs, which are found on chip buses.
 The AMBA specification standard is used for designing
high-level embedded microcontrollers.
 It provide technology independence and to encourage
modular system design.
 It strongly encourages the development of reusable
peripheral devices while minimizing silicon infrastructure
Typical AMBA system
AMBA
 AMBA 5.0 protocol defines six buses/interfaces:
 CHI (Coherent Hub Interface) : is targeting the interface to the
coherent hub that is found in many of today's SoCs
 ACE (AXI Coherency Extensions): It is targeted at high
bandwidth, high clock frequency system designs
 AXI (Advanced extensible Interface)-A high performance
,flexible protocol
 AHB (Advanced High-performance Bus)-retained for
compatibility and to ease the transition
 ASB (Advanced System Bus )- no longer actively supported
 APB (Advanced Peripheral Bus) - retained for support of
simple, low bandwidth peripherals
AMBA 2 APB (APB2) AMBA 3 APB 1.0(APB 3) AMBA 3 APB 2.0(APB4)
NO PREADY PREADY PPROT
PSLEVERR PSTROB
 PPROT A protection signal to support both non-secure
and secure transactions on APB.
 PSTRB A write strobe signal to enable sparse data
transfer on the write data bus.
Introduction:
APB stands for Advanced Peripheral Bus .
The APB is part of the Advanced Microcontroller Bus
Architecture (AMBA) protocol family.
Mainly used as general purpose register based peripherals
such as timers, interrupt controllers, UARTs, I/O ports, etc.
Optimized for minimal power consumption and reduced
interface complexity.
The APB protocol is non pipelined protocol.
In APB Every transfer takes at least two cycles(Setup Phase
and Access Phase).
Introduction:
The APB interfaces to any peripherals that are low-
bandwidth and do not require the high performance of a
pipelined bus interface.
It is connected to the system bus via a bridge, helps reduce
system power consumption.
It is also easy to interface.
The APB provides a low-cost interface that is optimized
for minimal power consumption and reduced interface
complexity.
The APB can interface with AHB ,AXI and etc..
APB Master
There is a single bus master on the APB, thus there is no
need for an arbiter.
The master drives the address and write buses and also
performs a combinatorial decode of the address to decide
which PSEL x signal to activate.
It is also responsible for driving the PENABLE signal to
time the transfer.
It drives APB data onto the system bus during a read
transfer.
APB Master
APB Slave
APB slaves have a very simple and flexible interface.
The exact implementation the interface will be
dependent on the design style employed and many
different options are possible.
In this two signals are main which mainly protect the
loss data while transfer of data is taking place they are
PSLVERR and PREADY.
Master to Slave Communication
Operating 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.
 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.
Write 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 de-asserted 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 No Wait states
Write transfer 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.
Read With no wait states
The read transfer starts with the address, 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 and control signals all remain valid
throughout the Access phase. The slave must provide the
data before the end of the read transfer.
The transfer completes at the end of this cycle.
The enable signal, PENABLE, is de-asserted at the end of
the transfer.
Read With wait states
 Access phase will extends up to PREADY is High. When
Pready is high slave provide PRDATA to the master.
Failing 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.
 a read transfer completing with an error response.
Write Followed by Read
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.
 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.
Advantages
 Low Power
 Latched address and control
 Simple Interface
 Suitable for many peripherals
Disadvantages
 Single Master –Limits parallelism
 Scalability_ performance suffers as bus is loaded
 Single Outstanding request :Poor throughput and
multi threading performance bottleneck
Advance Peripheral Bus

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

AMBA 2.0 PPT
AMBA 2.0 PPTAMBA 2.0 PPT
AMBA 2.0 PPT
 
AMBA_APB_pst
AMBA_APB_pstAMBA_APB_pst
AMBA_APB_pst
 
AMBA Ahb 2.0
AMBA Ahb 2.0AMBA Ahb 2.0
AMBA Ahb 2.0
 
System verilog coverage
System verilog coverageSystem verilog coverage
System verilog coverage
 
SOC Verification using SystemVerilog
SOC Verification using SystemVerilog SOC Verification using SystemVerilog
SOC Verification using SystemVerilog
 
SPI Bus Protocol
SPI Bus ProtocolSPI Bus Protocol
SPI Bus Protocol
 
Axi protocol
Axi protocolAxi protocol
Axi protocol
 
AMBA AHB 5
AMBA AHB 5AMBA AHB 5
AMBA AHB 5
 
Axi protocol
Axi protocolAxi protocol
Axi protocol
 
Axi
AxiAxi
Axi
 
SPI introduction(Serial Peripheral Interface)
SPI introduction(Serial Peripheral Interface)SPI introduction(Serial Peripheral Interface)
SPI introduction(Serial Peripheral Interface)
 
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...
 
Uart
UartUart
Uart
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 
Amba presentation2
Amba presentation2Amba presentation2
Amba presentation2
 
UVM TUTORIAL;
UVM TUTORIAL;UVM TUTORIAL;
UVM TUTORIAL;
 
Introduction to System verilog
Introduction to System verilog Introduction to System verilog
Introduction to System verilog
 
Serial Peripheral Interface
Serial Peripheral InterfaceSerial Peripheral Interface
Serial Peripheral Interface
 
AXI Protocol.pptx
AXI Protocol.pptxAXI Protocol.pptx
AXI Protocol.pptx
 
System verilog important
System verilog importantSystem verilog important
System verilog important
 

Ähnlich wie Advance Peripheral Bus

VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGEVLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGEVLSICS 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 BRIDGEVLSICS 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 BRIDGEVLSICS Design
 
Fpga implemented ahb protocol
Fpga implemented ahb protocolFpga implemented ahb protocol
Fpga implemented ahb protocoliaemedu
 
Design And Verification of AMBA APB Protocol
Design And Verification of AMBA APB ProtocolDesign And Verification of AMBA APB Protocol
Design And Verification of AMBA APB ProtocolIJERA Editor
 
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.0ijsrd.com
 
Design and Implementation of SOC Bus Based on AMBA 4.0
Design and Implementation of SOC Bus Based on AMBA 4.0Design and Implementation of SOC Bus Based on AMBA 4.0
Design and Implementation of SOC Bus Based on AMBA 4.0ijsrd.com
 
Chapter 3
Chapter 3Chapter 3
Chapter 3PRADEEP
 
Diagnostic Access of AMBA-AHB Communication Protocols
Diagnostic Access of AMBA-AHB Communication ProtocolsDiagnostic Access of AMBA-AHB Communication Protocols
Diagnostic Access of AMBA-AHB Communication Protocolsidescitation
 
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 bridgeManu BN
 
AMBA AHB Protocols
AMBA AHB ProtocolsAMBA AHB Protocols
AMBA AHB ProtocolsJoe Andelija
 
Deployment guide1
Deployment guide1Deployment guide1
Deployment guide1Programmer
 

Ähnlich wie Advance Peripheral Bus (20)

APB2SPI.pptx
APB2SPI.pptxAPB2SPI.pptx
APB2SPI.pptx
 
AMBA 2.0
AMBA 2.0AMBA 2.0
AMBA 2.0
 
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGEVLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
 
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
 
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
 
40120130406005
4012013040600540120130406005
40120130406005
 
Fpga implemented ahb protocol
Fpga implemented ahb protocolFpga implemented ahb protocol
Fpga implemented ahb protocol
 
Design And Verification of AMBA APB Protocol
Design And Verification of AMBA APB ProtocolDesign And Verification of AMBA APB Protocol
Design And Verification of AMBA APB Protocol
 
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
 
Design and Implementation of SOC Bus Based on AMBA 4.0
Design and Implementation of SOC Bus Based on AMBA 4.0Design and Implementation of SOC Bus Based on AMBA 4.0
Design and Implementation of SOC Bus Based on AMBA 4.0
 
Amba bus
Amba busAmba bus
Amba bus
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Diagnostic Access of AMBA-AHB Communication Protocols
Diagnostic Access of AMBA-AHB Communication ProtocolsDiagnostic Access of AMBA-AHB Communication Protocols
Diagnostic Access of AMBA-AHB Communication Protocols
 
final
finalfinal
final
 
mod 3-1.pptx
mod 3-1.pptxmod 3-1.pptx
mod 3-1.pptx
 
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
 
IEEE-488
IEEE-488IEEE-488
IEEE-488
 
AMBA AHB Protocols
AMBA AHB ProtocolsAMBA AHB Protocols
AMBA AHB Protocols
 
Deployment guide1
Deployment guide1Deployment guide1
Deployment guide1
 
Pin 8085
Pin 8085Pin 8085
Pin 8085
 

Mehr von SIVA NAGENDRA REDDY (13)

Vlsi Synthesis
Vlsi SynthesisVlsi Synthesis
Vlsi Synthesis
 
Dica iv chapter slides
Dica iv chapter slidesDica iv chapter slides
Dica iv chapter slides
 
Dica iii chapter slides
Dica iii chapter slidesDica iii chapter slides
Dica iii chapter slides
 
Dica ii chapter slides
Dica ii chapter slidesDica ii chapter slides
Dica ii chapter slides
 
Lica 3rd chapter slides
Lica 3rd chapter slidesLica 3rd chapter slides
Lica 3rd chapter slides
 
Lica 7th chapter slides
Lica 7th chapter slidesLica 7th chapter slides
Lica 7th chapter slides
 
LICA- DIFFERENTIAL APLIFIERS
LICA- DIFFERENTIAL APLIFIERSLICA- DIFFERENTIAL APLIFIERS
LICA- DIFFERENTIAL APLIFIERS
 
LICA-
LICA- LICA-
LICA-
 
Emi unit iv ppt
Emi unit iv pptEmi unit iv ppt
Emi unit iv ppt
 
Emi unit iii ppt
Emi unit iii pptEmi unit iii ppt
Emi unit iii ppt
 
Emi unit ii ppt
Emi unit ii pptEmi unit ii ppt
Emi unit ii ppt
 
Emi unit 1 ppt
Emi unit 1 pptEmi unit 1 ppt
Emi unit 1 ppt
 
Arduino simulation procedure
Arduino simulation procedureArduino simulation procedure
Arduino simulation procedure
 

Kürzlich hochgeladen

Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...Erbil Polytechnic University
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSneha Padhiar
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdfsahilsajad201
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Communityprachaibot
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsapna80328
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodManicka Mamallan Andavar
 
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSHigh Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSsandhya757531
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsResearcher Researcher
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmDeepika Walanjkar
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfBalamuruganV28
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTSneha Padhiar
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESkarthi keyan
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 

Kürzlich hochgeladen (20)

Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Community
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveying
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument method
 
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSHigh Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 

Advance Peripheral Bus

  • 1.
  • 2. AMBA  Advanced Microcontroller Bus Architecture (AMBA) is an architecture that is widely used in system-on-chip designs, which are found on chip buses.  The AMBA specification standard is used for designing high-level embedded microcontrollers.  It provide technology independence and to encourage modular system design.  It strongly encourages the development of reusable peripheral devices while minimizing silicon infrastructure
  • 4. AMBA  AMBA 5.0 protocol defines six buses/interfaces:  CHI (Coherent Hub Interface) : is targeting the interface to the coherent hub that is found in many of today's SoCs  ACE (AXI Coherency Extensions): It is targeted at high bandwidth, high clock frequency system designs  AXI (Advanced extensible Interface)-A high performance ,flexible protocol  AHB (Advanced High-performance Bus)-retained for compatibility and to ease the transition  ASB (Advanced System Bus )- no longer actively supported  APB (Advanced Peripheral Bus) - retained for support of simple, low bandwidth peripherals
  • 5. AMBA 2 APB (APB2) AMBA 3 APB 1.0(APB 3) AMBA 3 APB 2.0(APB4) NO PREADY PREADY PPROT PSLEVERR PSTROB
  • 6.  PPROT A protection signal to support both non-secure and secure transactions on APB.  PSTRB A write strobe signal to enable sparse data transfer on the write data bus.
  • 7. Introduction: APB stands for Advanced Peripheral Bus . The APB is part of the Advanced Microcontroller Bus Architecture (AMBA) protocol family. Mainly used as general purpose register based peripherals such as timers, interrupt controllers, UARTs, I/O ports, etc. Optimized for minimal power consumption and reduced interface complexity. The APB protocol is non pipelined protocol. In APB Every transfer takes at least two cycles(Setup Phase and Access Phase).
  • 8. Introduction: The APB interfaces to any peripherals that are low- bandwidth and do not require the high performance of a pipelined bus interface. It is connected to the system bus via a bridge, helps reduce system power consumption. It is also easy to interface. The APB provides a low-cost interface that is optimized for minimal power consumption and reduced interface complexity. The APB can interface with AHB ,AXI and etc..
  • 9. APB Master There is a single bus master on the APB, thus there is no need for an arbiter. The master drives the address and write buses and also performs a combinatorial decode of the address to decide which PSEL x signal to activate. It is also responsible for driving the PENABLE signal to time the transfer. It drives APB data onto the system bus during a read transfer.
  • 11. APB Slave APB slaves have a very simple and flexible interface. The exact implementation the interface will be dependent on the design style employed and many different options are possible. In this two signals are main which mainly protect the loss data while transfer of data is taking place they are PSLVERR and PREADY.
  • 12.
  • 13. Master to Slave Communication
  • 15.  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.
  • 16.  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.
  • 17. Write 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 de-asserted 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.
  • 18. With No Wait states
  • 19. Write transfer 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.
  • 20.
  • 21. Read With no wait states The read transfer starts with the address, 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 and control signals all remain valid throughout the Access phase. The slave must provide the data before the end of the read transfer. The transfer completes at the end of this cycle. The enable signal, PENABLE, is de-asserted at the end of the transfer.
  • 22.
  • 23. Read With wait states  Access phase will extends up to PREADY is High. When Pready is high slave provide PRDATA to the master.
  • 24. Failing Write transfer  Figure shows an example of a failing write transfer that  completes with an error.
  • 25. Read transfer  A read transfer can also complete with an error response, indicating that there is no valid read data available.  a read transfer completing with an error response.
  • 27. 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.
  • 28.  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.
  • 29.
  • 30. Advantages  Low Power  Latched address and control  Simple Interface  Suitable for many peripherals
  • 31. Disadvantages  Single Master –Limits parallelism  Scalability_ performance suffers as bus is loaded  Single Outstanding request :Poor throughput and multi threading performance bottleneck