axi_monitor_transaction

AXI Monitor Transaction Object. It is an extension of axi_transaction with more APIs added for monitor purpose.

Functions
new

function new( |
input | string | name | = | "unnamed_axi_monitor_transaction",
| xil_axi_uint | protocol | = | 0,
| xil_axi_uint | addrw | = | 32,
| xil_axi_uint | dataw | = | 32,
| xil_axi_uint | idw | = | 0,
| xil_axi_uint | awusrw | = | 0,
| xil_axi_uint | wusrw | = | 0,
| xil_axi_uint | busrw | = | 0,
| xil_axi_uint | arusrw | = | 0,
| xil_axi_uint | rusrw | = | 0,
| xil_axi_uint | supports_narrow | = | 1,
| xil_axi_uint | has_burst | = | 1,
| xil_axi_uint | has_lock | = | 1,
| xil_axi_uint | has_cache | = | 1,
| xil_axi_uint | has_region | = | 1,
| xil_axi_uint | has_prot | = | 1,
| xil_axi_uint | has_qos | = | 1,
| xil_axi_uint | has_wstrb | = | 1,
| xil_axi_uint | has_bresp | = | 1,
| xil_axi_uint | has_rresp | = | 1
| );

Constructor to create a new axi_monitor_transaction, pass the name as the instance name.

get_addr_phase_start
virtual function xil_axi_ulong get_addr_phase_start();

Returns addr_phase_start of the monitor transaction

set_monitor_print_times
virtual function void set_monitor_print_times();

Sets monitor_print_times to be TRUE

clr_monitor_print_times
virtual function void clr_monitor_print_times();

Sets monitor_print_times to be FALSE

get_monitor_print_times
virtual function xil_axi_boolean_t get_monitor_print_times();

Returns monitor_print_times of the monitor transaction

trigger_addr_phase_end

virtual function void trigger_addr_phase_end( |
input | time | ready_time,
input | time | valid_time,
input | xil_axi_ulong | ready_cycle,
input | xil_axi_ulong | valid_cycle,
input | xil_axi_ulong | now
| );

Sets addr_phase_end,addr_phase_end_cycle,addr_ready_assert_time,addr_valid_assert_time,addr_ready_assert_cycle, addr_valid_assert_cycle,addr_phase_start,addr_accepted_cycles

get_addr_phase_end
virtual function time get_addr_phase_end();

Returns addr_phase_end of the monitor transaction

trigger_data_phase_start
virtual function void trigger_data_phase_start();

Sets data_phase_start of the monitor transaction to be current time

get_data_phase_start
virtual function time get_data_phase_start();

Returns data_phase_start of the monitor transaction

trigger_data_phase_end

virtual function void trigger_data_phase_end( |
input | xil_axi_ulong | now
| );

Sets data_phase_end of the monitor transaction to be current time

get_data_phase_end
virtual function time get_data_phase_end();

Returns data_phase_end of the monitor transaction

get_bresp_phase_start
virtual function time get_bresp_phase_start();

Returns bresp_phase_start of the monitor transaction

trigger_bresp_phase_end

virtual function void trigger_bresp_phase_end( |
input | time | ready_time,
input | time | valid_time,
input | xil_axi_ulong | ready_cycle,
input | xil_axi_ulong | valid_cycle,
input | xil_axi_ulong | now
| );

Sets bresp_phase_end,resp_ready_assert_time,resp_valid_assert_time,resp_ready_assert_cycle, resp_ready_assert_cycle,resp_valid_assert_cycle,bresp_phase_start,resp_accepted_cycles, bresp_phase_start,resp_accepted_cycles

get_bresp_phase_end
virtual function time get_bresp_phase_end();

Returns bresp_phase_end of the monitor transaction

trigger_transaction_phase_start
virtual function void trigger_transaction_phase_start();

Sets transaction_phase_start of the monitor transaction to current time

get_transaction_phase_start
virtual function time get_transaction_phase_start();

Returns transaction_phase_start of the monitor transaction

trigger_transaction_phase_end

virtual function void trigger_transaction_phase_end( |
input | xil_axi_ulong | now
| );

Sets transaction_phase_end of the monitor transaction to current time

get_transaction_phase_end
virtual function time get_transaction_phase_end();

Returns transaction_phase_end of the monitor transaction

set_data_beat_time_fields

virtual function void set_data_beat_time_fields( |
input | time | data_ready_assert_time, |  |
input | xil_axi_ulong | data_ready_assert_cycle, |  |
input | time | data_valid_assert_time, |  |
input | xil_axi_ulong | data_valid_assert_cycle, |  |
input | time | data_beat_accepted, |  |
input | xil_axi_int | data_beat_accepted_cycles, |  |
input | xil_axi_ulong | now | = | 0
| );

Sets data_ready_assert_time,data_valid_assert_time,data_beat_accepted,data_beat_accepted_cycles

import_data_beat_fields

virtual function void import_data_beat_fields( |
inout | xil_axi_write_beat | write_beat
| );

Sets transaction_phase_start,data_phase_end,data_ready_assert_time, data_valid_assert_time,data_beat_accepted,data_beat_accepted_cycles, data, stobe, wuser(if WUSER_WIDTH>0)

trigger_data_beat_accepted

virtual function void trigger_data_beat_accepted( |
input | time | ready_time,
input | time | valid_time,
input | xil_axi_ulong | ready_cycle,
input | xil_axi_ulong | valid_cycle
| );

Sets data beat monitor characterics of data_beat_accepted,data_ready_assert_time, data_valid_assert_time,data_ready_assert_cycle,data_valid_assert_cycle,data_beat_accepted_cycles, data_beat_accepted

get_data_beat_accepted
virtual function xil_axi_ulong get_data_beat_accepted();

Returns data_beat_accepted of current beat

get_data_ready_assert_time
virtual function xil_axi_ulong get_data_ready_assert_time();

Returns data_ready_assert_time of current beat

get_data_valid_assert_time
virtual function xil_axi_ulong get_data_valid_assert_time();

Returns data_valid_assert_time of current beat

copy

function void copy( |
axi_monitor_transaction | rhs
| );

Copies the contents of the input monitor transaction to the current monitor transaction

my_clone
virtual function axi_monitor_transaction my_clone ();

Clones the current monitor transaction and returns a handle to the new monitor transaction.

convert2string
virtual function string convert2string();

Returns a format string for AXI monitor transaction of axi_monitor_transaction