forked from huangqiangsheng/Ruby_mask
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathawg_340nm_post.rb
More file actions
39 lines (32 loc) · 1.09 KB
/
awg_340nm_post.rb
File metadata and controls
39 lines (32 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
include RBA
layout = CellView::active.layout
cell = layout.create_cell("Top")
dx = 1000.0/layout.dbu
dy = -800.0/layout.dbu
subcell = layout.cell("AWG_200G_width400")
t = CplxTrans::new(1.0, 0,false,0.0,0.0)
tmp = CellInstArray::new(subcell.cell_index,t)
cell.insert(tmp)
subcell = layout.cell("AWG_200G_width450")
t = CplxTrans::new(1.0, 0,false,dx,0.0)
tmp = CellInstArray::new(subcell.cell_index,t)
cell.insert(tmp)
subcell = layout.cell("AWG_200G_width500")
t = CplxTrans::new(1.0, 0,false,2.0*dx,0.0)
tmp = CellInstArray::new(subcell.cell_index,t)
cell.insert(tmp)
subcell = layout.cell("AWG_400G_width400")
t = CplxTrans::new(1.0, 0,false,0.0,dy)
tmp = CellInstArray::new(subcell.cell_index,t)
cell.insert(tmp)
subcell = layout.cell("AWG_400G_width450")
t = CplxTrans::new(1.0, 0,false,dx,dy)
tmp = CellInstArray::new(subcell.cell_index,t)
cell.insert(tmp)
subcell = layout.cell("AWG_400G_width500")
t = CplxTrans::new(1.0, 0,false,2.0*dx,dy)
tmp = CellInstArray::new(subcell.cell_index,t)
cell.insert(tmp)
layout_view.select_cell(cell.cell_index, 0)
layout_view.add_missing_layers
layout_view.zoom_fit