[source]

Class uvm_pkg::uvm_random_sequence

Copyright 2007-2011 Mentor Graphics Corporation Copyright 2007-2010 Cadence Design Systems, Inc. Copyright 2010 Synopsys, Inc. Copyright 2010 Paradigm-works, Inc. All Rights Reserved Worldwide

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

CLASS- uvm_random_sequence

This sequence randomly selects and executes a sequence from the sequencer's sequence library, excluding uvm_random_sequence itself, and uvm_exhaustive_sequence.

The uvm_random_sequence class is a built-in sequence that is preloaded into every sequencer's sequence library with the name "uvm_random_sequence".

The number of selections and executions is determined by the count property of the sequencer (or virtual sequencer) on which uvm_random_sequence is operating. See uvm_sequencer_base for more information.

Constructors

new(string name = "uvm_random_sequence")

new

Parameters:

name (string)

Functions

get_count()

Function- get_count

Returns the count of the number of sub-sequences which are randomly generated. By default, count is equal to the value from the sequencer's count variable. However, if the sequencer's count variable is -1, then a random value between 0 and sequencer.max_random_count (exclusive) is chosen. The sequencer's count variable is subsequently reset to the random value that was used. If get_count() is call before the sequence has started, the return value will be sequencer.count, which may be -1.

do_copy(uvm_object rhs)

Implement data functions

Parameters:

rhs (uvm_object)

do_compare(uvm_object rhs, uvm_comparer comparer)
Parameters:
do_print(uvm_printer printer)
Parameters:

printer (uvm_printer)

do_record(uvm_recorder recorder)
Parameters:

recorder (uvm_recorder)

create(string name = "")
Parameters:

name (string)

Return type:

uvm_object

get_type_name()

Tasks

body()

body