| S | |
| scramble | |
| sequential, data_stream | |
| set_delay, kitchen_timer | |
| set_random_delay, kitchen_timer | |
| size | |
| slice, text | |
| slice_len, text | |
| split | |
| start, kitchen_timer | |
| starts_with, text | |
| stop, kitchen_timer | |
| strip, text | |
| swap | |
| swap_case, text |
(STATIC) Returns a scrambled data stream.
static function ds_type scramble( ds_type ds, scrambler#(T,DEGREE) scrblr, ref lfsr_type lfsr, input bit msb_first = 1 )
Returns a scrambled bit stream.
virtual function bs_type scramble( bs_type bs, ref lfsr_type lfsr )
(STATIC) Returns a new data stream with the elements whose values are initialized with sequential values.
static function ds_type sequential( int unsigned length, pa_type init_value = 0, pa_type step = 1, bit randomize_init_value = 0 )
Sets the delay for the timer to ring.
function void set_delay( time delay )
Set the random delay for the timer to ring between the specified range.
function time set_random_delay( time delay1, time delay2 )
(VIRTUAL) Returns the number of elements in this collection.
virtual function int size()
(VIRTUAL) Returns the number of elements in this deque.
virtual function int size()
(VIRTUAL) Returns the number of elements in this set.
virtual function int size()
(STATIC) Returns a substring in the specified range.
static function string slice( string s, int start_pos = 0, int end_pos = - 1 )
(STATIC) Returns a substring in the specified range.
static function string slice_len( string s, int start_pos = 0, int unsigned length = s.len() )
(STATIC) Splits the given dynamic array into two dynamic arrays.
static function void split( da_type da, ref da_type da0, ref da_type da1, input bit pad = 0 )
(STATIC) Splits the given queue into two queues.
static function void split( q_type q, ref q_type q0, ref q_type q1, input bit pad = 0 )
(STATIC) Returns a queue of substrings by dividing the given string by the specified separator.
static function string_q split( string s, string sep = "", int max_split = -1 )
Starts the timer.
function void start()
(STATIC) Returns 1 if the given string starts with one of the specified prefixes.
static function bit starts_with( string s, string_q prefixes, int start_pos = 0, int end_pos = -1 )
Stops the timer.
function void stop()
(STATIC) Returns a copy of the given string with leading and trailing characters removed.
static function string strip( string s, string chars = " \t\n" )
Swaps the contents of this pair with the ones of the specified pair.
function void swap( ref this_type p )
(STATIC) Swaps two objects.
static function void swap( ref T x, ref T y )
Swaps the contents of this tuple with the ones of the specified tuple.
function void swap( ref this_type t )
(STATIC) Returns a copy of the given string with uppercase characters converted to lowercase, and lowercase characters converted to uppercase.
static function string swap_case( string s )