Magic Tutorial ver 1.0
Analog Circuit Design Lab Dept. of EE INHA Univ. E-mail : pansoo@inhaian.net
System integrated circuit design lab 의 자료를 참조하였습니다.
Inha University
1
Analog Circuit Design Lab.
Contents
• Design Rules • Magic Shortcut • Inverter Layout • Extract to Netlist
Inha University
2
Analog Circuit Design Lab.
MOSIS Scalable CMOS (SCMOS) Design Rules
1. Well
Description minimum width minimum spacing between wells of same type Minimum spacing between wells of different type Lambda 10 9 0
2. Diffusion
Description Minimum width Diffusion spacing of same type Diffusion spacing of different type Lambda 3 3 10
Inha University
3
Analog Circuit Design Lab.
MOSIS Scalable CMOS (SCMOS) Design Rules
3. Poly
Rule 3.1 3.2 3.3 3.4 3.5 Description minumum width minimum spacing between poly Poly must overhang transistor by at least 2 Diffusion must overhang transistor by at least 3 Poly and diffusion must be separated by at least 1 Lambda 2 2 2 3 1
4. Poly Contact
Description minumum poly contact width Poly contact must be at least 3 from other poly Poly contact must be at least 3 from other poly contact Poly contact must be 1 unit from diffusion Lambda 4 3 3 1
Inha University
4
Analog Circuit Design Lab.
MOSIS Scalable CMOS (SCMOS) Design Rules
5. Diffusion contact
Description minumum width Substrate contact must be 4 unit from diffusion contact Diffusion contacts must be 4 from other diffusions poly contacts must be 2 away from diffusion contacts Lambda 4 4 4 3
6. Metal1 & Metal2
Description minumum width minimum spacing between metal1 Lambda 3 3
Inha University
5
Analog Circuit Design Lab.
MOSIS Scalable CMOS (SCMOS) Design Rules
7. Metal3
Rule 15.1 15.2 15.3
Description minumum width minumum spacing from other third-level metal Minimum metal3 overlap of via must be at least 1
Lambda 5 4 1
Inha University
6
Analog Circuit Design Lab.
MOSIS Scalable CMOS (SCMOS) Design Rules
8. Via
Description minumum width minumum spacing from other Via
Lambda 4 4
9. Via2
Description minumum width minumum spacing from other Via2 Minimum metal3 overlap of via must be at least 1 Lambda 4 4 1
Inha University
7
Analog Circuit Design Lab.
Windows
Terminal window
Multi window
Layout window
Inha University
8
Analog Circuit Design Lab.
Layers
Layers ndiff pdiff poly m1 m2 m3 pc ndc pdc via v2 psc nsc pwell nwell Other names green or ndiffusion brown or pdiffusion p or polysilicon or red blue or metal1 purple or metal2 cyan or metal3 pcontact or polycontact ndcontact or ndiffcut pdcontact or pdiffcut m2c or v or m2contact m3c or m3contact or via2 ppc or pwc or pwcontact nnc or nwc or nwcontact pw nw Description nmos diffusion pmos diffusion polysilicon, referred to as the gate first-layer metal interconnect second-layer metal interconnect third-layer metal interconnect contact between poly and metal1 contact between n-diffusion and metal1 contact between p-diffusion and metal1 contact between metal1 and metal2 contact between metal1 and metal3 contact between substrate and p-diffusion contact between substrate and n-diffusion pmos well nmos well
Inha University
9
Analog Circuit Design Lab.
Magic Shortcut
단축키 “g" “d" “u" “U" “s" “a" “c" “l" “z" “Z" “c" “m" “b” “r" 내용 grid 생성 delete undo redo select, box 내부의 layer 선택 optional select, box 내부의 모든 layer 의 선택 select clear, 선택취소 label, 선택된 블록에 이름 붙이기 zoom in zoon out copy, 선택된 layer 가 마우스의 위치를 기준으로 복사 move, 선택된 layer 가 마우스의 위치를 기준으로 이동 현재 box의 사이즈 확인 rotate, 선택된 layer 를 90도 회전 키보드 오른쪽 키패드의 방향버튼으로 선택된 layer 를 쉽게 움직일 수 있다.
Inha University
10
Analog Circuit Design Lab.
Magic Shortcut
Terminal window 에 “:” 을 입력한 상태에서 입력하는 명령어 명령어 paint label stretch up 1 stretch down 2 stretch left 3 stretch right 4 내용 Layer 를 그리는 기본 명령어(pai 만 입력해도 된다.) [ex. :paint poly] Label 을 붙인다. [ex. :label IN] 위로 한 칸 늘린다. 아래로 한 칸 늘린다. 왼쪽으로 한 칸 늘린다. 오른쪽으로 한 칸 늘린다.
# magic 에는 box, wiring, netlist, rsim 의 네 가지 tool 이 존재( Space bar로 바꿀 수 있다.) # wiring tool 사용 - Space bar 로 wiring tool 로 바꾼 상태에서 layer 의 한 부분을 마우스 왼쪽 버튼으로 클릭하고 다른 곳에 오른 쪽 버튼을 클릭하면 선택한 layer 로 연결시킬 수 있다.
Inha University
11
Analog Circuit Design Lab.
Inverter Layout
VDD
IN
OUT
GND
Inha University
12
Analog Circuit Design Lab.
Inverter Layout
1. Cygwin 을 실행하여 multi window를 띄운다. 2. XWin_GL –multiwindow 3. Cygwin 을 다시 실행하여 terminal window 를 띄운다. 4. export DISPLAY=:0 Magic inv
Inha University
13
Analog Circuit Design Lab.
Inverter Layout
nwell contact p diffusion contact p diffusion
nwell poly contact Metal 2 label n diffusion pwell contact
Inha University
14
poly Metal 1 via p 기판 n diffusion contact
Analog Circuit Design Lab.
Extract
:extract style Current layout style 을 보여준다. :extract style lambda=0.5 Layout style 변경 :extract all 추출 :q
Inha University
15
Analog Circuit Design Lab.
Extract
cp inv.ext /.. 최상위 폴더로 복사 cd.. cd.. 최상위 폴더로 이동 ls 복사 확인 ext2spice inv Inv.spice 파일 생성
Inha University
16
Analog Circuit Design Lab.
Extract
pspice 에서 사용 하기 위해 파일 명을 inv.cir 로 바꿔준다.
pspice 에서 불러온 모습
Inha University
17
Analog Circuit Design Lab.
Reference
• Design Rules
• • http://www.mosis.org/Technical/Designrules/scmos/scmos-main.html http://www.cs.utexas.edu/users/skeckler/cs384v/cad/magic/drc.html
• The Magic Home Page
• http://bwrc.eecs.berkeley.edu/Classes/IcBook/magic/
• Inverter Layout
• http://www-scf.usc.edu/~ee577/tutorial/magic_tut.html
• How to use Magic layout editor
• http://www.cs.utexas.edu/users/skeckler/cs384v/cad/magic/magic.html
Inha University
18
Analog Circuit Design Lab.