Amba-Apb Protocol
Amba-Apb Protocol
APB Protocol
APB:
Advanced Peripheral Bus.
The APB (Advanced peripheral bus) protocol is a part of AMBA
(advanced microcontroller bus architecture) family.
Design under test (DUT) is tested and it establishes the communication
between master (test bench) and slave (design).
Provide low cost interface(minimal power consumption and reduced
interface complexity).
APB interfaces to any peripherals that are low-bandwidth.
All signal transitions are only related to the rising edge of the clock..
Every transfer takes atleast 2 cycle.
This specification defines the interface signals, the basic read and write
transfers, and the two APB components the APB bridge and the APB
slave.
This version of the specification is referred to as APB2.
@shraddha_pawankar Date : 19/01/2024
Transfers
There are 2 types of transfers
Write transfer : With no wait states
With wait states
Read transfer: With no wait states
With wait states.
Protocol ??
Set of signals + Guidelines
Set of guidelines on how communication happen between two
components.
One component called Master,another slave.
How address phase will happen?
How data phase will happen?
How response phase will happen?
@shraddha_pawankar Date : 19/01/2024
--------------------------------------------------------------------------------------------------------
Peripheral protocol : Communication for the blocks with other blocks outside
the chip.
Ex: PCIe,USB,DDR,I2C,SPI,UART,SATA
Data communication happens in terms of packets/frames.
Handshaking happens using preamble/Sync
Receiving devices uses preamble/sync pattern to start packet.
There is no dedicated handshaking signals
Interconnect :
Interconnect made up of Decoder + Multiplexer logic
It decodes incoming request address,figures out in which direction shouls
be routed.
It automatically knows in which direction response should be routed.
APB signals :
HANDSHAKING SIGNALS:
PENABLE,PREADY
CONTROL SIGNALS:
PSEL,PENABLE,PREADY,PWRITE
DATA SIGNALS:
@shraddha_pawankar Date : 19/01/2024
PADDR,PWDATA,PRDATA,PRDATA,PREADY,PERROR.
Explain Testplan:
This would include all the supported features, interfaces and protocols ,
configuration and initialization information including registers, and other
details.
A verification engineer who is responsible for verifying a given design
considers the design specification as a golden reference.
His job is to make sure that the design implementation is functionally
correct with respect to this design specification.
A Verification Test plan is a specification document that captures all the
details needed for verifying a given design.
A Verification engineer is responsible for developing this plan initially as
he understands the details of the DUT (Design under Test).
A proper planning is always important to complete verification with
highest quality and in a predictable time period.
Enable Tracing:
Confirm that the interfaces between the UVM testbench and the DUT
are properly connected.
Check the signal connections, clocking, and reset logic.
Examine the transaction flow between the testbench and the DUT.
Use waveform viewers and debugging tools to visualize signal activity
and transaction sequences.