Create_monitor_transaction(), Example, Function – Altera Mentor Verification IP Altera Edition AMBA AXI4-Lite User Manual
Page 98: For the monitor bfm api
Mentor Verification IP AE AXI4-Lite User Guide, V10.3
98
SystemVerilog Monitor BFM
create_monitor_transaction()
April 2014
create_monitor_transaction()
This nonblocking function creates a monitor transaction. All transaction fields default to legal
protocol values, unless previously assigned a value. It returns with the axi4_transaction record.
Example
// Create a monitor transaction
trans = bfm.create_monitor_transaction();
Prototype
function automatic axi4_transaction create_monitor_transaction();
Protocol
Transaction
Fields
addr
Start address
prot
Protection:
AXI4_NORM_SEC_DATA; (default)
AXI4_PRIV_SEC_DATA;
AXI4_NORM_NONSEC_DATA;
AXI4_PRIV_NONSEC_DATA;
AXI4_NORM_SEC_INST;
AXI4_PRIV_SEC_INST;
AXI4_NORM_NONSEC_INST;
AXI4_PRIV_NONSEC_INST;
data_words
Data words array.
write_strobes
Write strobes:
Each strobe 0 or 1.
resp
Burst response:
AXI4_OKAY;
AXI4_SLVERR;
AXI4_DECERR;
Operational
Transaction
Fields
gen_write_
strobes
Generate write strobes flag:
0 = user supplied write strobes.
1 = auto-generated write strobes (default).
operation_
mode
Operation mode:
AXI4_TRANSACTION_NON_BLOCKING;
AXI4_TRANSACTION_BLOCKING; (default)
write_data_
mode
Write data mode:
AXI4_DATA_AFTER_ADDRESS; (default)
AXI4_DATA_WITH_ADDRESS;
Operational
Transaction
Fields
address_valid_
delay
Address channel AWVALID delay measured in ACLK cycles for this
transaction (default = 0).
data_valid_
delay
Write data channel WVALID delay array measured in ACLK cycles for
this transaction (default = 0 for all elements).
write_response
_ready_delay
Write response channel BREADY delay measured in ACLK cycles for
this transaction (default = 0).
transaction_
done
Write transaction done flag for this transaction.
Returns
The axi4_transaction record