SlideShare a Scribd company logo
2
Most read
3
Most read
IJSRD - International Journal for Scientific Research & Development| Vol. 2, Issue 07, 2014 | ISSN (online): 2321-0613
All rights reserved by www.ijsrd.com 47
Design and Implementation of Axi-Apb Bridge based on Amba 4.0
V. Anil Kumar1 V. Saidi Reddy2
1
Associate Professor 2
M.Tech Student
1
Department of Electronics and Communication Engineering
1,2
Brilliant Institute of Engineering and Technology
Abstract— ARM introduced the Advanced Microcontroller
Bus Architecture (AMBA) 4.0 specifications in March 2010,
which includes Advanced eXtensible Interface (AXI) 4.0.
AMBA bus protocol has become the de facto standard SoC
bus. That means more and more existing IPs must be able to
communicate with AMBA 4.0 bus. Based on AMBA 4.0
bus, we designed an Intellectual Property (IP) core of
Advanced Peripheral Bus (APB) bridge, which translates the
AXI4.0-lite transactions into APB 4.0 transactions. The
bridge provides an interface between the high-performance
AXI bus and low-power APB domain.
Key words: SoC, AMBA, AXI, APB
I. INTRODUCTION
Integrated cirtuits has entered the era of System-on-a-Chip
(SoC), which refers to integrating all components of a
computer or other electronic system into a single chip. It
may contain digital, analog, mixed-signal, and often radio-
frequency functions – all on a single chip substrate. With the
increasing design size, IP is an inevitable choice for SoC
design. And the widespread use of all kinds of IPs has
changed the nature of the design flow, making On-Chip
Buses (OCB) essential to the design. Of all OCBs existing in
the market, the AMBA bus system is widely used as the de
facto standard SoC bus. On March 8, 2010, ARM
announced availability of the AMBA 4.0 specifications. As
the de facto standard SoC bus, AMBA bus is widely used in
the high-performance SoC designs. The AMBA
specification defines an on-chip communication standard for
designing high-performance embedded microcontrollers.
The AMBA 4.0 specification defines five buses/interfaces.
 Advanced eXtensible Interface (AXI)
 Advanced High-performance Bus (AHB)
 Advanced System Bus (ASB)
 Advanced Peripheral Bus (APB)
 Advanced Trace Bus (ATB)
AXI, the next generation of AMBA interface
defined in the AMBA 4.0 specification, is targeted at high
performance, high clock frequency system designs and
includes features which make it very suitable for high speed
sub-micrometer interconnect.
 separate address/control and data phases
 Support for unaligned data transfers using byte
strobes
 burst based transactions with only start address
issued
 issuing of multiple outstanding addresses
 easy addition of register stages to provide timing
closure
II. TOP VIEW
A. Block Diagram
In this study, we focused mainly on the implementation
aspect of an AXI4-Lite to APB bridge. The APB bridge
provides an interface between the high-performance AXI
domain and the low-power APB domain. It appears as a
slave on AXI bus but as a master on APB that can acces up
to sixteen slave peripherals. Read and write transfers on the
AXI bus are converted into corresponding transfers on the
APB. The AXI4- Lite to APB bridge clock diagram is
shown in Figure. 1.
Fig. 1: block diagram
B. Signal Connections
Figure. 2 shows the component signal connections. The
bridge uses:
 AMBA AXI-Lite signals as described in the
AMBA AXI-Lite 4.0 protocol specification.
 AMBA APB signals as described in the AMBA
APB 4.0 protocol specification.
Design and Implementation of Axi-Apb Bridge based on Amba 4.0
(IJSRD/Vol. 2/Issue 07/2014/012)
All rights reserved by www.ijsrd.com 48
C. AXI Handshake Mechanism
In AXI 4.0 specification, each channel h as a VALID and
READY signals for handshaking. The sour ce asserts
VALID when the control information or data is available.
The destination asserts READY when it can accept the
control information or data. Transfer occurs only when both
the VALID and READY are asserted. Figure. 3 shows all
possible cases of VALID/READ handshaking. Note that
when source asserts VALID, the corresponding control
information or data must also be available at the same time.
The arrows in Figure. 3 indicate when the transfer occurs. A
transfer takes place at the positive edge of clock. Therefore,
the source needs a register input to sample the READY
signal. In the same way, the destination needs a register
input to sa mple the VALID signal. Considering the
situation of Figure. 3(c), we assume the source and
destination use output registers instead of combination
circuit, they need one cycle to pull low VALID/READY and
sample the VALID/RE ADY again at T4 cycle. When they
sample the VALID/REA DY again at T4, there should be
another transfer which is an error. Therefore source and
destination should use combi national circuit as output. In
short, AXI protocol is suitable register input and
combinational output circuit.
The APB bridge buffers address, contr ol and data
from AXI4-Lite, drives the APB peripherals and returns data
and response signal to the AXI4-Lite. It decodes the address
using an internal address map to select the peripheral. The
bridge is designed to operate when the APB and AXI4-Lite
have independent clock frequency and phase. For every AXI
channel, invalid commands are not forwar ded and an error
response generated. That is once an periph eral accessed
does not exist, the APB bridge will generate DE CERR as
response through the response channel (read or write). And
if the target peripheral exists, but asserts PSLVERR, it will
give a SLVERR response.
Fig. 3: handshake mechanism
III. CLOCK DOM AIN CROSSING (CDC)
A clock domain crossing ( CDC), or simply clock crossing,
is when a signal crosses from o ne clock domain into
another[3]
. If a signal does not assert long enough and is not
registered, it may appear asynchronous on the incoming
clock boundary. Metastability happens when signal changes
within the setup/hold time window. Sync hronizing a signal
that crosses into a higher clocked domain can be
accomplished by registering the signal through a flip-flop
that is clocked by the source domain, thus holding the signal
long enough to be detected by the higher clocked destination
domain. Synchronizing a signal traversing into a slower
clock domain is more cumbersome[4]
. This typically requires
a register in each clock domain with a form of feedback
from the destination domain to the source domain ,
indicating that the signal was detected.
A. Metastability
Metastability cannot be avoided, but a solution for handling
the metastable signal enables proper functioning of the
design. The metastability occurrences can be predicted by
using the mean time between failures (MTBF) formula (1):
Where C1 and C2 are constants that depend on the
technology used to build the flip-flop; tMET is the duration
of the metastable output; and fclk and fdata are the
frequencies of the synchronous clock and the asynchronous
input, respectively.
B. Synchronizer
Designers can use special metastable hardened flops for
increasing the MTBF. For example, in Figure. 4, a
synchronizer flop is used following the signal DB. So,
instead of the metastable signal DB being used in the
function downstream as in Figure. 4, the stable signal DB2
is used in the logic downstream[8]
. In the AXI4-Lite to APB
bridge, we use synchronizer block designs for communicate
between the AXI and APB clock domain.
Fig. 4: two flip-flop synchronizer
IV. FINITE STATE MACHINE (FSM)
A finite state machine is a mathematical abstraction
sometimes used to design digital logic or computer
programs. It is a behavior model composed of a finite
Design and Implementation of Axi-Apb Bridge based on Amba 4.0
(IJSRD/Vol. 2/Issue 07/2014/012)
All rights reserved by www.ijsrd.com 49
number of states, transitions between those states, and
actions, similar to a flow graph in which one can inspect the
way logic runs when certain conditions are met[10]
. The state
transition diagram is a picture of our state machine model.
Figure. 5 is the state transition diagram of our FSM.
The state machine operates through the following states:
 IDLE. This is the default state of the FSM.
 WRITE_SETUP. When a write transfer request is
asserted, the FSM moves into the WRITE_SETUP
state.
 READ_SETUP. When a read transfer request is
asserted, the FSM moves into the READ_SETUP
state.
 WRIET_ACCESS. The enable signal, PENABLE,
is asserted in the WRITE_ACCESS state.
 READ_ACCESS. The enable signal, PENABLE, is
asserted in the READ_ACCESS state.
 WRITE_WAIT. When the AXI write response
channel is not ready for receiving signal BRESP,
then stay in WRITE_WAIT state.
 READ_WAIT. When the AXI read data channel is
not ready for receiving signal RRESP, then stay in
READ_WAIT state.
States READ_WAIT and WRITE_WAIT are
added, because the APB is not pipelined, wait states are
added during transfers between the APB and AXI interface.
According AXI specification, the read address
channel, write address channel and write data channel are
completely independent. Each channel has a set of forward
signals and a feedback signal for handshaking. A read and a
write requests may be issued simultaneously
(AWVALID/WVALID and ARVALID are asserted high
simultaneously) from AXI4-Lite, the AXI4-Lite to APB
bridge will give more priority to the read request than to the
write request. That is, when both write and read requests are
valid, the write request is initiated on APB after the read is
requested on APB.
V. SIMULATION & IMPLEMENTATION
The timing diagram shown in Figure. 5 illustrate the AXI4-
Lite to APB bridge operation for various read and write
transfers. It shows that when both read and write requests
are active, read is given more priority.
Before Static Timing Analysis (STA), it is
necessary to inform the EDA tools that ACLK and PCLK
are two asynchronous clock domains.
Fig. 5: typical read and write transfer
VI. CONCLUSION
In this study, we provide an implementation of AXI4-Lite to
APB bridge which has the following features:
 32-bit AXI slave and APB master interfaces. 
 PCLK clock domain completely independent of
ACLK clock domain. 
 support up to 16 APB peripherals. 
 support the PREADY signal which translate to wait
states on AXI. 
 an error on any transfer results in SLVERR as the
AXI read/write response. 
REFERENCES
[1] ARM, "AMBA Protocol Specification 4.0",
www.arm.com, 2010.
[2] Ying-Ze Liao, "System Design and Implementation
of AXI Bus", National Chiao Tung University,
October 2007.
[3] Clifford E. Cummings, "Coding And Scripting
Techniques For FSM Designs With Synthesis-
Optimized, Glitch-Free Outputs," SNUG (Synopsys
Users Group Boston, MA 2000) Proceedings,
September 2000.
[4] Clifford E. Cummings, “Synthesis and Scripting
Techniques for Designing Multi-Asynchronous Clock
Designs,” SNUG 2001
[5] Chris Spear, "SystemVerilog for Verification, 2nd
Edition", Springer, www.springeronline.com, 2008.
[6] Lahir, K., Raghunathan A., Lakshminarayana G.,
“LOTTERYBUS: a new high-performance
communication architecture for system-on-chip
deisgns,” in Proceedings of Design Automation
Conference, 2001.
Design and Implementation of Axi-Apb Bridge based on Amba 4.0
(IJSRD/Vol. 2/Issue 07/2014/012)
All rights reserved by www.ijsrd.com 50
[7] Sanghun Lee, Chanho Lee, Hauk-Jae Lee, “A new
multi-channel on-chip-bus architecture for system-on-
chips,” in Proceedings of IEEE international SOC
Conference, September 2004.
[8] Martino Ruggiero, Federico Angelina, Francesco
Palette, Divide Bertozzi, Luca 86
Ad

Recommended

Ambha axi
Ambha axi
HARINATH REDDY
 
AXI Protocol.pptx
AXI Protocol.pptx
Yazan Yousef
 
APB protocol v1.0
APB protocol v1.0
Azad Mishra
 
Axi protocol
Axi protocol
Rohit Kumar Pathak
 
AMBA_APB_pst
AMBA_APB_pst
Bynaboina Krishna
 
Axi
Axi
Azad Mishra
 
AMBA 2.0 PPT
AMBA 2.0 PPT
Nirav Desai
 
AMBA 3 APB Protocol
AMBA 3 APB Protocol
Swetha GSM
 
Amba axi 29 3_2015
Amba axi 29 3_2015
kiemnhatminh
 
Pc ie tl_layer (3)
Pc ie tl_layer (3)
Rakeshkumar Sachdev
 
Apb
Apb
Azad Mishra
 
Axi protocol
Axi protocol
Azad Mishra
 
Session 8,9 PCI Express
Session 8,9 PCI Express
Subhash Iyer
 
AMBA AHB 5
AMBA AHB 5
SUNODH GARLAPATI
 
Introduction about APB Protocol
Introduction about APB Protocol
Pushpa Yakkala
 
PCIe DL_layer_3.0.1 (1)
PCIe DL_layer_3.0.1 (1)
Rakeshkumar Sachdev
 
System verilog verification building blocks
System verilog verification building blocks
Nirav Desai
 
AMBA Ahb 2.0
AMBA Ahb 2.0
Akhil Srivastava
 
System verilog coverage
System verilog coverage
Pushpa Yakkala
 
UVM TUTORIAL;
UVM TUTORIAL;
Azad Mishra
 
Axi
Axi
Vinchipsytm Vlsitraining
 
AMBA 5 COHERENT HUB INTERFACE.pptx
AMBA 5 COHERENT HUB INTERFACE.pptx
Sairam Chebrolu
 
SystemVerilog based OVM and UVM Verification Methodologies
SystemVerilog based OVM and UVM Verification Methodologies
Ramdas Mozhikunnath
 
system verilog
system verilog
Vinchipsytm Vlsitraining
 
Amba presentation2
Amba presentation2
Rashi Aggarwal
 
APB2SPI.pptx
APB2SPI.pptx
SandeepkumarRangala
 
PCI express
PCI express
sarangaprabod
 
axi protocol
axi protocol
Azad Mishra
 
Apb presentation
Apb presentation
Eva Law
 
APB
APB
Praveen Walishetti
 

More Related Content

What's hot (20)

Amba axi 29 3_2015
Amba axi 29 3_2015
kiemnhatminh
 
Pc ie tl_layer (3)
Pc ie tl_layer (3)
Rakeshkumar Sachdev
 
Apb
Apb
Azad Mishra
 
Axi protocol
Axi protocol
Azad Mishra
 
Session 8,9 PCI Express
Session 8,9 PCI Express
Subhash Iyer
 
AMBA AHB 5
AMBA AHB 5
SUNODH GARLAPATI
 
Introduction about APB Protocol
Introduction about APB Protocol
Pushpa Yakkala
 
PCIe DL_layer_3.0.1 (1)
PCIe DL_layer_3.0.1 (1)
Rakeshkumar Sachdev
 
System verilog verification building blocks
System verilog verification building blocks
Nirav Desai
 
AMBA Ahb 2.0
AMBA Ahb 2.0
Akhil Srivastava
 
System verilog coverage
System verilog coverage
Pushpa Yakkala
 
UVM TUTORIAL;
UVM TUTORIAL;
Azad Mishra
 
Axi
Axi
Vinchipsytm Vlsitraining
 
AMBA 5 COHERENT HUB INTERFACE.pptx
AMBA 5 COHERENT HUB INTERFACE.pptx
Sairam Chebrolu
 
SystemVerilog based OVM and UVM Verification Methodologies
SystemVerilog based OVM and UVM Verification Methodologies
Ramdas Mozhikunnath
 
system verilog
system verilog
Vinchipsytm Vlsitraining
 
Amba presentation2
Amba presentation2
Rashi Aggarwal
 
APB2SPI.pptx
APB2SPI.pptx
SandeepkumarRangala
 
PCI express
PCI express
sarangaprabod
 
axi protocol
axi protocol
Azad Mishra
 

Viewers also liked (6)

Apb presentation
Apb presentation
Eva Law
 
APB
APB
Praveen Walishetti
 
SOC Interconnects: AMBA & CoreConnect
SOC Interconnects: AMBA & CoreConnect
Dr. A. B. Shinde
 
8237 dma controller
8237 dma controller
Tech_MX
 
Amba bus
Amba bus
rohitlinux
 
The Commissioning Process
The Commissioning Process
d_mackay
 
Apb presentation
Apb presentation
Eva Law
 
SOC Interconnects: AMBA & CoreConnect
SOC Interconnects: AMBA & CoreConnect
Dr. A. B. Shinde
 
8237 dma controller
8237 dma controller
Tech_MX
 
The Commissioning Process
The Commissioning Process
d_mackay
 
Ad

Similar to Design and Implementation of Axi-Apb Bridge based on Amba 4.0 (20)

Design and Implementation of SOC Bus Based on AMBA 4.0
Design and Implementation of SOC Bus Based on AMBA 4.0
ijsrd.com
 
Design and Analysis of Xilinx Verified AMBA Bridge for SoC Systems
Design and Analysis of Xilinx Verified AMBA Bridge for SoC Systems
idescitation
 
40120130406005
40120130406005
IAEME Publication
 
Iaetsd asynchronous data transactions on so c using fifo
Iaetsd asynchronous data transactions on so c using fifo
Iaetsd Iaetsd
 
Ey3110051010
Ey3110051010
IJERA Editor
 
Design and verification environment for amba axi protocol for soc integration
Design and verification environment for amba axi protocol for soc integration
eSAT Publishing House
 
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSICS Design
 
VLSI 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 BRIDGE
VLSICS Design
 
Gc2411021106
Gc2411021106
IJERA Editor
 
call for papers, research paper publishing, where to publish research paper, ...
call for papers, research paper publishing, where to publish research paper, ...
International Journal of Engineering Inventions www.ijeijournal.com
 
Transaction based AMBA AXI bus interconnect in Verilog
Transaction based AMBA AXI bus interconnect in Verilog
IRJET Journal
 
AXI Protocol amba axi architecture protocol
AXI Protocol amba axi architecture protocol
ChiragHadiya3
 
IRJET - Design of AMBA based AHB2APB Protocol for Efficient Utilization of AH...
IRJET - Design of AMBA based AHB2APB Protocol for Efficient Utilization of AH...
IRJET Journal
 
Design And Verification of AMBA APB Protocol
Design And Verification of AMBA APB Protocol
IJERA Editor
 
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
 
Design and FPGA Implementation of AMBA APB Bridge with Clock Skew Minimizatio...
Design and FPGA Implementation of AMBA APB Bridge with Clock Skew Minimizatio...
IOSRJVSP
 
AXI_presentation.ppt
AXI_presentation.ppt
ssuser1c8ca21
 
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
 
IRJET- Verification of AXI IP Core(Protocol) using System Verilog
IRJET- Verification of AXI IP Core(Protocol) using System Verilog
IRJET Journal
 
Design and Implementation of SOC Bus Based on AMBA 4.0
Design and Implementation of SOC Bus Based on AMBA 4.0
ijsrd.com
 
Design and Analysis of Xilinx Verified AMBA Bridge for SoC Systems
Design and Analysis of Xilinx Verified AMBA Bridge for SoC Systems
idescitation
 
Iaetsd asynchronous data transactions on so c using fifo
Iaetsd asynchronous data transactions on so c using fifo
Iaetsd Iaetsd
 
Design and verification environment for amba axi protocol for soc integration
Design and verification environment for amba axi protocol for soc integration
eSAT Publishing House
 
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSI DESIGN OF AMBA BASED AHB2APBBRIDGE
VLSICS Design
 
VLSI 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 BRIDGE
VLSICS Design
 
Transaction based AMBA AXI bus interconnect in Verilog
Transaction based AMBA AXI bus interconnect in Verilog
IRJET Journal
 
AXI Protocol amba axi architecture protocol
AXI Protocol amba axi architecture protocol
ChiragHadiya3
 
IRJET - Design of AMBA based AHB2APB Protocol for Efficient Utilization of AH...
IRJET - Design of AMBA based AHB2APB Protocol for Efficient Utilization of AH...
IRJET Journal
 
Design And Verification of AMBA APB Protocol
Design And Verification of AMBA APB Protocol
IJERA Editor
 
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
 
Design and FPGA Implementation of AMBA APB Bridge with Clock Skew Minimizatio...
Design and FPGA Implementation of AMBA APB Bridge with Clock Skew Minimizatio...
IOSRJVSP
 
AXI_presentation.ppt
AXI_presentation.ppt
ssuser1c8ca21
 
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
 
IRJET- Verification of AXI IP Core(Protocol) using System Verilog
IRJET- Verification of AXI IP Core(Protocol) using System Verilog
IRJET Journal
 
Ad

More from ijsrd.com (20)

IoT Enabled Smart Grid
IoT Enabled Smart Grid
ijsrd.com
 
A Survey Report on : Security & Challenges in Internet of Things
A Survey Report on : Security & Challenges in Internet of Things
ijsrd.com
 
IoT for Everyday Life
IoT for Everyday Life
ijsrd.com
 
Study on Issues in Managing and Protecting Data of IOT
Study on Issues in Managing and Protecting Data of IOT
ijsrd.com
 
Interactive Technologies for Improving Quality of Education to Build Collabor...
Interactive Technologies for Improving Quality of Education to Build Collabor...
ijsrd.com
 
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
ijsrd.com
 
A Study of the Adverse Effects of IoT on Student's Life
A Study of the Adverse Effects of IoT on Student's Life
ijsrd.com
 
Pedagogy for Effective use of ICT in English Language Learning
Pedagogy for Effective use of ICT in English Language Learning
ijsrd.com
 
Virtual Eye - Smart Traffic Navigation System
Virtual Eye - Smart Traffic Navigation System
ijsrd.com
 
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
ijsrd.com
 
Understanding IoT Management for Smart Refrigerator
Understanding IoT Management for Smart Refrigerator
ijsrd.com
 
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
ijsrd.com
 
A Review: Microwave Energy for materials processing
A Review: Microwave Energy for materials processing
ijsrd.com
 
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
ijsrd.com
 
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
ijsrd.com
 
Making model of dual axis solar tracking with Maximum Power Point Tracking
Making model of dual axis solar tracking with Maximum Power Point Tracking
ijsrd.com
 
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
ijsrd.com
 
Study and Review on Various Current Comparators
Study and Review on Various Current Comparators
ijsrd.com
 
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
ijsrd.com
 
Defending Reactive Jammers in WSN using a Trigger Identification Service.
Defending Reactive Jammers in WSN using a Trigger Identification Service.
ijsrd.com
 
IoT Enabled Smart Grid
IoT Enabled Smart Grid
ijsrd.com
 
A Survey Report on : Security & Challenges in Internet of Things
A Survey Report on : Security & Challenges in Internet of Things
ijsrd.com
 
IoT for Everyday Life
IoT for Everyday Life
ijsrd.com
 
Study on Issues in Managing and Protecting Data of IOT
Study on Issues in Managing and Protecting Data of IOT
ijsrd.com
 
Interactive Technologies for Improving Quality of Education to Build Collabor...
Interactive Technologies for Improving Quality of Education to Build Collabor...
ijsrd.com
 
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
ijsrd.com
 
A Study of the Adverse Effects of IoT on Student's Life
A Study of the Adverse Effects of IoT on Student's Life
ijsrd.com
 
Pedagogy for Effective use of ICT in English Language Learning
Pedagogy for Effective use of ICT in English Language Learning
ijsrd.com
 
Virtual Eye - Smart Traffic Navigation System
Virtual Eye - Smart Traffic Navigation System
ijsrd.com
 
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
ijsrd.com
 
Understanding IoT Management for Smart Refrigerator
Understanding IoT Management for Smart Refrigerator
ijsrd.com
 
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
ijsrd.com
 
A Review: Microwave Energy for materials processing
A Review: Microwave Energy for materials processing
ijsrd.com
 
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
ijsrd.com
 
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
ijsrd.com
 
Making model of dual axis solar tracking with Maximum Power Point Tracking
Making model of dual axis solar tracking with Maximum Power Point Tracking
ijsrd.com
 
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
ijsrd.com
 
Study and Review on Various Current Comparators
Study and Review on Various Current Comparators
ijsrd.com
 
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
ijsrd.com
 
Defending Reactive Jammers in WSN using a Trigger Identification Service.
Defending Reactive Jammers in WSN using a Trigger Identification Service.
ijsrd.com
 

Recently uploaded (20)

THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
trjnesjnqg7801
 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
 
List View Components in Odoo 18 - Odoo Slides
List View Components in Odoo 18 - Odoo Slides
Celine George
 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
 
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
 
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
 
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
 
NSUMD_M1 Library Orientation_June 11, 2025.pptx
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
 
How to Customize Quotation Layouts in Odoo 18
How to Customize Quotation Layouts in Odoo 18
Celine George
 
Vitamin and Nutritional Deficiencies.pptx
Vitamin and Nutritional Deficiencies.pptx
Vishal Chanalia
 
Gladiolous Cultivation practices by AKL.pdf
Gladiolous Cultivation practices by AKL.pdf
kushallamichhame
 
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
Kweku Zurek
 
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
CRYPTO TRADING COURSE BY FINANCEWORLD.IO
CRYPTO TRADING COURSE BY FINANCEWORLD.IO
AndrewBorisenko3
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
trjnesjnqg7801
 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
 
List View Components in Odoo 18 - Odoo Slides
List View Components in Odoo 18 - Odoo Slides
Celine George
 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
 
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
 
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
 
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
 
NSUMD_M1 Library Orientation_June 11, 2025.pptx
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
 
How to Customize Quotation Layouts in Odoo 18
How to Customize Quotation Layouts in Odoo 18
Celine George
 
Vitamin and Nutritional Deficiencies.pptx
Vitamin and Nutritional Deficiencies.pptx
Vishal Chanalia
 
Gladiolous Cultivation practices by AKL.pdf
Gladiolous Cultivation practices by AKL.pdf
kushallamichhame
 
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
Kweku Zurek
 
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
CRYPTO TRADING COURSE BY FINANCEWORLD.IO
CRYPTO TRADING COURSE BY FINANCEWORLD.IO
AndrewBorisenko3
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 

Design and Implementation of Axi-Apb Bridge based on Amba 4.0

  • 1. IJSRD - International Journal for Scientific Research & Development| Vol. 2, Issue 07, 2014 | ISSN (online): 2321-0613 All rights reserved by www.ijsrd.com 47 Design and Implementation of Axi-Apb Bridge based on Amba 4.0 V. Anil Kumar1 V. Saidi Reddy2 1 Associate Professor 2 M.Tech Student 1 Department of Electronics and Communication Engineering 1,2 Brilliant Institute of Engineering and Technology Abstract— ARM introduced the Advanced Microcontroller Bus Architecture (AMBA) 4.0 specifications in March 2010, which includes Advanced eXtensible Interface (AXI) 4.0. AMBA bus protocol has become the de facto standard SoC bus. That means more and more existing IPs must be able to communicate with AMBA 4.0 bus. Based on AMBA 4.0 bus, we designed an Intellectual Property (IP) core of Advanced Peripheral Bus (APB) bridge, which translates the AXI4.0-lite transactions into APB 4.0 transactions. The bridge provides an interface between the high-performance AXI bus and low-power APB domain. Key words: SoC, AMBA, AXI, APB I. INTRODUCTION Integrated cirtuits has entered the era of System-on-a-Chip (SoC), which refers to integrating all components of a computer or other electronic system into a single chip. It may contain digital, analog, mixed-signal, and often radio- frequency functions – all on a single chip substrate. With the increasing design size, IP is an inevitable choice for SoC design. And the widespread use of all kinds of IPs has changed the nature of the design flow, making On-Chip Buses (OCB) essential to the design. Of all OCBs existing in the market, the AMBA bus system is widely used as the de facto standard SoC bus. On March 8, 2010, ARM announced availability of the AMBA 4.0 specifications. As the de facto standard SoC bus, AMBA bus is widely used in the high-performance SoC designs. The AMBA specification defines an on-chip communication standard for designing high-performance embedded microcontrollers. The AMBA 4.0 specification defines five buses/interfaces.  Advanced eXtensible Interface (AXI)  Advanced High-performance Bus (AHB)  Advanced System Bus (ASB)  Advanced Peripheral Bus (APB)  Advanced Trace Bus (ATB) AXI, the next generation of AMBA interface defined in the AMBA 4.0 specification, is targeted at high performance, high clock frequency system designs and includes features which make it very suitable for high speed sub-micrometer interconnect.  separate address/control and data phases  Support for unaligned data transfers using byte strobes  burst based transactions with only start address issued  issuing of multiple outstanding addresses  easy addition of register stages to provide timing closure II. TOP VIEW A. Block Diagram In this study, we focused mainly on the implementation aspect of an AXI4-Lite to APB bridge. The APB bridge provides an interface between the high-performance AXI domain and the low-power APB domain. It appears as a slave on AXI bus but as a master on APB that can acces up to sixteen slave peripherals. Read and write transfers on the AXI bus are converted into corresponding transfers on the APB. The AXI4- Lite to APB bridge clock diagram is shown in Figure. 1. Fig. 1: block diagram B. Signal Connections Figure. 2 shows the component signal connections. The bridge uses:  AMBA AXI-Lite signals as described in the AMBA AXI-Lite 4.0 protocol specification.  AMBA APB signals as described in the AMBA APB 4.0 protocol specification.
  • 2. Design and Implementation of Axi-Apb Bridge based on Amba 4.0 (IJSRD/Vol. 2/Issue 07/2014/012) All rights reserved by www.ijsrd.com 48 C. AXI Handshake Mechanism In AXI 4.0 specification, each channel h as a VALID and READY signals for handshaking. The sour ce asserts VALID when the control information or data is available. The destination asserts READY when it can accept the control information or data. Transfer occurs only when both the VALID and READY are asserted. Figure. 3 shows all possible cases of VALID/READ handshaking. Note that when source asserts VALID, the corresponding control information or data must also be available at the same time. The arrows in Figure. 3 indicate when the transfer occurs. A transfer takes place at the positive edge of clock. Therefore, the source needs a register input to sample the READY signal. In the same way, the destination needs a register input to sa mple the VALID signal. Considering the situation of Figure. 3(c), we assume the source and destination use output registers instead of combination circuit, they need one cycle to pull low VALID/READY and sample the VALID/RE ADY again at T4 cycle. When they sample the VALID/REA DY again at T4, there should be another transfer which is an error. Therefore source and destination should use combi national circuit as output. In short, AXI protocol is suitable register input and combinational output circuit. The APB bridge buffers address, contr ol and data from AXI4-Lite, drives the APB peripherals and returns data and response signal to the AXI4-Lite. It decodes the address using an internal address map to select the peripheral. The bridge is designed to operate when the APB and AXI4-Lite have independent clock frequency and phase. For every AXI channel, invalid commands are not forwar ded and an error response generated. That is once an periph eral accessed does not exist, the APB bridge will generate DE CERR as response through the response channel (read or write). And if the target peripheral exists, but asserts PSLVERR, it will give a SLVERR response. Fig. 3: handshake mechanism III. CLOCK DOM AIN CROSSING (CDC) A clock domain crossing ( CDC), or simply clock crossing, is when a signal crosses from o ne clock domain into another[3] . If a signal does not assert long enough and is not registered, it may appear asynchronous on the incoming clock boundary. Metastability happens when signal changes within the setup/hold time window. Sync hronizing a signal that crosses into a higher clocked domain can be accomplished by registering the signal through a flip-flop that is clocked by the source domain, thus holding the signal long enough to be detected by the higher clocked destination domain. Synchronizing a signal traversing into a slower clock domain is more cumbersome[4] . This typically requires a register in each clock domain with a form of feedback from the destination domain to the source domain , indicating that the signal was detected. A. Metastability Metastability cannot be avoided, but a solution for handling the metastable signal enables proper functioning of the design. The metastability occurrences can be predicted by using the mean time between failures (MTBF) formula (1): Where C1 and C2 are constants that depend on the technology used to build the flip-flop; tMET is the duration of the metastable output; and fclk and fdata are the frequencies of the synchronous clock and the asynchronous input, respectively. B. Synchronizer Designers can use special metastable hardened flops for increasing the MTBF. For example, in Figure. 4, a synchronizer flop is used following the signal DB. So, instead of the metastable signal DB being used in the function downstream as in Figure. 4, the stable signal DB2 is used in the logic downstream[8] . In the AXI4-Lite to APB bridge, we use synchronizer block designs for communicate between the AXI and APB clock domain. Fig. 4: two flip-flop synchronizer IV. FINITE STATE MACHINE (FSM) A finite state machine is a mathematical abstraction sometimes used to design digital logic or computer programs. It is a behavior model composed of a finite
  • 3. Design and Implementation of Axi-Apb Bridge based on Amba 4.0 (IJSRD/Vol. 2/Issue 07/2014/012) All rights reserved by www.ijsrd.com 49 number of states, transitions between those states, and actions, similar to a flow graph in which one can inspect the way logic runs when certain conditions are met[10] . The state transition diagram is a picture of our state machine model. Figure. 5 is the state transition diagram of our FSM. The state machine operates through the following states:  IDLE. This is the default state of the FSM.  WRITE_SETUP. When a write transfer request is asserted, the FSM moves into the WRITE_SETUP state.  READ_SETUP. When a read transfer request is asserted, the FSM moves into the READ_SETUP state.  WRIET_ACCESS. The enable signal, PENABLE, is asserted in the WRITE_ACCESS state.  READ_ACCESS. The enable signal, PENABLE, is asserted in the READ_ACCESS state.  WRITE_WAIT. When the AXI write response channel is not ready for receiving signal BRESP, then stay in WRITE_WAIT state.  READ_WAIT. When the AXI read data channel is not ready for receiving signal RRESP, then stay in READ_WAIT state. States READ_WAIT and WRITE_WAIT are added, because the APB is not pipelined, wait states are added during transfers between the APB and AXI interface. According AXI specification, the read address channel, write address channel and write data channel are completely independent. Each channel has a set of forward signals and a feedback signal for handshaking. A read and a write requests may be issued simultaneously (AWVALID/WVALID and ARVALID are asserted high simultaneously) from AXI4-Lite, the AXI4-Lite to APB bridge will give more priority to the read request than to the write request. That is, when both write and read requests are valid, the write request is initiated on APB after the read is requested on APB. V. SIMULATION & IMPLEMENTATION The timing diagram shown in Figure. 5 illustrate the AXI4- Lite to APB bridge operation for various read and write transfers. It shows that when both read and write requests are active, read is given more priority. Before Static Timing Analysis (STA), it is necessary to inform the EDA tools that ACLK and PCLK are two asynchronous clock domains. Fig. 5: typical read and write transfer VI. CONCLUSION In this study, we provide an implementation of AXI4-Lite to APB bridge which has the following features:  32-bit AXI slave and APB master interfaces.   PCLK clock domain completely independent of ACLK clock domain.   support up to 16 APB peripherals.   support the PREADY signal which translate to wait states on AXI.   an error on any transfer results in SLVERR as the AXI read/write response.  REFERENCES [1] ARM, "AMBA Protocol Specification 4.0", www.arm.com, 2010. [2] Ying-Ze Liao, "System Design and Implementation of AXI Bus", National Chiao Tung University, October 2007. [3] Clifford E. Cummings, "Coding And Scripting Techniques For FSM Designs With Synthesis- Optimized, Glitch-Free Outputs," SNUG (Synopsys Users Group Boston, MA 2000) Proceedings, September 2000. [4] Clifford E. Cummings, “Synthesis and Scripting Techniques for Designing Multi-Asynchronous Clock Designs,” SNUG 2001 [5] Chris Spear, "SystemVerilog for Verification, 2nd Edition", Springer, www.springeronline.com, 2008. [6] Lahir, K., Raghunathan A., Lakshminarayana G., “LOTTERYBUS: a new high-performance communication architecture for system-on-chip deisgns,” in Proceedings of Design Automation Conference, 2001.
  • 4. Design and Implementation of Axi-Apb Bridge based on Amba 4.0 (IJSRD/Vol. 2/Issue 07/2014/012) All rights reserved by www.ijsrd.com 50 [7] Sanghun Lee, Chanho Lee, Hauk-Jae Lee, “A new multi-channel on-chip-bus architecture for system-on- chips,” in Proceedings of IEEE international SOC Conference, September 2004. [8] Martino Ruggiero, Federico Angelina, Francesco Palette, Divide Bertozzi, Luca 86