JonathanBromley Posted June 24, 2010 Report Share Posted June 24, 2010 (edited) hi, In uvm_sequence_builtin.svh we find that uvm_simple_sequence has protected rand uvm_sequence_item item;The fact that item is rand causes VCS to issue a warning when a simple_sequence is randomized, because at that time (in method uvm_sequence_base::do_sequence_kind) the item is null. Incidentally, this same issue was reported on the OVM forum a while back in this thread by someone using OVM with VCS, but the root cause was not identified in that discussion. I suspect the rand qualifier is superfluous. uvm_simple_sequence::body() will randomize the item by an explicit call to item.randomize. Generally, when a sequence has members that are items or subsequences it's correct for them not to be rand, and to allow the randomization to be handled by uvm_do calls in the body method. Is there some special reason why the simple_sequence's item member is rand? If not, can we log this as a (minor) bug and get it changed? Thanks Edited June 24, 2010 by JonathanBromley Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.