I am using UVM add_sequence to generate random sequence :
class rand_sequence_valid extends uvm_sequence_library#(sequence_item);
rand bit [15:0] address;
function new(string name=“rand_sequence_valid”);
add_sequence(seq_1::get_type());
add_sequence(seq_2:get_type());
add_sequence(seq_3::get_type());
add_sequence(seq_4::get_type());
init_sequence_library();
endfunction
endclass
all seq have one address field, by default address field is declared as rand, from testcase I am giving input to the address field,
but when I execute that rand seq valid,input from testcase is not passed, I am getting random value.my question is,there is any way to replace address field with my testcase input value instead of random seq.
The issue is that you are using the UVM mechanism to create and randomize a random sequence for you. By doing this, you lose all ability to control the randomization.
Instead, you should select a random sequence as part of your test which will then give you the ability to control your address field.