Electronic circuit simulation explained

Electronic circuit simulation uses mathematical models to replicate the behavior of an actual electronic device or circuit. Simulation software allows for the modeling of circuit operation and is an invaluable analysis tool. Due to its highly accurate modeling capability, many colleges and universities use this type of software for the teaching of electronics technician and electronics engineering programs. Electronics simulation software engages its users by integrating them into the learning experience. These kinds of interactions actively engage learners to analyze, synthesize, organize, and evaluate content and result in learners constructing their own knowledge.[1]

Simulating a circuit’s behavior before actually building it can greatly improve design efficiency by making faulty designs known as such, and providing insight into the behavior of electronic circuit designs. In particular, for integrated circuits, the tooling (photomasks) is expensive, breadboards are impractical, and probing the behavior of internal signals is extremely difficult. Therefore, almost all IC design rely heavily on simulation. The most well known analog simulator is SPICE. Probably the best known digital simulators are those based on Verilog and VHDL.

Some electronics simulators integrate a schematic editor, a simulation engine, and an on-screen waveform display (see Figure 1), allowing designers to rapidly modify a simulated circuit and see what effect the changes have on the output. They also typically contain extensive model and device libraries. These models typically include IC specific transistor models such as BSIM, generic components such as resistors, capacitors, inductors and transformers, user defined models (such as controlled current and voltage sources, or models in Verilog-A or VHDL-AMS). Printed circuit board (PCB) design requires specific models as well, such as transmission lines for the traces and IBIS models for driving and receiving electronics.

Types

While there are strictly analog[2] electronics circuit simulators, popular simulators often include both analog and event-driven digital simulation[3] capabilities, and are known as mixed-mode or mixed-signal simulators if they can simulate both simultaneously.[4] An entire mixed signal analysis can be driven from one integrated schematic. All the digital models in mixed-mode simulators provide accurate specification of propagation time and rise/fall time delays.

The event driven algorithm provided by mixed-mode simulators is general-purpose and supports non-digital types of data. For example, elements can use real or integer values to simulate DSP functions or sampled data filters. Because the event driven algorithm is faster than the standard SPICE matrix solution, simulation time is greatly reduced for circuits that use event driven models in place of analog models.[5]

Mixed-mode simulation is handled on three levels; (a) with primitive digital elements that use timing models and the built-in 12 or 16 state digital logic simulator, (b) with subcircuit models that use the actual transistor topology of the integrated circuit, and finally, (c) with In-line Boolean logic expressions.

Exact representations are used mainly in the analysis of transmission line and signal integrity problems where a close inspection of an IC’s I/O characteristics is needed. Boolean logic expressions are delay-less functions that are used to provide efficient logic signal processing in an analog environment. These two modeling techniques use SPICE to solve a problem while the third method, digital primitives, uses mixed mode capability. Each of these methods has its merits and target applications. In fact, many simulations (particularly those which use A/D technology) call for the combination of all three approaches. No one approach alone is sufficient.

Another type of simulation used mainly for power electronics represent piecewise linear[6] algorithms. These algorithms use an analog (linear) simulation until a power electronic switch changes its state. At this time a new analog model is calculated to be used for the next simulation period. This methodology both enhances simulation speed and stability significantly.[7]

Complexities

Process variations occur when the design is fabricated and circuit simulators often do not take these variations into account. These variations can be small, but taken together, they can change the output of a chip significantly.

Temperature variation can also be modeled to simulate the circuit's performance through temperature ranges.[8]

Simulation from admittance matrix

A common method of simulating linear circuits systems is with admittance matrices, or Y matrices. The technique involves modeling the individual linear components as an N port admittance matrix, inserting the component Y matrix into a circuits nodal admittance matrix, installing port terminations at nodes that contain ports, eliminating ports without nodes though Kron reduction, converting the final Y matrix to an S or Z matrix as needed, and extracting desired measurements from the Y, Z, and/or S matrix.

Simple Chebyshev filter example

A fifth order, 50 ohm, Chebyshev filter with 1dB of pass band ripple and cutoff frequency of 1GHz designed using the Chebyshev Cauar topology and subsequent impedance and frequency scaling produces the elements shown in the table and Micro-cap schematic below.

Table of Chebyshev elements to simulate!element!g-value!Type!scaled for50 ohms and 1GHz!nodes
P11port501
L12.1348815inductor1.6988847E-081, 2
C11.0911073capacitor3.4731024E-122, 0
L23.0009229inductor2.3880586E-082, 3
C21.0911073capacitor3.4731024E-123, 0
L32.1348815inductor1.6988847E-083, 4
P21port504

Modeling the 2 port Y parameters

The table above provides a list of ideal elements to model along with a node attachments to simulate. Next, each non-port element must be converted into a 2X2 Y parameter model for each frequency to be simulated. For this example, a frequency of 1GHz is selected.

Elements connected to node 0, the ground node, do not need their respective Y12 or Y21 calculated, and are shown as "n/a" in the table.

Table of Chebyshev element Y parameters at 1GHz to simulate!element!admittance at 1GHz!Y11, Y22 at 1GHz!Y12, Y21 at 1GHz!nodes
P1n/an/an/a1
L1-J0.0093682013-J0.0093682013J0.00936820131, 2
C1j0.021822146j0.021822146n/a2, 0
L2-J0.0066646164-J0.0066646164J0.00666461642, 3
C2j0.021822146j0.021822146n/a3, 0
L3-J0.0093682013-J0.0093682013J0.00936820133, 4
P2n/an/an/a4

Inserting the 2 port Y parameters into the nodal admittance matrix

It should be remembered that while Ideal inductor and capacitor modals consist of very simple 2x2 models where Y11 = Y22 = -Y12 = -Y21, most real world elements cannot be modeled so simply. With transmission lines and real world inductor and capacitor models, for example, Y11 != -Y12, and for some more complex passive asymmetric elements Y11 != Y22. For many active linear devices, such as operational amplifiers, Y12 != Y21. Therefore, the example in this section uses independent Y11, Y12, Y21, and Y22 to illustrate the simulation processes that applies to more complex real world devices.

Each element Y parameter is inserted into the nodal admittance matrix by summing in them into the nodes they are attached to following the rules below.[9]

If the second node is not 0, that is, not a ground:

The table below shows the Chebyshev element 2x2 Y parameters summed in at the appropriate locations.

Table of Y parameter entries!node!1!2!3!4
1L1_Y11L1_Y12
2L1_Y21L1_Y22+C1_Y11+L2_Y11L2_Y12
3L2_Y21L2_Y22+C2_Y11+L3_Y11L3_Y12
5L3_Y21L3_Y22

Nodal admittance matrix numerical entries

To simulate the filter at 1GHz, or any frequency, the element Y parameters must be converted to numerical entries using Y parameter models appropriate for the element installed. For ideal inductors and capacitors, the well known Y11 = Y22 = -Y12 = -Y21 =

j2\pifL

for inductors and Y11 = Y22 = -Y12 = -Y21 =

-j/(2\pifC)

for capacitors are sufficient. The numerical conversion are shown in the table below.

Notes and References

  1. Web site: Disadvantages and Advantages of Simulations in Online Education . 2011-03-11 . https://web.archive.org/web/20101216152042/http://e-articles.info/e/a/title/Disadvantages-and-Advantages-of-Simulations-in-Online-Education/ . 2010-12-16 . dead .
  2. http://www-syscom.univ-mlv.fr/~vignat/Signal/oslo.pdf Mengue and Vignat, Entry in the University of Marne, at Vallee
  3. Web site: Fishwick. P. Entry in the University of Florida. live. https://web.archive.org/web/20000519222657/http://www0.cise.ufl.edu:80/~fishwick/introsim/paper.html . 2000-05-19 .
  4. Web site: Pedro. J. Carvalho. N. Entry in the Universidade de Aveiro, Portugal. dead. 2007-04-27. 2012-02-07. https://web.archive.org/web/20120207035256/http://dragao.co.it.pt/conftele2001/proc/pap006.pdf.
  5. http://wbsci.org/Interactivity/93956/Sangu-Event-Driven-Interactive-Configurations.html L. Walken and M. Bruckner, Event-Driven Multimodal Technology
  6. A new algorithm for simulation of power electronic systems using piecewise-linear device models. P.. Pejovic. D.. Maksimovic. May 13, 1995. IEEE Transactions on Power Electronics. 10. 3. 340–348. IEEE Xplore. 10.1109/63.388000. 1995ITPE...10..340P .
  7. Book: https://ieeexplore.ieee.org/document/794588. PLECS-piece-wise linear electrical circuit simulation for Simulink. J.H.. Allmeling. W.P.. Hammer. Proceedings of the IEEE 1999 International Conference on Power Electronics and Drive Systems. PEDS'99 (Cat. No.99TH8475) . July 13, 1999. 1. 355–360 vol.1. IEEE Xplore. 10.1109/PEDS.1999.794588. 0-7803-5769-8 . 111196369 .
  8. Book: Ohnari . Mikihiko . Simulation engineering . 1998 . Ohmsha . 9784274902178 . October 12, 2022.
  9. Book: Zelinger, G. . Basic Matrix Analysis and Synthesis . 1966 . Pergamon Press, Ltd. . 1966 . 9781483199061 . Oxford, London, Edinburgh, New York, Toronto, Paris, Braunschweig . 1966 . 45-58 . English.
  10. Book: Matthaei, George L. . Microwave Filters, Impudence-Matching Networks, and Coupling Structures . Young . Leo . Jones . E. M. T. . 1984 . Artech House, Inc. . 1984 . 0-89006-099-1 . 610 Washington Street, Dedham, Massachusetts, US . 1985 . 44 . English.