Hi All,
I am seeing following error when I try to assign array values using inline constraints
Array size's and dimensions are same and array slicing is not there ,but still I see below error.
Can somebody please through light on this error? Also suggest best practices
class A_seq extends uvm_sequence #(id_nfc_tx_transfer);
`uvm_object_utils(A_seq)
`uvm_declare_p_sequencer(tx_sequencer)
bit [7:0] data_byte[`MAX_DATA:0] ;
function new(string name="A_seq");
super.new(name);
endfunction
virtual task body();
///Array Initialization
for (int i=0;i<=5;i++)
data_byte[i]= 'hAB;
`uvm_do_with(req,{ tx_bit_rate_sel ==212;
tx_num_of_bytes == 5;
tx_data_byte == data_byte;
})
endtask
endclass
Error :Randomization constraint has this error, which will cause the randomize function to return 0 and no new rand values will be set:
Slices of unpacked arrays are not currently supported in this context