AXI Implementation On SoC
AXI Implementation On SoC
Abstract— Advanced microcontroller bus architecture (AMBA) address channel, write data channel, read data channel, read
protocol family provides metric-driven verification of protocol address channel, and write response channel. The AXI4
compliance, enabling comprehensive testing of interface protocol supports the following mechanisms:
intellectual property (IP) blocks and system-on-chip (SoC) • Unaligned data transfers and up-dated write response
designs. The AMBA advanced extensible interface 4 (AXI4)
requirements.
update to AMBA AXI3 includes the following: support for burst
lengths up to 256 beats, updated write response requirements, • Variable-length bursts, from 1 to 16 data transfers per
removal of locked transactions and AXI4 also includes burst.
information on the interoperability of components. AMBA AXI4 • A burst with a transfer size of 8, 16, 32, 64, 128, 256,
protocol system supports 16 masters and 16 slaves interfacing. 512 or 1024 bits wide is supported.
This paper presents a work aimed to design the AMBA AXI4 • Updated AWCACHE and ARCACHE signalling
protocol modeled in Verilog hardware description language details.
(HDL) and simulation results for read and write operation of
Each transaction is burst-based which has address
data and address are shown in Verilog compiler simulator (VCS)
tool. The operating frequency is set to 100MHz. Two test cases and control information on the address channel that describes
are run to perform multiple read and multiple write operations. the nature of the data to be transferred. The data is transferred
To perform single read operation module takes 160ns and for between master and slave using a write data channel to the
single write operation it takes 565ns. slave or a read data channel to the master. Table 1[3] gives the
information of signals used in the complete design of the
Keywords- System-on-chip(SoC), Intellactual Property (IP), protocol.
AMBA, AXI, VCS, Verilog. The write operation process starts when the master
sends an address and control information on the write address
I. INTRODUCTION
channel as shown in fig. 1. The master then sends each item of
In recent years due to the miniaturization of semiconductor write data over the write data channel. The master keeps the
process technology and computation for survival in the current VALID signal low until the write data is available. The master
market conditions constant customization is required. The sends the last data item, the WLAST signal goes HIGH. When
semiconductor process technology is changing at a faster pace the slave has accepted all the data items, it drives a write
during 1971 semiconductor process technology was 10µm, response signal BRESP[1:0] back to the master to indicate that
during 2010 the technology is reduced to 32nm and future is the write transaction is complete. This signal indicates the
promising for a process technology with 10nm. Intel, Toshiba status of the write transaction. The allowable responses are
and Samsung have reported that the process technology would OKAY, EXOKAY, SLVERR, and DECERR.
be further reduced to 10nm in the future. So with decreasing After the read address appears on the address bus, the
process technology and increasing consumer design data transfer occurs on the read data channel as shown in fig.
constraints SoC has evolved, where all the functional units of 2. The slave keeps the VALID signal LOW until the read data
a system are modelled on a single chip. is available. For the final data transfer of the burst, the slave
asserts the RLAST signal to show that the last data item is
SoC buses [1] are used to interconnect an Intellectual being transferred. The RRESP[1:0] signal indicates the status
Property (IP) core to the surrounding interface. These are not of the read transfer. The allowable responses are OKAY,
real buses, but they reside in Field Programmable Gate Array EXOKAY, SLVERR, and DECERR.
(FPGA). The AMBA [2] data bus width can be 32, 64, 128 or
256 byte, address bus width will be 32bits wide. The AMBA
AXI4 [3] specification to interconnect different modules in a
SoC was released in March 2010.
A. AMBA AXI4 architecture
AMBA AXI4 [3] supports data transfers up to 256 beats
and unaligned data transfers using byte strobes. In AMBA
AXI4 system 16 masters and 16 slaves are interfaced. Each
master and slave has their own 4 bit ID tags. AMBA AXI4 Figure 1: Write address and data burst.
system consists of master, slave and bus (arbiters and
decoders). The system consists of five channels namely write
38
International Journal of Communication Network and Security (IJCNS), Vol-1, Issue-3 ISSN: 2231-1882
Design of AMBA AXI4 protocol for System-on-Chip communication
39
International Journal of Communication Network and Security (IJCNS), Vol-1, Issue-3 ISSN: 2231-1882
Design of AMBA AXI4 protocol for System-on-Chip communication
40
International Journal of Communication Network and Security (IJCNS), Vol-1, Issue-3 ISSN: 2231-1882
Design of AMBA AXI4 protocol for System-on-Chip communication
A. Simulation inputs identification tag of the write response. The BID[3:0] value is
To perform multiple write and read operations, the matching with the AWID[3:0] value of the write transaction
concatenated input format and their values passed to invoke a which indicates the slave is responding correctly. BRESP[1:0]
function is shown in the fig. 6 and 7 respectively. Here the signal that is write response signal from slave is 0 which
normal type of the burst is passed to module. Internal_lock indicates OKAY. Simulation result of slave for multiple write
value is 0, internal_burst value is 1 and internal_prot value is data operation is shown in fig. 10.
1,for both read and write operations, which indicate that the
burst is of normal type. For write operation address locations
passed to module are 40, 12, 35, 42 and 102; for read
operations 45, 12, 67 and 98.
B. Simulation outputs
The simulation output signals generated are as follows:
• From input side the validating signals
AWVALID/ARVALID signals are generated by
Figure 9: Simulation result of slave for single write data operation.
interconnect which gives the information about valid
address and ID tags.
• For write operations BRESP[1:0] response signal
generated from slave indicates the status of the write
transaction. The allowable responses are OKAY,
EXOKAY, SLERR, and DECERR.
• For read operations RLAST signal is raised by slave
for every transaction which indicates the completion
of operation.
V. RESULTS
Simulation is carried out in VCS tool and Verilog is used as
programming language.
A. Simulation result for write operation
Figure 10: Simulation result of slave for multiple write data operation.
The AResetn signal is active low. Master drives the
address, and the slave accepts it one cycle later. B. Simulation result for read operation
The write address values passed to module are 40, 12, 35, The read address values passed to module are 45, 12, 67,
42 and 102 as shown in fig. 8 and the simulated result for 98 as shown in fig. 11 and the simulated result for single read
single write data operation is shown in fig. 9. Input data operation is shown in fig. 12.
AWID[3:0] value is 11 for 40 address location, which is same
as the BID[3:0] signal for 40 address location which is
41
International Journal of Communication Network and Security (IJCNS), Vol-1, Issue-3 ISSN: 2231-1882
Design of AMBA AXI4 protocol for System-on-Chip communication
B. Conclusion
AMBA AXI4 is a plug and play IP protocol released
by ARM, defines both bus specification and a technology
independent methodology for designing, implementing and
testing customized high-integration embedded interfaces. The
data to be read or written to the slave is assumed to be given
by the master and is read or written to a particular address
Figure 11: Simulation result of slave for read address operation. location of slave through decoder. In this work, slave was
modeled in Verilog with operating frequency of 100MHz and
Input ARID[3:0] value is 3 for 12 address location, which simulation results were shown in VCS tool. To perform single
is same as the RID[3:0] signal for 12 address location which is read operation it consumed 160ns and for single write
identification tag of the write response. The RID[3:0] and operation 565ns.
ARID[3:0] values are matching, which indicates slave has
responded properly. RLAST signal from slave indicates the REFERENCES
last transfer in a read burst. Simulation result of slave for
multiple read data operation is shown in fig. 13. [1] Shaila S Math, Manjula R B, “Survey of system on chip buses based on
industry standards”, Conference on Evolutionary Trends in Information
Technology(CETIT), Bekgaum,Karnataka, India, pp. 52, May 2011
[2] ARM, AMBA Specifications (Rev2.0). [Online]. Available at
http://www.arm.com, 1999
[3] ARM, AMBA AXI Protocol Specification (Rev 2.0). [Online].
Available at http://www.arm.com, March 2010
[4] IBM, Core connect bus architecture. IBM Microelectronics. [Online].
Available: http://www.ibm.com/chips/products/coreconnect, 2000
[5] Silicore Corporation, Wishbone system-on-chip (soc) interconnection
architecture for portable ip cores, (Rev B.3). [Online]. Available at
http://www.opencores.org/projects.cgi/web/wishbone/wishbone, Sept
2002
[6] ARM, AMBA AXI protocol specifications, Available at,
Figure 12: Simulation result of slave for single read data operation. http://www.arm.com, 2003
[7] Jun Zheng, Kang Sun , Xuezeng Pan, and Lingdi Ping “Design of a
Dynamic Memory Access Scheduler”, IEEE transl, Vol 7, pp. 20-23,
2007
[8] Na Ra Yang, Gilsang Yoon, Jeonghwan Lee, Intae Hwang, Cheol
Hong Kim, Sung Woo Chung and Jong Myon Kim, “Improving the
System-on-a-Chip Performance for Mobile Systems by Using Efficient
Bus Interface”, IEEE transl, International Conference on
Communications and Mobile Computing, Vol 4, pp. 606-608, March
2009
[9] Bruce Mathewson “The Evolution of SOC Interconnect and How NOC
Fits Within It”, IEEE transl, DAC,2010, California, USA,Vol 6, pp.
312-313, June 2010
[10] Chien-Hung Chen, Jiun-Cheng Ju, and Ing-Jer Huang, “A Synthesizable
AXI Protocol Checker for SoC Integration”, IEEE transl, ISOCC, Vol 8,
Figure 13: Simulation result of slave for multiple read data operation. pp.103-106, 2010
[11] Synopsys, VCS / VCSi User Guide Version 10.3[Online]. Available at,
www.synopsys.com, 2005
VI. CONCLUSION AND FUTURE SCOPE
[12] Samir Palnitkar, Verilog HDL: A Guide to Digital Design and synthesis,
A. Future scope 2nd ed, Prentice Hall PTR Pub, 2003
42
International Journal of Communication Network and Security (IJCNS), Vol-1, Issue-3 ISSN: 2231-1882