Design and Implementation of APB Bridge based on AMBA 4.0 By Manu Ramesh Reg. No.:120942001 Midterm Presentation Department of Electronics and Communication Engineering, MIT, 1 Guide Dr. D. V. Kamath Professor, Department of E&C Manipal Institute of Technology Co Guide: Mr. Shankaranarayana Bhat M Associate Professor Senior sc Department of E&C Manipal Institute of Technolo
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Design and Implementation of APB Bridge based on AMBA 4.0
ByManu Ramesh
Reg. No.:120942001
Midterm Presentation
Department of Electronics and Communication Engineering, MIT, Manipal 1
GuideDr. D. V. KamathProfessor,Department of E&CManipal Institute of Technology
Co Guide: Mr. Shankaranarayana Bhat M Associate Professor Senior scale Department of E&C Manipal Institute of Technology
Department of Electronics and Communication Engineering, MIT, Manipal
Contents
Introduction
Problem Definition
Literature Survey
Methodology
Algorithm for Coding
Results
Conclusion
Future work
2
Department of Electronics and Communication Engineering, MIT, Manipal
Introduction
3
System On chip (SoC) instead of ICs
Need of OCB
AMBA introduced in 1996
AMBA become the de facto standard for SoC buses.
Objectives of AMBA specification
Department of Electronics and Communication Engineering, MIT, Manipal
Contd..
4
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 protocol introduced in AMBA3.0 which is updated in
AMBA 4.0 in 2010
APB is a low cost bus protocol and optimized for minimal
power consumption
Department of Electronics and Communication Engineering, MIT, Manipal
Problem Definition
5
Design and implementation of AMBA AXI4 to APB bridge
Fig no: 1 Signal connections
Department of Electronics and Communication Engineering, MIT, Manipal
Literature Survey
6
AMBA has 4 versions as follows
1. VER1.0 (ASB & APB)
2. VER 2.0 (AHB)
3. VER 3.0 (AXI, ATB)
4. VER 4.0 (AXI 4,AXI LITE,AXI STREAM (AXI))
• In this project, AXI4.0 and APB4.0 are used.
Department of Electronics and Communication Engineering, MIT, Manipal
Contd..
7
Migration from AHB to AXI
• Modern SoC including multi-core clusters, additional DSP,
graphics controllers and other sophisticated peripherals
• The AHB protocol, even in its multi-layer configuration cannot
keep up with the demands of today's SoC
• AXI having high flexibility
Department of Electronics and Communication Engineering, MIT, Manipal
Contd..
8
APB
• The APB protocol is not pipelined
• use it to connect to low-bandwidth peripherals
APB revisions
AMBA 2 APB Specification
• Basic read and write transfers, and the two APB components
the APB bridge and the APB slave
Department of Electronics and Communication Engineering, MIT, Manipal
Contd..
9
AMBA 3 APB Protocol Specification v1.0
• Error response and waiting states added in this version
AMBA APB Protocol Specification v2.0
• Strobe signals and protection signals are added in this version
in addition to previous
Department of Electronics and Communication Engineering, MIT, Manipal
Methodology
10
Working of AMBA AXI
Channel Handshake Process of AXI
• The source generates the VALID signal to indicate when the data
or control information is available
• The destination generates the READY signal to indicate that it
accepts the data or control information
• Transfer occurs only when both the VALID and READY signals
are HIGH
Department of Electronics and Communication Engineering, MIT, Manipal
Contd..
11
Fig no: 2 Handshaking of AXI
Department of Electronics and Communication Engineering, MIT, Manipal
Contd..
12
Working of AMBA APB
• APB having 3 states
• IDLE : This is the initial and the default state of the bus when no
transfer is underway
• SETUP : The first stage of a transfer is a move to the SETUP
state The address, data and control signals are asserted during this
phase but may not be stable
• ENABLE : The address, data and control signals are stable during
this phase
Department of Electronics and Communication Engineering, MIT, Manipal
Contd..
13
No Transfer
IDLEPSELX=0
PENABLE=0
SETUPPSELX=1
PENABLE=0
ENABLEPSELX=1
PENABLE=1
FIG NO: 3 AMBA APB state machine
Department of Electronics and Communication Engineering, MIT, Manipal
Contd..
14
FIG NO: 4 AXI to APB bridge
Department of Electronics and Communication Engineering, MIT, Manipal
Contd..
15
Features of bridge
The Xilinx AXI to APB Bridge is a soft IP core with these
features:
• AXI interface is based on the AXI4-Lite specification
• APB interface is based on the APB3 specification, supports
optional APB4 selection
• Supports 1:1 (AXI:APB) synchronous clock ratio
• Connects as a 32-bit slave on 32-bit AXI4-Lite
• Connects as a 32-bit master on 32-bit APB3/APB4
Department of Electronics and Communication Engineering, MIT, Manipal
Contd..
16
IDLE
WRITE_SETUP
WRITE_ACCESS
WRITE_WAIT
READ_SETUP
READ_ACCESS
READ_WAIT
FIG NO:3 State transition diagram of proposed bridge
Department of Electronics and Communication Engineering, MIT, Manipal
3. ARM,”AMBA™ 4 ATB Protocol Specification ATBv1.0 and ATBv1.1”, March 2010.
4. Chenghai Ma, Zhijun Liu, Xiaoyue Ma, “Design and Implementation of APB Bridge based on AMBA 4.0”, IEEE transaction ,2011.
5. Priyanka Gandhani, Charu Patel, “Moving from AMBA AHB to AXI Bus in SoC Designs: A Comparative Study”, Vol-2 No 4 August, 2011.
6. Samir Palnitkar, Verilog HDL: A Guide to Digital Design and synthesis, 2nd ed, Prentice Hall PTR Pub, 2003.
7. Veena Abraham, Soumen Basak, Sabi S, “Design of AXI4 Protocol Checker for SoC Integration”, International Journal of Emerging Science and Engineering (IJESE, Volume-1, Issue-8, June 2013.
8. V.N.M.Brahmanandam K, Choragudi Monohar, “Design of Burst Based Transactions in AMBA-AXI Protocol for SoC Integration”, International Journal of Scientific & Engineering Research Volume 3, Issue 7, July-2012
9. Xilinx ISE synthesis and verification design guide.