Circuit Simulator
   HOME

TheInfoList



OR:

Electronic circuit simulation uses
mathematical model A mathematical model is an abstract and concrete, abstract description of a concrete system using mathematics, mathematical concepts and language of mathematics, language. The process of developing a mathematical model is termed ''mathematical m ...
s 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 A college (Latin: ''collegium'') may be a tertiary education, tertiary educational institution (sometimes awarding academic degree, degrees), part of a collegiate university, an institution offering vocational education, a further educatio ...
and universities use this type of software for the teaching of electronics technician and
electronics engineering Electronic engineering is a sub-discipline of electrical engineering that emerged in the early 20th century and is distinguished by the additional use of active components such as semiconductor devices to amplify and control electric current flow ...
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. 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 An integrated circuit (IC), also known as a microchip or simply chip, is a set of electronic circuits, consisting of various electronic components (such as transistors, resistors, and capacitors) and their interconnections. These components a ...
, the tooling (
photomask A photomask (also simply called a mask) is an opaque plate with transparent areas that allow light to shine through in a defined pattern. Photomasks are commonly used in photolithography for the production of integrated circuits (ICs or "chips") ...
s) is expensive,
breadboard A breadboard, solderless breadboard, or protoboard is a construction base used to build semi-permanent prototypes of electronic circuits. Unlike a perfboard or stripboard, breadboards do not require soldering or destruction of tracks and are h ...
s 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 In the culinary arts, a spice is any seed, fruit, root, Bark (botany), bark, or other plant substance in a form primarily used for flavoring or coloring food. Spices are distinguished from herbs, which are the leaves, flowers, or stems of pl ...
. Probably the best known digital simulators are those based on
Verilog Verilog, standardized as IEEE 1364, is a hardware description language (HDL) used to model electronic systems. It is most commonly used in the design and verification of digital circuits, with the highest level of abstraction being at the re ...
and
VHDL VHDL (Very High Speed Integrated Circuit Program, VHSIC Hardware Description Language) is a hardware description language that can model the behavior and structure of Digital electronics, digital systems at multiple levels of abstraction, ran ...
. Some electronics simulators integrate a
schematic editor A schematic, or schematic diagram, is a designed representation of the elements of a system using abstract, graphic symbols rather than realistic pictures. A schematic usually omits all details that are not relevant to the key information the sc ...
, a simulation engine, and an on-screen
waveform In electronics, acoustics, and related fields, the waveform of a signal is the shape of its Graph of a function, graph as a function of time, independent of its time and Magnitude (mathematics), magnitude Scale (ratio), scales and of any dis ...
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 Transistors are simple devices with complicated behavior. In order to ensure the reliable operation of circuits employing transistors, it is necessary to scientifically model the physical phenomena observed in their operation using transistor mod ...
such as BSIM, generic components such as
resistor A resistor is a passive two-terminal electronic component that implements electrical resistance as a circuit element. In electronic circuits, resistors are used to reduce current flow, adjust signal levels, to divide voltages, bias active e ...
s,
capacitor In electrical engineering, a capacitor is a device that stores electrical energy by accumulating electric charges on two closely spaced surfaces that are insulated from each other. The capacitor was originally known as the condenser, a term st ...
s,
inductor An inductor, also called a coil, choke, or reactor, is a Passivity (engineering), passive two-terminal electronic component, electrical component that stores energy in a magnetic field when an electric current flows through it. An inductor typic ...
s and
transformer In electrical engineering, a transformer is a passive component that transfers electrical energy from one electrical circuit to another circuit, or multiple Electrical network, circuits. A varying current in any coil of the transformer produces ...
s, user defined models (such as controlled current and voltage sources, or models in
Verilog-A Verilog-A is an industry standard modeling language for analog circuits. It is the continuous-time subset of Verilog-AMS. A few commercial applications may export MEMS designs in Verilog-A format. History Verilog-A was created to standardize the ...
or
VHDL-AMS VHDL-AMS is a derivative of the hardware description language VHDL (IEEE 1076-2002). It includes analog and mixed-signal extensions (AMS) in order to define the behavior of analog and mixed-signal systems (IEEE 1076.1-2017). The VHDL-AMS standard ...
).
Printed circuit board A printed circuit board (PCB), also called printed wiring board (PWB), is a Lamination, laminated sandwich structure of electrical conduction, conductive and Insulator (electricity), insulating layers, each with a pattern of traces, planes ...
(PCB) design requires specific models as well, such as
transmission line In electrical engineering, a transmission line is a specialized cable or other structure designed to conduct electromagnetic waves in a contained manner. The term applies when the conductors are long enough that the wave nature of the transmis ...
s for the traces and
IBIS The ibis () (collective plural ibises; classical plurals ibides and ibes) are a group of long-legged wading birds in the family Threskiornithidae that inhabit wetlands, forests and plains. "Ibis" derives from the Latin and Ancient Greek word f ...
models for driving and receiving electronics.


Types

While there are strictly
analog Analog or analogue may refer to: Computing and electronics * Analog signal, in which information is encoded in a continuous variable ** Analog device, an apparatus that operates on analog signals *** Analog electronics, circuits which use analog ...
electronics circuit simulators, popular simulators often include both analog and event-driven digital simulation capabilities, and are known as mixed-mode or
mixed-signal A mixed-signal integrated circuit is any integrated circuit that has both analog circuits and digital circuits on a single semiconductor die.signal analysis Signal processing is an electrical engineering subfield that focuses on analyzing, modifying and synthesizing ''signals'', such as sound, images, potential fields, seismic signals, altimetry processing, and scientific measurements. Signa ...
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 In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
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. 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 An integrated circuit (IC), also known as a microchip or simply chip, is a set of electronic circuits, consisting of various electronic components (such as transistors, resistors, and capacitors) and their interconnections. These components a ...
, and finally, with inline
Boolean logic In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
expressions. Exact representations are used mainly in the analysis of
transmission line In electrical engineering, a transmission line is a specialized cable or other structure designed to conduct electromagnetic waves in a contained manner. The term applies when the conductors are long enough that the wave nature of the transmis ...
and
signal integrity Signal integrity or SI is a set of measures of the quality of an electrical signal. In digital electronics, a stream of binary values is represented by a voltage (or current) waveform. However, digital signals are fundamentally analog signal, anal ...
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 Power electronics is the application of electronics to the control and conversion of electric power. The first high-power electronic devices were made using mercury-arc valves. In modern systems, the conversion is performed with semiconduct ...
represent piecewise linear 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.


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.


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 In power engineering, nodal admittance matrix (or just admittance matrix) is an ''N x N'' matrix describing a linear power system with ''N'' buses. It represents the nodal admittance of the buses in a power system. In realistic systems which co ...
, installing port terminations at nodes that contain ports, eliminating ports without nodes though
Kron reduction In power engineering, Kron reduction is a method used to reduce or eliminate the desired node without need of repeating the steps like in Gaussian elimination. It is named after American electrical engineer Gabriel Kron. Description Kron reducti ...
, 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.


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.


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 line In electrical engineering, a transmission line is a specialized cable or other structure designed to conduct electromagnetic waves in a contained manner. The term applies when the conductors are long enough that the wave nature of the transmis ...
s 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 amplifier An operational amplifier (often op amp or opamp) is a direct coupling, DC-coupled Electronic component, electronic voltage amplifier with a differential input, a (usually) Single-ended signaling, single-ended output, and an extremely high gain ( ...
s, 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. * Y11 is summed into the n x n node in the diagonal, where n is the node that the first pin, pin 1, is attached to. If the second node is not 0, that is, not a ground: * Y22 is summed into the m x m node in the diagonal, where m is the node that the second pin, pin 2, is attached to. * Y12 is summed into the n x m node location * Y21 is summed into the m x n node location The table below shows the Chebyshev element 2x2 Y parameters summed in at the appropriate locations.


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\pi fL for inductors and Y11 = Y22 = -Y12 = -Y21 =-j/(2\pi fC) for capacitors are sufficient. The numerical conversion are shown in the table below.


Removing internal nodes

Since ports are only attached to node 1 and node 4, nodes 2 and 3 need to be removed through
Kron reduction In power engineering, Kron reduction is a method used to reduce or eliminate the desired node without need of repeating the steps like in Gaussian elimination. It is named after American electrical engineer Gabriel Kron. Description Kron reducti ...
. The table below shows the reduced Y parameter matrix of the Chebyshev filter example simulation after nodes 2 and 4 are eliminated. The nodes of the reduced table are renumbered to 1 and 2.


Converting to an S parameter matrix

Since the Chebyshev frequency response is observed from the S parameter matrix, namely , S12, , the next step is to convert the Y parameter matrix to an S parameter matrix, using well known Y matrix to S matrix conversions with the port impedance as the characteristic impedance (or characteristic admittance) for each node. Simulated S parameters also allow for useful post simulation processing for things such as
group delay and phase delay In signal processing, group delay and phase delay are functions that describe in different ways the delay times experienced by a signal’s various sinusoidal frequency components as they pass through a linear time-invariant (LTI) system (such as ...
.


S parameter magnitudes

Since the Chebyshev frequency response is expected to be observable in , S12, as a 1dB equi-ripple response from 0 to 1GHz, the complex S parameter entries need to be converted to their respective magnitudes, using the standard , S_, = \sqrt.


Check the results

It may be useful to do some quick validity checks at this point. Since the example Chebyshev filter design requirement is for -1dB attenuation at the cutoff frequency of 1GHz, , S12, at 1 GHz is expected to be -1dB. Furthermore, since all simulation elements are lossless, the well known relation, , S11, 2+, S12, 2 = 1 applies at all frequencies, including 1GHz.


Full frequency simulation

The final validity test for the example is to simulate the Chebyshev filter frequency response through the full useful range, which will be taken to be 100 MHz to 5 GHz for this case. This range should permit viewing of the equi-ripple , S12, of the pass band between 0 and -1 dB, somewhat steep stop band , S12, falling off at 1GHz, and an equi-ripple , S12, at the expected peak values of 20log10(.4535...) = -6.86825 dB. Since all simulation outputs conform to the expected results, the Chebyshev filter example simulation is confirmed to be correct.


Simulating unterminated nodes

Since S parameters require terminations on all nodes being simulated, simulating the S parameter value for unterminated nodes, such as the internal nodes of a network, are technically unsupported. However, placing a resistive termination on unterminated nodes that is large enough to not introduce any error of significance to make the nodes terminated is sufficient to accurately simulate the node. For example, the two internal nodes that were eliminated above could alternatively have had a 1e+09 ohm port attached to them, so instead of using Kron reduction to eliminate the nodes, the nodes could be accurately simulated with excessively large resistive ports.


Simulating zero resistance sources

If the input source to the network is an ideal voltage source with no resistance, the example above may be made to work by including a port resistance small enough to not introduce any error of significance. For example, a port with a resistance of 1e-09 in a network that is terminated elsewhere by 50 ohms would model an ideal source with sufficient accuracy.


Simulating the transfer function

Since the example above simulates S parameters, another conversion is necessary to obtain the
transfer function In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a function (mathematics), mathematical function that mathematical model, models the system's output for each possible ...
from S parameters. The conversion is, \frac = \frac\sqrt, \text i\neq j.


See also

Concepts: *
Lumped element model The lumped-element model (also called lumped-parameter model, or lumped-component model) is a simplified representation of a physical system or circuit that assumes all components are concentrated at a single point and their behavior can be de ...
* System isomorphism HDL: *
SystemVerilog SystemVerilog, standardized as IEEE 1800 by the Institute of Electrical and Electronics Engineers (IEEE), is a hardware description and hardware verification language commonly used to model, design, simulate, test and implement electronic sy ...
Lists: *
List of electrical engineering software This page is a comparison of electronic design automation (EDA) software which is used today to design the near totality of electronic devices. Modern electronic devices are too complex to be designed without the help of a computer. Electronic dev ...
*
List of free electronics circuit simulators List of free analog and digital electronic circuit simulators, available for Windows, macOS, Linux, and comparing against UC Berkeley SPICE. The following table is split into two groups based on whether it has a graphical visual interface or not. ...
*
Comparison of EDA software This page is a comparison of electronic design automation (EDA) software which is used today to design the near totality of electronic devices. Modern electronic devices are too complex to be designed without the help of a computer. Electronic dev ...
Software: *
Altium Altium Limited is an American multinational software company that provides electronic design automation software to engineers who design printed circuit boards. Founded as Protel Systems Pty Ltd in Australia in 1985, the company has regional he ...
* Circuit design language *
Gnucap GNU Circuit Analysis Package (Gnucap) is a general purpose circuit simulator started by Albert Davis in 1993. It is part of the GNU Project. The latest stable version is 0.35 from 2006. The latest development snapshot (as of July 2023) is from Ju ...
*
LTspice LTspice is a SPICE-based analog electronic circuit simulator computer software, produced by semiconductor manufacturer Analog Devices (originally by Linear Technology). It is the most widely distributed and used SPICE software in the industry. T ...
*
Micro-Cap Micro-Cap is a SPICE compatible analog/digital circuit simulator with an integrated schematic editor that provides an interactive sketch and simulate environment for electronics engineers. It was developed by Spectrum Software, and was only avai ...
* Multisim *
ngspice ''Ngspice'' is an open-source mixed-level/ mixed-signal electronic circuit simulator. It is a successor of the latest stable release of Berkeley SPICE, version 3f.5, which was released in 1993. A small group of maintainers and the user community ...
* NL5 Circuit Simulator *
PLECS PLECS ( Piecewise Linear Electrical Circuit Simulation) is a software tool for system-level simulations of electrical circuits developed by Plexim. It is especially designed for power electronics but can be used for any electrical network. PLEC ...
* PowerEsim * PSIM *
Qucs Quite Universal Circuit Simulator (Qucs) is a free-software electronics circuit simulator software application released under GPL. It offers the ability to set up a circuit with a graphical user interface and simulate the large-signal, small-sig ...
*
Saber A sabre or saber ( ) is a type of backsword with a curved blade associated with the light cavalry of the Early Modern warfare, early modern and Napoleonic period, Napoleonic periods. Originally associated with Central European cavalry such a ...
* SapWin *
TARGET 3001! TARGET 3001! is a CAD computer program for EDA and PCB (printing circuit board) design, developed by Ing.-Büro (en: engineering office) Friedrich in Germany. This software application has been available since (for 32 years) and operates on M ...
*
TINA Tina may refer to: People *Tina (given name), people and fictional characters with the given name ''Tina'' Places * Tina, Iran, a village in Khuzestan Province, Iran * Tina, Tunisia, a town in Sfax Governorate, Tunisia * Tina, Guadalcanal, Solom ...
*
Yenka Yenka is a suite of educational software products which allows students to simulate scientific experiments, create mathematical models, design electronic circuits or learn computer programming. Yenka is developed by Crocodile Clips Ltd. The soft ...
*
Zuken is a Japanese multinational corporation, specializing in software and consulting services for end-to-end electrical and electronic engineering. Zuken came into existence as a pioneer in the development of computer-aided design (CAD) systems in J ...
{{div col end


References


External links


WCCA Simple Comparing of different Methods

Electronic circuit simulation
at the
Open Directory Project DMOZ or DMoz (stylized dmoz in its logo; from ''directory.mozilla.org'', an earlier domain name) was a multilingual open-content directory of World Wide Web links. The site and community who maintained it were also known as the Open Directory P ...
Electronic design automation Simulation programming languages