RE: compiler directive with formal arguments

From: Muranyi, Arpad <arpad.muranyi_at_.....>
Date: Mon Nov 06 2006 - 14:40:42 PST
Geoffrey,

I haven't been to Mantis for a while and I forgot how to get
in, so I wasn't able to read that proposal yet.  (I would
appreciate it if someone could remind me how to get in in a
private message).

Does this proposal make the usage of the double quotes around
the macro text required, or does it say that if they are there
(optionally) than they will not be printed?  I am looking at
the 1364-2005 LRM and it seems that this will be a deviation
from that LRM.  If anything, wouldn't we want to bring the LRM-s
closer together than deviate further?  Or is that LRM going to
be updated according to this change too?

By the way, the example in 1364-2005 is not very helpful...

`define var_nand(dly) nand #dly
`var_nand(2) g121 (q21, n10, n11);
`var_nand(5) g122 (q22, n10, n11);

The corresponding example in the Verilog-AMS v2.2 LRM is much better:

//define an adc with variable delay
`define var_adc(dly) adc #(dly)
// Given the above macro the following uses
`var_adc(2) g121 (q21, n10, n11);
`var_adc(5) g122 (q22, n10, n11);
// shall result in:
adc #(2) g121 (q21, n10, n11);
adc #(5) g122 (q22, n10, n11);

I really wish we had a single LRM only... 

Thanks,

Arpad
======================================================================


-----Original Message-----
From: geoffrey.coram@analog.com [mailto:geoffrey.coram@analog.com] 
Sent: Monday, November 06, 2006 12:12 PM
To: Muranyi, Arpad
Cc: Bresticker, Shalom; Marq Kole; verilog-ams
Subject: Re: compiler directive with formal arguments

"Muranyi, Arpad" wrote:
> 
> Hello everyone,
> 
> I need to add a few of my thoughts to this subject on text macros.
> 
> For one, the example below uses the double quotes around the macro
> text, which is incorrect considering what is shown in "will print".

Well, you can read the proposal document yourself; maybe the 
"will print" is not what you get now, but the SV committee decided
that the correct behavior going forward is what I wrote, that is
Hello, x
without the double-quotes.

-Geoffrey

http://www.eda-stds.org/mantis/file_download.php?file_id=1632&type=bug
Received on Mon Nov 6 14:41:32 2006

This archive was generated by hypermail 2.1.8 : Mon Nov 06 2006 - 14:41:35 PST