Download Word - University of California, Berkeley

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Schmitt trigger wikipedia , lookup

Switched-mode power supply wikipedia , lookup

Index of electronics articles wikipedia , lookup

CMOS wikipedia , lookup

Valve RF amplifier wikipedia , lookup

Regenerative circuit wikipedia , lookup

Operational amplifier wikipedia , lookup

Immunity-aware programming wikipedia , lookup

Tektronix analog oscilloscopes wikipedia , lookup

Transistor–transistor logic wikipedia , lookup

Opto-isolator wikipedia , lookup

Power MOSFET wikipedia , lookup

Current mirror wikipedia , lookup

Two-port network wikipedia , lookup

Power electronics wikipedia , lookup

Oscilloscope history wikipedia , lookup

MOS Technology SID wikipedia , lookup

Hardware description language wikipedia , lookup

Rectiverter wikipedia , lookup

Transcript
UNIVERSITY OF CALIFORNIA
College of Engineering
Department of Electrical Engineering and Computer Sciences
Last modified on September 3, 2001 by Borivoje Nikolić
Andrei Vladimirescu
Lab #1: Circuit Simulation
EECS 141
Due Thursday,January 25th, 5pm, box outside 275 Cory
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 5
VIN in 0 PULSE 0 5 2NS 2NS 30NS 60NS
RB in base 10k
Q1 out base 0 NPN
RC 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:
real
user
sys
***** hspice job concluded
12.3
1.1
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:
Replace with:
i.
Q1 out base 0 npn
M1 out base 0 0 NMOS L=2u W=100u
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 inverter