HSPICEtutorial

HSPICEtutorial - 1 INTRODUCTION HSPICE is a circuit...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 INTRODUCTION HSPICE is a circuit simulation program. This tutorial is a guide to its use as a standalone tool for performing circuit simulation. In this tutorial HSPICE will be used to perform a transient analy- sis of several CMOS inverter models. These models vary in the complexity of the HSPICE mod- els used to describe the behaviour of the NMOS and CMOS transistors composing the inverter circuit. A simple inverter circuit will be simulated with the HSPICE program and the results will be ana- lyzed with the AvanWaves tool. This is a tool used to display, analyze, and print the results of HSPICE simulations. EXAMPLE 1: A simple CMOS inverter . Consider the basic CMOS inverter circuit shown below in Figure 1. Figure 1: Simple CMOS Inverter Circuit. + - + - VCC VIN IN M1 M2 OUT CLOAD 0.75 pF VCC
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 The HSPICE netlist describing this inverter circuit is: Inverter Circuit .OPTIONS LIST NODE POST .TRAN 200P 20N .PRINT TRAN V(IN) V(OUT) M1 OUT IN VCC VCC PCH L=1U W=20U M2 OUT IN 0 0 NCH L=1U W=20U VCC VCC 0 5 VIN IN 0 0 PULSE .2 4.8 2N 1N 1N 5N 20N CLOAD OUT 0 .75P .MODEL PCH PMOS LEVEL=1 .MODEL NCH NMOS LEVEL=1 .END The PMOS and NMOS transistors are given the names M1 and M2 respectively. The two lines in the HSPICE netlist: M1 OUT IN VCC VCC PCH L=1U W=20U M2 OUT IN 0 0 NCH L=1U W=20U describe the connection of the drain , gate , source , and bulk(substrate) terminals, the name of the HSPICE model used to describe electrical characteristics of the transistor, and the length and width of the channel. For example, the transistor labelled M1 in the circuit (and the netlist) has its drain terminal connected to the node labelled OUT, the gate terminal connected to node IN, both the source and substrate terminals are connected to the node labelled VCC. The name of the HSPICE mosfet model used to describe this transistor’s electrical parameters is PCH. The two .MODEL lines tell HSPICE which transistor model to use. In this case, we are using two basic models called PCH and NCH. PERFORMING A TRANSIENT ANALYSIS 1. Type the above netlist into a file called inverter.sp . 2. Type the following to run HSPICE. hspice inverter.sp > inverter.lis This will run the HSPICE simulator, reading in the commands in the file inverter.sp and generat- ing an output file called inverter.lis. In addition, several intermediate files will be created which will be used by the AwanWaves tool to display the simulation results. 3. Once the simulation completes, the following message will be printed: >info: ***** hspice job concluded
Background image of page 2
3 real 0.5 user 0.2 sys 0.1 4. Examine the inverter.lis file. It will contain a listing of the voltages at nodes IN and OUT in the following tabular format: time voltage voltage in out 0. 200.0000m 4.9989 200.00000p 200.0000m 4.9989 400.00000p 200.0000m 4.9989 600.00000p 200.0000m 4.9989 800.00000p 200.0000m 4.9989 1.00000n 200.0000m 4.9989 1.20000n 200.0000m 4.9989 1.40000n 200.0000m 4.9989 1.60000n 200.0000m 4.9989 1.80000n 200.0000m 4.9989 2.00000n 200.0000m
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/28/2011 for the course ECE 9601 taught by Professor Sobot during the Spring '11 term at UWO.

Page1 / 12

HSPICEtutorial - 1 INTRODUCTION HSPICE is a circuit...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online