Spice deck: Difference between revisions
mNo edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
LTspice file:[[Media:spice.asc]] | LTspice file:[[Media:spice.asc.txt|Spice file]] (Rename to spice.asc after downloading) | ||
Select output node after running simulation and change the vertical scale to volts to see output level. | |||
Choose View->Spice Error Log to view operating point. | |||
<pre> | <pre> | ||
Line 9: | Line 11: | ||
* Voltage | * Voltage | ||
* from to volts | * from to volts | ||
VDD VDD | VDD VDD GND 3 | ||
* Transistor | * Transistor | ||
* Drain Gate Source Bulk | * Drain Gate Source Bulk | ||
MN1 Out In | MN1 Out In GND GND nmos W=10u L=1u | ||
* Load Resistor and Capacitor | * Load Resistor and Capacitor | ||
* from to ohms | * from to ohms | ||
RD VDD Out 5k | RD VDD Out 5k | ||
Cl Out | Cl Out GND 0.1p | ||
* Voltage source | * Voltage source | ||
* from to volts | * from to volts | ||
VI In | VI In GND DC 1.281 AC 1 | ||
* | * | ||
* Models | * Models | ||
* | * | ||
.model nmos nmos (level=1 VT0=0.6 KP=200u LAMBDA=0 | .model nmos nmos (level=1 VT0=0.6 KP=200u LAMBDA=0) | ||
* | * | ||
* Setup | * Setup | ||
* | * | ||
.options nomod nopage | *.options nomod nopage | ||
.width OUT=80 | *.width OUT=80 | ||
.connect | *.connect GND 0 | ||
* | * | ||
* Simulation and Plots | * Simulation and Plots |
Latest revision as of 10:24, 9 September 2013
LTspice file:Spice file (Rename to spice.asc after downloading) Select output node after running simulation and change the vertical scale to volts to see output level. Choose View->Spice Error Log to view operating point.
Common Source gain stage, max gain * Analysis and design of analog integrated circuits * Problem 3.4 * NB ! Model level 1 only - Similar to hand calcualtions * * Voltage * from to volts VDD VDD GND 3 * Transistor * Drain Gate Source Bulk MN1 Out In GND GND nmos W=10u L=1u * Load Resistor and Capacitor * from to ohms RD VDD Out 5k Cl Out GND 0.1p * Voltage source * from to volts VI In GND DC 1.281 AC 1 * * Models * .model nmos nmos (level=1 VT0=0.6 KP=200u LAMBDA=0) * * Setup * *.options nomod nopage *.width OUT=80 *.connect GND 0 * * Simulation and Plots * *.TF V(Out) VI *.OP .ac dec 10 1k 100.0e9 * Amplitude Bode Plot .plot ac vdb(Out) * Phase Bode Plot .plot ac vp(Out) .END