I had a half-baked idea that, since this example was taken from LRM2.2 that I would use the 2.2 syntax for discipline (without the semicolon). But, on further consideration, I think it's better to put the semicolons in (I've added 2 missing ones below). Sorry for the confusion. -Geoffrey Stuart Sutherland wrote: > In has been suggested in e-mails that I add the semicolon to all discipline > examples. It is not clear to me from your wording in this message if this > to be an exception, and purposely not have a semicolon. > > Stu > ~~~~~~~~~~~~~~~~~~~~~~~~~ > Stuart Sutherland > stuart@sutherland-hdl.com > +1-503-692-0898 > >> -----Original Message----- >> From: owner-verilog-ams@eda.org [mailto:owner-verilog-ams@eda.org] On >> Behalf Of Geoffrey.Coram >> Sent: Monday, May 12, 2008 9:02 AM >> To: Sri Chandra >> Cc: 'Verilog-AMS LRM Committee'; stuart@sutherland-hdl.com >> Subject: Re: Verilog-AMS Committee Meeting - 12 May 2008 (Monday) >> >> Here's an example taken from the mixed-signal chapter. >> Note that I've left off the ";" from the discipline >> declaration -- also, I've fixed the AnalogVar -> avar >> problems that were still present on page 152 (166 of 407) >> of Draft4-preliminary >> >> >> `begin_keywords "VAMS-2.3" >> discipline logic; >> domain discrete; >> enddiscipline >> module a2d(dnet, anet); >> input dnet; >> wire dnet; >> logic dnet; >> output anet; >> electrical anet; >> real avar; >> analog begin >> if (dnet === 1'b1) >> avar = 5; >> else if (dnet === 1'bx) >> avar = avar; // hold value >> else if (dnet === 1'b0) >> avar = 0; >> else if (dnet === 1'bz) >> avar = 2.5; // high impedance - float value >> V(anet) <+ avar; >> end >> endmodule >> `end_keywords >> >> >> >> Geoffrey.Coram wrote: >>> Page 243 (257 of 407): >>> Can we add an example that uses a 1800 keyword and VAMS-2.3? >>> Eg "logic" ? >>> >>> >>> >>> Lastly: can we get an index? >>> >>> >>> -Geoffrey >>> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, 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 Mon May 12 11:30:32 2008
This archive was generated by hypermail 2.1.8 : Mon May 12 2008 - 11:30:45 PDT