Re: Verilog-AMS Committee Meeting - 12 May 2008 (Monday)

From: Geoffrey.Coram <geoffrey.coram_at_.....>
Date: Mon May 12 2008 - 09:02:24 PDT
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.
Received on Mon May 12 09:03:02 2008

This archive was generated by hypermail 2.1.8 : Mon May 12 2008 - 09:03:04 PDT