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

  • From: "Muranyi, Arpad" <Arpad_Muranyi@xxxxxxxxxx>
  • To: "ibis-macro@xxxxxxxxxxxxx" <ibis-macro@xxxxxxxxxxxxx>
  • Date: Wed, 30 Mar 2016 04:33:43 +0000

All,

Now that this has been brought up, I would like to ask a related
question about this syntax:

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

I have seen two interpretations of the above syntax definition in
released models.  Let me give an example verbally first, and then
show the two interpretations afterwards.

Let's say the parameter may have one of three values, 1, 2, and 3.
If the user doesn't make a selection, "2" is the intended value.
Which is the correct way to write the parameter:

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

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

I have seen both...

In other words, is the first number in the list an indicator for
what the default value is, and the "list" itself comes after that
default value, or is the first number part of the list, and the
first element of the list also serves as an indication for what
the default value is?

Or put it yet another way, is an N element list supposed to have
N+1 entries in (List ...) definition with a duplicate value in
the first location to indicate the default value, or N elements
ordered so that the first one in the order serves as the default
value?

Thanks,

Arpad
==================================================================


From: ibis-macro-bounce@xxxxxxxxxxxxx [mailto:ibis-macro-bounce@xxxxxxxxxxxxx] ;
On Behalf Of Walter Katz
Sent: Sunday, March 27, 2016 11:05 AM
To: capn.freako@xxxxxxxxx; ibis-macro@xxxxxxxxxxxxx
Subject: [ibis-macro] Re: Question, re: List default value.


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
[mailto:ibis-macro-bounce@xxxxxxxxxxxxx] On Behalf Of David Banas
Sent: Sunday, March 27, 2016 10:52 AM
To: ibis-macro@xxxxxxxxxxxxx<mailto: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: