DOC PREVIEW
Berkeley ELENG 141 - Circuit Simulation

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Jan M. Rabaey Lab #1: Circuit Simulation EECS 141UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences Last modified on September 1, 2000 by Dietrich Ho ([email protected]) Jan M. Rabaey Lab #1: Circuit Simulation EECS 141 Due Thurs., September 7th, 5pm 1. Objective The objective of this session is to give initial exposure to the software environment that will be used in this course throughout the semester. HSPICE (netlist simulator) and Awaves (waveform analyzer) will be used to execute some of the procedures that are necessary in many lab and homework assignments, in addition to your project, during the course. 2. Tasks a. Make sure your account is correctly setup. Follow the directions on the handout (class-setup.txt) to setup your account to operate in the EE141 lab environment. b. Copy the work files from the EE141 master account to your home directory. You may want to do this as follows: > mkdir LAB1 > cd LAB1 > cp ~ee141/LAB1/RTLinv.sp .c. Examine the spice deck for the RTL inverter by typing in the following: > cat RTLinv.sp The file (RTLinv.sp) contains the description of a RTL (Resistor Transistor Logic) inverter. The schematic of the circuit is shown below in Figure 1.1 RTLinv.sp: Simple RTL Inverter.include ‘~ee141/MODELS/npn.mod’*netlist---------------------------------------VCC vcc 0 5VIN in 0 PULSE 0 5 2NS 2NS 30NS 60NSRB in base 10kQ1 out base 0 NPNRC vcc out 1k*extra control information---------------------.options post=2 nomod.op*analysis--------------------------------------.TRAN 1ns 30ns.DC VIN 0 5 0.1.END There are three main section in the spice deck: • The netlist description. Netlist is a designation for a computer readable representation of the circuit schematic. • The models used. A model in spice3 is a description of the parameters of the equations used by spice3 to analyze the circuit• The analysis to be performed during the simulation. We are requesting a transient analysis and the DC Transfer Characteristic of the circuit. d. Simulate the circuit netlist. > hspice RTLinv.sp >! RTLinv.out Upon proper completion of the simulation, you should see the following: > info: ***** hspice job concluded real 12.3 user 1.1 sys 1.8 e. Definition of output files RTLinv.sp is the input netlist (your file) RTLinv.sw0 is the DC sweep data output. (used by awaves) RTLinv.tr0 is the transient data output. (used by awaves) RTLinv.out is the output listing from HSPICE. (look here for errors or text about the circuit) RTLinv.st0 is the simulation run information. (not useful) RTLinv.ic is the information about input to HSPICE (not useful) f. View the result of the transient analysis Load awaves and examine the results of the transient analysis by entering the following: > awaves & Once awaves loads, click on Design/Open. This will open a menu to select which netlist file to display. Your netlist RTLinv.sp should be listed, otherwise, switch to the correct directory using the tab or the arrows. Once you have found your netlist, double-click on RTLinv.sp, which should open the Results Browser. To view the transient waveforms, click on Transient: Simple RTL Inverter and either double click on the waveform you wish to see or right click on the waveform and drag the wave with the center mouse button to the panel you want to display the waveform. Print the waveforms for in and out. g. View the result of the DC analysis Open a new panel for the DC waveform by clicking on Panels/Add. Return to the Results Browser or reopen by clicking Tools/Results Browser. Click on DC: Simple RTL Inverter and repeat part f) to view the DC waveforms. Print the waveform for out.h. Transform the RTL gate into a NMOS inverter with a passive load. Replace the bipolar transistor with a MOS transistor (refer to Figure 1.2) A model for the MOSFET must first be obtained. Replace npn.mod with scmos.mod in the .include line of the your netlist and save as MOSinv.sp. Edit MOSinv.sp by replacing the BJT with a MOSFET in your netlist. Delete: Q1 out base 0 npn Replace with: M1 out base 0 0 NMOS L=2u W=100u i. Simulation and Analysis of the MOS inverter Repeat steps d-g, this time using MOSinv.sp as the input file. 3. Report For your report, all that is required is the following: • A printout of the SPICE input files • Plot of the transient response of the pseudo-NMOS inverter • Plot of the DC transfer characteristic of the pseudo-NMOS


View Full Document

Berkeley ELENG 141 - Circuit Simulation

Documents in this Course
Adders

Adders

7 pages

Memory

Memory

33 pages

I/O

I/O

14 pages

Lecture 8

Lecture 8

34 pages

Lab 3

Lab 3

2 pages

I/O

I/O

17 pages

Project

Project

6 pages

Adders

Adders

15 pages

SRAM

SRAM

13 pages

Load more
Download Circuit Simulation
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Circuit Simulation and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Circuit Simulation 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?