mirror of https://github.com/KLayout/klayout.git
94 lines
2.5 KiB
Plaintext
94 lines
2.5 KiB
Plaintext
# <test>
|
|
# <name>t8.7.ot</name>
|
|
# <content-description>A top cell and one child cell with one rectangle, child cell instantiated in various ways, cells specified by ID, child cell after top cell, forward references to IDs</content-description>
|
|
# <test-intention>Hierarchical reader capabilities</test-intention>
|
|
# <test-intention>PLACEMENT record reading</test-intention>
|
|
# <test-intention>Placed cell reference by ID</test-intention>
|
|
# <test-intention>Forward references to ID declaration (ID to string assignment after use of ID)</test-intention>
|
|
# <test-intention>Placement-related modal variables</test-intention>
|
|
# <content>
|
|
# begin_lib 0.001
|
|
# begin_cell {A}
|
|
# box 1 2 {300 -400} {400 -200}
|
|
# end_cell
|
|
# begin_cell {TOP}
|
|
# sref {A} 0 0 1 {-300 400}
|
|
# sref {A} 0 0 1 {-300 800}
|
|
# sref {A} 0 0 1 {-300 1200}
|
|
# sref {A} 0 0 1 {0 1200}
|
|
# sref {A} 90 0 1 {700 1400}
|
|
# sref {A} 0 1 1 {700 400}
|
|
# sref {A} 90 1 1 {700 2400}
|
|
# end_cell
|
|
# end_lib
|
|
# </content>
|
|
# </test>
|
|
|
|
header
|
|
real 0 1000.0
|
|
uint 0 ;# offset table is in start record
|
|
for { set i 0 } { $i < 12 } { incr i } { uint 0 }
|
|
|
|
# Cell TOP
|
|
record CELL_ID
|
|
uint 1
|
|
|
|
record XYRELATIVE
|
|
|
|
uint 17 ;# PLACEMENT (no mag, manhattan angles)
|
|
bits 11110000 ;# CNXYRAAF
|
|
uint 0
|
|
int -300 ;# placement-x (relative)
|
|
int 400 ;# placement-y (relative)
|
|
|
|
uint 17 ;# PLACEMENT (no mag, manhattan angles)
|
|
bits 00110000 ;# CNXYRAAF
|
|
int 0 ;# placement-x (relative)
|
|
int 400 ;# placement-y (relative)
|
|
|
|
uint 17 ;# PLACEMENT (no mag, manhattan angles)
|
|
bits 00010000 ;# CNXYRAAF
|
|
int 400 ;# placement-y (relative)
|
|
|
|
uint 17 ;# PLACEMENT (no mag, manhattan angles)
|
|
bits 00100000 ;# CNXYRAAF
|
|
int 300 ;# placement-x (relative)
|
|
|
|
record XYABSOLUTE
|
|
|
|
uint 17 ;# PLACEMENT (no mag, manhattan angles)
|
|
bits 00110001 ;# CNXYRAAF
|
|
int 700 ;# placement-x (absolute)
|
|
int 400 ;# placement-y (absolute)
|
|
|
|
record XYRELATIVE
|
|
|
|
uint 17 ;# PLACEMENT (no mag, manhattan angles)
|
|
bits 00010010 ;# CNXYRAAF
|
|
int 1000 ;# placement-y (relative)
|
|
|
|
uint 17 ;# PLACEMENT (no mag, manhattan angles)
|
|
bits 00010011 ;# CNXYRAAF
|
|
int 1000 ;# placement-y (relative)
|
|
|
|
# Cell A
|
|
record CELL_ID
|
|
uint 0
|
|
|
|
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)
|
|
|
|
record CELLNAME
|
|
str A
|
|
record CELLNAME
|
|
str TOP
|
|
|
|
tail
|
|
|