🧪 5.2 MagicによるGDS階層と層構成の可視化

Visualizing GDS Hierarchy and Layer Composition using Magic


🎯 本節の目的|Objectives


🖥️ 使用ツール:Magic|Tool Used: Magic

MagicはSky130 PDKと統合されたオープンソースのレイアウトエディタです。
Magic is an open-source layout editor integrated with the Sky130 PDK.

以下のように、GDSファイルをMagicで開くことができます:
To open a GDS file in Magic, use the following command:

cd runs/soc_top/results/final/gds/
magic -T sky130A.tech soc_top.gds

🔧 MagicはSky130の.techファイルを利用してGDSを解釈・表示します。
Magic interprets and displays GDS using the corresponding .tech file of Sky130.


🧭 Magic上での主な操作|Main Operations in Magic

🎮 操作内容
Operation
⌨️ コマンド/GUI
Command / GUI
層の表示切り替え
Toggle Layer View
Option → Display Styles または Layer Selection
セル階層の展開
Expand Cell Hierarchy
F5 キー または expand コマンド
レイヤー情報の確認
Check Layer Info
what コマンド or 右クリック
GDS層番号の確認
GDS Layer Code Lookup
sky130A.tech の内容を確認 or 表示欄から確認

🔍 可視化の観察ポイント|Key Visualization Points

🔬 観察対象
Observation
📝 内容
Description
nwell, poly, li1, met1〜met4 各層の物理的配置・重なり方
セルインスタンス(例:DFF, INV) 各モジュールの階層・配置構造
via1, via2 などのビア 層間接続の位置関係と構造
licon, mcon, via コンタクトの種類と配置密度

🧩 観察例|Examples of Observations


✅ 本節のまとめ|Summary


🔗 前後のリンク|Navigation