RE: [sv-ac] strange example

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Sat Feb 23 2008 - 10:41:32 PST
John,

It is legal to have a default parameter value which will not be legal in
elaboration. That is a way of forcing the user to redefine the value in
the element instantiation.
An example is in 24.5.4 in the line

// Bus interface with parameterized number of client modports
interface intf_t #(num_clients = 0);

But that does not mean it should be done in this example.

Shalom 

> -----Original Message-----
> From: owner-sv-ac@server.eda.org 
> [mailto:owner-sv-ac@server.eda.org] On Behalf Of John Havlicek
> Sent: Friday, February 22, 2008 10:36 PM
> To: eduard.cerny@synopsys.com
> Cc: sv-ac@server.eda.org
> Subject: [sv-ac] strange example
> 
> Hi Ed:
> 
> I just looked over 1769.  It is counterintuitive to me that 
> in the example with "module test #(N=12)", the default value 
> of the parameter N is not within the required range from 1 to 8.  
> 
> Was this intentional?  If so, what is the rationale?  If not, 
> I suggest using a default value that is in the required range.
> 
> J.H.
> 
> 
> 
> --
> This message has been scanned for viruses and dangerous 
> content by MailScanner, and is believed to be clean.
> 
> 
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sat Feb 23 10:43:35 2008

This archive was generated by hypermail 2.1.8 : Sat Feb 23 2008 - 10:44:19 PST