Even after a timepoint? At least one simulator starts wires at x deliberately and then drives them to z in order that there be a transition at time 0 in order to trigger continuous assignments and always blocks, etc. Shalom > -----Original Message----- > From: owner-verilog-ams@server.eda.org > [mailto:owner-verilog-ams@server.eda.org] On Behalf Of David Miller > Sent: Wednesday, June 04, 2008 7:29 PM > To: Nourdine Belhous > Cc: Verilog-AMS LRM Committee > Subject: Re: more Clause 3 comments > > Hi Nourdine, > Thanks, I changed my example to be 'wire mywire' instead. > Unfortunately, when I tried this with two different > commercial digital simulators, one gives > mywire = x > > the other > mywire = z > > So even the pure digital simulators don't seem to agree. > > Cheers... > Dave > > > Nourdine Belhous wrote: > > Hi, > > If you want to test the initial value of a net, you should > declare a > > wire (or anything specified as a net in the digital LRM) > instead of a > > register. > > And you'll probably get a value of 'z' from the simulator. > > > > Nourdine BELHOUS. > > > > David Miller wrote: > >> > >>> > >>> 3.7: "Unlike other digital nets which have an initial > value of 'x',..." > >>> Digitial nets have an initial value of z, not x. > >>> > >> > >> I am confused. > >> If I have: > >> > >> module test; > >> reg myreg; > >> initial $display("myreg = %b",myreg); endmodule > >> > >> Digital simulators print: > >> myreg = x > >> > >> How is this value different from the initial value of myreg? > >> > >> > >> Dave > >> > >> > >> > > > > > > -- > ============================================== > -- its another day for you and me in paradise > -- > -- David Miller > -- Design Technology (Austin) > -- Freescale Semiconductor > -- Ph : 512 996-7377 Fax: x7755 > ============================================== > > -- > 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 Wed Jun 4 12:42:32 2008
This archive was generated by hypermail 2.1.8 : Wed Jun 04 2008 - 12:42:35 PDT