From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Tue Sep 14 2004 - 17:30:00 PDT
>Number: 621
>Category: errata
>Originator: "Brad Pierce" <Brad.Pierce@synopsys.com>
>Description:
It's not clear from 19.3.1 whether one-line comments in a macro
argument are stripped out before the argument is substituted into
the text of the macro. I think they should be, for the same reasons
that one-line comments are not included in the text of the macro.
In my opinion, if you want to embed a pragma in a macro argument,
then you need to use a /* block comment */.
`define LOOP(I,X) for(I=0;I!=1;I=1) begin X end
module m;
reg i;
always
`LOOP( i,
/*
This is part of the begin-end block.
*/
// Is this part of the begin-end block????
/*
This is part of the begin-end block.
*/
)
endmodule
This archive was generated by hypermail 2.1.4
: Tue Sep 14 2004 - 17:30:21 PDT
and
sponsored by Boyd Technology, Inc.