introduction to hspice & mwaves

13
Hspi ce 1 EE 577a - VLSI System Design Introduction to Hspice & mWaves Spring 2001 Instructor: Dr. Sandeep Gupta Adapted by Amit Chowdhry

Upload: kylene

Post on 03-Feb-2016

98 views

Category:

Documents


0 download

DESCRIPTION

Introduction to Hspice & mWaves. Spring 2001 Instructor: Dr. Sandeep Gupta Adapted by Amit Chowdhry. Hspice is: A transistor level simulator Used to perform comprehensive circuit analysis A text mode simulator Mwaves is: A graphical interface to view the results generated by HSpice. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Introduction to  Hspice & mWaves

Hspice1

EE 577a - VLSI System Design

Introduction to Hspice & mWaves

Spring 2001

Instructor: Dr. Sandeep GuptaAdapted by Amit Chowdhry

Page 2: Introduction to  Hspice & mWaves

Hspice2

EE 577a - VLSI System Design

• Hspice is:– A transistor level simulator– Used to perform comprehensive circuit analysis– A text mode simulator

• Mwaves is:– A graphical interface to view the results

generated by HSpice

Page 3: Introduction to  Hspice & mWaves

Hspice3

EE 577a - VLSI System Design

Hspice Set-up

If you did setup for Magic, you don’t need to do anything for Hspice.

< Correct path >

which hspice /usr/usc/hspice/2002.1/bin/hspice

Page 4: Introduction to  Hspice & mWaves

Hspice4

EE 577a - VLSI System Design

We have the

inverter layout

already (inv.mag).

Make inv.ext file

using :ext

command.

Page 5: Introduction to  Hspice & mWaves

Hspice5

EE 577a - VLSI System DesignSimulation 1) Convert the .ext file to .spice: ext2spice inv 2) Edit the file inv.spice: pico inv.spice

(or any text editor, such as vi, emacs...) -------------------------------------------------------------------------------------- * HSPICE file created from inv.ext - technology: scmos

.option scale=0.2u

m0 out in Vdd Vdd pfet w=12 l=2 + ad=60 pd=34 as=60 ps=34 m1 out in GND GND nfet w=4 l=2 + ad=20 pd=18 as=20 ps=18 C0 Vdd GND 2.1fF

** hspice subcircuit dictionary

Page 6: Introduction to  Hspice & mWaves

Hspice6

EE 577a - VLSI System Design

3) Add the following lines at the end of your file: .option post .include tsmc35.spice

VVdd Vdd Gnd 3.3v VGnd Gnd 0 0v

Vin in Gnd pulse(0v 3.3v 3ns 0.1ns 0.1ns 3ns 9ns) .tran 0.1ns 20ns .DC Vin 0v 3.3v 0.1v

.end Be careful: just one ‘Enter’ after .end line

4) Save and exit pico. 5) Run Hspice: hspice inv.spice 6) Run mwaves: mwaves &

Your input node label!!!

Page 7: Introduction to  Hspice & mWaves

Hspice7

EE 577a - VLSI System Design

7) Open inv.st0 file in themenu (Design:Open…). If you can’t see your .st0 file,click Filter menu in Open Design Window. You should check Listing

tabas well as Input tab.

Page 8: Introduction to  Hspice & mWaves

Hspice8

EE 577a - VLSI System Design

8) Click your result data in Results Browser window.

Transient: * hspice file created from inv.ext - ……

DC: * hspice file created from inv.ext - ……

9) Click Types. (Voltages or Currents)

Page 9: Introduction to  Hspice & mWaves

Hspice9

EE 577a - VLSI System Design

Page 10: Introduction to  Hspice & mWaves

Hspice10

EE 577a - VLSI System Design10) Select a curve with the left mouse button and drag it with

middle button to the panel in the main window. Or double click!

Useful menu Panels, Measure, Tools

Page 11: Introduction to  Hspice & mWaves

Hspice11

EE 577a - VLSI System Design

11) Printing

Tools:Print...

Page 12: Introduction to  Hspice & mWaves

Hspice12

EE 577a - VLSI System Design

• Explore other links provided on class website to get acquainted with more command – especially look at different ways to apply stimulus and how to specifiy sub-circuits and save yourself some gruntwork while you do your labs.

Page 13: Introduction to  Hspice & mWaves

Hspice13

EE 577a - VLSI System Design

• Nice Tutorials– www-scf.usc.edu/~ee577/cad_frame.html

in the Tools menu.

*Digital Circuit Simulation Using HSPICE

*HSPICE Handout from Fall99 EE577a

– Simple & easy tutorial of mwaves… http://www.eos.ncsu.edu/eos/info/ece/ece213_info/www/spice/mwaves.html

• Extensive Hspice Manual– www.ece.orst.edu/~moon/hspice98/