[ibis-macro] Re: Question, re: List default value.

  • From: Walter Katz <wkatz@xxxxxxxxxx>
  • To: <capn.freako@xxxxxxxxx>, <ibis-macro@xxxxxxxxxxxxx>
  • Date: Sun, 27 Mar 2016 12:04:36 -0400 (EDT)

David,

 

That code produce a default value of '2' for the 'Strength' parameter.

 

(Default ...) is optional, so if the record was:

 

(Strength (Usage In) (Type Integer) (Description "Strength of Driver")
(List 0 1 2 3 4) (List_Tip "Extra Weak" "Weak" "Nominal" "Strong" "Extra
Strong"))

 

Then the default would be "0".

 

Another way of getting "2" to be the default would be:

 

(Strength (Usage In) (Type Integer) (Description "Strength of Driver")
(List 2 0 1 3 4) (List_Tip "Nominal"  "Extra Weak" "Weak" "Strong" "Extra
Strong"))

 

The standard says:

7) Default is optional for <data_format> Range, List, Corner, Increment
and Steps.

 

It also says:

 

List <default value> <value> <value> <value> ... <value>

This defines a discrete set of values from which the user may select one
value

And

 

When used with single value data, Default and Value are mutually
exclusive, and shall not be used together for the same parameter.  In
these situations, Default is a synonym of Value and does not imply any
additional meaning or actions.  Default is not allowed for any Usage Out
parameter types, and Table, Gaussian, Dual-Dirac and DjRj.  Default is
optional for Range, List, Corner, Increment and Steps.  When Default is
specified for any of these parameter types, it shall be used by the EDA
tool to pick one value from all the possibilities for that parameter if
the user does not make such a selection.

 

I think the standard is pretty clear on this.

 

Does this answer your wuestion?

 

Walter

 

-----Original Message-----
From: ibis-macro-bounce@xxxxxxxxxxxxx
[mailto:ibis-macro-bounce@xxxxxxxxxxxxx] On Behalf Of David Banas
Sent: Sunday, March 27, 2016 10:52 AM
To: ibis-macro@xxxxxxxxxxxxx
Subject: [ibis-macro] Question, re: List default value.

 

Hi all,

 

I'm confused by this example AMI code, excerpted from p. 196 of the IBIS
v6.1 standard:

 

(Strength (Usage In) (Type Integer) (Description "Strength of Driver")
(List 0 1 2 3 4) (Default 2) (List_Tip "Extra Weak" "Weak" "Nominal"
"Strong" "Extra Strong"))

 

Will that code produce a default value of '0' or '2' for the 'Strength'
parameter.

 

Thanks,

-db

 

 

Other related posts: