All Topics  
Digital circuit

 
Digital Circuit

   Email Print
   Bookmark   Link






 

Digital circuit



 
 
Digital electronics are electronics
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
 systems that use digital signal
Digital signal

The term digital signal is used to refer to more than one concept. It can refer to discrete-time signals that have a discrete number of levels, for example a Sampling_ and quantification analog signal, or to the continuous-time waveform signals in a digital system, representing a bit-stream....
s. Digital electronics are representations of Boolean algebra (also see truth tables) and are used in computer
Computer

A computer is a machine that manipulates Data according to a list of Code .The first devices that resemble modern computers date to the mid-20th century , although the computer concept and various machines similar to computers existed earlier....
s, mobile phone
Mobile phone

A mobile phone is a long-range, electronic device used for mobile voice or data communication over a network of specialized base stations known as cell sites....
s, and other consumer product
Consumer product

A consumer product is generally any tangible personal property for sale and that is used for personal, family, or household purposes. The determination whether a good is a consumer product requires a factual finding, on a case-by-case basis....
s. In a digital circuit, a signal is represented in one of two states or logic level
Logic level

In digital circuits, a logic level is one of a finite number of states that a digital signal can have. Logic levels are usually represented by the voltage difference between the signal and Ground , although other standards exist....
s. The advantages of digital techniques stem from the fact it is easier to get an electronic device to switch into one of two states, than to accurately reproduce a continuous range of values.

Digital electronics or any digital circuit are usually made from large assemblies of logic gate
Logic gate

A logic gate performs a logical operation on one or more logic inputs and produces a single logic output. The logic normally performed is Boolean logic and is most commonly found in digital circuits....
s, simple electronic representations of Boolean logic functions.

To most electronic engineers, the terms "digital circuit", "digital system" and "logic
Logic

Logic is the study of the principles of valid demonstration and inference. Logic is a branch of philosophy, a part of the classical Trivium . The word derives from Greek language ?????? , fem....
" are interchangeable in the context of digital circuits.

advantage of digital circuits when compared to analog circuits is that signals represented digitally can be transmitted without degrading because of noise
Noise

In common use, the word noise means unwanted sound or noise pollution. In electronics noise can refer to the electronic signal corresponding to acoustic noise or the electronic signal corresponding to the noise commonly seen as 'Noise ' on a degraded television or video image....
.






Discussion
Ask a question about 'Digital circuit'
Start a new discussion about 'Digital circuit'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Digital electronics are electronics
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
 systems that use digital signal
Digital signal

The term digital signal is used to refer to more than one concept. It can refer to discrete-time signals that have a discrete number of levels, for example a Sampling_ and quantification analog signal, or to the continuous-time waveform signals in a digital system, representing a bit-stream....
s. Digital electronics are representations of Boolean algebra (also see truth tables) and are used in computer
Computer

A computer is a machine that manipulates Data according to a list of Code .The first devices that resemble modern computers date to the mid-20th century , although the computer concept and various machines similar to computers existed earlier....
s, mobile phone
Mobile phone

A mobile phone is a long-range, electronic device used for mobile voice or data communication over a network of specialized base stations known as cell sites....
s, and other consumer product
Consumer product

A consumer product is generally any tangible personal property for sale and that is used for personal, family, or household purposes. The determination whether a good is a consumer product requires a factual finding, on a case-by-case basis....
s. In a digital circuit, a signal is represented in one of two states or logic level
Logic level

In digital circuits, a logic level is one of a finite number of states that a digital signal can have. Logic levels are usually represented by the voltage difference between the signal and Ground , although other standards exist....
s. The advantages of digital techniques stem from the fact it is easier to get an electronic device to switch into one of two states, than to accurately reproduce a continuous range of values.

Digital electronics or any digital circuit are usually made from large assemblies of logic gate
Logic gate

A logic gate performs a logical operation on one or more logic inputs and produces a single logic output. The logic normally performed is Boolean logic and is most commonly found in digital circuits....
s, simple electronic representations of Boolean logic functions.

To most electronic engineers, the terms "digital circuit", "digital system" and "logic
Logic

Logic is the study of the principles of valid demonstration and inference. Logic is a branch of philosophy, a part of the classical Trivium . The word derives from Greek language ?????? , fem....
" are interchangeable in the context of digital circuits.

Advantages

One advantage of digital circuits when compared to analog circuits is that signals represented digitally can be transmitted without degrading because of noise
Noise

In common use, the word noise means unwanted sound or noise pollution. In electronics noise can refer to the electronic signal corresponding to acoustic noise or the electronic signal corresponding to the noise commonly seen as 'Noise ' on a degraded television or video image....
. For example, a continuous audio signal, transmitted as a sequence of 1s and 0s, can be reconstructed without error provided the noise picked up in transmission is not enough to prevent identification of the 1s and 0s. An hour of music can be stored on a compact disc
Compact Disc

A Compact Disc is an optical disc used to store Data , originally developed for storing digital audio. The CD, available on the market since October 1982, remains the standard physical medium for sale of commercial Sound recording and reproduction to the present day....
 as about 6 billion binary digits.

In a digital system, a more precise representation of a signal can be obtained by using more binary digits to represent it. While this requires more digital circuits to process the signals, each digit is handled by the same kind of hardware. In an analog system, additional resolution requires fundamental improvements in the linearity and noise charactersitics of each step of the signal chain.

Computer-controlled digital systems can be controlled by software, allowing new functions to be added without changing hardware. Often this can be done outside of the factory by updating the product's software. So, the product's design errors can be corrected after the product is in a customer's hands.

Information storage can be easier in digital systems than in analog ones. The noise-immunity of digital systems permits data to be stored and retrieved without degradation. In an analog system, noise from aging and wear degrade the information stored. In a digital system, as long as the total noise is below a certain level, the information can be recovered perfectly.

Disadvantages


In some cases, digital circuits use more energy than analog circuits to accomplish the same tasks, thus producing more heat as well. In portable or battery-powered systems this can limit use of digital systems.

For example, battery-powered cellular telephones often use a low-power analog front-end to amplify
Amplifier

Generally, an amplifier or simply amp, is any machine that changes, usually increases, the amplitude of a Signal . The "signal" is usually voltage or current....
 and tune
Tuner (electronics)

A tuner is a circuit module or free-standing equipment which detects radio-frequency Signal usually of low amplitude and amplifier them and converts them to a form suitable for further processing....
 in the radio
Radio

Radio is the transmission of signals, by modulation of electromagnetic radiation with frequency below those of visible light.Electromagnetic radiation radio propagation by means of oscillating electromagnetic fields that pass through the air and the vacuum of space....
 signals from the base station. However, a base station has grid power and can use power-hungry, but very flexible software radios. Such base stations can be easily reprogrammed to process the signals used in new cellular standards.

Digital circuits are sometimes more expensive, especially in small quantities.

The sensed world is analog, and signals from this world are analog quantities. For example, light, temperature, sound, electrical conductivity, electric and magnetic fields are analog. Most useful digital systems must translate from continuous analog signals to discrete digital signals. This causes quantization
Quantization

Quantization is the procedure of constraining something from a continuous set of values to a discrete set . Quantization in specific domains is discussed in:...
 errors.

Quantization error can be reduced if the system stores enough digital data to represent the signal to the desired degree of fidelity
Fidelity

Fidelity is a notion that at its most abstract level implies a truthful connection to a source or sources. Its original meaning dealt with loyalty and attentiveness to one's duty to a lord or a monarch, in a broader sense than the related concept of fealty....
. The Nyquist-Shannon sampling theorem provides an important guideline as to how much digital data is needed to accurately portray a given analog signal.

In some systems, if a single piece of digital data is lost or misinterpreted, the meaning of large blocks of related data can completely change. Because of the cliff effect
Cliff effect

In telecommunications, the cliff effect or digital cliff describes the sudden loss of digital Wiktionary:signal reception. Unlike analog signals, which gradually fade when signal strength decreases or electromagnetic interference or multipath increases, a digital signal provides data which is either perfect or non-existent at the recei...
, it can be difficult for users to tell if a particular system is right on the edge of failure, or if it can tolerate much more noise before failing.

Digital fragility can be reduced by designing a digital system for robustness. For example, a parity bit
Parity bit

A parity bit is a bit that is added to ensure that the number of bits with value of 1 in a given set of bits is always even number or odd number....
 or other error management method can be inserted into the signal path. These schemes help the system detect errors, and then either correct the errors
Error detection and correction

In mathematics, computer science, telecommunication, and information theory, error detection and correction has great practical importance in maintaining data integrity across noisy channels and less-than-reliable storage media....
, or at least ask for a new copy of the data. In a state-machine, the state transition logic can be designed to catch unused states and trigger a reset sequence or other error recovery routine.

Embedded software designs
Embedded system

An embedded system is a special-purpose computer system designed to perform one or a few dedicated functions, often with real-time computing constraints....
 that employ Immunity Aware Programming
Immunity Aware Programming

When writing firmware for an embedded system, immunity aware programming is a set of programming techniques used in an attempt to tolerate transient errors in the program counter or other that would otherwise lead to failure....
, such as the practice of filling unused program memory with interrupt instructions that point to an error recovery routine. This helps guard against failures that corrupt the microcontroller's instruction pointer which could otherwise cause random code to be executed.

Digital memory and transmission systems can use techniques such as error detection and correction
Error detection and correction

In mathematics, computer science, telecommunication, and information theory, error detection and correction has great practical importance in maintaining data integrity across noisy channels and less-than-reliable storage media....
 to use additional data to correct any errors in transmission and storage.

On the other hand, some techniques used in digital systems make those systems more vulnerable to single-bit errors. These techniques are acceptable when the underlying bits are reliable enough that such errors are highly unlikely.
  • A single-bit error in audio data stored directly as linear pulse code modulation (such as on a CD-ROM
    CD-ROM

    CD-ROM is a pre-pressed Compact Disc that contains Computer data storage accessible to, but not writable by, a computer. While the Compact Disc format was originally designed for music storage and playback, the 1985 Yellow Book standard developed by Sony and Philips adapted the format to hold any form of Binary file....
     causes, at worst, a single click). Instead, many people use audio compression
    Audio compression (data)

    Audio compression is a form of data compression designed to reduce the size of audio files. Audio compression algorithms are implemented in computer software as audio codecs....
     to save storage space and download time, even though a single-bit error may corrupt the entire song.


Analog issues in digital circuits


Digital circuits are made from analog components. The design must assure that the analog nature of the components doesn't dominate the desired digital behavior. Digital systems must manage noise and timing margins, parasitic inductances and capacitances, and filter
Electronic filter

Electronic filters are electronic circuits which perform signal processing functions, specifically to remove unwanted frequency components from the signal and/or to enhance wanted ones....
 power connections.

Bad designs have intermittent problems such as "glitches", vanishingly-fast pulses that may trigger some logic but not others, "runt pulse
Runt pulse

In digital circuits, a runt pulse is a narrow Pulse that,due to non-zero rise time and fall time times of the signal, does not reach a validhigh or low level....
s" that do not reach valid "threshold" voltages, or unexpected ("undecoded") combinations of logic states.

Since digital circuits are made from analog components, digital circuits calculate more slowly than low-precision analog circuits that use a similar amount of space and power. However, the digital circuit will calculate more repeatably, because of its high noise immunity. On the other hand, in the high-precision domain (for example, where 14 or more bits of precision are needed), analog circuits require much more power and area than digital equivalents.

Construction

A digital circuit is often constructed from small electronic circuits called logic gate
Logic gate

A logic gate performs a logical operation on one or more logic inputs and produces a single logic output. The logic normally performed is Boolean logic and is most commonly found in digital circuits....
s. Each logic gate represents a function of boolean logic
Boolean logic

Boolean algebra is a logical calculus of logical values, developed by George Boole in the late 1830s. It resembles the algebra of real numbers as taught in high school, but with the numeric operations of multiplication xy, addition x + y, and negation −x replaced by the respective logical operations of conjun...
. A logic gate is an arrangement of electrically controlled switches.

The output of a logic gate is an electrical flow or voltage, that can, in turn, control more logic gates.

Logic gates often use the fewest number of transistors in order to reduce their size, power consumption and cost, and increase their reliability.

Integrated circuits
Integrated circuit

In electronics, an integrated circuit is a miniaturized electronic circuit that has been manufactured in the surface of a thin Wafer of semiconductor material....
 are the least expensive way to make logic gates in large volumes. Integrated circuits are usually designed by engineers using electronic design automation
Electronic design automation

Electronic Design Automation is the category of tools for designing and producing electronic systems ranging from printed circuit boards to integrated circuits....
 software (See below for more information).

Another form of digital circuit is constructed from lookup tables, (many sold as "programmable logic device
Programmable logic device

A programmable logic device or PLD is an electronics component used to build Reconfigurable Computing digital circuits. Unlike a logic gate, which has a fixed function, a PLD has an undefined function at the time of manufacture....
s", though other kinds of PLDs exist). Lookup tables can perform the same functions as machines based on logic gates, but can be easily reprogrammed without changing the wiring. This means that a designer can often repair design errors without changing the arrangement of wires. Therefore, in small volume products, programmable logic devices are often the preferred solution. They are usually designed by engineers using electronic design automation
Electronic design automation

Electronic Design Automation is the category of tools for designing and producing electronic systems ranging from printed circuit boards to integrated circuits....
 software (See below for more information).

When the volumes are medium to large, and the logic can be slow, or involves complex algorithms or sequences, often a small microcontroller
Microcontroller

A microcontroller is a small computer on a single integrated circuit consisting of a relatively simple CPU combined with support functions such as a crystal oscillator, timers, watchdog, serial and analog I/O etc....
 is programmed
Computer program

Computer programs are Instruction for a computer. A computer requires programs to function. Moreover, a computer program does not run unless its instructions are executed by a Central processing unit; however, a program may communicate an Algorithm#Formalization of algorithms to people without running....
 to make an embedded system
Embedded system

An embedded system is a special-purpose computer system designed to perform one or a few dedicated functions, often with real-time computing constraints....
. These are usually programmed by software engineers
Software engineering

Software engineering is the application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software, and the study of these approaches....
.

When only one digital circuit is needed, and its design is totally customized, as for a factory production line controller, the conventional solution is a programmable logic controller
Programmable logic controller

A programmable logic controller or programmable controller is a digital computer used for automation of electromechanical processes, such as control of machinery on factory assembly lines, control of amusement rides, or control of lighting fixtures....
, or PLC. These are usually programmed by electricians, using ladder logic
Ladder logic

Ladder logic is a philosophy of drawing electrical logic schematics. It is now a graphical language very popular for programming Programmable Logic Controllers ....
.

Structure of digital systems


Engineers use many methods to minimize logic functions, in order to reduce the circuit's complexity. When the complexity is less, the circuit also has fewer errors and less electronics, and is therefore less expensive.

The most widely used simplification is a minimization algorithm like the Espresso heuristic logic minimizer
Espresso heuristic logic minimizer

The Espresso logic minimizer is a widely used computer program using heuristic and specific algorithms for efficiently reducing the complexity of digital electronic gate circuits....
 within a CAD system, although historically, binary decision diagrams, an automated Quine–McCluskey algorithm
Quine–McCluskey algorithm

The Quine?McCluskey algorithm is a method used for minimization of boolean functions which was developed by Willard Van Orman Quine and Edward J....
, truth table
Truth table

A truth table is a mathematical table used in logic?specifically in connection with Boolean algebra , boolean functions, and propositional calculus?to compute the functional values of logical expression s on each of their functional arguments, that is, on each combination of values taken by their logical variables....
s, Karnaugh Map
Karnaugh map

The Karnaugh map, also known as a Veitch diagram , is a tool to facilitate the simplification of Boolean algebra integrated circuit expressions....
s, and Boolean algebra have been used.

Representations are crucial to an engineer's design of digital circuits. Some analysis methods only work with particular representations.

The classical way to represent a digital circuit is with an equivalent set of logic gates. Another way, often with the least electronics, is to construct an equivalent system of electronic switches (usually transistor
Transistor

In electronics, a transistor is a semiconductor device commonly used to Electronic amplifier or switch Electronics signals. A transistor is made of a solid piece of a semiconductor material, with at least three terminals for connection to an external circuit....
s). One of the easiest ways is to simply have a memory containing a truth table
Truth table

A truth table is a mathematical table used in logic?specifically in connection with Boolean algebra , boolean functions, and propositional calculus?to compute the functional values of logical expression s on each of their functional arguments, that is, on each combination of values taken by their logical variables....
. The inputs are fed into the address of the memory, and the data outputs of the memory become the outputs.

For automated analysis, these representations have digital file formats that can be processed by computer programs. Most digital engineers are very careful to select computer programs ("tools") with compatible file formats.

To choose representations, engineers consider types of digital systems. Most digital systems divide into "combinatorial systems" and "sequential systems." A combinatorial system always presents the same output when given the same inputs. It is basically a representation of a set of logic functions, as already discussed.

A sequential system is a combinatorial system with some of the outputs fed back as inputs. This makes the digital machine perform a "sequence" of operations. The simplest sequential system is probably a flip flop
Flip-flop (electronics)

In digital circuits, a flip-flop is a term referring to an electronic circuit that has two stable states and thereby is capable of serving as one bit of computer storage....
, a mechanism that represents a binary digit
Numeral

The term numeral can refer to:* Numeral system, a system of mathematical notation for writing numbers* Number names, the words used in a language or writing system to represent numbers...
 or "bit
Bit

A bit is a binary numeral system numerical digit, taking a value of either 0 or 1. Binary digits are a basic unit of information Computer data storage and transmission in digital computing and digital information theory....
".

Sequential systems are often designed as state machines. In this way, engineers can design a system's gross behavior, and even test it in a simulation, without considering all the details of the logic functions.

Sequential systems divide into two further subcategories. "Synchronous" sequential systems change state all at once, when a "clock" signal changes state. "Asynchronous" sequential systems propagate changes whenever inputs change. Synchronous sequential systems are made of well-characterized asynchronous circuits such as flip-flops, that change only when the clock changes, and which have carefully designed timing margins.

The usual way to implement a synchronous sequential state machine is divide it into a piece of combinatorial logic and a set of flip flops called a "state register." Each time a clock signal ticks, the state register captures the feedback generated from the previous state of the combinatorial logic, and feeds it back as an unchanging input to the combinatorial part of the state machine. The fastest rate of the clock is set by the most time-consuming logic calculation in the combinatorial logic.

The state register is just a representation of a binary number. If the states in the state machine are numbered (easy to arrange), the logic function is some combinatorial logic that produces the number of the next state.

In comparison, asynchronous systems are very hard to design because all possible states, in all possible timings must be considered. The usual method is to construct a table of the minimum and maximum time that each such state can exist, and then adjust the circuit to minimize the number of such states, and force the circuit to periodically wait for all of its parts to enter a compatible state. (This is called "self-resynchronization.") Without such careful design, it is easy to accidentally produce asynchronous logic that is "unstable", that is, real electronics will have unpredictable results because of the cumulative delays caused by small variations in the values of the electronic components. Certain circuits (such as the synchronizer flip-flops, switch debouncers, and the like which allow external unsynchronized signals to enter synchronous logic circuits) are inherently asynchronous in their design and must be analyzed as such.

As of 2005, almost all digital machines are synchronous designs because it is much easier to create and verify a synchronous design -- the software currently used to simulate digital machines does not yet handle asynchronous designs. However, asynchronous logic is thought to be superior, if it can be made to work, because its speed is not constrained by an arbitrary clock; instead, it simply runs at the maximum speed permitted by the propagation rates of the logic gates from which it is constructed. Building an asynchronous circuit using faster parts implicitly makes the circuit "go" faster.

More generally, many digital systems are data flow machines. These are usually designed using synchronous register transfer logic
Register transfer level

In integrated circuit design, Register Transfer Level description is a way of describing the operation of a synchronous circuit digital circuit....
, using hardware description languages such as VHDL or Verilog
Verilog

In the semiconductor and electronic design industry, Verilog is a hardware description language used to model Electronics#Electronic systems. Verilog HDL, not to be confused with VHDL, is most commonly used in the design, verification, and implementation of Digital circuit logic chips at the Register transfer level level of Abstraction...
.

In register transfer logic, binary number
Number

A number is a mathematical object used in counting and measurement. A notational symbol which represents a number is called a Numeral system, but in common usage the word number is used for both the abstract object and the symbol, as well as for the numeral for the number....
s are stored in groups of flip flops called register
Processor register

In computer architecture, a processor register is a small amount of Computer storage available on the CPU whose contents can be accessed more quickly than storage available elsewhere....
s. The outputs of each register are a bundle of wires called a "bus
Computer bus

In computer architecture, a bus is a subsystem that transfers data between computer components inside a computer or between computers. Each bus defines its set of connectors to physically plug devices, cards or cables together....
" that carries that number to other calculations. A calculation is simply a piece of combinatorial logic. Each calculation also has an output bus, and these may be connected to the inputs of several registers. Sometimes a register will have a multiplexer
Multiplexer

In electronics, a multiplexer or mux is a device that performs multiplexing; it selects one of many analog or digital input signals and outputs that into a single line....
 on its input, so that it can store a number from any one of several buses. Alternatively, the outputs of several items may be connected to a bus through buffers that can turn off the output of all of the devices except one. A sequential state machine controls when each register accepts new data from its input.

In the 1980s, some researchers discovered that almost all synchronous register-transfer machines could be converted to asynchronous designs by using first-in-first-out synchronization logic. In this scheme, the digital machine is characterized as a set of data flows. In each step of the flow, an asynchronous "synchronization circuit" determines when the outputs of that step are valid, and presents a signal that says, "grab the data" to the stages that use that stage's inputs. It turns out that just a few relatively simple synchronization circuits are needed.

The most general-purpose register-transfer logic machine is a computer
Computer

A computer is a machine that manipulates Data according to a list of Code .The first devices that resemble modern computers date to the mid-20th century , although the computer concept and various machines similar to computers existed earlier....
. This is basically an automatic
Automaton

An automaton is a self-operating machine. The word is sometimes used to describe a robot, more specifically an autonomous robot....
 binary abacus
Abacus

An abacus, also called a counting frame, is a calculating tool used primarily in parts of Asia for performing arithmetic processes. Today, abacuses are often constructed as a bamboo frame with beads sliding on wires, but originally they were beans or stones moved in grooves in sand or on tablets of wood, stone, or metal....
. The control unit
Control unit

A control unit in general is a central part of whatsoever machinery that controls its operation, provided that a piece of machinery is complex and organized enough to contain any such unit....
 of a computer is usually designed as a microprogram run by a microsequencer
Microsequencer

In computer architecture and engineering, a sequencer or microsequencer is a part of the control unit of a Central processing unit. It generates the addresses used to step through the microprogram of a control store....
. A microprogram is much like a player-piano roll. Each table entry or "word" of the microprogram commands the state of every bit that controls the computer. The sequencer then counts, and the count addresses the memory or combinatorial logic machine that contains the microprogram. The bits from the microprogram control the arithmetic logic unit
Arithmetic logic unit

In computing, an arithmetic logic unit is a digital circuit that performs arithmetic and logicaloperations. The ALU is a fundamental building block of the central processing unit of a computer, and even the simplest microprocessors contain one for purposes such as maintaining timers....
, memory
Memory

In psychology, memory is an organism's mental ability to store, retain and recall information. Traditional studies of memory began in the fields of philosophy, including techniques of mnemonic....
 and other parts of the computer, including the microsequencer
Microsequencer

In computer architecture and engineering, a sequencer or microsequencer is a part of the control unit of a Central processing unit. It generates the addresses used to step through the microprogram of a control store....
 itself.

In this way, the complex task of designing the controls of a computer is reduced to a simpler task of programming a relatively independent collection of much simpler logic machines.

Computer architecture
Computer architecture

Computer architecture in computer engineering is the conceptual design and fundamental operational structure of a computer system. It is a blueprint and functional description of requirements and design implementations for the various parts of a computer, focusing largely on the way by which the central processing unit performs internally an...
 is a specialized engineering activity that tries to arrange the registers, calculation logic, buses and other parts of the computer in the best way for some purpose. Computer architects have applied large amounts of ingenuity to computer design to reduce the cost and increase the speed and immunity to programming errors of computers. An increasingly common goal is to reduce the power used in a battery-powered computer system, such as a cell-phone. Many computer architects serve an extended apprenticeship as microprogrammers.

"Specialized computers" are usually a conventional computer with a special-purpose microprogram.

Automated design tools


To save costly engineering effort, much of the effort of designing large logic machines has been automated. The computer programs are called "electronic design automation
Electronic design automation

Electronic Design Automation is the category of tools for designing and producing electronic systems ranging from printed circuit boards to integrated circuits....
 tools" or just "EDA."

Simple truth table-style descriptions of logic are often optimized with EDA that automatically produces reduced systems of logic gates or smaller lookup tables that still produce the desired outputs. The most common example of this kind of software is the Espresso heuristic logic minimizer.

Most practical algorithms for optimizing large logic systems use algebraic manipulations or binary decision diagram
Binary decision diagram

A binary decision diagram or branching program, like a negation normal form or a propositional directed acyclic graph , is a data structure that is used to represent a Boolean function....
s, and there are promising experiments with genetic algorithm
Genetic algorithm

A genetic algorithm is a Search algorithm wikt:technique used in computing to find exact or approximate solutions to Optimization and Search algorithm problems....
s and annealing optimization
Simulated annealing

Simulated annealing is a generic probabilistic algorithm metaheuristic for the global optimization problem of applied mathematics, namely locating a good approximation to the global optimum of a given function in a large search space....
s.

To automate costly engineering processes, some EDA can take state tables that describe state machines and automatically produce a truth table
Truth table

A truth table is a mathematical table used in logic?specifically in connection with Boolean algebra , boolean functions, and propositional calculus?to compute the functional values of logical expression s on each of their functional arguments, that is, on each combination of values taken by their logical variables....
 or a function table for the combinatorial part of a state machine. The state table is a piece of text that lists each state, together with the conditions controlling the transitions between them and the belonging output signals.

It is common for the function tables of such computer-generated state-machines to be optimized with logic-minimization software such as Minilog.

Often, real logic systems are designed as a series of sub-projects, which are combined using a "tool flow." The tool flow is usually a "script," a simplified computer language that can invoke the software design tools in the right order.

Tool flows for large logic systems such as microprocessors can be thousands of commands long, and combine the work of hundreds of engineers.

Writing and debugging tool flows is an established engineering specialty in companies that produce digital designs. The tool flow usually terminates in a detailed computer file or set of files that describe how to physically construct the logic. Often it consists of instructions to draw the transistors and wires on an integrated circuit
Integrated circuit

In electronics, an integrated circuit is a miniaturized electronic circuit that has been manufactured in the surface of a thin Wafer of semiconductor material....
 or a printed circuit board
Printed circuit board

A printed circuit board, or PCB, is used to mechanically support and electrically connect electronic components using Conductor pathways, or signal traces, industrial etchinged from copper sheets laminated onto a non-conductive substrate....
.

Parts of tool flows are "debugged" by verifying the outputs of simulated logic against expected inputs. The test tools take computer files with sets of inputs and outputs, and highlight discrepancies between the simulated behavior and the expected behavior.

Once the input data is believed correct, the design itself must still be verified for correctness. Some tool flows verify designs by first producing a design, and then scanning the design to produce compatible input data for the tool flow. If the scanned data matches the input data, then the tool flow has probably not introduced errors.

The functional verification data are usually called "test vectors." The functional test vectors may be preserved and used in the factory to test that newly constructed logic works correctly. However, functional test patterns don't discover common fabrication faults. Production tests are often designed by software tools called "test pattern generators." These generate test vectors by examining the structure of the logic and systematically generating tests for particular faults. This way the fault coverage
Fault coverage

Fault coverage refers to the percentage of some type of fault that can be detected during the test of an electronic system, usually an integrated circuit....
 can closely approach 100%, provided the design is properly made testable (see next section).

Once a design exists, and is verified and testable, it often needs to be processed to be manufacturable as well. Modern integrated circuits have features smaller than the wavelength of the light used to expose the photoresist. Manufacturability software adds interference patterns to the exposure masks to eliminate open-circuits, and enhance the masks' resolution and contrast.

Design for testability


A large logic machine (say, with more than a hundred logical variables) can have an astronomical number of possible states. Obviously, in the factory, testing every state is impractical if testing each state takes a microsecond, and there are more states than the number of microseconds since the universe began. Unfortunately, this ridiculous-sounding case is typical.

Fortunately, large logic machines are almost always designed as assemblies of smaller logic machines. To save time, the smaller sub-machines are isolated by permanently-installed "design for test" circuitry, and are tested independently.

One common test scheme known as "scan design" moves test bits serially (one after another) from external test equipment through one or more serial shift register
Shift register

In digital circuits, a shift register is a group of flip-flop s set up in a linear fashion which have their inputs and outputs connected together in such a way that the data is shifted down the line when the circuit is activated....
s known as "scan chains". Serial scans have only one or two wires to carry the data, and minimize the physical size and expense of the infrequently-used test logic.

After all the test data bits are in place, the design is reconfigured to be in "normal mode" and one or more clock pulses are applied, to test for faults (e.g. stuck-at low or stuck-at high) and capture the test result into flip-flop
Flip-flop (electronics)

In digital circuits, a flip-flop is a term referring to an electronic circuit that has two stable states and thereby is capable of serving as one bit of computer storage....
s and/or latches in the scan shift register(s). Finally, the result of the test is shifted out to the block boundary and compared against the predicted "good machine" result.

In a board-test environment, serial to parallel testing has been formalized with a standard called "JTAG
JTAG

Joint Test Action Group is the common name used for the Institute of Electrical and Electronics Engineers 1149.1 standard entitled Standard Test Access Port and Boundary-Scan Architecture for test access ports used for testing printed circuit boards using boundary scan....
" (named after the "Joint Test Action Group" that proposed it).

Another common testing scheme provides a test mode that forces some part of the logic machine to enter a "test cycle." The test cycle usually exercises large independent parts of the machine.

Trade-offs


Several numbers determine the practicality of a system of digital logic. Engineers explored numerous electronic devices to get an ideal combination of fanout
Fanout

Fan-out is a measure of the ability of a logic gate output, implemented Electronics, to drive a number of inputs of other logic gates of the same type....
, speed, low cost and reliability.

The cost of a logic gate is crucial. In the 1930s, the earliest digital logic systems were constructed from telephone relays because these were inexpensive and relatively reliable. After that, engineers always used the cheapest available electronic switches that could still fulfill the requirements.

The earliest integrated circuit
Integrated circuit

In electronics, an integrated circuit is a miniaturized electronic circuit that has been manufactured in the surface of a thin Wafer of semiconductor material....
s were a happy accident. They were constructed not to save money, but to save weight, and permit the Apollo Guidance Computer
Apollo Guidance Computer

The Apollo Guidance Computer was the first recognizably modern embedded system, used in Real-time computing by astronaut pilot to collect and provide flight information, and to automatically control all of the navigational functions of the Apollo spacecraft....
 to control an inertial guidance system for a spacecraft. The first integrated circuit logic gates cost nearly $50 (in 1960 dollars, when an engineer earned $10,000/year). To everyone's surprise, by the time the circuits were mass-produced, they had become the least-expensive method of constructing digital logic. Improvements in this technology have driven all subsequent improvements in cost.

With the rise of integrated circuits, reducing the absolute number of chips used represented another way to save costs. The goal of a designer is not just to make the simplest circuit, but to keep the component count down. Sometimes this results in slightly more complicated designs with respect to the underlying digital logic but nevertheless reduces the number of components, board size, and even power consumption.

For example, in some logic families, NAND
Nand

NAND may stand for:*Logical NAND , a binary operation in logic.**NAND gate, an electronic gate that implements a logical NAND....
 gates are the simplest digital gate to build. All other logical operations can be implemented by NAND
Nand

NAND may stand for:*Logical NAND , a binary operation in logic.**NAND gate, an electronic gate that implements a logical NAND....
 gates. If a circuit already required a single NAND
Nand

NAND may stand for:*Logical NAND , a binary operation in logic.**NAND gate, an electronic gate that implements a logical NAND....
 gate, and a single chip normally carried four NAND
Nand

NAND may stand for:*Logical NAND , a binary operation in logic.**NAND gate, an electronic gate that implements a logical NAND....
 gates, then the remaining gates could be used to implement other logical operations like logical and. This could eliminate the need for a separate chip containing those different types of gates.

The "reliability" of a logic gate describes its mean time between failure (MTBF). Digital machines often have millions of logic gates. Also, most digital machines are "optimized" to reduce their cost. The result is that often, the failure of a single logic gate will cause a digital machine to stop working.

Digital machines first became useful when the MTBF for a switch got above a few hundred hours. Even so, many of these machines had complex, well-rehearsed repair procedures, and would be nonfunctional for hours because a tube burned-out, or a moth got stuck in a relay. Modern transistorized integrated circuit logic gates have MTBFs of nearly a trillion (1×1012) hours, and need them because they have so many logic gates.

Fanout
Fanout

Fan-out is a measure of the ability of a logic gate output, implemented Electronics, to drive a number of inputs of other logic gates of the same type....
 describes how many logic inputs can be controlled by a single logic output. The minimum practical fanout is about five. Modern electronic logic using CMOS
CMOS

Complementary metal?oxide?semiconductor , is a major class of integrated circuits. CMOS technology is used in microprocessors, microcontrollers, Static Random Access Memory, and other digital logic circuits....
 transistor
Transistor

In electronics, a transistor is a semiconductor device commonly used to Electronic amplifier or switch Electronics signals. A transistor is made of a solid piece of a semiconductor material, with at least three terminals for connection to an external circuit....
s for switches have fanouts near fifty, and can sometimes go much higher.

The "switching speed" describes how many times per second an inverter (an electronic representation of a "logical not" function) can change from true to false and back. Faster logic can accomplish more operations in less time. Digital logic first became useful when switching speeds got above fifty hertz
Hertz

The hertz is a measure of frequency per unit of time, or the number of list of cycles per second. It is the SI base unit of frequency in the International System of Units , and is used worldwide in both general-purpose and scientific contexts....
, because that was faster than a team of humans operating mechanical calculators. Modern electronic digital logic routinely switches at five gigahertz (5×109 hertz), and some laboratory systems switch at more than a terahertz (1×1012 hertz).

Logic families


Design started with relay
Relay

A relay is an electrical switch that opens and closes under the control of another electrical circuit. In the original form, the switch is operated by an magnet to open or close one or many sets of contacts....
s. Relay logic was relatively inexpensive and reliable, but slow. Occasionally a mechanical failure would occur. Fanout
Fanout

Fan-out is a measure of the ability of a logic gate output, implemented Electronics, to drive a number of inputs of other logic gates of the same type....
s were typically about ten, limited by the resistance of the coils and arcing on the contacts from high voltages.

Later, vacuum tube
Vacuum tube

In electronics, a vacuum tube, electron tube , thermionic valve, or just valve is a device used to amplifier, switch, otherwise modify, or create an Electricity signal by controlling the movement of electrons in a low-pressure space....
s were used. These were very fast, but generated heat, and were unreliable because the filaments would burn out. Fanouts were typically five to seven, limited by the heating from the tubes' current. In the 1950s, special "computer tubes" were developed with filaments that omitted volatile elements like silicon. These ran for hundreds of thousands of hours.

The first semiconductor
Semiconductor

A semiconductor is a material that has electrical conductivity between those of a Electrical conductor and an electrical insulation; it can vary over that wide range either permanently or dynamically....
 logic family was Resistor-transistor logic
Resistor-transistor logic

File:RTL NPN NOR Gate.svgFile:RTL 3-Input NOR Gate.svgResistor?transistor logic is a class of digital circuits built using resistors as the input network and bipolar junction transistors as switching devices....
. This was a thousand times more reliable than tubes, ran cooler, and used less power, but had a very low fan-in
Fan-In

File:3-Input AND ANSI.svgFan-in is the number of inputs of an electronics logic gate. For instance the 'fan-in' for the AND gate shown below is 3....
 of three. Diode-transistor logic
Diode-transistor logic

Diode?Transistor Logic is a class of digital circuits built from bipolar junction transistors , diodes and resistors; it is the direct ancestor of transistor?transistor logic....
 improved the fanout up to about seven, and reduced the power. Some DTL designs used two power-supplies with alternating layers of NPN and PNP transistors to increase the fanout.

Transistor transistor logic (TTL) was a great improvement over these. In early devices, fanout improved to ten, and later variations reliably achieved twenty. TTL was also fast, with some variations achieving switching times as low as twenty nanoseconds. TTL is still used in some designs.

Another contender was emitter coupled logic
Emitter coupled logic

In electronics, emitter-coupled logic, or ECL, is a logic family in which current is steered through Bipolar junction transistors to implement logic functions....
. This is very fast but uses a lot of power. It's now used mostly in radio-frequency circuits.

Modern integrated circuits mostly use variations of CMOS
CMOS

Complementary metal?oxide?semiconductor , is a major class of integrated circuits. CMOS technology is used in microprocessors, microcontrollers, Static Random Access Memory, and other digital logic circuits....
, which is acceptably fast, very small and uses very little power. Fanouts of forty or more are possible, with some speed penalty.

Non-electronic logic


It is possible to construct non-electronic digital mechanisms. In principle, any technology capable of representing discrete states and representing logic operations could be used to build mechanical logic. Danny Hillis, co-author of The Connection Machine, once built a working computer from Tinker toys, string, a brick, and a sharpened pencil, which is supposed to be in the Houston Museum of Natural Science
Houston Museum of Natural Science

The Houston Museum of Natural Science is a science museum located on the northern border of Hermann Park in Houston, Texas, USA. The museum was established in 1909 by the Houston Museum and Scientific Society, an organization whose goals were to provide a free institution for the people of Houston focusing on education and science....
.

Hydraulic, pneumatic and mechanical versions of logic gates exist and are used in situations where electricity cannot be used. The first two types are considered under the heading of fluidics. One application of fluidic logic is in military hardware that is likely to be exposed to a nuclear electromagnetic pulse
Electromagnetic pulse

The term electromagnetic pulse has the following meanings:# Electromagnetic radiation from an explosion or an intensely change magnetic field caused by Compton scattering electrons and photoelectrons from photons scattering in the materials of the electronic or explosive device or in a surrounding Transmission medium....
 (nuclear EMP, or NEMP) that would destroy electrical circuits.

Mechanical logic is frequently used in inexpensive controllers, such as those in washing machines. Famously, the first computer design, by Charles Babbage
Charles Babbage

Charles Babbage, Royal Society was an England mathematician, philosopher, inventor and mechanical engineer who originated the concept of a programmable computer....
, was designed to use mechanical logic. Mechanical logic might also be used in very small computers that could be built by nanotechnology
Nanotechnology

Nanotechnology, shortened to "Nanotech", is the study of the control of matter on an atomic and molecular scale. Generally nanotechnology deals with structures of the size 100 nanometers or smaller, and involves developing materials or devices within that size....
.

Another example is that if two particular enzymes are required to prevent the construction of a particular protein, this is the equivalent of a biological "NAND" gate.

Recent developments

The discovery of superconductivity
Superconductivity

Superconductivity is a phenomenon occurring in certain materials generally at very low temperatures, characterized by exactly zero electrical resistance and the exclusion of the interior magnetic field ....
 has enabled the development of Rapid Single Flux Quantum
Rapid single flux quantum

In electronics, rapid single flux quantum is a digital electronics technology that relies on quantum effects in superconducting materials to switch signals, instead of transistors....
 (RSFQ) circuit technology, which uses Josephson junctions instead of transistors. Most recently, attempts are being made to construct purely optical computing systems capable of processing digital information using nonlinear optical elements.

Branch pages

Electronics
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
 - Combinatorial logic - Boolean algebra - Fuzzy electronics
Fuzzy electronics

Fuzzy electronics is an electronics technology that uses fuzzy logic, instead of the two-value logic more commonly used in digital electronics. It has a wide range applications, including control systems and artificial intelligence....
 - Logic analyzer
Logic analyzer

A logic analyzer is an electronic instrument that displays signals in a digital circuit that are too fast to be observed and presents it to a user so that the user can more easily check correct operation of the digital system....
 - Logic gate
Logic gate

A logic gate performs a logical operation on one or more logic inputs and produces a single logic output. The logic normally performed is Boolean logic and is most commonly found in digital circuits....
 - Glitch
Glitch

A glitch is a short-lived fault in a system. The term is particularly common in the computing and electronics industries, and in circuit bending, as well as among players of video games, although it is applied to all types of systems including human organizations and nature....
 - Ringing
Ringing

ElectricityIn electricity circuits, ringing is an unwanted oscillation of a voltage or Current . It happens when an electrical pulse causes the parasitic capacitor and inductor in the circuit to resonance at their characteristic frequency....
 - Programmable logic device
Programmable logic device

A programmable logic device or PLD is an electronics component used to build Reconfigurable Computing digital circuits. Unlike a logic gate, which has a fixed function, a PLD has an undefined function at the time of manufacture....
 - Reconfigurable system - Register
Processor register

In computer architecture, a processor register is a small amount of Computer storage available on the CPU whose contents can be accessed more quickly than storage available elsewhere....


See also

  • List of electronics topics
    List of electronics topics

    This is a list of communications, computers, electronic circuits, fiberoptics, microelectronics, medical electronics, reliability, and semiconductors....
  • Analog circuit - Electronic circuit
    Electronic circuit

    An electronic circuit is a closed path formed by the interconnection of electronic components through which an electric current can flow. The electronic circuits may be physically constructed using any number of methods....
     - CMOS
    CMOS

    Complementary metal?oxide?semiconductor , is a major class of integrated circuits. CMOS technology is used in microprocessors, microcontrollers, Static Random Access Memory, and other digital logic circuits....
     - Data strobe encoding
    Data strobe encoding

    Data strobe encoding is an encoding scheme for transmitting data in digital circuits.It uses two signal lines , Data and Strobe. These have the property that either Data or Strobe changes its logical value in one clock cycle, but never both....
     - De Morgan's laws
    De Morgan's laws

    In formal logic, De Morgan's laws are rules relating the logical operators 'and' and 'or' in terms of each other via logical negation.History...
     - Digital
    Digital

    A digital system uses discrete values, usually but not always symbolized numerically to represent information for input, processing, transmission, storage, etc....
     - Digital signal processing
    Digital signal processing

    Digital signal processing is concerned with the representation of the signal s by a sequence of numbers or symbols and the processing of these signals....
     - Electrical network
    Electrical network

    An electrical network is an interconnection of electrical elements such as resistors, inductors, capacitors, transmission lines, voltage sources, current sources, and switches....
     - Electronics
    Electronics

    Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
     - Field effect transistor
    Field effect transistor

    The field-effect transistor is a type of transistor that relies on an electric field to control the shape and hence the electrical conductivity of a channel of one type of charge carrier in a semiconductor material....
     - Finite state machine
    Finite state machine

    A finite state machine or finite state automaton or simply a state machine, is a model of behavior composed of a finite number of state s, transitions between those states, and actions....
     - Formal verification
    Formal verification

    In the context of hardware and software systems, formal verification is the act of Mathematical proof or disproving the correctness of intended algorithms underlying a system with respect to a certain formal specification or property, using formal methods of mathematics....
     - Hardware description language
    Hardware description language

    In electronics, a hardware description language or HDL is any language from a class of computer languages and/or programming languages for formal description of digital logic and electronic circuits....
     - Instruction pipelining - Integrated circuit
    Integrated circuit

    In electronics, an integrated circuit is a miniaturized electronic circuit that has been manufactured in the surface of a thin Wafer of semiconductor material....
     - Logical effort
    Logical effort

    The method of logical effort, a term coined by Ivan Sutherland and Robert Sproull in 1991, is a straightforward technique used to delay calculation in a CMOS circuit....
     - Logic minimization - Sequential logic
    Sequential logic

    In digital circuit theory, sequential logic is a type of logic circuit whose output depends not only on the present input but also on the history of the input....
     - Microelectronics
    Microelectronics

    Microelectronics is a subfield of electronics. Microelectronics, as the name suggests,is related to the study and manufacture, or microfabrication, of electronic components which are very small ....
     - Glitch
    Glitch

    A glitch is a short-lived fault in a system. The term is particularly common in the computing and electronics industries, and in circuit bending, as well as among players of video games, although it is applied to all types of systems including human organizations and nature....
     - Ringing
    Ringing

    ElectricityIn electricity circuits, ringing is an unwanted oscillation of a voltage or Current . It happens when an electrical pulse causes the parasitic capacitor and inductor in the circuit to resonance at their characteristic frequency....
     - NMOS
    NMOS

    nMOS can refer to:* n-channel MOSFET* NMOS logic...
     - Transistor
    Transistor

    In electronics, a transistor is a semiconductor device commonly used to Electronic amplifier or switch Electronics signals. A transistor is made of a solid piece of a semiconductor material, with at least three terminals for connection to an external circuit....
     - Transistor-transistor logic
    Transistor-transistor logic

    File:68k ttl.jpgTransistor?transistor logic is a class of digital circuits built from bipolar junction transistors and resistors. It is called transistor?transistor logic because both the logic gating function and the amplifying function are performed by transistors ....
     - Transparent latch - Ternary logic
    Ternary logic

    A ternary, three-valued or trivalent logic is any of several multi-valued logic systems in which there are three truth values indicating true, false and some third value....
     - Runt pulse
    Runt pulse

    In digital circuits, a runt pulse is a narrow Pulse that,due to non-zero rise time and fall time times of the signal, does not reach a validhigh or low level....
     - Transmission line
    Transmission line

    A transmission line is the material Transmission medium or structure that forms all or part of a Course from one place to another for directing the transmission of energy, such as electromagnetic waves or acoustic waves, as well as electric power transmission....
     - VHSIC
    VHSIC

    VHSIC was a 1980s United States of America government program to develop Very-High-Speed Integrated Circuits.The United States Department of Defense launched the VHSIC project in 1980 as a joint tri-service project....
  • Claude E. Shannon : used Boolean algebra for building digital circuits.
  • List of electrical Input/Output standards
    Input/output standards

    This is a list of electrical input/output standards that have moreor less well-defined electrical properties like operating voltage, drivingcurrent, level switching behavior, circuit implementation etc., or are...


External links