HI
In my Testbench, I am NOT able to get random value for a seq_item variable which was NOT part of the uvm_object_utils - uvm_field_int() macros.
- Integer Variable “temp” is defined as rand in the sequence item “bus_item” of sequencer A. But “temp” is NOT registered for UVM Field Automation using the uvm_field_int* macro
2.In the virtual sequencer, the bus_item is applied to the sequencer A using the following code:
bus_item bitem;
`uvm_do_on_with(bitem,p_sequencer.A_seqr,{temp=='d20};)
3.But in the simulation, the value of temp is always ‘0’ even with different seeds.
4.After adding the “temp” in the uvm_object_utils - uvm_field_int() macro of the “but_item”, the constrained value of 'd20 is applied to the “temp” variable in my simulations.
How does the UVM Field Automation affects the randomization of a rand variable in sequence item???
I am using the UVM-1.1b version with VCS
Please let me know the odd behavior of “temp” variable in my simulation?
Regards
AnantharajTV