Std Logic
   HOME

TheInfoList



OR:

The IEEE 1164 standard (''Multivalue Logic System for VHDL Model Interoperability'') is a technical standard published by the IEEE in 1993. It describes the definitions of logic values to be used in
electronic design automation Electronic design automation (EDA), also referred to as electronic computer-aided design (ECAD), is a category of software tools for designing Electronics, electronic systems such as integrated circuits and printed circuit boards. The tools wo ...
, for the VHDL hardware description language. It was sponsored by the
Design Automation Standards Committee The Design Automation Standards Committee (DASC) is a subgroup of interested individuals members of the Institute of Electrical and Electronics Engineers (IEEE) Computer Society and Standards Association. It oversees IEEE Standards that are relate ...
of the
Institute of Electrical and Electronics Engineers The Institute of Electrical and Electronics Engineers (IEEE) is a 501(c)(3) professional association for electronic engineering and electrical engineering (and associated disciplines) with its corporate office in New York City and its operation ...
(IEEE). The standardization effort was based on the donation of the Synopsys MVL-9 type declaration. The primary data type (standard unresolved logic) consists of nine character literals (see table on the right). This system promoted a useful set of logic values that typical CMOS logic designs could implement in the vast majority of modeling situations, including: * 'Z' literal to make
tri-state buffer In digital electronics, a tri-state or three-state buffer is a type of digital buffer that has three stable states: a high output state, a low output state, and a high-impedance state. In the high-impedance state, the output of the buffer is discon ...
logic easy * 'H' and 'L' weak drives to permit
wired-AND A wired logic connection is a logic gate that implements boolean algebra (logic) using only passive components such as diodes and resistors. A wired logic connection can create an AND gate, AND or an OR gate. The limitations are the inability t ...
and
wired-OR A wired logic connection is a logic gate that implements boolean algebra (logic) using only passive components such as diodes and resistors. A wired logic connection can create an AND or an OR gate. The limitations are the inability to create a ...
logic. * 'U' for default value for all object declarations so that during simulations uninitialized values are easily detectable and thus easily corrected if necessary. In VHDL, the hardware designer makes the declarations visible via the following library and use statements: library IEEE; use IEEE.std_logic_1164.all;


Using values in simulation


Use of 'U'

Many hardware description language (HDL) simulation tools, such as Verilog and VHDL, support an unknown value like that shown above during simulation of
digital electronics Digital electronics is a field of electronics involving the study of digital signals and the engineering of devices that use or produce them. This is in contrast to analog electronics and analog signals. Digital electronic circuits are usual ...
. The unknown value may be the result of a design error, which the designer can correct before synthesis into an actual circuit. The unknown also represents uninitialised memory values and circuit inputs before the simulation has asserted what the real input value should be. HDL synthesis tools usually produce circuits that operate only on binary logic.


Use of '-'

When designing a digital circuit, some conditions may be outside the scope of the purpose that the circuit will perform. Thus, the designer does not care what happens under those conditions. In addition, the situation occurs that inputs to a circuit are masked by other signals so the value of that input has no effect on circuit behaviour. In these situations, it is traditional to use 'X' as a placeholder to indicate " Don't Care" when building truth tables, but VHDL uses -. "Don't care"s are especially common in
state machine A finite-state machine (FSM) or finite-state automaton (FSA, plural: ''automata''), finite automaton, or simply a state machine, is a mathematical model of computation. It is an abstract machine that can be in exactly one of a finite number o ...
design and Karnaugh map simplification. The '-' values provide additional
degrees of freedom Degrees of freedom (often abbreviated df or DOF) refers to the number of independent variables or parameters of a thermodynamic system. In various scientific fields, the word "freedom" is used to describe the limits to which physical movement or ...
to the final circuit design, generally resulting in a simplified and smaller circuit. Once the circuit design is complete and a real circuit is constructed, the '-' values will no longer exist. They will become some tangible '0' or '1' value but could be either depending on the final design optimization.


Use of 'Z'

Some digital devices support a form of three-state logic on their outputs only. The three states are "0", "1", and "Z". Commonly referred to as tristate logic (a trademark of
National Semiconductor National Semiconductor was an American semiconductor manufacturer which specialized in analog devices and subsystems, formerly with headquarters in Santa Clara, California. The company produced power management integrated circuits, display drive ...
), it comprises the usual true and false states, with a third ''transparent'' high impedance state (or 'off-state') which effectively disconnects the logic output. This provides an effective way to connect several logic outputs to a single input, where all but one are put into the high impedance state, allowing the remaining output to operate in the normal binary sense. This is commonly used to connect banks of computer memory and other similar devices to a common
data bus In computer architecture, a bus (shortened form of the Latin '' omnibus'', and historically also called data highway or databus) is a communication system that transfers data between components inside a computer, or between computers. This ex ...
; a large number of devices can communicate over the same channel simply by ensuring only one is enabled at a time. While outputs can have one of three states, inputs can only recognise two. Although it could be argued that the high-impedance state is effectively an "unknown", there is no provision in most electronics to interpret a high-impedance state as a state in itself. Inputs can only detect "0" and "1". When a digital input is left disconnected, the digital value interpreted by the input depends on the type of technology used. TTL technology will reliably default to a "1" state. On the other hand,
CMOS Complementary metal–oxide–semiconductor (CMOS, pronounced "sea-moss", ) is a type of metal–oxide–semiconductor field-effect transistor (MOSFET) fabrication process that uses complementary and symmetrical pairs of p-type and n-type MOSFE ...
technology will temporarily hold the previous state seen on that input (due to the
capacitance Capacitance is the capability of a material object or device to store electric charge. It is measured by the change in charge in response to a difference in electric potential, expressed as the ratio of those quantities. Commonly recognized are ...
of the gate input). Over time, leakage current causes the CMOS input to drift in a random direction, possibly causing the input state to flip. Disconnected inputs on CMOS devices can pick up
noise Noise is unwanted sound considered unpleasant, loud or disruptive to hearing. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrations through a medium, such as air or water. The difference arise ...
, they can cause
oscillation Oscillation is the repetitive or periodic variation, typically in time, of some measure about a central value (often a point of equilibrium) or between two or more different states. Familiar examples of oscillation include a swinging pendulum ...
, the supply current may dramatically increase (crowbar power) or the device may completely destroy itself.


See also

*
Four valued logic In logic, a four-valued logic is any logic with four truth values. Several types of four-valued logic have been advanced. Belnap Nuel Belnap considered the challenge of question answering by computer in 1975. Noting human fallibility, he was conc ...
*
IEEE 1364 Verilog, standardized as IEEE 1364, is a hardware description language (HDL) used to model electronic systems. It is most commonly used in the design and verification of digital circuits at the register-transfer level of abstraction. It is also ...
defines a four-valued logic (among other things)


References

* * {{IEEE standards IEEE standards IEEE DASC standards Hardware description languages