MOSFET: Mxxx nd ng ns nb modelname W=value L=value Ad As Pd Ps

Similar documents
Circuit Simulation Using SPICE ECE222

HSPICE. Chan-Ming Chang

Simulation Using WinSPICE

Engineering 3821 Fall Pspice TUTORIAL 1. Prepared by: J. Tobin (Class of 2005) B. Jeyasurya E. Gill

Laboratory Lecture 4

WinSpice. The steps to performing a circuit simulation with WinSpice are:

NGSPICE- Usage and Examples

The default account setup for the class should allow you to run HSPICE without any further configuration. To verify this, type:

EECE 488: Short HSPICE. Tutorial. Last updated by: Mohammad Beikahmadi January Original presentation by: Jack Shiah

Introduction to PSpice

1.3 An Introduction to WinSPICE

EECE 488: Short HSPICE Tutorial. Last updated by: Mohammad Beikahmadi January 2013

Tsung-Chu Huang. Department of Electronic Engineering National Changhua University of Education /10/4-5 TCH NCUE

TAMU ECEN 751 Spring Project 1: Matlab Circuit Parser User s Manual

INTRODUCTION TO CIRCUIT SIMULATION USING SPICE

PSpice Simulation. The target of computer-aided analysis is to determine the circuit currents and voltages everywhere in the circuit.

THE SPICE BOOK. Andrei Vladimirescu. John Wiley & Sons, Inc. New York Chichester Brisbane Toronto Singapore

A Brief Handout for Introduction to

Elad Alon HW #1: Circuit Simulation EECS 141 Due Thursday, Aug. 30th, 5pm, box in 240 Cory

Lab 7 PSpice: Time Domain Analysis

Department of Electrical & Computer Engineering Technology. EET 3086C Circuit Analysis Laboratory Experiments. Masood Ejaz

Introduction to Full-Custom Circuit Design with HSPICE and Laker

Figure 1. Main window (Common Interface Window), CIW opens and from the pull down menus you can start your design. Figure 2.

Week 9: Series RC Circuit. Experiment 14

LABORATORY 3: Transient circuits, RC, RL step responses, 2 nd Order Circuits

SPICE FOR POWER ELECTRONICS AND ELECTRIC POWER

EECS 312: Digital Integrated Circuits Lab Project 1 Introduction to Schematic Capture and Analog Circuit Simulation

Introduction to SPICE. Simulator of Electronic devices

Fig. 1-1 show the main window of Orcad Capture. Every project you work on will start from Orcad Capture. Fig. 1-1 Orcad Capture Main window.

SPICE 4: Diodes. Chris Winstead. ECE Spring, Chris Winstead SPICE 4: Diodes ECE Spring, / 28

14:332:223 Principles of Electrical Engineering I Instructions for using PSPICE Tools Sharanya Chandrasekar February 1, 2006

Electronics I LAB. Lab 1: Lab 1 : Introduction to PsPise

EE 2274 RC and Op Amp Circuit Completed Prior to Coming to Lab. Prelab Part I: RC Circuit

AP1511A / B IR Filter Switch Driver

Digital Electronic Circuits

Lab 2: Basic Boolean Circuits. Brittany Duffy EE 330- Integrated Electronics Lab Section B Professor Randy Geiger 1/31/13

SPICE Simulation Program with Integrated Circuit Emphasis

TTL LOGIC and RING OSCILLATOR TTL

SPICE for Power Electronics and Electric Power

Experiment #1 Introduction to SPICE

Lab 3: Circuit Simulation with PSPICE

LIST OF EXPERIMENTS. Sl. No. NAME OF THE EXPERIMENT Page No.

Lecture 7: SPICE Simulation

A brief introduction on HSPICE. Siavash Kananian Sharif University of Technology Electronics III

Circuit Simulation with SPICE OPUS

EDA-BASED DESIGN PRACTICAL LABORATORY SESSION No. 4

Since transmission lines can be modeled using PSpice, you can do your analysis by downloading the student version of this excellent program.

LTSpice Basic Tutorial

ECE 201 LAB 6 INTRODUCTION TO SPICE/PSPICE

Notes. 1. Midterm 1 Thursday February 24 in class.

dc Bias Point Calculations

Lab #7: Transient Response of a 1 st Order RC Circuit

ENGR4300 Test 3A Fall 2002

AP1511A/B BRILLIANT ENERGY MICROELECTRONICS TECHNOLOGY CO.,LTD. IR Filter Switch Driver

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

EEC 116 Fall 2011 Lab #2: Analog Simulation Tutorial

ECE 532 Hspice Tutorial

Experiment 2 Introduction to PSpice

Experiment #1 Introduction to SPICE

Introduction to Matlab, HSPICE and SUE

Mentor Analog Simulators

C1 1uF. C3 100pF Q1 IRLML5203 ISEN R Figure 1 - Typical application of IRU3065 for single input voltage. PACKAGE ORDER INFORMATION

ENGR 201 Homework, Fall 2018

ECE 2274 Diode Basics and a Rectifier Completed Prior to Coming to Lab

Lab 4: Analysis of the Stereo Amplifier

STUDY OF RC AND RL CIRCUITS Venue: Microelectronics Laboratory in E2 L2

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering

Mor M. Peretz Power Electronics Laboratory Department of Electrical and Computer Engineering Ben-Gurion University of the Negev, ISRAEL

Introduction to OrCAD. Simulation Program With Integrated Circuits Emphasis.

OrCAD PSpice - Tutorial. TA: 黃玉龍

Operational Amplifiers: Theory and Design

Faculty of Engineering 4 th Year, Fall 2010

d. Why do circuit designers like to use feedback when they make amplifiers? Give at least two reasons.

Facility of Engineering. Biomedical Engineering Department. Medical Electronic Lab BME (317) Post-lab Forms

EMT 251 Introduction to IC Design. Combinational Logic Design Part IV (Design Considerations)

Lecture 4. The CMOS Inverter. DC Transfer Curve: Load line. DC Operation: Voltage Transfer Characteristic. Noise in Digital Integrated Circuits

ELECTRONIC GIANT. EG3012 Datasheet. Half-Bridge Driver. Copyright 2012 by EGmicro Corporation REV 1.0

ENEE307 Lab 7 MOS Transistors 2: Small Signal Amplifiers and Digital Circuits

AMPLIFIERS MACRO-MODELING

Introduction to SwitcherCAD

EE320L Electronics I. Laboratory. Laboratory Exercise #3. Operational Amplifier Application Circuits. Angsuman Roy

Power Electronics Laboratory-2 Uncontrolled Rectifiers


Mentor Graphics OPAMP Simulation Tutorial --Xingguo Xiong

DIGITAL VLSI LAB ASSIGNMENT 1

Background Theory and Simulation Practice

EE 230 Lab Lab 9. Prior to Lab

CHAPTER 6 DIGITAL CIRCUIT DESIGN USING SINGLE ELECTRON TRANSISTOR LOGIC

CMOS Inverter & Ring Oscillator

Techcode. High Efficiency 1MHz, 2A Step Up Regulator TD8208. General Description. Features. Applications. Package Types DATASHEET

ENEE207 Electric Circuits Lab Manual

NOVEMBER 28, 2016 COURSE PROJECT: CMOS SWITCHING POWER SUPPLY EE 421 DIGITAL ELECTRONICS ERIC MONAHAN

P1: IML/OVY P2: IML/OVY QC: IML/OVY T1: IML MHBD Sandler MHBD017-Sandler-v4.cls October 7, :44

EE 501 Lab9 Widlar Biasing Circuit and Bandgap Reference Circuit

TFT-LCD DC/DC Converter with Integrated Backlight LED Driver

PCB Crosstalk Simulation Toolkit Mark Sitkowski Design Simulation Systems Ltd Based on a paper by Ladd & Costache

Combinational Logic. Prof. MacDonald

VCO Design Using SpectreRF. SpectreRF Workshop. VCO Design Using SpectreRF MMSIM6.0USR2. November

EXPERIMENT 2. NMOS AND BJT INVERTING CIRCUITS

Homework Assignment 02

Transcription:

ELE447 Lab 1: Introduction to HSPICE In this lab, you will learn how to use HSPICE for simulating the electronic circuits. To be able to simulate a circuit using HSPICE, we need to write a text file that describes all nodes, power supplies and elements (such as transistors, resistor and capacitors,...) in the circuit. The text file including the circuit information is called the netlist of the circuit. First the Commands necessary to define circuit's parameters and elements are explained and a simple RC circuit is simulated and finally you should write the netlist for a simple inverter and simulate it using HSPICE. Defining Circuit Parameters 1. Elements: each circuit consists of some elements like transistor, resistor and capacitor. In this section we learn how to introduce different elements. Resistor: Rxxx n+ n- value R1 x1 x2 10k Capacitor: Cxxx n+ n- value C12 1 2 1p Inductor: Lxxx n+ n- value Diode: Dxxx n+ n- modelname JFET: Jxxx nd ng ns modelname MOSFET: Mxxx nd ng ns nb modelname W=value L=value Ad As Pd Ps

Mx1 out in x Gnd nfet W=10u L=1u M2 y g1 d2 Vdd pfet W=8u L=0.6u Voltages sources: A) Independent voltage sources: Vxxx n+ n- DC value AC value Vdd 1 2 DC 3v 1 Vdd=3v 2 B) Voltage Controlled Voltage source (VCVS): Exxx n+ n- in+ in- gain C) Current Controlled Voltage source (CCVS): Hx2 20 10 VCUR MAX=+10 MIN=-10 1000 The example above selects a linear current controlled voltage source. The controlling current flows through the dependent voltage source called VCUR. The defining equation of the CCVS is: HX2 = 1000 VCUR Current sources: A) Independent current source: Ixxx n+ n- DC value AC value I1 1 2 DC 3u 1 B) Current Controlled Current source (CCCS): I1=3 ua 2 Fxxx n+ n- vn1 gain vn1: names of voltage sources through which the controlling current flows. ( to use a current controlled current source, a dummy independent voltage source is often placed into the path of the controlling current). F1 13 5 VSENS MAX=+3 MIN=-3 6

C) Voltage Controlled Current source (VCCS): Gxxx n+ n- in+ in- transconductance A voltage-controlled resistor represents a basic switch characteristic. The resistance between nodes 2 and 0 varies linearly from 10 meg to 1 m ohms when voltage across nodes 1 and 0 varies between 0 and 1 volt. Beyond the voltage limits, the resistance remains at 10 meg and 1 m ohms, respectively. Gsw 2 0 VCR PWL(1) 1 0 0v,10meg 1v,1m 2. Different types of voltage and current sources: Pulse: Vxxx n+ n- pulse v1 v2 td tr tf pw T(period) Vpulse 1 2 pulse 0 3 0 1n 1n 98n 200n Sinusoid: Vxxx n+ n- SIN Vdc A freq. td θ φ e θ t Vdc: The DC value of sinusoid. td: time delay beforing starting the sinusoid. A: amplitude of sinusoid Vdc=0, φ =0 Exponential source: Vxxx n+ n- exp v1 v2 td1 τ1 td2 τ2 V2,t2 V1,t1

Piecewise linear source: Vxxx n+ n- PWL t1 v1 t2 v2 t3 v3... 3. Different types of simulation: -DC simulation: to find the DC operating points of nodes..dc var start stop incr -AC simulation: to find the frequency response of a circuit..ac type np fstart fstop sweep var type np start stop -Transient simulation: to find the time domain response of circuit to a signal that changes over time( like pulse or a sinusoidal source).tran step stop start 4. Exporting the information of a vaiable: After we simulate a circuit spice builds defferent files based on type of simulation performed. One of these files is.lis file (HSPICE builds.lis file regardless of simulation type). Command.print, writes the information to the.lis file..print V(1) V(1,2) Vdb(1) Vp(1) I(M1) 5. Commands used at the beginning and the end of each netlist: At the beginning:.include library path (model path) At the end:.options node list post.op.end

Now we are ready to write the netlist to describe a simple RC circuit in Figure 1. The corresponding netlist is listed below: Figure 1. R1 in out 1k C1 out 0 1n Vin in 0 pulse 0 3 0 1n 1n 20n 40n.tran 1n 200n.print V(in) V(out) V(in,out) I(Vin) *.IC V(out)=1v *.pz V(out) V(in) or.pz V(out) I(in).op.options node list post.end After simulating a simple RC circuit, create the netlist of the CMOS inverter in Figure 2. Apply a positive pulse from 0 to 3 volts to the input of the inverter(and then a negative pulse from 3 volts to 0) and plot the output using the cscope. Figure 2. The transistor geometry is: (a) (W/L)p=(W/L)n=4/2 (b) (W/L)p=2.5 (W/L)n In both cases, find the rise time, fall time, propagation delay, trip point and noise margin of inverter. Compare the results of (a) and (b) in a table and explain their differences with analytical expressions.

Appendix Running HSPICE, CSCOPE, MAGIC, IRSIM To avoid confusion in finding the files, create a folder ELE447 in your home directory and make 4 subfolders HSPICE, CSCOPE, MAGIC, IRSIM for their corresponding files. Home folder: /u/grads/your home folder/ele447 --------> make four different folders in ELE447 named HSPICE, CSCOPE, MAGIC and IRSIM to save their corresponding files. HSPICE: 1- Create a new text file. 2- Write the netlist necessary for simulating the circuit and save the file with.sp extension for example RCsimple.sp. 3- Open a terminal and type HSPICE Complete Path/RCsimple.sp and click enter. CSCOPE: After you runned the netlist. HSPICE creates a file based on type of simulation that you have done. For example name.tr for transoent simulation and name.ac file for AC simulation which can be used to plot the data of the circuit simulated. 1- Open a terminal and type cscope. 2- Go to File/open/plotfiles and look up for.tr or.ac files depending on type of performed simulation and open it. 3- Upon opening the file, CSCOPE opens a window showing the voltage and current of different nodes on the circuit. 4- Click on any current/voltage of any node to see the corresponding waveform. MAGIC and IRSIM: Run the commands below before using magic/irsim. 1- open a terminal. 2- emacs.cshrc 3- alias magic50 'magic -d ogl -T SCN3ME_SUBM.30' 4- alias irsim50 'irsim -s scmos30.prm' 5- save your configuration and exit. Library: Professor Fischer has provided a library of layout of basic cells like and, nor, adder and a lot more. You can access those files in path below.(you can copy them to your home directory and use them.) Path: /net/common/uricells1/ele447