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.Received on Wed Jun 4 12:26:21 2008
This archive was generated by hypermail 2.1.8 : Wed Jun 04 2008 - 12:27:00 PDT