All Topics  
Dynamic logic (digital logic)

 

   Email Print
   Bookmark   Link






 

Dynamic logic (digital logic)



 
 
In 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....
 design, dynamic logic (or sometimes clocked logic) is a design methodology logic family
Logic family

In computer engineering, a logic family may refer to one of two related concepts. A logic family of monolithic digital integrated circuit devices is a group of electronic logic gates constructed using one of several different designs, usually with input/output standards and power supply characteristics within a family....
 in digital logic
Digital circuit

Digital electronics are electronics systems that use digital signals. Digital electronics are representations of Boolean algebra and are used in computers, mobile phones, and other consumer products....
 that was popular in the 1970s and has seen a recent resurgence in the design of high speed digital 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....
, particularly 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....
 CPUs
Central processing unit

A central processing unit is an electronic circuit that can execute computer programs. This broad definition can easily be applied to many early computers that existed long before the term "CPU" ever came into widespread usage....
. Dynamic logic is distinguished from so-called static logic in that it uses a clock signal
Clock signal

In electronics and especially Synchronous logic digital circuits, a clock signal is a Signalling used to coordinate the actions of two or more Electronic circuit....
 in its implementation of combinational logic
Combinational logic

In digital circuit theory, combinational logic is a type of logic circuit whose output is a pure function of the present input only. This is in contrast to sequential logic, in which the output depends not only on the present input but also on the history of the input....
 circuits, that is, logic circuits in which the output is a function of only the current input.






Discussion
Ask a question about 'Dynamic logic (digital logic)'
Start a new discussion about 'Dynamic logic (digital logic)'
Answer questions from other users
Full Discussion Forum



Recent Posts









Encyclopedia


In 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....
 design, dynamic logic (or sometimes clocked logic) is a design methodology logic family
Logic family

In computer engineering, a logic family may refer to one of two related concepts. A logic family of monolithic digital integrated circuit devices is a group of electronic logic gates constructed using one of several different designs, usually with input/output standards and power supply characteristics within a family....
 in digital logic
Digital circuit

Digital electronics are electronics systems that use digital signals. Digital electronics are representations of Boolean algebra and are used in computers, mobile phones, and other consumer products....
 that was popular in the 1970s and has seen a recent resurgence in the design of high speed digital 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....
, particularly 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....
 CPUs
Central processing unit

A central processing unit is an electronic circuit that can execute computer programs. This broad definition can easily be applied to many early computers that existed long before the term "CPU" ever came into widespread usage....
. Dynamic logic is distinguished from so-called static logic in that it uses a clock signal
Clock signal

In electronics and especially Synchronous logic digital circuits, a clock signal is a Signalling used to coordinate the actions of two or more Electronic circuit....
 in its implementation of combinational logic
Combinational logic

In digital circuit theory, combinational logic is a type of logic circuit whose output is a pure function of the present input only. This is in contrast to sequential logic, in which the output depends not only on the present input but also on the history of the input....
 circuits, that is, logic circuits in which the output is a function of only the current input. The usual use of a clock signal is to synchronize transitions in 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....
 circuits, and for most implementations of combinational logic, a clock signal is not even needed. To those unfamiliar with the challenges of digital logic design, then, it must seem a disadvantage that clocked logic relies so heavily on a clock signal. As will be shown in this article, however, there are certain circumstances in which dynamic logic has a clear advantage.

Terminology


In the context of logic design, the term dynamic logic is more commonly and preferably referred to as clocked logic, as it makes clear the distinction between this type of design and static logic, as will be explained in the next section. Unfortunately, the term dynamic logic
Dynamic logic

Dynamic logic may mean:* In modal logic, dynamic logic is a modal logic for reasoning about dynamic behaviour* in digital electronics, dynamic logic is used for circuit design...
 is also used in the context of artificial intelligence
Artificial intelligence

Artificial intelligence is the intelligence of machines and the branch of computer science which aims to create it. Major AI textbooks define the field as "the study and design of intelligent agents,"...
 to describe something entirely different. These two uses of the term are unrelated.

To additionally confuse the matter, clocked logic is sometimes used as a synonym for 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....
; this usage is nonstandard and should be avoided.

In this article, dynamic logic is used.

Static versus dynamic logic


Perhaps the most well-known examples of the distinction between "static logic" and "dynamic logic" is in memory -- static random access memory
Static random access memory

Static random access memory is a type of semiconductor memory where the word static indicates that, unlike dynamic random access memory, it does not need to be periodically memory refresh, as SRAM uses bistable latch to store each bit....
 (SRAM) uses a form of static logic, while dynamic random access memory
Dynamic random access memory

Dynamic random access memory is a type of random access memory that stores each bit of data in a separate capacitor within an integrated circuit....
 (DRAM) uses a form of dynamic logic.

The largest difference between static and dynamic logic is that in dynamic logic, a clock signal
Clock signal

In electronics and especially Synchronous logic digital circuits, a clock signal is a Signalling used to coordinate the actions of two or more Electronic circuit....
 is used to evaluate combinational logic
Combinational logic

In digital circuit theory, combinational logic is a type of logic circuit whose output is a pure function of the present input only. This is in contrast to sequential logic, in which the output depends not only on the present input but also on the history of the input....
. However, to truly comprehend the importance of this distinction, the reader will need some background on static logic.

In most types of logic design, termed static logic, there is at all times some mechanism to drive the output either high or low. In many of the popular logic styles, such as TTL
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 ....
 and traditional 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....
, this principle can be rephrased as a statement that there is always a low-impedance path between the output and either the supply voltage
Voltage

Electrical tension is the potential difference between two points of an electrical or electronic circuit, expressed in volts. It is the measurement of the potential for an electric field to cause an electric current in an electrical conductor....
 or the ground
Ground

Ground may refer to:* The surface of the Earth* Soil, a mixture of clay, sand and organic matter present on the surface of the Earth and serving as substrate for plants growth and micro-organisms development...
. As a sidenote, there is of course an exception in this definition in the case of high impedance
Electrical impedance

Electrical impedance, or simply impedance, describes a measure of opposition to a sinusoidal alternating current . Electrical impedance extends the concept of Electrical resistance to AC circuits, describing not only the relative amplitudes of the voltage and Electric current, but also the relative Phase ....
 outputs, such as a tri-state buffer; however, even in these cases, the circuit is intended to be used within a larger system where some mechanism will drive the output, and they do not qualify as distinct from static logic.

In contrast, in dynamic logic, there is not always a mechanism driving the output high or low. In the most common version of this concept, the output is driven high or low during distinct parts of the clock cycle.

Dynamic logic requires a minimum clock rate fast enough that the output state of each dynamic gate is used before it leaks out of the capacitance holding that state, during the part of the clock cycle that the output is not being actively driven.

Static logic has no minimum clock rate -- the clock can be paused indefinitely. While it may seem that doing nothing for long periods of time is not particularly useful, it leads to two advantages:
  • being able to pause a system at any time makes debugging and testing much easier, enabling techniques such as single stepping
    Instruction step

    An instruction step is a method of executing a computer program one step at a time to determine how it is functioning. This might be to determine if the correct program flow is being followed in the program during the execution or to see if variables are set to their correct values after a single step has completed....
    .
  • being able to run a system at extremely low clock rates allows low-power electronics
    Low-power electronics

    Low-power electronics means that the Power consumption of electric power is deliberately low, e.g. notebook processors.Electronics ...
     to run longer on a given battery.


Advantages

Dynamic logic (properly designed) is over twice as fast as normal logic. It uses only fast N transistors, and is amenable to transistor sizing optimizations. Static logic is slower because it has twice the loading, higher thresholds, and actually uses slow P transistors to compute things. Dynamic logic may be harder to work with, but if you need the speed, there is no other choice. Anything you buy that runs over 2 GHz in 2007 uses dynamic logic, although some manufacturers, such as Intel, have completely switched to static logic to save on power.

Dynamic logic can have some advantages for reducing power. A dynamic logic circuit running at 1/2 voltage could consume 1/4 the power of normal. Also each rail can convey an arbitrary number of bits, and there are no power-wasting glitches. Additionally power-saving clock gating and asynchronous techniques are much more natural in dynamic logic. In practical use, however, dynamic logic greatly increases the number of transistors that are switching at any one time, which greatly increases power consumption over static CMOS.

Dynamic logic example


As an example, consider first the static logic implementation of a NAND gate (here in CMOS):

This circuit implements the logic function If A and B are both high, the output will be pulled low, whereas if one of A and B are low, the output will be pulled high. Most importantly, though, at all times, the output is pulled either low or high.

Consider now a dynamic logic implementation:

The dynamic logic circuit requires two phases. The first phase, when Clock is low, is called the setup phase or the precharge phase and the second phase, when Clock is high, is called the evaluation phase. In the setup phase, the output is driven high unconditionally (no matter the values of the inputs A and B). The capacitor
Capacitor

A capacitor or condenser is a Passive component electronic component consisting of a pair of electrical conductor separated by a dielectric....
, which represents the load capacitance of this gate, becomes charged. Because the transistor at the bottom is turned off, it is impossible for the output to be driven low during this phase.

During the evaluation phase, Clock is high. If A and B are also high, the output will be pulled low. Otherwise, the output stays high (due to the load capacitance).

Dynamic logic has a few potential problems that static logic does not. For example, if the clock speed is too slow, the output will decay too quickly to be of use.

A popular implementation is domino logic
Domino logic

Domino logic is a CMOS-based evolution of the dynamic logic techniques which were based on either PMOS or NMOS transistors. It allows a rail-to-rail logic swing....
.

External links

  • – David Harris' lecture notes on the subject.