|
<< Click to Display Table of Contents >> 7.7 Randomizing Transaction Inputs |
![]() ![]()
|
This topic describes how to automatically randomize data going into a transaction. If you want to randomly apply transactions to the model under test see Section 7.6: VHDL: TM fill from Random Generator. To call a specific transactor, but with randomized input data, use either ApplyRandom or PostRandom calls. You can define a subrange for the randomization of an input variable using the Classes and Variables dialog (by default, variables randomize over the entire legal value range for the variable's type).
Using Insert Diagram Call dialog to Write Transaction Calls with Random Data:
|

|
Constraining Random Data Generation:
By default each variable in the diagram will be randomized using the entire range of the type of the variable. To constrain the randomization or to stop randomizing a particular variable, use the Classes and Variables dialog as shown in Section 6.5 Random Number Generation and Constraints.
Master Transaction Manager Calls:
ApplyRandom_diagramName ( signal tb_Control : inout tb_Control_Type;
transactorBfmPath : in string );
ApplyRandom_diagramName_nowait ( signal tb_Control : inout tb_Control_Type;
transactorBfmPath : in string );
PostRandom_diagramName ( signal tb_Control : inout tb_Control_Type;
queuePath : in string;
transactorBfmPath : in string );
PostRandom_diagramName_nowait ( signal tb_Control : inout tb_Control_Type;
queuePath : in string;
transactorBfmPath : in string );
Slave Transaction Manager Apply Calls:
ApplyRandom_diagramName_looping ( signal tb_Control : inout tb_Control_Type;
transactorBfmPath : in string );
ApplyRandom_diagramName_looping_nowait( signal tb_Control : inout tb_Control_Type;
transactorBfmPath : in string; );
PostRandom_diagramName_looping ( signal tb_Control : inout tb_Control_Type;
queuePath : in string;
transactorBfmPath : in string; );
PostRandom_diagramName_looping_nowait ( signal tb_Control : inout tb_Control_Type;
queuePath : in string;
transactorBfmPath : in string; );