axi4stream_ready_gen

AXI4Stream Ready generation object. Ready signal of AXI4STREAM VIP is generated independently from other attributes.  This class is being used to generate all kinds of different patterns of ready signal which user wants. Please refer section READY Generation of PG277 for more details about how to generate ready.

Functions
new
function new(
input string name = "unnamed_axi4stream_ready_gen"
);

Constructor to create an new axi4stream ready gen object

reset_to_defaults
virtual function void reset_to_defaults();

Reset all variables in ready generation to default value

copy
function void copy(
axi4stream_ready_gen rhs
);

Copies the contents of the input ready generation to the current ready generation

my_clone
virtual function axi4stream_ready_gen my_clone ();

Clones the current ready generation and returns a handle to the new generation

convert2string
virtual function string convert2string();

Returns  a form of string of ready object

set_use_variable_ranges
virtual function void set_use_variable_ranges();

Sets the use of the variable ranges when the policy of ready generation is not RANDOM

clr_use_variable_ranges
virtual function void clr_use_variable_ranges();

Clears the use of the variable ranges when the policy of ready generation is not RANDOM

get_use_variable_ranges
virtual function xil_axi4stream_boolean_t get_use_variable_ranges();

Returns the current state of the variable range use feature.

set_ready_policy
virtual function void set_ready_policy(
input xil_axi4stream_ready_gen_policy_t value
);

Sets the policy of ready generation

get_ready_policy
virtual function xil_axi4stream_ready_gen_policy_t get_ready_policy();

Returns the current ready generation policy

set_event_cycle_count_reset
virtual function void set_event_cycle_count_reset(
input xil_axi4stream_uint value
);

Set event_cycle_count_reset value of ready generation

get_event_cycle_count_reset
virtual function xil_axi4stream_uint get_event_cycle_count_reset();

Returns the current event_cycle_count_reset

get_low_time_range
virtual function void get_low_time_range(
output xil_axi4stream_uint min,
output xil_axi4stream_uint max
);

Returns min_low_time and max_low_time of the current ready generation

set_low_time_range
virtual function void set_low_time_range(
input xil_axi4stream_uint min,
input xil_axi4stream_uint max
);

Sets min_low_time and max_low_time of the current ready generation

set_low_time
virtual function void set_low_time(
input xil_axi4stream_uint value
);

Sets low_time of the current ready generation

get_low_time
virtual function xil_axi4stream_uint get_low_time();

Returns low time of the current ready generation

get_high_time_range
virtual function void get_high_time_range(
output xil_axi4stream_uint min,
output xil_axi4stream_uint max
);

Returns min_high_time and max_high_time of the current ready generation

set_high_time_range
virtual function void set_high_time_range(
input xil_axi4stream_uint min,
input xil_axi4stream_uint max
);

Sets min_high_time and max_high_time of the current ready generation

set_high_time
virtual function void set_high_time(
input xil_axi4stream_uint value
);

Sets high_time of the current ready generation

get_high_time
virtual function xil_axi4stream_uint get_high_time();

Returns high time of the current ready generation

get_event_count_range
virtual function void get_event_count_range(
output xil_axi4stream_uint min,
output xil_axi4stream_uint max
);

Returns min_event_count and max_event_count of the current ready generation

set_event_count_range
virtual function void set_event_count_range(
input xil_axi4stream_uint min,
input xil_axi4stream_uint max
);

Sets min_event_count and max_event_count of the current ready generation

get_event_count
virtual function xil_axi4stream_uint get_event_count();

Returns event_count of the current ready generation

set_event_count
virtual function void set_event_count(
input xil_axi4stream_uint in
);

Sets the number of events that ready stays at high

get_ready_rand_policy
virtual function xil_axi4stream_ready_rand_policy_t get_ready_rand_policy();

Returns ready_rand_policy of the ready generation

cheap_random
virtual function void cheap_random();

Generate simplified randomization of ready class when user defines XIL_DO_NOT_USE_ADV_RANDOMIZATION