Professional Documents
Culture Documents
Axi Vip User Guide
Axi Vip User Guide
Author Mikko
Kemppinen
Owner Mikko
Kemppinen
Organization SoC
Approver
Document ID
Document location
Change History
Version Status Date Author Owner Reviewed by Reviewed Approver Approval Description of changes
date date
This material, including documentation and any related computer programs, is protected by
copyright controlled by Nokia Solutions and Networks. All rights are reserved. Copying,
including reproducing, storing, adapting or translating, any or all of this material requires the
prior written consent of Nokia Solutions and Networks. This material also contains confidential
information, which may not be disclosed to others without the prior written consent of Nokia
Solutions and Networks.
1 Introduction
AXI_MASTER_AGENT provides VIP for doing AXI master accesses in UVM environment. It also
provides UVM RAL adapter and example environment to do register accesses through RAL
(Register Abstraction Layer). RAL is part of UVM and enables register accesses based on register
names instead of addresses. UVM includes register access functions and sequences for register
testing. AXI4 agent also includes AXI4 SLAVE agent which is implements slave functionality.
Example environment also provides convenience functions to do RAL register and register field
accesses using register/field names without defining register model hierarchy.
FISU agent guideline [2] is used as reference when creating the VIP.
• Master mode
• Single read and write functions one at a time (no simultaneous or overlapping transactions)
• Always uses zero-ID
• 2 timing modes o Default: interface timings, order of address/data cycles and delay of
bready/rready responses randomized
o Fast_mode: Interface timing fixed, address and data cycle started
simultaneously with no delay. Immediate bready and rready responses
• RAL integration in example environment
• reg_read, field_read, reg_write and field_write functions for RAL accesses
• Write and read sequences to do accesses outside RAL
• Write strobe support with and without RAL
• Configurable data and address widths o Supports also data widths outside AXI-lite scope
(32, 64).
o Data widths supported: 8, 16, 32, 64, 128, 256, 512, 1024.
• Unaligned transfers
• Transaction and channel level timeout checking
• Transaction latency printed to log and passed to analysis port.
• Features outside of AXI-lite scope o Support for different transaction sizes (AWSIZE and
ARSIZE) o Incr Burst support
• Supports Synopsys VCS and Mentor Graphics Questa. • Very simple sanity test suite
2.2 Implemented features for AXI slave
•
•
- Single accessit
- Incrementing burst tyyppi
3 Structure
<Insert example TB figure here>
4 Configuration
Maximum AXI data and address bus widths are configured through system verilog defines
AXI_MAX_AW and AXI_MAX_DW in axi_defines.svh.
VIP configuration object is passed to agent through UVM config database. Configuration object has
configuration variables described in Table 1. (Both master and slave object variables are presented
in the table, which explicitly defines if the variable is master or slave only.)
VIP can be used in passive mode (has_driver = 0) to monitor and log bus traffic.
5 Example testbench
<Insert example TB figure here>
5.1 How to run example test bench
Example test cases are run by using commands below in SIM-directory
VCS:
-Example test case was done using VCS version: syn_vcs_mx_K_2015_09_SP1
-Running analysis, elaboration, simulation (defaults to test case example_test1)
-DEBUG VISIBILITY: gmake -f Makefile_example_env MODE=DEBUG
- NORMAL VISIBILITY: gmake -f Makefile_example_env
Questa:
-Example test case was done using Questa version: mg_questacore_prime10_4d
24-04-2015 – TypeDocIDHere - 5 / 6 © Nokia Solutions and Networks 2014
Internal only
-Running analysis, elaboration, simulation (defaults to test case example_test1)
-DEBUG VISIBILITY: gmake -f Makefile_example_env_vsim MODE=DEBUG
- NORMAL VISIBILITY: gmake -f Makefile_example_env_vsim
AXI4 VIP can only be found from ICManage i.e. no SVN repository available
6.1.1 Admin list
Contact one of people in following list to get access to IC verif common repository:
Mika Holappa
Mikko Kemppinen
6.2 JIRA
JIRA is used as issue reporting tool for the VIP: https://jira.inside.nsn.com/browse/VIP
Contact JIRA project owner Antti Rautakoura for VIP JIRA page access.
8 References
[1] FISU agent Guideline reference
https://sharenetims.inside.nokiasiemensnetworks.com/Open/D507907329