From: Shalom.Bresticker@motorola.com
Date: Wed Sep 10 2003 - 00:20:01 PDT
Precedence: bulk
The following reply was made to PR errata/217; it has been noted by GNATS.
From: Shalom.Bresticker@motorola.com
To: Brad Pierce <Brad.Pierce@synopsys.com>
Cc: etf-bugs@boyd.com
Subject: Re: errata/217: PROPOSAL - Note that task/func params can only be
overridden by defparams
Date: Wed, 10 Sep 2003 10:08:08 +0300 (IDT)
> Does the 2nd paragraph of 3.11.1 disallow the overriding of parameters
> defined in named blocks and inside tasks and functions when 2001-style
> parameter declarations, e.g., #(parameter P=2), are used?
>
> It seems like, within the body of a module, there is no difference
> between 'parameter' and 'localparam' in such cases because --
>
> "If any param_assignments appear in a module_parameter_port_list, then
> any param_assignments that appear in the module become local parameters
> and shall not be overridden by any method."
Do you mean the following?
module m #(parameter P=2) ();
task t ;
parameter t_p = 3 ;
endtask
function f ;
parameter f_p = 3 ;
endfunction
initial begin :n
parameter n_p = 1 ;
end
endmodule
--
Shalom Bresticker Shalom.Bresticker@motorola.com
Design & Reuse Methodology Tel: +972 9 9522268
Motorola Semiconductor Israel, Ltd. Fax: +972 9 9522890
POB 2208, Herzlia 46120, ISRAEL Cell: +972 50 441478
This archive was generated by hypermail 2.1.4
: Wed Sep 10 2003 - 00:26:18 PDT
and
sponsored by Boyd Technology, Inc.