Recent from talks
Nothing was collected or created yet.
Logic level
View on Wikipedia
In digital circuits, a logic level is one of a finite number of states that a digital signal can inhabit. Logic levels are usually represented by the voltage difference between the signal and ground, although other standards exist. The range of voltage levels that represent each state depends on the logic family being used. A logic-level shifter can be used to allow compatibility between different circuits.
2-level logic
[edit]In binary logic the two levels are logical high and logical low, which generally correspond to binary numbers 1 and 0 respectively or truth values true and false respectively. Signals with one of these two levels can be used in Boolean algebra for digital circuit design or analysis.
Active state
[edit]
The use of either the higher or the lower voltage level to represent either logic state is arbitrary. The two options are active high (positive logic) and active low (negative logic). Active-high and active-low states can be mixed at will: for example, a read only memory integrated circuit may have a chip-select signal that is active-low, but the data and address bits are conventionally active-high. Occasionally a logic design is simplified by inverting the choice of active level (see De Morgan's laws).
| Logic level | Active-high signal | Active-low signal |
|---|---|---|
| Logical high | 1 | 0 |
| Logical low | 0 | 1 |
The name of an active-low signal is historically written with a bar above it to distinguish it from an active-high signal. For example, the name Q, read Q bar or Q not, represents an active-low signal. The conventions commonly used are:
- a bar above (Q)
- a leading slash (/Q)
- a leading exclamation mark (!Q)
- a lower-case n prefix or suffix (nQ, Qn or Q_n)
- an upper-case N suffix (Q_N)
- a trailing # (Q#), or
- an _B or _L suffix (Q_B or Q_L).[1]
Many control signals in electronics are active-low signals[2] (usually reset lines, chip-select lines and so on). Logic families such as TTL can sink more current than they can source, so fanout and noise immunity increase. It also allows for wired-OR logic if the logic gates are open-collector/open-drain with a pull-up resistor. Examples of this are the I²C bus, CAN bus, and PCI bus.
Some signals have a meaning in both states and notation may indicate such. For example, it is common to have a read/write line designated R/W, indicating that the signal is high in case of a read and low in case of a write.
Logic voltage levels
[edit]The two logical states are usually represented by two different voltages, but two different currents are used in some logic signaling, like digital current loop interface and current-mode logic. High and low thresholds are specified for each logic family. When below the low threshold, the signal is low. When above the high threshold, the signal is high. Intermediate levels are undefined, resulting in highly implementation-specific circuit behavior.
It is usual to allow some tolerance in the voltage levels used; for example, 0 to 2 volts might represent logic 0, and 3 to 5 volts logic 1. A voltage of 2 to 3 volts would be invalid and occur only in a fault condition or during a logic-level transition. However, few logic circuits can detect such a condition, and most devices will interpret the signal simply as high or low in an undefined or device-specific manner. Some logic devices incorporate Schmitt trigger inputs, whose behavior is much better defined in the threshold region and have increased resilience to small variations in the input voltage. The problem of the circuit designer is to avoid circumstances that produce intermediate levels, so that the circuit behaves predictably.
| Technology | L voltage | H voltage | Notes |
|---|---|---|---|
| CMOS[3][4] | 0 V to 30% VDD | 70% VDD to VDD | VDD = supply voltage |
| TTL[3] | 0 V to 0.8 V | 2 V to VCC | VCC = 5 V ±5% (7400 commercial family) or ±10% (5400 military family) |
Nearly all digital circuits use a consistent logic level for all internal signals. That level, however, varies from one system to another. Interconnecting any two logic families often required special techniques such as additional pull-up resistors or purpose-built interface circuits known as level shifters. A level shifter connects one digital circuit that uses one logic level to another digital circuit that uses another logic level. Often two level shifters are used, one at each system: A line driver converts from internal logic levels to standard interface line levels; a line receiver converts from interface levels to internal voltage levels.
For example, TTL levels are different from those of CMOS. Generally, a TTL output does not rise high enough to be reliably recognized as a logic 1 by a CMOS input, especially if it is only connected to a high-input-impedance CMOS input that does not source significant current. This problem was solved by the invention of the 74HCT family of devices that uses CMOS technology but TTL input logic levels. These devices only work with a 5 V power supply.
| Supply voltage | Technology | Logic families (examples) | Reference |
|---|---|---|---|
| 5V, 10V, 15V | Metal CMOS | 4000, 74C | [4] |
| 5V | TTL | 7400, 74S, 74LS, 74ALS, 74F, 74H | [5] |
| 5V | BiCMOS | 74ABT, 74BCT | |
| 5V | CMOS (TTL I/O) | 74HCT, 74AHCT, 74ACT | [6] |
| 3.3V, 5V | CMOS | 74HC, 74AHC, 74AC | [5][6] |
| 5V | LVCMOS | 74LVC, 74AXP | [7] |
| 3.3V | LVCMOS | 74LVC, 74AUP, 74AXC, 74AXP | [7] |
| 2.5V | LVCMOS | 74LVC, 74AUP, 74AUC, 74AXC, 74AXP | [7] |
| 1.8V | LVCMOS | 74LVC, 74AUP, 74AUC, 74AXC, 74AXP | [7] |
| 1.5V | LVCMOS | 74AUP, 74AUC, 74AXC, 74AXP | [7] |
| 1.2V | LVCMOS | 74AUP, 74AUC, 74AXC, 74AXP | [7] |
More than two levels
[edit]3-value logic
[edit]Though rare, ternary computers evaluate base 3 three-valued or ternary logic using 3 voltage levels.
3-state logic
[edit]In three-state logic, an output device can be in one of three possible states: 0, 1, or Z, with the last meaning high impedance. This is not a voltage or logic level, but means that the output is not controlling the state of the connected circuit.
4-value logic
[edit]Four-valued logic adds a fourth state, X (don't care), meaning the value of the signal is unimportant and undefined. It means that an input is undefined, or an output signal may be chosen for implementation convenience (see Karnaugh map § Don't cares).
9-level logic
[edit]IEEE 1164 defines 9 logic states for use in electronic design automation. The standard includes strong and weakly driven signals, high impedance and unknown and uninitialized states.
Multi-level cells
[edit]In solid-state storage devices, a multi-level cell stores data using multiple voltages. Storing n bits in one cell requires the device to reliably distinguish 2n distinct voltage levels.
Line coding
[edit]Digital line codes may use more than two states to encode and transmit data more efficiently. Examples include alternate mark inversion and 4B3T from telecommunications, and pulse-amplitude modulation variants used by Ethernet over twisted pair. For instance, 100BASE-TX uses MLT-3 encoding with three differential voltage levels (−1V, 0V, +1V) while 1000BASE-T encodes data using five differential voltage levels (−1V, −0.5V, 0V, +0.5V, +1V).[8] Once received, the line coding is converted back to binary.
See also
[edit]References
[edit]- ^ "Coding Style Guidelines" (PDF). Xilinx. Retrieved 2017-08-17.
- ^ Balch, Mark (2003). Complete Digital Design: A Comprehensive Guide To Digital Electronics And Computer System Architecture. McGraw-Hill Professional. p. 430. ISBN 978-0-07-140927-8.
- ^ a b "Logic signal voltage levels". All About Circuits. Retrieved 2015-03-29.
- ^ a b "HEF4000B Family Specifications" (PDF). Philips Semiconductors. January 1995. Archived from the original (PDF) on March 4, 2016.
Parametric limits are guaranteed for VDD of 5V, 10V, and 15V.
- ^ a b "AppNote 319 - Comparison of MM74HC to 74LS, 74S and 74ALS Logic" (PDF). Fairchild Semiconductor. June 1983. Archived (PDF) from the original on October 24, 2021.
- ^ a b "AHC/AHCT Designer's Guide" (PDF). Texas Instruments. September 1998. Archived (PDF) from the original on April 13, 2018.
Technical Comparison of AHC / HC / AC (CMOS I/O) and AHCT / HCT / ACT (TTL I/O) Logic Families
- ^ a b c d e f "Little Logic Guide" (PDF). Texas Instruments. 2018. Archived (PDF) from the original on April 3, 2021.
Logic Voltage Graph (page4)
- ^ Thompson, Geoff (13 November 1997). How 1000BASE-T Works (PDF). IEEE802.3 Plenary. Montreal. Retrieved 2023-11-21.
External links
[edit]Logic level
View on GrokipediaFundamentals of Logic Levels
Definition and Purpose
A logic level refers to a specific range of voltage values in digital electronics that represents a defined logical state, such as low (typically corresponding to binary 0) or high (typically corresponding to binary 1), or more generally, discrete states in multi-valued systems.[1] These levels allow digital circuits to encode and process information using distinct, non-overlapping voltage bands rather than continuous variations.[9] The concept of logic levels originated in the application of Boolean algebra to electronic switching circuits, as pioneered by Claude Shannon in his 1937 master's thesis at MIT, which demonstrated how relays could implement logical operations.[10] This theoretical foundation was physically realized in the 1940s with vacuum tube-based computers, where tube thresholds—points at which the device switched between conducting and non-conducting states—defined the voltage ranges for logical 0 and 1; a notable example is the ENIAC, completed in 1945, which used over 17,000 vacuum tubes to perform binary computations for artillery calculations.[11] Unlike earlier analog computers that relied on continuously varying voltages proportional to physical quantities, these digital systems adopted discrete logic levels to leverage the on-off switching behavior of vacuum tubes.[1] The primary purpose of logic levels is to ensure reliable interpretation of signals across interconnected digital components, such as gates and flip-flops, by establishing unambiguous thresholds that prevent errors from minor voltage fluctuations or noise.[1] By confining logical states to well-separated voltage ranges—often defined by parameters like the input low voltage (V_IL) and input high voltage (V_IH)—these levels facilitate robust data transmission and processing in complex systems, from early vacuum tube machines to modern integrated circuits.[9] This discreteness contrasts sharply with analog signals, which span a continuum of voltages and are more susceptible to degradation, thereby enabling the scalability and error resilience that underpin digital computing.[1]Key Voltage Parameters
In digital logic circuits, the key voltage parameters define the thresholds for interpreting input signals and specifying output levels, ensuring reliable operation across interconnected devices. The input low voltage, denoted as , represents the maximum voltage level at which an input is guaranteed to be recognized as a logic low state.[12] Conversely, the input high voltage, , is the minimum voltage level at which an input is guaranteed to be recognized as a logic high state.[12] These input thresholds establish the boundaries for valid logic states, preventing ambiguous interpretations near the transition region.[13] On the output side, the output low voltage, , specifies the maximum voltage that an output can produce while driving a logic low state, typically close to ground for minimal power dissipation. The output high voltage, , defines the minimum voltage for a logic high output, often approaching the supply voltage. These parameters collectively ensure compatibility between outputs of one device and inputs of another, as must exceed and must be below to maintain signal integrity across the system.[12][14] In typical 5 V TTL systems, has a maximum of 0.8 V, while has a minimum of 2.0 V, providing a defined undefined region between 0.8 V and 2.0 V to accommodate variations; is limited to 0.4 V maximum, and to 2.4 V minimum.[12] For standard 5 V CMOS (e.g., 74HC series), the thresholds are wider: maximum of 1.5 V, minimum of 3.5 V (undefined region 1.5–3.5 V), maximum of 0.1 V, and minimum of 4.9 V, achieving rails closer to 0 V and 5 V.[15] Some logic families incorporate hysteresis, a phenomenon where the input thresholds differ for rising and falling signals—higher for transitions to high and lower for transitions to low—to enhance noise immunity. This differential thresholding prevents erratic switching from noise-induced fluctuations near the midpoint, stabilizing operation without requiring additional circuitry.Binary Logic Levels
Active States and Conventions
In binary logic systems, signals are interpreted based on whether they are active-high or active-low, determining the voltage level that represents the asserted or "true" state. Active-high logic designates a high voltage level as the asserted state (logic 1), while a low voltage level represents the deasserted state (logic 0). Conversely, active-low logic treats a low voltage level as the asserted state (logic 1), with high voltage indicating the deasserted state (logic 0). These conventions align with the key voltage parameters of the logic family, where high and low levels are defined relative to supply voltage thresholds. Active-low signals are commonly denoted by an overbar (e.g., \overline{CS}) or a slash (e.g., CS/) in schematics and documentation to indicate inversion from the standard active-high assumption.[16] In most TTL (transistor-transistor logic) gates, such as the 7400 series NAND gates, inputs and outputs follow active-high conventions, where a high voltage asserts the logic function.[17] Control signals like chip selects (CS) in memory devices, however, are typically active-low, enabling the device only when the signal is pulled to a low voltage to select it from multiple components on a bus.[18] When active-high and active-low signals must interface in a circuit, inverted logic arises, often requiring inverters to convert between conventions and ensure proper assertion. For instance, connecting an active-high output to an active-low input necessitates an inverter gate, such as a 7404 hex inverter in TTL systems, to negate the signal and align the active states, which adds propagation delay and component count to the design.[19] This inversion impacts overall circuit complexity, as mismatched polarities can lead to unintended deassertion if not addressed.[20] Some devices employ complementary outputs to facilitate active-low signaling without full inversion, particularly using open-collector configurations. Open-collector outputs, common in TTL like the 7406 hex inverter with open-collector, allow the transistor to sink current and pull the line low (asserted state) when active, while an external pull-up resistor to the supply voltage holds it high when inactive. This setup enables wired-AND logic for active-low signals, where multiple open-collector outputs can share a bus line, and any active device pulls the shared signal low to assert the collective state.[21]Standard Voltage Levels by Family
The Transistor-Transistor Logic (TTL) family, a foundational standard for digital integrated circuits, uses a nominal supply voltage of 5 V. Key parameters include a maximum low-level input voltage (VIL) of 0.8 V, minimum high-level input voltage (VIH) of 2.0 V, maximum low-level output voltage (VOL) of 0.4 V, and minimum high-level output voltage (VOH) of 2.4 V.[22][23] The Complementary Metal-Oxide-Semiconductor (CMOS) family supports multiple supply voltages, commonly 5 V or 3.3 V, with outputs approaching rail-to-rail levels for improved efficiency. For 5 V CMOS, VIL is up to 1.5 V (30% of VDD), VIH is at least 3.5 V (70% of VDD), VOL is up to 0.5 V, and VOH is at least 4.4 V.[24][23][25] In 3.3 V variants, often designed for TTL compatibility, VIL is up to 0.8 V, VIH is at least 2.0 V, VOL is up to 0.4 V, and VOH is at least 2.4 V (or up to nearly 3.3 V for rail-to-rail).[22][23] Emitter-Coupled Logic (ECL) uses internal differential pairs for high-speed operation, with single-ended I/O. Typical supply is VEE = -5.2 V, VCC = 0 V. Nominal output levels are logic low (VOL) ≈ -1.8 V and high (VOH) ≈ -0.9 V relative to ground. Input thresholds are approximately VIL max = -1.03 V and VIH min = -0.93 V.[26][27] Low-Voltage Differential Signaling (LVDS), a true differential standard, operates at a 3.3 V supply with a differential output voltage swing of 250-450 mV (typically 350 mV) across a 100 Ω load and a common-mode voltage around 1.2 V.[28][27] Since the 2000s, low-voltage families like Low-Voltage CMOS (LVCMOS) have gained prominence for power efficiency in modern integrated circuits, supporting supplies such as 1.8 V or 1.2 V. For 1.8 V LVCMOS, VIL is up to 0.35 × VDD (≈0.63 V), VIH is at least 0.65 × VDD (≈1.17 V), with outputs near rail-to-rail; similar scaled thresholds apply at 1.2 V (VDD range 1.14-1.26 V).[23][29] Mixing logic families requires careful consideration of compatibility to avoid signal misinterpretation or damage. For instance, a 5 V TTL output (VOH up to 5 V) can exceed the input tolerance of 3.3 V CMOS devices, risking latch-up or failure unless voltage-tolerant inputs or level shifters are used.[22][23] ECL and LVDS, being specialized (single-ended non-saturating and differential, respectively), are generally incompatible with single-ended TTL or CMOS without specialized translators.[27][28]| Logic Family | Supply Voltage (V) | VIL (max, V) | VIH (min, V) | VOL (max, V) | VOH (min, V) |
|---|---|---|---|---|---|
| TTL | 5 | 0.8 | 2.0 | 0.4 | 2.4 |
| CMOS (5 V) | 5 | 1.5 | 3.5 | 0.5 | 4.4 |
| CMOS (3.3 V) | 3.3 | 0.8 | 2.0 | 0.4 | 2.4 (rail-to-rail up to 3.3) |
| ECL | -5.2 | -1.03 | -0.93 | -1.48 | -1.02 |
| LVDS | 3.3 | N/A (diff., ±100 mV thresh.) | N/A (diff.) | N/A (350 mV diff.) | N/A (350 mV diff.) |
| LVCMOS (1.8 V) | 1.8 | 0.63 | 1.17 | 0.45 | 1.35 (rail-to-rail up to 1.8) |
