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 > > > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Jun 4 09:01:06 2008
This archive was generated by hypermail 2.1.8 : Wed Jun 04 2008 - 09:01:09 PDT