Jon -
The problems I'm aware of regarding nested macros are for
macros with arguments, which is not the case here.
The LRM has:
// permeability of vacuum in henrys/meter
`define P_U0 (4.0e-7 * `M_PI) (12.566370614e-7)
but in two commercial implementations I've checked, it is:
`define P_U0 (4.0e-7 * `M_PI)
I think you are arguing that we should have
`define P_U0 (12.566370614e-7)
but this does not have enough digits. The nested macro `M_PI
is not a problem for the implementations I'm aware of.
But we agree that having both expressions there is a bug.
-Geoffrey
Jonathan Sanders wrote:
> >3) The definition of P_U0 has extra text on the end, indicating
> >the value of (4.0e-7 * `M_PI), but if the file were used as-is,
> >it would create a syntax error for the parser.
>
> This first issue is a bug in my opinion but based on stuff I have read in
> various newsgroups on Verilog almost all Verilog solutions have the same
> bug. Only DC and BuildGates support nested macros that I am aware
> of. With that said rather than waiting for all the vendors to fix this
> (don't hold your breath) lets just insert the value from above.
>
Received on Tue Aug 24 05:53:54 2004
This archive was generated by hypermail 2.1.8 : Tue Aug 24 2004 - 05:55:25 PDT