klayout/testdata/oasis/t11.6.ot

198 lines
5.1 KiB
Plaintext
Raw Permalink Normal View History

# <test>
# <name>t11.6.ot</name>
# <content-description>Instances with properties</content-description>
# <test-intention>Properties reader capabilities</test-intention>
# <test-intention>PROPERTY record reading</test-intention>
# <test-intention>PROPSTRING record reading</test-intention>
# <test-intention>PROPNAME record reading</test-intention>
# <test-intention>Property string references by ID</test-intention>
# <test-intention>Property name references by ID</test-intention>
# <test-intention>Instances with properties</test-intention>
# </test>
header
real 0 1000.0
uint 0 ;# offset table is in start record
for { set i 0 } { $i < 12 } { incr i } { uint 0 }
# property string 12
record PROPSTRING_ID
str PropStringId12
uint 12
# property string 13
record PROPSTRING_ID
str {Property string value for ID 13}
uint 13
# Cell A
record CELL_STR
str A
record RECTANGLE
bits 01111011 ;# SWHXYRDL
uint 1 ;# layer
uint 2 ;# datatype
uint 100 ;# width
uint 200 ;# height
int 300 ;# geometry-x (absolute)
int -400 ;# geometry-y (absolute)
# Cell TOP
record CELL_STR
str TOP
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 10110000 ;# CNXYRAAF
str A
int -300 ;# placement-x (absolute)
int 400 ;# placement-y (absolute)
record PROPERTY
bits 00100111 ;# property info byte UUUUVCNS
uint 0 ;# propname-id
uint 8 ;# prop-value #0 (unsigned int)
uint 25
uint 10 ;# prop-value #2 (a-string)
str PROP_VALUE2
record PROPERTY
bits 00100111 ;# property info byte UUUUVCNS
uint 0 ;# propname-id
uint 8 ;# prop-value #0 (unsigned int)
uint 26
uint 10 ;# prop-value #2 (a-string)
str PROP_VALUE26
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00110000 ;# CNXYRAAF
int 0 ;# placement-x (absolute)
int 400 ;# placement-y (absolute)
record PROPERTY
bits 11110001 ;# property info byte UUUUVCNS
uint 2 ;# number of values
uint 8 ;# prop-value #0 (unsigned int)
uint 10
uint 14 ;# prop-value #2 (prop-string reference number)
uint 13
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00010000 ;# CNXYRAAF
int 400 ;# placement-y (absolute)
record PROPERTY
bits 00001001 ;# property info byte UUUUVCNS
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00100000 ;# CNXYRAAF
int 300 ;# placement-x (absolute)
record PROPERTY_REP
record XYABSOLUTE
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00110001 ;# CNXYRAAF
int 700 ;# placement-x (absolute)
int 400 ;# placement-y (absolute)
record PROPERTY
bits 00001001 ;# property info byte UUUUVCNS
record XYRELATIVE
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00010010 ;# CNXYRAAF
int 1000 ;# placement-y (relative)
record PROPERTY
bits 00100111 ;# property info byte UUUUVCNS
uint 0 ;# propname-id
uint 8 ;# prop-value #0 (unsigned int)
uint 25
uint 10 ;# prop-value #2 (a-string)
str PROP_VALUE2
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00010011 ;# CNXYRAAF
int 1000 ;# placement-y (relative)
record PROPERTY_REP
record XYABSOLUTE
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00111111 ;# CNXYRAAF
int 2000 ;# placement-x (absolute)
int 0 ;# placement-y (absolute)
uint 1 ;# repetition (3x4 matrix)
uint 1
uint 2
uint 300
uint 300
record PROPERTY_REP
record XYRELATIVE
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00111111 ;# CNXYRAAF
int 2000 ;# placement-x (relative)
int 0 ;# placement-y (relative)
uint 0 ;# repetition (reuse)
record PROPERTY_REP
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00111111 ;# CNXYRAAF
int 2000 ;# placement-x (relative)
int 0 ;# placement-y (relative)
uint 2 ;# repetition (3 columns)
uint 1
uint 320
record PROPERTY_REP
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00111111 ;# CNXYRAAF
int 2000 ;# placement-x (relative)
int 0 ;# placement-y (relative)
uint 3 ;# repetition (4 columns)
uint 2
uint 310
record PROPERTY_REP
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00111111 ;# CNXYRAAF
int 2000 ;# placement-x (relative)
int 0 ;# placement-y (relative)
uint 4 ;# repetition (4 columns, arbitrary spacing)
uint 2
uint 320
uint 330
uint 340
record PROPERTY_REP
uint 17 ;# PLACEMENT (no mag, manhattan angles)
bits 00111111 ;# CNXYRAAF
int 2000 ;# placement-x (relative)
int 0 ;# placement-y (relative)
uint 8 ;# repetition (3x4 matrix, arbitrary displacement vectors)
uint 1 ;# n-dimension
uint 2 ;# m-dimension
uint [ expr 4*310+1 ] ;# n-displacement (g-delta: 310,320)
int 320
uint [ expr 16*330+10 ] ;# n-displacement (g-delta: 330-northwest=-330,330)
record PROPERTY_REP
# property name 0
record PROPNAME
str S_GDS_PROPERTY
tail