Subject: Re: [sv-bc] $root.localparam missing from constant_primary
From: Peter Flake (Peter.Flake@synopsys.com)
Date: Fri Oct 17 2003 - 05:10:55 PDT
Hi Brad,
I am not sure that $root.P should be accepted for a
localparam. Hierarchical names are not allowed.
Peter.
At 13:20 16/10/2003 -0700, Brad Pierce wrote:
>The following would not be accepted by the current BNF
>because $root.P is not accepted by constant_primary --
>
> localparam P = 5 ;
>
> module m ;
> localparam P = $root.P + 1 ; //<-------
> initial begin
> $display(P) ;
> $display($root.P) ;
> end
> endmodule
>
>In A.8.4,
>
> | parameter_identifier
>
>should probably be something like
>
> | [ "$root" .] parameter_identifier
>
>
>-- Brad
This archive was generated by hypermail 2b28 : Fri Oct 17 2003 - 05:15:51 PDT