INTRODUCTION
description
Transcript of INTRODUCTION
![Page 1: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/1.jpg)
INTRODUCTION
Spice Excel
![Page 2: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/2.jpg)
SPICE
Simulation Program with Integrated Circuit Emphasis
![Page 3: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/3.jpg)
SPICE is a program which can be used to simulate analog electronic circuits
![Page 4: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/4.jpg)
Analog filter circuits have a parameter called a ‘Transfer Function’ which maps
input to output with relation to frequency
v_in v_outcircuit
![Page 5: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/5.jpg)
Analog filter circuits have a parameter called a ‘Transfer Function’ which maps
input to output with relation to frequency
![Page 6: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/6.jpg)
Analog filter circuits have a parameter called a ‘Transfer Function’ which maps
input to output with relation to frequency
![Page 7: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/7.jpg)
Analog filter circuits have a parameter called a ‘Transfer Function’ which maps
input to output with relation to frequency
![Page 8: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/8.jpg)
Analog filter circuits have a parameter called a ‘Transfer Function’ which maps
input to output with relation to frequency
![Page 9: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/9.jpg)
Analog filter circuits have a parameter called a ‘Transfer Function’ which maps
input to output with relation to frequency
![Page 10: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/10.jpg)
A netlist is a text version of the circuit which describes the components and values for the
computer to interpret and solve
![Page 11: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/11.jpg)
A netlist is a text version of the circuit which describes the components and values for the
computer to interpret and solve
![Page 12: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/12.jpg)
A netlist is a text version of the circuit which describes the components and values for the
computer to interpret and solve
![Page 13: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/13.jpg)
A netlist is a text version of the circuit which describes the components and values for the
computer to interpret and solve
![Page 14: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/14.jpg)
A netlist is a text version of the circuit which describes the components and values for the
computer to interpret and solve
![Page 15: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/15.jpg)
A netlist is a text version of the circuit which describes the components and values for the
computer to interpret and solve
![Page 16: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/16.jpg)
A netlist is a text version of the circuit which describes the components and values for the
computer to interpret and solve
* Basic DC circuitV1 1 0 20R1 3 1 4kR2 3 2 10kV2 2 0 -10R3 3 0 8k.OP.END
![Page 17: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/17.jpg)
A netlist is a text version of the circuit which describes the components and values for the
computer to interpret and solve
* Series_RLC CircuitV1 1 0 SIN(0 5 1k) AC 1R1 2 1 50L1 2 3 100mHC1 3 0 1uF.AC DEC 100 1 10k.END
![Page 18: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/18.jpg)
Spice is a software program that simulates electronic circuits and outputs the circuits’ basic characteristics such as:
–Voltage–Current–Resistance
at any location in the circuit
HSpice is a version used in Unix
PSpice is a version used in Windows
T-Spice simpler tool meant for smaller circuits
OptiSPICE is the best because it was written by your professor.
WHAT IS SPICE?
![Page 19: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/19.jpg)
• Create an Spice input file that describes the circuit
• Run Spice
• Inspect the output
WORKFLOW
![Page 20: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/20.jpg)
R_R1 1 0 100
C_C1 1 2 0.01592u
V_V1 2 0 dc 0.0 ac 1.0 sin(0.0 1.0 1.0 0 0)
node value
- A netlist describes the circuit to the program
- Node 0 is always GROUND
name
THE NETLIST
![Page 21: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/21.jpg)
-The title must be the first line in the netlist (in order to recognize the options command)- R1 = 100Ω (Ohms)- C1 = 0.01592uF (micro Farads) with initial condition of 0- V1 = sine wave with 1Hz frequency, 0 to 1V magnitude- Print ac voltage at node 1- Want 100 frequency points from 0.001 to 1e+06
Title “my filter circuit”.options ingold=2R_R1 1 0 100C_C1 1 2 0.01592u IC=0V_V1 2 0 dc 0.0 ac 1.0 sin(0.0 1.0 1.0 0 0).print ac V(1).ac LIN 100 0.001 1e+06.op.END
THE INPUT FILE
![Page 22: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/22.jpg)
Using PSPICE
• Create a netlist file using notepad (Make sure you have a .probe)
• Save as “.cir” file on desktop• Start up PSPICE• Open the file in PSPICE• Simulate “big green triangle”• Use trace to bring up the plot window and pick things
to show.
![Page 23: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/23.jpg)
Using PSpice
![Page 24: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/24.jpg)
• All Programs ->Tanner EDA -> T-Spice...
Other spices: likely won’t work
![Page 25: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/25.jpg)
VIEWING OUTPUT
![Page 26: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/26.jpg)
Using HSPICE
![Page 27: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/27.jpg)
![Page 28: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/28.jpg)
![Page 29: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/29.jpg)
TRANSFER FUNCTION• Magnitude Plot - DB vs Hz
(log scale)
• Phase Plot - Degrees vs Hz
Together these plots show the transfer function of the circuit at different
frequencies
For HSPICE and PSPICE use Excel to generate the plots
![Page 30: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/30.jpg)
• 3-terminals: Collector, Base, and Emitter
• Common Emitter Amplifier
• input = base with respect to the emitter
• output = collector with respect to the emitter
• Most commonly used configuration for transistor-based amplifiers as it produces the highest voltage, current, and power gain.
Input Voltage
Output Voltage
BIPOLAR JUNCTION TRANSISTOR
![Page 31: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/31.jpg)
BJT
![Page 32: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/32.jpg)
OUTPUT FROM HSPICE
![Page 33: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/33.jpg)
SOME USEFUL NETLIST STATEMENTS• Analysis Types:
• Operating Point (.OC) - Voltage at each node and current from voltage sources
• AC Analysis (.AC) - Small signal model output at different frequencies
• Transient (.TRAN) - Circuit output as time passes
• Scale factors:
T : E+12G : E+9
MEG : E+6K : E+3M : E-3U: E-3N: E-9P: E-12F: E-15
![Page 34: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/34.jpg)
• Components:
SOME USEFUL NETLIST STATEMENTS
Netlist Name Component Type Example
Rname ResistorRname N+ N- Value
Cname CapacitorCname N+ N- Value <IC=Initial Condition>
Lname InductorLname N+ N- Value <IC=Initial Condition>
Vname Voltage Source Voltage source: Vname N+ N- <DC=> DCValue
Iname Current Source Current source: Iname N+ N- <DC=> DCValue
Qname Bipolar Transistor Qname C B E BJT_modelName
Mname MOSFETMname ND NG NS <NB> ModName <L=VAL> <W=VAL>Sweep Distributions:
- DEC : Log distributions of points- LIN: Linear distribution of points
![Page 35: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/35.jpg)
TIPS IN EXCEL
![Page 36: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/36.jpg)
• In the menu, choose Format Cells
Time [s] Vout [V]
0.E+00 0.000
1.E-10 -0.008
2.E-10 -0.007
3.E-10 0.034
4.E-10 0.140
5.E-10 0.322
6.E-10 0.588
7.E-10 0.934
8.E-10 1.355
9.E-10 1.839
1.E-09 2.373
Scientific Notation: 0 decimals
Number: 3 decimals
FORMAT CELLS
![Page 37: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/37.jpg)
Excel can split text from one column into multiple columns using the command “Text to Columns”
![Page 38: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/38.jpg)
• $ is used with cell coordinates, signifies leaving that coordinate constant
• Example: rearrange v=d/t to give d=v*t
The code
$
![Page 39: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/39.jpg)
• Other: transpose, add…
• Example: Make a row of data negative
• Copy cell with -1 value, highlight cells that you want to become negative of the current values, Edit Paste Special Multiply
Positive“not yet
Negative”
0.400 0.400 -1
-0.008 -0.008
-0.007 -0.007
Positive Negative
0.400 -0.400
-0.008 0.008
-0.007 0.007
PASTE SPECIAL
![Page 40: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/40.jpg)
• Right-click on a data point, choose Add Trendline using type: Linear, options: display equation on chart and R squared value.
BEST FIT LINE
![Page 41: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/41.jpg)
• must have the Analysis Toolpak (go to Tools Add-ins, and install).
• tools - data analysis - regression - x and y ranges - click residuals
SUMMARY OUTPUT
Regression Statistics
Multiple R 0.999997109
R Square 0.999994218
Adjusted R Square 0.999991328
Standard Error 1182.326494
Observations 4
End
STATISTICS
![Page 42: INTRODUCTION](https://reader034.fdocuments.in/reader034/viewer/2022051416/568145ce550346895db2d714/html5/thumbnails/42.jpg)
NOW TO APPLY YOUR KNOWLEDGE!