The Configuration and Verification Analysis of AMBA-Based AHB2APB Bridge
The Configuration and Verification Analysis of AMBA-Based AHB2APB Bridge
Abstract—To strengthen the IP core's reusability, AMBA is most notable one in System Verilog[4]. Data structure features
the on-chip bus architecture used widely for interconnection can assist in modeling tangled data types and make writing test
standards of SOC. In AMBA Architecture, Advanced High- cases at higher abstraction levels simpler.
performance Bus is connected to an ARM control unit, memory
interface, digital signal processing(DSP) and an Advanced ARM announced the release of the AMBA 4.0 specs on
peripheral bus used to connect to a timer, UART, keypad, and March 8th, 2010. The AMBA bus, which is an efficient SoC
PIO. A bridge is a standard bus-to-bus interface that helps to design, frequently makes use of the mandated industry-
build the communication gap between AHB and APB. Another standard SoC bus. For building high-performance embedded
importance of constructing a bridge is to avoid data loss when microcontrollers, the AMBA standard specifies an on-chip
data transfer is initiated. So keeping this in mind, the up- communication standard.
gradation in technology, tools and methodologies has made the
need for advancement in the verification environment. In this
paper, presents the design and verification of the AMBA-based
AHB2APB Bridge. The verification environment is developed in
the Questa-sim simulator. To verify the functional and code
coverage multiple test cases like Increment, Wrap Read and
write cycles with different bit sizes of 4,8,16 bits are done, and
100 percent Functional & 97 percent code coverage are
achieved.
Authorized licensed use limited to: KLE Technological University. Downloaded on November 23,2023 at 13:11:36 UTC from IEEE Xplore. Restrictions apply.
II. LITERATURE REVIEW
T. Koundinya et.al proposed AMBA9[1], an on-chip bus
topology, which has been discussed by the author in this work.
It is challenging to evaluate embedded systems that use
AMBA. A challenging interface between both the Modern
High Bus and the Advanced Peripherals Bus called the
AHB2APB Bridge is the subject of this study (APB). In this
article, the bridge module's synthesizing netlist is built. They
do functional and timing simulations using Xilinx, Model-
sim, and Verilog HDL.
Prashant Dwivedi et.al has described the development, and
testing of the AMBA displayed in this study. System Verilog
is used to build the verification environment, which includes
capabilities like functionality, assertions coverage and code Fig. 2. AHB2APB Bridge
cover. The system has no loss of data as envisioned, thanks to
the meticulous design and verification of APB 4.0 protocols. In fig 2, AHB and APB are connected by AHB2APB. It
The whole process of developing the verification environment operates the APB periphery, buffers the addresses, control,
is covered and put into practice. Verilog HDL design is carried and information from the AHB, and then transmits the
out utilizing Mentor graphical tools. For the corresponding information along with a signal obtained to the AHB. Any
Verification Environment simulations, Questa and Precision frequencies and phase combinations between both the AHB
Pro are employed. With 1030 Bins and 97 percent code and APB clocks will function with the AHB2APB
coverage, 100% functional coverage is achieved[2]. communication. The AHB2APB transferred information
Cheng hai Ma et.al proposed the Advanced extensible during the write cycle from AHB to APB and during the
Interface 4.0 standards[3], which are part of the AMBA 4.0 reading cycle. Communication between the AMBA efficient
standards, which were released in March 2010. The standard bus and the AMBA peripheral bus[8]. It provides gating of the
chip bus has been established as the AMBA bus protocol. This addresses and controlling.
implies that an increasing number of current IPs should be An AHB slave is the AHB to APB bridge interface; APB
able to interface. The author develops the Intellectual Property accesses last for various amounts of time. Additionally,
(IP) core, which converts AXI4.0-lite transactions into APB because of their fixed one-word width, it is impossible to write
4.0 transactions. AXI bus, which offers great performance, to just an 8- bit portion of a 32-bit register[9][12]. APB
and APB domain, which offers low power, are connected via controllers do not necessitate PClock input that's because the
the bridge[11]. APB accessing is coordinated with an activated signal emitted
Perumalla Giridhar proposed that the AHB, the elevated by the AHB to APB bridge connection. Due to the fact that
bus in the AMBA family, is the subject of the author's APB peripherals are only strobed when accessed, they use
attention. AHB's concept and testing were presented; it can little power.
support one master and 4 slaves. AHB is developed in this There are five key construction components that make up
study, and it consists of essential building pieces such as the AHB2APB Bridge's architectural framework:
Master, Slave, Decoder, and Mux. Verilog is used to construct
the mux, decoders, slaves, and design master. Creation of the • AHB Master
Verilog system's verification environment (SV). The Mentors • AHB2APB Bridge
Graphics tool for advanced testing, Questa-Sim, simulations,
and validates the designs while also calculating code and • AHB Interface
functionality coverage options[4]. • APB FSM Controller
III. AHB2APB BRIDGE • APB Interface
Either handshaking signals or asynchronous FIFO are
IV. PROPOSED WORK
used in the bridge's design. AMBA supports a variety of bus
bridges and protocols, including ASB2APB[7], AHB2APB, This paper explains every term related to UVM and
and AXI to APB. The reduced power APB as well as the provides examples. The introduction of UVM segments
speedy AHB, are connected by the AHB to APB bridge, an occurs in the first phase. Some of the characteristics related to
AHB master. Transfers from reading and writing towards the UVM are introduced in the second stage, and UVM is used to
AHB are translated into correspondent transfers. Wait states assemble an environment from scratch in the final stage.
are added throughout an apb transfer because apb is not
pipelined. When the AHB must wait for the APB, it must fill
the communication gap between the high-bandwidth ARM
microprocessor in addition to other quick gadgets on the AHB
and the low-bandwidth peripherals on the APB[9].
Authorized licensed use limited to: KLE Technological University. Downloaded on November 23,2023 at 13:11:36 UTC from IEEE Xplore. Restrictions apply.
creates packet and sends to score board and as well as it also
collects the functionality coverage report from the scoreboard.
The below fsm model in the fig 4 provides the working
procedure of the discussed design can be seen clearly that
when the HRESETn=1 signal is high the address initially in
the idle state(ST_IDLE) that is forwarded to respective read
or write operation with respect to the user specification. If user
wants to write a data them AHB_valid signal=1 with
Hwrite=1 so the data is written in the AHB. And parallely
during read operation is indentified then AHB_valid=1 and
Hwrite=0 then data is read from the APB. This AHB_write
and APB_read transaction is initiated when signal Pready=1
or else if Pready=0 then it will remain in the same previous
state. After completion of the APB transaction when done
signal goes high again it comes to idle state with
HRESETn=0.
Fig. 3. Proposed Architecture of AHB2APB Bridge
Authorized licensed use limited to: KLE Technological University. Downloaded on November 23,2023 at 13:11:36 UTC from IEEE Xplore. Restrictions apply.
doing a proper incrementing operation of count increments 4,8
and 16 bits. In the wrap test case, it enquires that the data
address reaches the specified maximum bound(wrap) in
4,8,16 bits of a data address. For RTL design, the quest sim
10.2b simulator is used in Verilog; further UVM verification
for more in-depth Validation of code functionality in system
Verilog.
The AHB and APB input signals with the corresponding
output signals linked to the inputs are represented in the
behavioral simulation result of the increment 4 write
operation. The overall operation is enabled with the sequential
HBURST=3 signal when HRESETn=1 and HSIZE=2 will
specify the size of the transmitting data. When a transaction is Fig. 8. Wrap_4_Write waveform
invalid, the HTRANS signal is HADDR, which provides
information about the address for the specific data, and In the below fig 9, the test case wrap 8 read operation,
HTRANS=0 otherwise (valid transaction). HWRITE is which reads data from the APB protocol to AHB, is depicted
another crucial parameter signal that lets you know whether in the waveform above. When HWRITE=1 and HSIZE=2, the
the current operation is writing to or reading from AHB. data contains an HRDATA that reads data and an increment
Therefore, if HWRITE=1 then a write operation has been of 4 bits from the previous HADDR. The claim that PSEL=1
performed. HWDATA was asserted with the HREADYOUT and PENABLE=1 are true.
signal toggled. The main thing to look for in the waveform
window is the test case of increment 4, which shows the same
AHB data being transferred to APB without any data loss,
with the APB input signals PRESETn=1 asserted with
PADDR, PENABLE=1 with PSEL=1 signal made high, and
PSTRB=3 of size with PWRITE operation shown in the below
fig 6 and 7 with write and Read operation.
Authorized licensed use limited to: KLE Technological University. Downloaded on November 23,2023 at 13:11:36 UTC from IEEE Xplore. Restrictions apply.
APB Bridge is designed in Verilog HDL and implemented in [7] Sandeep Jagre, Dr. Neelesh Gupta, Prof. Nishi Pandey, "Design and
this study to make the AHB and APB devices a low-power Implementation of AMBA APB Bridge with Low Power
Consumption," IJSTE - International Journal of Science Technology &
consuming system. HCLK and PENABLE signal mechanisms Engineering, Volume 4, Issue 2, August 2017.
were also implemented. The capability Several test cases, [8] Ankem Kiran, v Thrimurthulu, “VERIFICATION OF AMBA
including read transfer, write transfer, read increment and AHB2APB BRIDGE USING UNIVERSAL VERIFICATION
wrap transfer, and write wrap and increment transfer, were METHODOLOGY (UVM)”, International Journal in IT and
driven in order to verify the Bridge's functionality. The AHB Engineering, Vol.04 Issue-12, December 2016.
to APB bridge will be implemented in the future with [9] Priyanka M Shettar1, Ashwin Kumar “Verification IP of AMBA AXI
numerous masters and numerous slaves. The AHB and APB V1.0 Using UVM”. IOSR Journal of VLSI and Signal Processing
(IOSR-JVSP) Volume 6, Issue 3, Ver. II (May -Jun. 2016), pg. 54-58.
interface could be modified to work with additional AMBA
[10] Heli Shah, P Chinmay Modi, Bhargav Tarpara, "Design &
protocol versions, like ASB and AXI. And also will involve Implementation of Advance Peripheral Bus Protocol," International
implementing an interface between additional AMBA Journal of Scientific Engineering and Applied Science (IJSEAS) -
protocols and APB Volume-1, Issue-3, June 2015.
[11] Chenghai Ma, Zhijun Liu and Xiaoyue Ma, "Design and
ACKNOWLEDGMENT Implementation of APB Bridge based on AMBA 4.0”, School of
I would like to express my profound thankfulness Dr. Information Science and Engineering, Shandong University, Jinan,
China,2011 IEEE.
Ambedkar Institute of Technology in Bangalore for the
[12] Akhilesh Kumar and Richa Sinha, "DESIGN AND VERIFICATION
support. Additionally, I want to express my appreciation to my ANALYSIS OF APB3 PROTOCOL WITH COVERAGE”,
family and friends for their important assistance. International Journal of Advances in Engineering & Technology, Nov
2011.
REFERENCES [13] Anurag Shrivastava, GS Tomar, Ashutosh Kumar Singh, "Performance
[1] T. Koundinya,“Design and Implementation of AMBA-based Comparison of AMBA Bus-Based System-On-Chip Communication
AHB2APB Bridge”, on June 2022. Protocol," International Conference on Communication Systems and
Network Technologies,2011.
[2] Prashant Dwivedi, Neha-Mishra and Amit-Singh-Rajput, “Assertion &
Functional Coverage Driven Verification of AMBA Advanced [14] Jaehoon Song, Hyunbean Yi, Juhee Han, and Sungju Park, Member,
Peripheral Bus Protocol Using System Verilog,” (ICAECT) on May “An Efficient SoC Test Technique by Reusing On/Off-Chip Bus
25th, 2021. Bridge," IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS—
I: REGULAR PAPERS, VOL. 56, NO. 3, MARCH 2009.
[3] Bhagvati Panchal and Yogesh Parmar, "Implementation of AMBA
Based AHB2APB Bridge,” International Journal of Recent Technology [15] Kwang-Hyun Cho, Jaebeom Kim, Euibong Jung, "Reusable Platform
and Engineering (IJRTE) ISSN: 2277-3878 (Online), Volume-8 Issue- Design Methodology For SoC Integration And Verification," Design
6, March 2020. Technology Team, System LSI Division, Samsung Electronics,2008
International SoC Design Conference.
[4] Perumalla Giridhar , Dr Priyanka Choudhury ,“Design and Verification
of AMBA AHB”, NIT Agartala,2019,IEEE. [16] Han Ke, Deng Zhongliang and Shu Qiong “Verification of AMBA Bus
Model Using SystemVerilog." School of Electronic Engineering,
[5] L Deeksha, B. R Shivakumar “Effective Design and Implementation of
Beijing University of Posts and Telecommunications, 2007 IEEE.
AMBA AHB Bus Protocol using Verilog”. 2019 International
Conference on Intelligent Sustainable Systems (ICISS). [17] URL:http://www. Testbench. com.
[6] N.G.N.PRASAD “DEVELOPMENT AND VERIFICATION [18] AMBA Specification (Rev 2.0). http://www.arm.com
OFAHB2APB BRIDGE PROTOCOL USING UVM TECHNIQUE,” [19] ARM, "AMBA Specification Overview," http://www. arm. Com/.
International Journal of Scientific Research and Review, Volume 6, [20] URL: https://www.amazon.in/SystemVerilog-Verification-Learning-
Issue 12, 2017. TestbenchLanguage/dp/146140714
Authorized licensed use limited to: KLE Technological University. Downloaded on November 23,2023 at 13:11:36 UTC from IEEE Xplore. Restrictions apply.