mendozaulises
Member level 3
Hi All, I have a problem when using std::randomize() call.
I have a task
task SetRandomModFactor();
integer aFactor;
for(int i =0; i<20; i++) begin
assert(std::randomize(aFactor) with {aFactor inside{[1:999]};});
rWideFactor = aFactor/1000;
$display("[%t] DC rWideFactor[%d] = %f",$time,i,rWideFactor);
end
endtask : SetRandomModFactor
And I got a compilation error from vcs
Parsing design file 'cte/qpi/tb/interfaces/AFEJitterIF.sv'
Error-[MFNF] Member not found.
Member randomize not found in package std.
"cte/qpi/tb/interfaces/AFEJitterIF.sv", 223: std
Is there any special option that I must use so that vcs recognizes randomize on std package?
I am using the next options for vcs
vcs -line +cli+3 -sverilog -ntb_opts dtm -timescale=1ps/1ps -f compile.f
and VCS_VERSION = Y-2006.06
I have a task
task SetRandomModFactor();
integer aFactor;
for(int i =0; i<20; i++) begin
assert(std::randomize(aFactor) with {aFactor inside{[1:999]};});
rWideFactor = aFactor/1000;
$display("[%t] DC rWideFactor[%d] = %f",$time,i,rWideFactor);
end
endtask : SetRandomModFactor
And I got a compilation error from vcs
Parsing design file 'cte/qpi/tb/interfaces/AFEJitterIF.sv'
Error-[MFNF] Member not found.
Member randomize not found in package std.
"cte/qpi/tb/interfaces/AFEJitterIF.sv", 223: std
Is there any special option that I must use so that vcs recognizes randomize on std package?
I am using the next options for vcs
vcs -line +cli+3 -sverilog -ntb_opts dtm -timescale=1ps/1ps -f compile.f
and VCS_VERSION = Y-2006.06