This is illegal because 1. The value set for int is 2-state 32-bit integral values, and 2. There is no implicit or explicit cast defined between the special value null and an integral value. ________________________________ From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On Behalf Of Daniel Mlynek Sent: Friday, October 09, 2009 8:09 AM To: sv-ec@server.eda.org Subject: [sv-ec] null compabiilty Is it explicitly said in LRM how null should behave in below case - should it be legal usage or not. (I cannot find such description nor mantis item) : module top; int x; initial if(x==null) $display("false"); initial x = null; endmodule DANiel -- This message has been scanned for viruses and dangerous content by MailScanner <http://www.mailscanner.info/> , and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Fri Oct 9 09:14:46 2009
This archive was generated by hypermail 2.1.8 : Fri Oct 09 2009 - 09:15:22 PDT