Re: Attributes and constant expressions (one implementation)

From: Pragmatic C Software (sjmeyer@pragmatic-c.com)
Date: Thu Nov 01 2001 - 14:43:57 PST


Precedence: bulk

Maybe the standard neds to define this. My thinking was that
parameter use in attributes should assume localparam definition
even for legacy code. Because it is possible in PLI to have
sophisticated routine get post elaboration values, I have not
run into problems with my (maybe wrong) algorithm. There is
also code to check for duplicate attributes and current implementation
uses "localparam" value, i.e.
  
  (* celltype = p1,` celltype = p2 *)

returns only one parameter if localparam values of p1 and p2 are same.
/Steve
  

Quoting Stefen Boyd (stefen@boyd.com):
> At 06:05 PM 10/31/2001 -0800, Pragmatic C Software wrote:
> >Therefore, parameters are allowed but they
> >are "fixed" at same time array of instance range determining parameters
> >are fixed (need to be able to build instance tree). This allows
> >parameters to be used but attribute parameter value is not post
> >defparam or pound param value.
> Steve,
>
> I could understand that you can't reliably use defparam
> to set the value of a parameter before it has been "fixed",
> but I would expect that #(param) passing would work since
> it works for setting the range on an array of instances...
> At least with XL - although maybe not with your software?
>
> Stefen
>
>
> --------------------
> Stefen Boyd Boyd Technology, Inc.
> stefen@BoydTechInc.com (408)739-BOYD
> www.BoydTechInc.com (408)739-1402 (fax)
>

-- 
Steve Meyer
sjmeyer@pragmatic-c.com


This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:54:48 PDT and
sponsored by Boyd Technology, Inc.