[sv-bc] $root.localparam missing from constant_primary


Subject: [sv-bc] $root.localparam missing from constant_primary
From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Thu Oct 16 2003 - 13:20:04 PDT


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 : Thu Oct 16 2003 - 13:22:47 PDT