PDA

View Full Version : Warning seen in compilation - (vlog-2223)



ashwini
12-22-2009, 04:00 AM
Hi,
I see the following warning while compiling the xbus OVC code in OVM kit.

** Warning: ../sv/xbus_master_seq_lib.sv(49): (vlog-2223) Inline constraints for hierarchical call to randomize() will be resolved with respect to the current scope

What is the reason for this warning and how can it be removed?

Thanks,
Ashwini

vishnuprasanth
12-22-2009, 12:09 PM
** Warning: ../sv/xbus_master_seq_lib.sv(49): (vlog-2223) Inline constraints for hierarchical call to randomize() will be resolved with respect to the current scope

The above warning indicates that Inline constraints for hierarchical call to randomize() will be resolved with respect to the current scope. In SV 2001 while randomizing the variables, scope of the parameters is not defined. So variables can be considered to have scope locally or inside object. As language is not defining the scope Tools is considering it as local scope.

But in SV 2009, User can control the scope.

dave_59
12-22-2009, 01:42 PM
See thread 266