Hi i tried to override the value from the command line but i am not getting the expected value.
EX : class config;
rand unsigned int value;
constraint value_cnstn { value inside {80,1000,1500,2500}; }
function void post_randomize();
if(!$value$plusargs("VALUE:%d",value))
begin
value = value;
$display("value is :%d",value);
end
else
$display("value is override from cmd line :%d",value);
endfunction
endclass :config
simargs : +VALUE=1000
but am getting some random value other than 1000