hns - 日記自動生成システム - Version 2.19.9

先月 2020年11月 来月
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
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2020年11月19日(木) 旧暦 [n年日記] [更新:"2020/11/20 10:11:08"]

#1 [klayout] python environment in klayout

図はクリックすると拡大します。
  • (左) F5 で開始するプログラミング環境、
  • (中) 左側の窓の中で右クリック → Add location
  • (右) 実行して作った GDSII 形式









Eric に素敵な機能を教わりました。 しかも、僕の理解では、 gds-py では出来なかった機能なので、大変重要です。

gds-py では出来なかった機能 というのは、

  • array を配置する
  • その array の行列の構成は、直方形でなくて、ななめのもの
  • しかも、そのななめを、 array を回転して実現するのではなくて
  • array の vector の指定で、行なう
  • そうすると、中に置かれている単位 の structure は回転していない
です。(ある事情により structure に STRANS 属性があってはこまることがあるのです)
  1. 最後に添付したもの (slant-array.py.txt) を、どこかに置いておく、名前は *.py にしておく
  2. klayout を起動する
  3. F5 を押すと programming 環境を表示する (上の左側の図)
  4. その左側の図の更に、左側の窓で、右クリック した中に Add Location があるので、それを選ぶ
  5. その時に、1. で置いた directory を選ぶ
  6. 左側にその名前が増える
  7. それの 右三角印を一度クリックして下三角印にする
  8. その中に、 1. で置いた 名前が見えるのでそれを選ぶ (多分 double click)
  9. 実行印をクリックすると、(今回の例だと、 klayout を起動した directory に) GDSII 形式が出来ている
  10. もし、klayout の画面でプログラムを変更したら、保存印をクリック
-rw-r--r--    1 makoto  wheel        286 Nov 20 18:30 slanted-array-test.gds
下記は、都合で、行頭に一文字空白が入っていますが、それは消して(削除)して下さい
(上の link から download した時には、名前を *.py.txt から *.py に変更して下さい)
 # create a layout
 layout = pya.Layout()
 
 # set database unit to um
 layout.dbu = 0.001
 
 # create layers
 l255 = layout.layer(255,0)
 l1 = layout.layer(1,0)
 
 # create the top cell
 cell_top = layout.create_cell("top")
 
 # create the cp cell
 cell_cp = layout.create_cell("SqSIPHA45W100nm")
 
 S = 0.0707
 P = 70.7
 # draw the cp
 pts = [pya.DPoint(-S,0), pya.DPoint(0, -S), pya.DPoint(S, 0), pya.DPoint(0, S)]
 cp = pya.DPolygon(pts)
 
 cell_cp.shapes(l1).insert(pya.DPolygon(pts))
 array_cell_cp = pya.CellInstArray(
     cell_cp.cell_index(),
     pya.Trans(pya.Point(0,0)),
     pya.DVector  (0, 0),
     pya.DVector  (P, P),
     1, 20)
 cell_top.insert(array_cell_cp)
 
 # export gds file
 #layout.write("/export/git-work/klayout-python/slanted-array-test.gds")
 layout.write("slanted-array-test.gds")



最近の日記
2024年11月14日
DWL66+ 2018 405 nm
2024年02月19日
another (large, 0.55 x 1.0 m/m) version for contrast curve
2024年02月15日
curved star cone
2024年02月13日
paraboloid with base plane
2024年02月09日
bit map format for contrast curve
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project