errata/621: 19.3.1, one-line comments in macro arguments

From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Tue Sep 14 2004 - 17:30:00 PDT

  • Next message: Shalom.Bresticker@freescale.com: "Re: errata/621: 19.3.1, one-line comments in macro arguments"

    >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

    // Brad.Pierce@synopsys.com



    This archive was generated by hypermail 2.1.4 : Tue Sep 14 2004 - 17:30:21 PDT and
    sponsored by Boyd Technology, Inc.