Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Digital electronics
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Design== Engineers use many methods to minimize [[logic redundancy]] in order to reduce the circuit complexity. Reduced complexity reduces component count and potential errors and therefore typically reduces cost. Logic redundancy can be removed by several well-known techniques, such as [[binary decision diagram]]s, [[Boolean algebra]], [[Karnaugh map]]s, the [[Quine–McCluskey algorithm]], and the [[Espresso heuristic logic minimizer|heuristic computer method]]. These operations are typically performed within a [[computer-aided design]] system. [[Embedded system]]s with [[microcontroller]]s and [[programmable logic controller]]s are often used to implement digital logic for complex systems that do not require optimal performance. These systems are usually programmed by [[software engineer]]s or by electricians, using [[ladder logic]]. ===Representation=== A digital circuit's input-output relationship can be represented as a [[truth table]]. An equivalent high-level circuit uses [[logic gate]]s, each represented by a different shape (standardized by [[IEEE]]/[[ANSI]] 91–1984).<ref>Maini. A.K. (2007). Digital Electronics Principles, Devices and Applications. Chichester, England.: John Wiley & Sons Ltd.</ref> A low-level representation uses an equivalent circuit of electronic switches (usually [[transistor]]s). Most digital systems divide into [[combinational]] and [[Sequential logic|sequential system]]s. The output of a combinational system depends only on the present inputs. However, a sequential system has some of its outputs fed back as inputs, so its output may depend on past inputs in addition to present inputs, to produce a ''sequence'' of operations. Simplified representations of their behavior called [[state machine]]s facilitate design and test. Sequential systems divide into two further subcategories. [[synchronous system|"Synchronous" sequential system]]s change state all at once when a [[clock signal]] changes state. [[asynchronous system|"Asynchronous" sequential system]]s propagate changes whenever inputs change. Synchronous sequential systems are made using [[flip-flop (electronics)|flip flop]]s that store inputted voltages as a [[bit]] only when the clock changes. ===Synchronous systems=== [[File:JohnsonCounter2.png|thumb|A 4-bit ring counter using D-type flip flops is an example of synchronous logic. Each device is connected to the clock signal, and update together.]] {{main|synchronous logic}} The usual way to implement a synchronous sequential state machine is to divide it into a piece of combinational logic and a set of flip flops called a ''state register''. The state register represents the state as a binary number. The combinational logic produces the binary representation for the next state. On each clock cycle, the state register captures the feedback generated from the previous state of the combinational logic and feeds it back as an unchanging input to the combinational part of the state machine. The clock rate is limited by the most time-consuming logic calculation in the combinational logic. ===Asynchronous systems=== Most digital logic is synchronous because it is easier to create and verify a synchronous design. However, asynchronous logic has the advantage of its speed not being constrained by an arbitrary clock; instead, it runs at the maximum speed of its logic gates.{{efn|An example of an early asynchronous digital computer was the Jaincomp-B1 manufactured by the Jacobs Instrument Company in 1951.<ref name=symp>[http://www.ed-thelen.org/comp-hist/Computers-1952-hand.html Pentagon symposium: ''Commercially Available General Purpose Electronic Digital Computers of Moderate Price'', Washington, D.C., 14 MAY 1952]</ref>}} Nevertheless, most systems need to accept external unsynchronized signals into their synchronous logic circuits. This interface is inherently asynchronous and must be analyzed as such. Examples of widely used asynchronous circuits include synchronizer flip-flops, switch [[debounce]]rs and [[arbiter (electronics)|arbiter]]s. Asynchronous logic components can be 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. The designer must force the circuit to periodically wait for all of its parts to enter a compatible state (this is called "self-resynchronization"). Without 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. ===Register transfer systems=== [[File:Register transfer level - example toggler.svg|right|thumb|300px|Example of a simple circuit with a toggling output. The inverter forms the [[combinational logic]] in this circuit, and the register holds the state.]] Many digital systems are [[Dataflow architecture|data flow machine]]s. These are usually designed using synchronous [[Register transfer level|register transfer logic]] and written with [[hardware description language]]s such as [[VHDL]] or [[Verilog]]. In register transfer logic, binary numbers are stored in groups of flip flops called [[processor register|register]]s. A sequential state machine controls when each register accepts new data from its input. The outputs of each register are a bundle of wires called a ''[[computer bus|bus]]'' that carries that number to other calculations. A calculation is simply a piece of combinational 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]] on its input so that it can store a number from any one of several buses.{{efn|Alternatively, the outputs of several items may be connected to a bus through [[3-state|buffer]]s that can turn off the output of all of the devices except one.}} Asynchronous register-transfer systems (such as computers) have a general solution. 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, a synchronization circuit determines when the outputs of that step are valid and instructs the next stage when to use these outputs.{{citation needed|date=October 2020}} ===Computer design=== [[File:80486dx2-large.jpg|thumb|Intel 80486DX2 [[microprocessor]]]] The most general-purpose register-transfer logic machine is a [[computer]]. This is basically an [[automaton|automatic]] binary [[abacus]]. The [[control unit]] of a computer is usually designed as a [[microprogram]] run by a [[microsequencer]]. A microprogram is much like a player-piano roll. Each table entry of the microprogram commands the state of every bit that controls the computer. The sequencer then counts, and the count addresses the memory or combinational logic machine that contains the microprogram. The bits from the microprogram control the [[arithmetic logic unit]], [[memory]] and other parts of the computer, including the microsequencer itself. In this way, the complex task of designing the controls of a computer is reduced to the simpler task of programming a collection of much simpler logic machines. Almost all computers are synchronous. However, [[asynchronous computer]]s have also been built. One example is the [[ASPIDA DLX]] core.<ref name=aspida>{{cite web|title=ASODA sync/async DLX Core|url=http://opencores.org/project,aspida|website=OpenCores.org|access-date=September 5, 2014}}</ref> Another was offered by [[ARM Holdings]].<ref name=arm-asynch/> They do not, however, have any speed advantages because modern computer designs already run at the speed of their slowest component, usually memory. They do use somewhat less power because a clock distribution network is not needed. An unexpected advantage is that asynchronous computers do not produce spectrally-pure radio noise. They are used in some radio-sensitive mobile-phone base-station controllers.<!--that's quite a noun stack--> They may be more secure in cryptographic applications because their electrical and radio emissions can be more difficult to decode.<ref name=arm-asynch>{{cite web|last1=Clarke|first1=Peter|title=ARM Offers First Clockless Processor Core|url=http://www.eetimes.com/document.asp?doc_id=1299083|website=eetimes.com|publisher=UBM Tech (Universal Business Media)|access-date=5 September 2014}}</ref> ===Computer architecture=== [[Computer architecture]] is a specialized engineering activity that tries to arrange the registers, calculation logic, buses and other parts of the computer in the best way possible for a specific purpose. Computer architects have put a lot of work into reducing the cost and increasing the speed of computers in addition to boosting their immunity to programming errors. An increasingly common goal of computer architects is to reduce the power used in battery-powered computer systems, such as [[smartphone]]s. ===Design issues in digital circuits=== {{Unreferenced section|date=September 2015}} Digital circuits are made from analog components. The design must assure that the analog nature of the components does not dominate the desired digital behavior. Digital systems must manage noise and timing margins, parasitic inductances and capacitances. Bad designs have intermittent problems such as [[glitch]]es, vanishingly fast pulses that may trigger some logic but not others, [[runt pulse]]s that do not reach valid [[threshold voltage]]s. Additionally, where clocked digital systems interface to analog systems or systems that are driven from a different clock, the digital system can be subject to [[Metastability (electronics)|metastability]] where a change to the input violates the [[setup time]] for a digital input latch. 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. ===Automated design tools=== {{Unreferenced section|date=June 2021}} Much of the effort of designing large logic machines has been automated through the application of [[electronic design automation]] (EDA). Simple truth table-style descriptions of logic are often optimized with EDA that automatically produce 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]]. Optimizing large logic systems may be done using the [[Quine–McCluskey algorithm]] or [[binary decision diagram]]s. There are promising experiments with [[genetic algorithm]]s and [[Simulated annealing|annealing optimization]]s. To automate costly engineering processes, some EDA can take [[state table]]s that describe [[state machine]]s and automatically produce a truth table or a [[function table]] for the [[combinational logic]] 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 their associated output signals. Often, real logic systems are designed as a series of sub-projects, which are combined using a ''tool flow''. The tool flow is usually controlled with the help of a [[scripting language]], a simplified computer language that can invoke the software design tools in the right order. Tool flows for large logic systems such as [[microprocessor]]s 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 on how to draw the [[transistor]]s and wires on an integrated circuit or a [[printed circuit board]]. 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 to be correct, the design itself must still be verified for correctness. Some tool flows verify designs by first producing a design, 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 [[Formal verification|verification]] data are usually called ''test vectors''. The functional test vectors may be preserved and used in the factory to test whether newly constructed logic works correctly. However, functional test patterns do not discover all fabrication faults. Production tests are often designed by [[automatic test pattern generation]] software tools. These generate test vectors by examining the structure of the logic and systematically generating tests targeting particular potential faults. This way the [[fault coverage]] 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. Software that are [[Design for manufacturability|designed for manufacturability]] add interference patterns to the exposure masks to eliminate open-circuits and enhance the masks' contrast. ===Design for testability=== There are several reasons for testing a logic circuit. When the circuit is first developed, it is necessary to verify that the design circuit meets the required functional, and timing specifications. When multiple copies of a correctly designed circuit are being manufactured, it is essential to test each copy to ensure that the manufacturing process has not introduced any flaws.<ref>Brown S & Vranesic Z. (2009). Fundamentals of Digital Logic with VHDL Design. 3rd ed. New York, N.Y.: Mc Graw Hill.</ref> A large logic machine (say, with more than a hundred logical variables) can have an astronomical number of possible states. Obviously, factory testing every state of such a machine is unfeasible, for even if testing each state only took a microsecond, there are more possible states than there are microseconds since the universe began! 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 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. [[Boundary scan]] is a common test scheme that uses [[serial communication]] with external test equipment through one or more [[shift register]]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-flops 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 as the [[JTAG]] standard. ===Trade-offs=== ====Cost==== Since a digital system may use many logic gates, the overall cost of building a computer correlates strongly with the cost of a logic gate. In the 1930s, the earliest digital logic systems were constructed from telephone relays because these were inexpensive and relatively reliable. The earliest integrated circuits were constructed to save weight and permit the [[Apollo Guidance Computer]] to control an [[inertial guidance system]] for a spacecraft. The first integrated circuit logic gates cost nearly US$50, which in {{Inflation/year|US}} would be equivalent to ${{Inflation|US|50|1960}}. Mass-produced gates on integrated circuits became the least-expensive method to construct digital logic. With the rise of [[integrated circuit]]s, 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 more complicated designs with respect to the underlying digital logic but nevertheless reduces the number of components, board size, and even power consumption. ====Reliability==== Another major motive for reducing component count on printed circuit boards is to reduce the manufacturing defect rate due to failed soldered connections and increase reliability. Defect and failure rates tend to increase along with the total number of component pins. The failure of a single logic gate may cause a digital machine to fail. Where additional reliability is required, redundant logic can be provided. Redundancy adds cost and power consumption over a non-redundant system. The ''reliability'' of a logic gate can be described by its [[mean time between failure]] (MTBF). Digital machines first became useful when the MTBF for a switch increased 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 greater than 82 billion hours ({{val|8.2|e=10|u=hours}}).<ref>MIL-HDBK-217F notice 2, section 5.3, for 100,000 gate 0.8 micrometre CMOS commercial ICs at 40C; failure rates in 2010 are better, because line sizes have decreased to 0.045 micrometres, and fewer off-chip connections are needed per gate.</ref> This level of reliability is required because integrated circuits have so many logic gates. ====Fan-out==== [[Fan-out]] describes how many logic inputs can be controlled by a single logic output without exceeding the electrical current ratings of the gate outputs.<ref>Kleitz , William. (2002). Digital and Microprocessor Fundamentals: Theory and Application. 4th ed. Upper Saddler Reviver, NJ: Pearson/Prentice Hall</ref> The minimum practical fan-out is about five.{{citation needed|reason=No numbers cited in [[Fan-out]]. [[FO4]] makes it tempting to change this to 4.|date=November 2021}} Modern electronic logic gates using [[CMOS]] transistors for switches have higher fan-outs. ====Speed==== The ''switching speed'' describes how long it takes a logic output to change from true to false or vice versa. Faster logic can accomplish more operations in less time. Modern electronic digital logic routinely switches at {{val|5|ul=GHz}}, and some laboratory systems switch at more than {{val|1|ul=THz}}.{{Citation needed|date=June 2019}}.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)