In reply to dave_59:
hi dave,
below is the part of code i am trying to use.
class xyz extends abc;
rand bit[63:0] addr;
task main_phase(uvm_phase phase);
rand bit [63:0] addr1 ;
phase.raise_objection(this,“starting sequence”);
if(!mss_env_obj.mss_mem_manager_obj.get_addr(start_addr,'hfffff,60,MSS_ECC_CORR))//this part is to get the address range,
`uvm_error(get_name(),$psprintf(“Could not allocate memory space”))
end_addr = start_addr + 'hfffff -'h1;//use 1 kb range
$display(“samir debug - start_addr=%0h end_addr=%0h”,start_addr,end_addr);
addr = std::randomize(addr1) with { addr1 <= end_addr ; addr1 >= start_addr ;} ;
$display(“samir debug - addr is %0h”,addr);
endtask