CSE245: Computer-Aided Circuit Simulation and Verification Lecture 1: Introduction and Formulation Winter 2013 Chung-Kuan Cheng.

Slides:



Advertisements
Similar presentations
FIRST AND SECOND-ORDER TRANSIENT CIRCUITS
Advertisements

CSE 245: Computer Aided Circuit Simulation and Verification Fall 2004, Nov Nonlinear Equation.
CSE245: Computer-Aided Circuit Simulation and Verification
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 2: State Equations Prof. Chung-Kuan Cheng 1.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 5 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Chapter 3 Methods of Analysis
Numerical Integration CSE245 Lecture Notes. Content Introduction Linear Multistep Formulae Local Error and The Order of Integration Time Domain Solution.
Lecture 4, Slide 1EE 40 Fall 2004Prof. White Lecture #4 OUTLINE Resistors in series –equivalent resistance –voltage-divider circuit –measuring current.
CSE245: Computer-Aided Circuit Simulation and Verification Spring 2006 Chung-Kuan Cheng.
UCSD CSE245 Notes -- Spring 2006 CSE245: Computer-Aided Circuit Simulation and Verification Lecture Notes Spring 2006 Prof. Chung-Kuan Cheng.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 5 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
ECE 552 Numerical Circuit Analysis Chapter Two EQUATION FORMULATION Copyright © I. Hajj 2015 All rights reserved.
Chapter 8 Methods of Analysis. 2 Constant Current Sources Maintains same current in branch of circuit –Doesn’t matter how components are connected external.
1 Chapter 3 Methods of Analysis Copyright © 2013 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Adjoint Method in Network Analysis Dr. Janusz A. Starzyk.
EE EE 616 Computer Aided Analysis of Electronic Networks Lecture 2 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens,
Chapter 3 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ELECTRICITY & MAGNETISM (Fall 2011) LECTURE # 13 BY MOEEN GHIYAS.
Electrical Engineering for Civil Engineer Dr. Basim Zafar Spring 2013 EE for CE Course Outlines MID TERM I Dr. Basim Zafar.
1 Chapter 3 Methods of Analysis Copyright © 2013 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Fundamentals of Electric Circuits Chapter 8
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 2: State Equations Prof. Chung-Kuan Cheng.
APPLICATION OF THE LAPLACE TRANSFORM
FIRST ORDER TRANSIENT CIRCUITS
Electric Circuit Theory
Passive components and circuits - CCP Lecture 3 Introduction.
ARRDEKTA INSTITUTE OF TECHNOLOGY GUIDED BY. GUIDED BY. Prof.Y.B.Vaghela. Prof.Y.B.Vaghela. Asst.prof in electrical Asst.prof in electrical Department Department.
EE212 Passive AC Circuits Lecture Notes 2a EE 212.
METHODS OF CIRCUIT ANALYSIS
1 Introduction to Model Order Reduction Thanks to Jacob White, Kin Sou, Deepak Ramaswamy, Michal Rewienski, and Karen Veroy I.2.a – Assembling Models from.
Formulation of Circuit Equations Lecture 2 Alessandra Nardi Thanks to Prof. Sangiovanni-Vincentelli and Prof. Newton.
Loop and cut set Analysis
Graph Theory, Topological Analysis ECE Graph Theory, Topological Analysis - Terms Topological Analysis: General, systematic, suited for CAD Graph:
EE2301: Basic Electronic Circuit Quick Summary of Last Lecture Block A Unit 1 Three Basic Laws EE2301: Block A Unit 21.
CSE 245: Computer Aided Circuit Simulation and Verification Instructor: Prof. Chung-Kuan Cheng Winter 2003 Lecture 1: Formulation.
Chapter 19 DC Circuits. Objective of the Lecture Explain Kirchhoff’s Current and Voltage Laws. Demonstrate how these laws can be used to find currents.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture 1: Introduction and Formulation Spring 2008 Chung-Kuan Cheng.
CIRCUIT ANALYSIS USING LAPLACE TRANSFORM
Dan O. Popa, Intro to EE, Freshman Seminar Spring 2015 EE 1105 : Introduction to EE Freshman Seminar Lecture 3: Circuit Analysis Ohm’s Law, Kirkhoff’s.
Lecture 2: Circuit Elements and Series/Parallel Resistors Nilsson , ENG17 (Sec. 1): Circuits I Summer June 24, 2014.
1 ECE 3144 Lecture 12 Dr. Rose Q. Hu Electrical and Computer Engineering Department Mississippi State University.
General Methods of Network Analysis Node Analysis Mesh Analysis Loop Analysis Cutset Analysis State variable Analysis Non linear and time varying network.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture 1: Introduction and Formulation Spring 2010 Chung-Kuan Cheng.
Feedback Control Systems (FCS) Dr. Imtiaz Hussain URL :
EE EE 616 Computer Aided Analysis of Electronic Networks Lecture 2 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens,
Distributed Computation: Circuit Simulation CK Cheng UC San Diego
Net work analysis Dr. Sumrit Hungsasutra Text : Basic Circuit Theory, Charles A. Desoer & Kuh, McGrawHill.
CHAPTER I APPLICATION OF CIRCUIT LAWS. 2 Introduction Generally, we require 3 steps to analyze AC Circuit Transform the circuit to the phasor / frequency.
1 Summary of Circuits Theory. 2 Voltage and Current Sources Ideal Voltage Source It provides an output voltage v s which is independent of the current.
Ch 3: Methods of Analysis
ECE 4991 Electrical and Electronic Circuits Chapter 3.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 2: State Equations Spring 2010 Prof. Chung-Kuan Cheng.
Chapter 6(b) Sinusoidal Steady State Analysis
Chapter 1 Variables and Circuit Elements. SUB TOPICS : Introduction International System of Units, SI Current and Voltage Power and Energy Ideal Basic.
Lecture - 7 First order circuits. Outline First order circuits. The Natural Response of an RL Circuit. The Natural Response of an RC Circuit. The Step.
CSE 245: Computer Aided Circuit Simulation and Verification Instructor: Prof. Chung-Kuan Cheng Winter 2003 Lecture 2: Closed Form Solutions (Linear System)
Chapter 6(b) Sinusoidal Steady State Analysis
CHAPTER 2: DC Circuit Analysis and AC Circuit Analysis
5. Modeling of Electrical Systems
Introducing Supernodes!!!
Chapter 2 Interconnect Analysis
Lecture 2 - Circuit Elements and Essential Laws
Ch. 3 Network Analysis- Part II
CSE245: Computer-Aided Circuit Simulation and Verification
Alexander-Sadiku Fundamentals of Electric Circuits
Circuit Principles Kirchhoff’s Current Law (KCL)
Lecture 2 Kirchhoff’s Laws & Circuit Analysis
Lecture 2 - Circuit Elements and Essential Laws
ECE 4991 Electrical and Electronic Circuits Chapter 3
طرق تحليل الدوائر الكهربائية
Presentation transcript:

CSE245: Computer-Aided Circuit Simulation and Verification Lecture 1: Introduction and Formulation Winter 2013 Chung-Kuan Cheng

Administration CK Cheng, CSE 2130, tel , Lectures: 5:00 ~ 6:20pm MW CSE2154 References –1. Electronic Circuit and System Simulation Methods, T.L. Pillage, R.A. Rohrer, C. Visweswariah, McGraw-Hill, 1998 –2. Interconnect Analysis and Synthesis, CK Cheng, J. Lillis, S.Lin and N. Chang, John Wiley, 2000 –3. Computer-Aided Analysis of Electronic Circuits, L.O. Chua and P.M. Lin, Prentice Hall, 1975 –4. A Friendly Introduction to Numerical Analysis, B. Bradie, Pearson/Prentice Hall, 2005, –5. Numerical Recipes: The Art of Scientific Computing, Third Edition, W.H. Press, S.A. Teukolsky, W.T. Vetterling, and B.P. Flannery, Cambridge University Press, Grading –Homework: 60% –Project Presentation: 20% –Final Report: 20%

CSE245: Course Outline Content: 1. Introduction 2. Problem Formulations: circuit topology, network regularization 3. Linear Circuits: matrix solvers, explicit and implicit integrations, matrix exponential methods, convergence 4. Nonlinear Systems: Newton-Raphson method, Nesterov methods, homotopy methods 5. Sensitivity Analysis: direct method, adjoint network approach 6. Various Simulation Approaches: FDM, FEM, BEM, multipole methods, Monte Carlo, random walks 7. Applications: power distribution networks, IO circuits, full wave analysis, Boltzmann machines

Motivation: Analysis Energy: Fission, Fusion, Fossil Energy, Efficiency Optimization Astrophysics: Dark energy, Nucleosynthesis Climate: Pollution, Weather Prediction Biology: Microbial life Socioeconomic Modeling: Global scale modeling Nonlinear Systems, ODE, PDE, Heterogeneous Systems, Multiscale Analysis.

Motivation: Analysis Exascale Calculation: 10 18, Parallel Processing at 20MW 10 Petaflops PF PF 2022

Motivation: Analysis Modeling: Inputs, outputs, system models. Simulation: Time domain, frequency domain, wavelet simulation. Sensitivity Calculation: Optimization Uncertainty Quantification: Derivation with partial information or variations User Interface: Data mining, visualization,

Motivation: Circuit Analysis 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 Simulator: Solve numerically Input and setup Circuit Output Types of analysis: –DC Analysis –DC Transfer curves –Transient Analysis –AC Analysis, Noise, Distortions, Sensitivity

Program Structure (a closer look) Numerical Techniques: – Formulation of circuit equations – Solution of ordinary differential equations – Solution of nonlinear equations – Solution of linear equations Input and setup Models Output

Lecture 1: Formulation Derive from KCL/KVL Sparse Tableau Analysis (IBM) Nodal Analysis, Modified Nodal Analysis (SPICE) *some slides borrowed from Berkeley EE219 Course

Conservation Laws Determined by the topology of the circuit Kirchhoff’s Current Law (KCL): The algebraic sum of all the currents flowing out of (or into) any circuit node is zero. –No Current Source Cut Kirchhoff’s Voltage Law (KVL): Every circuit node has a unique voltage with respect to the reference node. The voltage across a branch v b is equal to the difference between the positive and negative referenced voltages of the nodes on which it is incident –No voltage source loop

Branch Constitutive Equations (BCE) Ideal elements ElementBranch EqnVariable parameter Resistorv = R·i- Capacitori = C·dv/dt- Inductorv = L·di/dt- Voltage Sourcev = v s i = ? Current Sourcei = i s v = ? VCVSv s = A V · v c i = ? VCCSi s = G T · v c v = ? CCVSv s = R T · i c i = ? CCCSi s = A I · i c v = ?

Formulation of Circuit Equations Unknowns –B branch currents(i) –N node voltages(e) –B branch voltages(v) Equations –N+B Conservation Laws –B Constitutive Equations 2B+N equations, 2B+N unknowns => unique solution

Equation Formulation - KCL R1R1 G2v3G2v3 R3R3 R4R4 I s5 A i = 0 Kirchhoff’s Current Law (KCL) N equations Law:State Equation: Node 1: Node 2: Branches

Equation Formulation - KVL R1R1 G2v3G2v3 R3R3 R4R4 I s5 v - A T e = 0 Kirchhoff’s Voltage Law (KVL) B equations Law:State Equation: v i = voltage across branch i e i = voltage at node i

Equation Formulation - BCE R1R1 G2v3G2v3 R3R3 R4R4 I s5 K v v + K i i = i s B equations Law: State Equation:

Equation Formulation Node-Branch Incidence Matrix A j B 12iN12iN branches nodesnodes (+1, -1, 0) { A ij = +1 if node i is + terminal of branch j -1 if node i is - terminal of branch j 0 if node i is not connected to branch j

Equation Assembly (Stamping Procedures) Different ways of combining Conservation Laws and Branch Constitutive Equations –Sparse Table Analysis (STA) –Nodal Analysis (NA) –Modified Nodal Analysis (MNA)

Sparse Tableau Analysis (STA) 1.Write KCL: Ai=0 (N eqns) 2.Write KVL:v - A T e=0 (B eqns) 3.Write BCE:K i i + K v v=S(B eqns) N+2B eqns N+2B unknowns N = # nodes B = # branches Sparse Tableau

Sparse Tableau Analysis (STA) Advantages It can be applied to any circuit Eqns can be assembled directly from input data Coefficient Matrix is very sparse Disadvantages Sophisticated programming techniques and data structures are required for time and memory efficiency

Nodal Analysis (NA) 1.Write KCL Ai=0 (N equations, B unknowns) 2.Use BCE to relate branch currents to branch voltages i=f(v)(B equations  B unknowns) 3.Use KVL to relate branch voltages to node voltages v=h(e)(B equations  N unknowns) Y n e=i ns N eqns N unknowns N = # nodes Nodal Matrix

Nodal Analysis - Example R3R R1R1 G2v3G2v3 R4R4 I s5 1.KCL:Ai=0 2.BCE:K v v + i = i s  i = i s - K v v  A K v v = A i s 3.KVL:v = A T e  A K v A T e = A i s Y n e = i ns Y n = AK v A T I ns = Ai s

Nodal Analysis Example shows how NA may be derived from STA Better Method: Y n may be obtained by direct inspection (stamping procedure) –Each element has an associated stamp –Y n is the composition of all the elements’ stamps

Spice input format: R k N+ N- R k value Nodal Analysis – Resistor “Stamp” N+ N- N+ N- N+ N- i RkRk KCL at node N+ KCL at node N- What if a resistor is connected to ground? …. Only contributes to the diagonal

Spice input format: G k N+ N- NC+ NC- G k value Nodal Analysis – VCCS “Stamp” NC+ NC- N+ N- N+ N- GkvcGkvc NC+ NC- +vc-+vc- KCL at node N+ KCL at node N-

Spice input format: I k N+ N- I k value Nodal Analysis – Current source “Stamp” N+ N- N+ N- N+ N- IkIk

Nodal Analysis (NA) Advantages Yn is often diagonally dominant and symmetric Eqns can be assembled directly from input data Yn has non-zero diagonal entries Yn is sparse (not as sparse as STA) and smaller than STA: NxN compared to (N+2B)x(N+2B) Limitations Conserved quantity must be a function of node variable –Cannot handle floating voltage sources, VCVS, CCCS, CCVS

Modified Nodal Analysis (MNA) i kl cannot be explicitly expressed in terms of node voltages  it has to be added as unknown (new column) e k and e l are not independent variables anymore  a constraint has to be added (new row) How do we deal with independent voltage sources? i kl k l +- E kl klkl

MNA – Voltage Source “Stamp” N+ ikik N- +- EkEk Spice input format: V k N+ N- E k value N+ N- Branch k N+ N- i k RHS

Modified Nodal Analysis (MNA) How do we deal with independent voltage sources? Augmented nodal matrix Some branch currents In general:

MNA – General rules A branch current is always introduced as an additional variable for a voltage source or an inductor For current sources, resistors, conductors and capacitors, the branch current is introduced only if: –Any circuit element depends on that branch current –That branch current is requested as output

MNA – CCCS and CCVS “Stamp”

MNA – An example Step 1: Write KCL G2v3G2v3 R4R4 I s5 R1R1 E S6 -+ R8R8 3 E7v3E7v v 3 - R3R3 (1) (2) (3) (4)

MNA – An example Step 2: Use branch equations to eliminate as many branch currents as possible Step 3: Write down unused branch equations (1) (2) (3) (4) (b6) (b7)

MNA – An example Step 4: Use KVL to eliminate branch voltages from previous equations (1) (2) (3) (4) (b6) (b7)

MNA – An example

Modified Nodal Analysis (MNA) Advantages MNA can be applied to any circuit Eqns can be assembled directly from input data MNA matrix is close to Y n Limitations Sometimes we have zeros on the main diagonal