-----Original Message----- From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On Behalf Of Chris Spear Sent: Thursday, November 26, 2009 12:44 PM To: sv-bc@server.eda.org Subject: [sv-bc] Can randomize() be called in a constraint File this under "customers do the most amazing things". Is it legal to call the randomize function in a constraint? class A; rand int i; RandStuff stuff; constraint c { i == stuff.randomize(); } endclass This seems to violate the "no side effects" rule. Not to mention that declaring "stuff" as rand would have done this automatically. Thanks! Chris Spear -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Nov 26 09:52:42 2009
This archive was generated by hypermail 2.1.8 : Thu Nov 26 2009 - 09:53:37 PST