[sv-ec] Query regarding Macro substitution

From: Kausik Datta <kausikd_at_.....>
Date: Wed Jun 21 2006 - 05:40:54 PDT
Hi,

LRM is not clear about how "``" will be interpreted within escaped
identifier.
I have the  query on how the macros defined in the following testcase will
look like after substitution.

Thanks
Kausik


Kausikd: cat mag1.v 

`timescale 10s/100ns

`define X(f) \m[ake_``sd    

`define Y    \m[ake_``sd    

module M;

    `X(kd) I1();
    `Y     I2();

endmodule


Output of VCS is as follows, but I think that is not correct:

Kausikd: cat output.v 

`timescale 10 s / 100 ns
module M;

        \m[ake_sd  I1();
        \m[ake_``sd  I2();
endmodule





 



Received on Wed Jun 21 05:41:31 2006

This archive was generated by hypermail 2.1.8 : Wed Jun 21 2006 - 05:41:46 PDT