280 likes | 420 Views
CAD Tools Magic/IRSIM/SPICE 簡介. Presenter :黃世緯 助教 Rm 322 10/18/2000. Outline. Introduction Magic – Layout Editor IRSIM – Logic-level simulator for MOS circuits SPICE – Transistor-level simulator for MOS circuits. Introduction. Design Circuits. Circuit-level Simulator SPICE. A. B.
E N D
CAD ToolsMagic/IRSIM/SPICE簡介 Presenter:黃世緯 助教 Rm 322 10/18/2000
Outline • Introduction • Magic – Layout Editor • IRSIM – Logic-level simulator for MOS circuits • SPICE – Transistor-level simulator for MOS circuits
Introduction Design Circuits Circuit-level Simulator SPICE A B Layout Tools Magic extract C=A? B=A? verification Logic-level Simulator IRSIM C
What is Magic? • A color painting tool? • Quite a bit about the nature of VLSI circuit layout • Additional operations • Built-in Design-Rule-Check (DRC) • Built-in Hierarchical circuit extractor • Some useful functions such as routing tools
How to Get Help? • Manual • Hard copies • Electronic files • postscript files available on http://video.ee.ntu.edu.tw/~vlsi_design/homework/cad_tools/magic.htm • On WS: • ~d8921030/magic_tutorial (tutorial files) • ~d8921030/magic_tutcells (example files for tutorial) • On-line help • >> :help subject
Running Magic • 在 Linux 中的 magic 及 irsim, 均需要將CAD_HOME 環境變數設到 /home/cad 目錄下, 也就是, 如果用的是 C Shell (csh, tcsh), 要加入下列兩行到 $HOME/.cshrc 中 setenv CAD_HOME /home/cad set path=($path $CAD_HOME/bin) • 在 Linux中執行 >> magic –dX11 –T tsmc0p8_spdm filename
The Box & the Cursor • Used to select things on the color display Mouse right button Mouse left button
Invoking Commands • Invoking Commands • Type “:”(colon) or “;”(semi-colon) to invoke command • Use macro • E.g. ‘u’ means “:undo”
Magic Commands (1) • Basic Painting • :paint layers (color) • :erase layers • “ ^D ” (erase all layers underneath the cursor) • Use Mouse • Select or box what U would like to paint • Move to the color (layer) U would like to paint • Press middle button (or press left & right together if U use 2-button mouse)
Magic Commands (2) • If I mistake to take action… • :undo • Same as ‘u’ • :redo • Same as ‘U’
Magic Commands (3) • Selection • Move over the portion and type ‘s’ • Select more • Type ‘S’ • Select area ‘a’ / select more area ‘A’ • Clear out the selection • ‘C’ or “:select clear”
Magic Commands (4) • Operations on the Selection • :delete d • :move q(l), w(d), e(u), r(r) • :stretch Q, W, E, R • :copy c • :upsidedown (vertically flip) • :sideway (horizontally flip) • :clockwise
Magic Commands (5) • Label • :label • Erase a label • Select it and delete it • Erase all labels • :erase labels • Labeling conventions • Vdd! GND! (important!!)
Magic Commands (6) • Save to files • :writeall • :save name • Magic file format : *.mag • Leaving Magic • :quit
Magic Commands (7) • Utility Commands • :grid [spacing] • :zoom z / Z (zoom in/out) • Advanced Wiring • :array xsize ysize • Cell Hierarchy • Expanding • x (expand) • X (overview) • Design Rule Checking • :drc why • :drc find
Function of IRSIM • Logic-level simulation (based on RC model) • Display simulation waveform • Differences from SPICE • IRSIM is an event-driven logic-level simulator for MOS transistor circuits. • SPICE is a circuit analysis tool for simulation of electrical circuits in steady-state, transient, and frequency domains.
COMMAND FILE EXAMPLE 此行去掉,改加在run irsim之後, 見下頁
Magic to Spice • Convert magic extracted files to spice net files ext2spice name.sp name.ext
SPICE Circuit 5 Vin 1 1 2 1 0