{{Short description|Models replicating electronic behavior}} '''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.<ref>{{Cite web |url=http://e-articles.info/e/a/title/Disadvantages-and-Advantages-of-Simulations-in-Online-Education/ |title=Disadvantages and Advantages of Simulations in Online Education |access-date=2011-03-11 |archive-url=https://web.archive.org/web/20101216152042/http://e-articles.info/e/a/title/Disadvantages-and-Advantages-of-Simulations-in-Online-Education/ |archive-date=2010-12-16 |url-status=dead }}</ref>

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 relies 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==

<!-- Deleted image removed: [[Image:CircuitLogix3.jpg|Figure 2. CircuitLogix mixed-mode simulator.|thumb|left]] --> While there are strictly analog<ref>[http://www-syscom.univ-mlv.fr/~vignat/Signal/oslo.pdf Mengue and Vignat, Entry in the University of Marne, at Vallee]</ref> electronics circuit simulators, popular simulators often include both analog and event-driven digital simulation<ref>{{Cite web|last=Fishwick|first=P|title=Entry in the University of Florida|url=https://www.cise.ufl.edu/~fishwick/introsim/paper.html|url-status=live|archive-url=https://web.archive.org/web/20000519222657/http://www0.cise.ufl.edu/~fishwick/introsim/paper.html|archive-date=2000-05-19|access-date=2021-07-23}}</ref> capabilities, and are known as mixed-mode or mixed-signal simulators if they can simulate both simultaneously.<ref>{{Cite web|last1=Pedro|first1=J|last2=Carvalho|first2=N|title=Entry in the Universidade de Aveiro, Portugal|url=http://dragao.co.it.pt/conftele2001/proc/pap006.pdf|url-status=dead|access-date=2007-04-27|archive-date=2012-02-07|archive-url=https://web.archive.org/web/20120207035256/http://dragao.co.it.pt/conftele2001/proc/pap006.pdf}}</ref> 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.<ref>[http://wbsci.org/Interactivity/93956/Sangu-Event-Driven-Interactive-Configurations.html L. Walken and M. Bruckner, Event-Driven Multimodal Technology] {{webarchive|url=https://web.archive.org/web/20070505185952/http://wbsci.org/Interactivity/93956/Sangu-Event-Driven-Interactive-Configurations.html |date=2007-05-05 }}</ref>

Mixed-mode simulation is handled on three levels: with primitive digital elements that use timing models and the built-in 12 or 16 state digital logic simulator, with subcircuit models that use the actual transistor topology of the integrated circuit, and finally, with inline 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<ref>{{Cite journal|title=A new algorithm for simulation of power electronic systems using piecewise-linear device models|first1=P.|last1=Pejovic|first2=D.|last2=Maksimovic|date=May 13, 1995|journal=IEEE Transactions on Power Electronics|volume=10|issue=3|pages=340–348|doi=10.1109/63.388000|bibcode=1995ITPE...10..340P }}</ref> 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.<ref>{{Cite book|chapter=PLECS-piece-wise linear electrical circuit simulation for Simulink|first1=J.H.|last1=Allmeling|first2=W.P.|last2=Hammer|title=Proceedings of the IEEE 1999 International Conference on Power Electronics and Drive Systems. PEDS'99 (Cat. No.99TH8475) |date=July 13, 1999|volume=1|pages=355–360 vol.1|via=IEEE Xplore|doi=10.1109/PEDS.1999.794588|isbn=0-7803-5769-8 |s2cid=111196369 }}</ref>

Another approach that dramatically shortens the simulation time of switch-mode converters is based on average behavioral circuits that apply the switched inductor model.<ref>Shmuel (Sam) Ben-Yaakov 1994. [https://u.dianyuan.com/bbs/u/34/1128584920.pdf Average simulation of PWM converters by direct implementation of behavioural relationships]. International Journal of Electronics 77(5), pp. 731–746.</ref> In this approach, the simulation is carried out on the average signals, voltages, and currents, and hence runs much faster. Another advantage of this approach is that it can carry both time domain and frequency domain simulations. The latter can be used to extract the transfer functions in open and closed loop.<ref>S. Ben-Yaakov and I. Zeltser, 1999. [https://ieeexplore.ieee.org/document/767069 The dynamics of a PWM boost converter with resistive input]. IEEE Trans. Industrial Electronics 46(3), 613–619. DOI:[https://ieeexplore.ieee.org/document/767069 10.1109/41.767069].</ref>

==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.<ref>{{cite book |last1=Ohnari |first1=Mikihiko |title=Simulation engineering |date=1998 |publisher=Ohmsha |isbn=9784274902178 |url=https://books.google.com/books?id=azmLQG_SOAUC&dq=%22Electronic+circuit+simulation%22+temperature+variation&pg=PA177 |access-date=October 12, 2022}}</ref>

== 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.

==See also== {{Div col|colwidth=20em}}

Concepts: * Lumped element model * System isomorphism

HDL: * SystemVerilog

Lists: * List of electrical engineering software * List of free electronics circuit simulators * Comparison of EDA software

Software: * Altium * Circuit design language * Gnucap * LTspice * Micro-Cap * Multisim * ngspice * NL5 Circuit Simulator * PLECS * PowerEsim * PSIM * Qucs * Saber * SapWin * TARGET 3001! * TINA * Zuken

{{div col end}}

==References== <references />

==External links== * [https://www.academia.edu/36398517/WCCA_Worst_Case_Circuit_Analysis WCCA Simple Comparing of different Methods] * [http://www.dmoz.org/search?q=electronic+circuit+simulation Electronic circuit simulation] at the Open Directory Project

Category:Electronic design automation Category:Simulation programming languages