lmDefViewProp
lmDefViewProp( [t_cellName] [t_viewName] (t_propertyNamet_propertyValue…t_propertyNamet_propertyValue) )
Description
Adds properties to the specified cellview. To add properties, add the specified properties to the original property list and save the new file.
Variables
The replaceViewProp global variable controls the property adding mode. The default value, nil, means the mode is appending. If you set replaceViewProp to t, the mode is replacement. replaceViewProp is automatically set to nil when running lmDefCell and is reset to the original value when finished.
Arguments
Example
lmDefViewProp( and2 symbol
"instance#" = 1
snapSpacing = 4
screenGrSpacing = 20
screenGrMultiple = 5
drawGr? = yes
drawAxes? = no
userUnits = "userUnits"
"graphicsEditorUnits per userUnit" = 1
newFont2 = time("Mar 19 14:38:57 2000")
lastChecked = time("Nov 27 14:30:57 1999")
tr = 2.0 * basic_process_time
tf = 0.5 * lmGetValue(tr)
; properties for simulation (a hierarchical propertylist
logic = proplist(
Input_Pin_List = nlpExpr("[|A] [|B]")
Pin_Net_Map = nlpExpr("\\n$ 1 [|Y]=Y [|A]=A [|B]=B")
; the value of Pin_Net_map is nlpExpr("\n$ 1
; [|Y]=Y [|A]=A [|B]=b")
; the first "\" is used to quote the second for parsing
NLPElementPostamble = nlpExpr("[@logic_AND_Image]")
)
; property with name="speed", value=10, type=integer,
; lower-bound=8 and upper-bound=12
speed = (10 (8 12))
; property with name="file", value="property.c", type=filename
file = filename("property.c")
)
Puts a list of properties into the symbol view of the cell and2. Before you run this function, you should define the variable basic_process_time. The lmGetValue function is a predefined function for getting the value of a named property.
ten = 10 ; define variable ten
unit = 1n ; define variable unit
lmDefViewProp( and2 "cmos_sch" ; cmos_sch is double quoted because
; the non-alphanumeric character
; "." is in the name
a = 10
b = (ten (8 12))
c = (10)
d = (ten (8 nil))
e = 2*unit
f = (2n (1n 4n))
g = (2n)
h = (2*unit (nil 4*unit))
i = yes ; yes, true, and t are entical
j = true
k = t
l = no ; no, false, and nil are entical
m = false
n = nil
o = yes
p = "test"
q = ("test" ("try" "test" "experiment"))
r = ("test")
s = ("test" ("test" "try" "debug"))
"t" = filename("print.c") ; name t is double quoted
; to distinguish it from
; SKILL keyword t
u = filename("print.c") ; do not specify a range
; for filename
v = time("Apr 1 12:00:00 2000")
w = time("Apr 1 12:00:00 2000" ("Mar 1 12:00:00 2000"
"May 1 12:00:00 2000"))
x = time("Apr 1 12:00:00 2000")
y = time("Apr 1 12:00:00 2000" (nil "May 1 12:00:00 2000")
z = proplist( ; hierarchical property list
aa = 1
bb = 1.1
cc = proplist(
aaa = 2
bbb = 2.2
)
)
)
Property specification for the cmos_sch view of the cell and2.
Return to top