Академический Документы
Профессиональный Документы
Культура Документы
Administration
CK Cheng, CSE 2130, tel. 534-6184, ckcheng@ucsd.edu
Lectures: 12:30 ~ 1:50pm TTH WLH2205
Textbooks
Electronic Circuit and System Simulation Methods
T.L. Pillage, R.A. Rohrer, C. Visweswariah, McGraw-Hill
Interconnect Analysis and Synthesis
CK Cheng, J. Lillis, S. Lin, N. Chang, John Wiley & Sons
Grading
Homework and Projects: 60%
Project Presentation: 20%
Final Report: 20%
Sensitivity
Mechanical, Thermal, Bio Analysis
Motivation
Why
Whole Circuit Analysis, Interconnect Dominance
What
Power, Clock, Interconnect Coupling
Where
Matrix Solvers, Integration Methods
RLC Reduction, Transmission Lines, S Parameters
Parallel Processing
Thermal, Mechanical, Biological Analysis
Circuit Simulation
Circuit
Simulator:
Solve
f (X ) C
dX (t )
dt
Output
numerically
dX (t )
f (X ) C
GX (t ) BU (t )
dt
Y DX (t ) FU (t )
Types of analysis:
DC Analysis
DC Transfer curves
Transient Analysis
AC Analysis, Noise, Distortions, Sensitivity
Numerical Techniques:
Formulation of circuit equations
Solution of ordinary differential equations
Solution of nonlinear equations
Solution of linear equations
Output
Lecture 1: Formulation
Derive from KCL/KVL
Sparse Tableau Analysis (IBM)
Nodal Analysis, Modified Nodal Analysis
(SPICE)
Conservation Laws
Determined by the topology of the circuit
Kirchhoffs Current Law (KCL): The algebraic
sum of all the currents flowing out of (or into) any circuit
node is zero.
No Current Source Cut
Branch Eqn
Variable parameter
Resistor
v = Ri
Capacitor
i = Cdv/dt
Inductor
v = Ldi/dt
Voltage Source
v = vs
i=?
Current Source
i = is
v=?
VCVS
vs = AV vc
i=?
VCCS
is = GT vc
v=?
CCVS
v s = RT i c
i=?
CCCS
is = AI ic
v=?
Equations
N+B Conservation Laws
B Constitutive Equations
2B+N equations, 2B+N unknowns => unique solution
R1
Is5
R4
G2v3
0
Law:
State Equation:
Ai = 0
N equations
Node 1:
Node 2:
i1
i
2
1 1 1 0 0
0
i
0 0 1 1 1 3
i 0
4
Branches
i5
R1
Is5
R4
G2v3
0
Law:
State Equation:
v-A e=0
T
B equations
v1
v
2
v3
v4
v5
1
1
1
0
0
0
0
0
e1
1 0
e2
1
0
0
1
R1
R4
Law:
G2v3
State Equation:
Kvv + Kii = is
1
R
1
0
0
B equations
0 G2
1
0
R3
0
0
Is5
1
R4
0
v
i
0
1 1
0 v
2 i2 0
0 v3 i3 0
v4 i4 0
0 v i i
5 5 s5
0
Equation Formulation
Node-Branch Incidence Matrix A
branches
1 2 3
n
o 1
d 2
e
s i
(+1, -1, 0)
Aij =
A
0
0
I
K i K v
Sparse Tableau
Ai=0
v - ATe=0
Kii + Kvv=S
0
T
A
i
v
0 e
(N eqns)
(B eqns)
(B eqns)
N+2B eqns
N+2B unknowns
N = # nodes
B = # branches
Yne=ins
Nodal Matrix
N eqns
N unknowns
N = # nodes
R1
1. KCL:
2. BCE:
3. KVL:
Yne = ins
Yn = AKvAT
Ins = Ais
Is5
R4
G2v3
0
Ai=0
Kvv + i = is i = is - Kvv A Kvv = A is
v = ATe A KvATe = A is
1
1
2
R
R3
1
1
R3
1
R3
1
1
R3 R4
G2
e1 0
e i
2 s5
Nodal Analysis
Example shows how NA may be derived from
STA
Better Method: Yn may be obtained by direct
inspection (stamping procedure)
Each element has an associated stamp
Yn is the composition of all the elements stamps
N-
N+
N-
N+ N-
N+
N-
1
Rk
1
Rk
1
Rk
1
Rk
Rkvalue
What if a resistor is
connected to ground?
.
Only contributes to the
diagonal
1
iothers R eN eN is
k
KCL at node N+
1
iothers R eN eN is
k
KCL at node N-
NC-
i
i
others
others
Gkvalue
N+
+
vc
N+ N- NC+ NC-
NC+
N+ Gk
G
k
N-
Gkvc
Gk eNC eNC is
Gk eNC eNC is
NKCL at node N+
KCL at node N-
NC-
Gk
Gk
N+ N- Ikvalue
N+
N+ NN+
Ik
N-
N-
Ik
I
k
Ekl
k
ikl
1 ek
1 el
0 ikl Ekl
Ek
N+
N-
ik
N+ N-
Ekvalue
N+ N- ik
N+ 0
0 1
N- 0 0 -1
Branch k 1 -1 0
RHS
0
0
Ek
Yn
C
B e
MS
0 i
In general:
Yn
C
B e
MS
D i
MNA An example
1
R1
+ v3 R3
Is5
R4
G2v3
0
i3 i4 i5 i6 0
i6 i8 0
i7 i8 8
(1)
(2)
(3)
(4)
+
+
E7v3
i1 i2 i3 0
ES6
R8
4
MNA An example
Step 2: Use branch equations to eliminate as many branch currents
as possible
1
1
v1 G2v3 v3 0
R1
R3
(1)
1
1
v3 v4 i6 is 5
R3
R4
(2)
i6
1
v8 0
R8
(3)
i7
1
v8 0
R8
(4)
(b6)
(b7)
MNA An example
Step 4: Use KVL to eliminate branch voltages from previous
equations
1
1
e1 G 2 (e1 e2 )
(e1 e2 ) 0
R1
R3
1
1
(e1 e2 )
e 2 i6 i s 5
R3
R4
(1)
(2)
i6
1
( e3 e 4 ) 0
R8
(3)
i7
1
(e3 e 4 ) 0
R8
(4)
(e3 e2 ) ES 6
e4 E 7 (e1 e2 ) 0
(b6)
(b7)
MNA An example
Yn
C
B
0
e
i MS
1
1
G2
R3
R1
1
R3
G2
R3
1
1
R3 R4
0
E7
1
E7
1
R8
1
R8
1
0
R8
1
R8
0
1
e 0
1
1 0 e
i
2 s5
e 0
3
1 0
e4 0
0 1 i6 ES 6
i7 0
0 0
0 0