This appendix contains information about
migrating an AMD Vivado™
design with AXI BFM to AXI VIP.
- In Vivado IP integrator BD design, replace BFM with AXI VIP and configure the AXI VIP. If the old BFM is AXI4 in slave mode, for example, set up the AXI VIP protocol to AXI4 and the interface mode to slave.
- In the test bench, remove all BFM related tasks and add the following codes:
- Import two packages, see Chapter 6, Test Bench on
how to obtain
<component_name>_pkg:
import <component_name>_pkg::* import axi_vip_pkg::*;
- Declare agent, see Chapter 6, Test Bench for
requirements.
Because it is for migration purpose, no pass-through agent is declared since BFM did not support pass-through mode.
- Construct the agent.
- For example, AXI VIP in master
mode:
mst_agent = new("master vip agent",<hierarchy path to AXI VIP instance> inst.IF);
See Chapter 4, Design Flow Steps to find the hierarchy path.
- For example, AXI VIP in master
mode:
- Start agent:
- If AXI VIP is in master
mode:
mst_agent.start_master();
- If AXI VIP is in master
mode:
- Replace the existing BFM WRITE/READ_BURST with the VIP
WRITE/READ_BURST.
- If AXI VIP is AXI4:
AXI4_WRITE/READ_BURST
- If AXI VIP is AXI3:
AXI3_WRITE/READ_BURST
- If AXI VIP is AXI4LITE:
AXI4LITE_WRITE/READ_BURST
- If AXI VIP is AXI4:
- Import two packages, see Chapter 6, Test Bench on
how to obtain