Documente Academic
Documente Profesional
Documente Cultură
DIGITAL LOGIC
LINKS:
Computers
PC:>
.
AND Logic Function using Doors OR Logic Function
Explanation
Explanation
......
..
Positive Logic, Negative Logic Explained using Doors & Switches
In this animated AND Logic example of Doors Opening and Closing, you can see that in order
for the "Light" to get through the house, the front door AND the back door must be Open.
Same example: if either the front door OR the back door is Closed the light does NOT get
through.
In this animated OR Logic example, you can see that in order to get light through the house: the
left front door OR the right front door (or both) must be Open.
Same example: in order to block the light through the house: the left front door AND the right
front door must be Closed.
..
In order for the Output of an AND Logical Function to be TRUE: input (1) AND input (2) must
both be TRUE. This is Positive Logic. Hint: TRUE is when the switch is closed, applying power to the LED. FALSE is when the
switch is open, NOT applying power to the LED)
Truth Table->
A & B are the Input switches
C is the Output LED
Using the Same Function --It is also correct to say: If either input (1) OR input (2) (or both) is
NOT TRUE the Output Will be FALSE. This is Negative Logic.
In order for the Output of an OR Logical Function to be TRUE: either
input (1) OR input (2) (or both) must be TRUE. This is Positive Logic.
Truth Table->
A & B are the Input switches
C is the Output LED
Using the Same Function --It is also correct to say: In order for the Output to be FALSE: input
(1) AND input (2) must both be FALSE. This is Negative Logic.
..
Remember:
1) A Positive AND gate is a Negative OR gate
2) A Positive OR gate is a Negative AND gate
..
Positive Logic Gates Animate Me Negative Logic Gates TOP
..
Exclusive OR (XOR)
In order for the Output of an XOR Logical Function to be TRUE: input (1) & input (2) must both
Different 01, 10. This is Positive Logic.
Truth Table->
A & B are the Input switches
C is the Output LED
Using the Same Function --It is also correct to say: In order for the Output to be FALSE: input (1)
& input (2) must both be Identical 11, 00. This is Negative Logic.
..
Flip-Flop in-- Flip-Flop in-- Flip-Flop in--
..
Binary-Decimal-Real Values
..
Binary Codes
Number Decimal Two's One's Sign + Offset
fraction complement complement magnitude binary
..
Glossary TOP
NOT = INVERSION
That is: if a FALSE is Inverted (NOT), it becomes a TRUE
Likewise: if a TRUE is Inverted (NOT), it becomes a FALSE.
A NOT or Inversion is usually indicated by a Bubble, on either the input or the output of a logic
gate symbol.
The convention (which is not always adhered to) is that a POSITIVE Gate Inversion is indicated
by a bubble on the output, and with Negative logic the bubble is at the input.
See Symbol Examples
..
Logic Families' Propagation Delay Specs TOP
by Charles Toth
..
"Real World" DOs & DON'Ts
WARNING:
NEVER EVER USE the original generic 7400 DEVICE.
INSTEAD: Use anything else, e.g., 74LS, 74ALS, etc.
The older devices require five to ten times the drive power and force very LARGE amounts of
NOISE on to the Vcc rail! --This is NOT GOOD!
Remember, the newer the technology the happier the circuit will be--well almost!
Chapter 3 Notes
1. 3.1 Representation of binary values
○ Real logic devices receive input and produce output in the form of
voltages.
○ Necessary to define a voltage representation for binary logic values 0
and 1.
○ Positive logic represents True or 1 with a high voltage and False or 0
with a low voltage.
○ Negative logic represents True or 1 with a low voltage and False or 0
with a high voltage.
○ The following repeats the Light switch example, adding voltage
representation.
○ Positive
Negative
○ A B |LIGHT A B| LIGHT Ab Bb| LIGHTb A B| LIGHT A B|
LIGHT
○ Down Down| OFF F F| F 0 0 | 0 L L| L H H|
H
○ Down Up | ON F T| T 0 1 | 1 L H| H H L|
L
○ Up Down| ON T F| T 1 0 | 1 H L| H L H|
L
Up Up | OFF T T| F 1 1 | 0 H H| L L L|
H
○ Interestingly, a positive logic OR device also implements a negative
logic AND as seen in the following:
○ Input Output Positive Negative
○ Voltage Voltage Logic Logic
○ x y | z x y | z x y | z
○ L L | L 0 0 | 0 1 1 | 1
○ L H | H 0 1 | 1 1 0 | 0
○ H L | H 1 0 | 1 0 1 | 0
○ H H | H 1 1 | 1 0 0 | 0
OR AND
2. 3.2 Structure and Operation of CMOS gates
○ Can model transistor operation as switch that is opened or closed by a
control voltage. In the left diagram, with the gate to Ground open there
is greater resistance to Ground than to positive Vdd voltage, the
voltage at Output is Vdd. In the right diagram, with the gate to Ground
closed there is less resistance to the Ground than to positive Vdd
voltage, the voltage at Output is low.
○ 3.2.3 Other Logic - Other popular logic devices such as AND, OR,
NAND, NOR, etc. can be constructed. The following device must have
both A and B input high to connect the Output to Ground or low. If
either A or B is low, then Output is connected to Vdd or high voltage.
Using positive logic it is a NAND gate, negative logic it acts as a NOR.
AND OR NAND NOR
+ | - - | + + | + - | -
Voltage
A B | A B | A B | A B |
A B | Output
Output Output Output Output
L L | H
0 0 | 0 1 1 | 1 0 0 | 1 1 1 | 0
L H | H
0 1 | 0 1 0 | 1 0 1 | 1 1 0 | 0
H L | H
1 0 | 0 0 1 | 1 1 0 | 1 0 1 | 0
H H | L
1 1 | 1 0 0 | 0 1 1 | 0 0 0 | 1
○ The following device, when either A or B are high, Output is low. Using
positive logic it is a NOR gate, negative logic it acts as a NAND.
OR NOR NAND
AND
- | - |
+ -
A B | A B |
+ | - + | +
Voltage Output Output
A B | A B |
A B | Output 1 1 | 1 1 |
Output Output
L L | H 1 0
0 0 | 0 0 0 | 1
L H | L 1 0 | 1 0 |
0 1 | 1 0 1 | 0
H L | L 0 1
1 0 | 1 1 0 | 0
H H | L 0 1 | 0 1 |
1 1 | 1 1 1 | 0
0 1
0 0 | 0 0 |
0 1
○ In contrast to the
simulation
showing that input
and output
voltages change
instantly from low
to high or high
to low, due to
capacitance
(charging and
discharging of the
device), the inputs
and outputs require time to reach low or high voltage. The time to
propagate a high to low change is tpHL and the time to propagate a low
to high change is tpLH. The propagation time usually considered the
interval from 50% of the input signal change to 50% of the output
signal change. The diagram of A input and NOT A output at right
illustrates this behavior. Because device charge and discharge times
may differ, tpHL and tpLH may differ, though generally the greater the
capacitance, the greater the propagation delay.
○ Unfortunately propagation delays are cumulative in a series of gates. If one NOT
gate delays the signal change by 7.5 ns., two NOT gates in series delay the signal
change by 15 ns., three by 22.5 ns., 4 by 30 ns., etc.
The noise margin is the voltage difference between what the input will tolerate
and what the output produces. A device that requires a minimum high voltage for
input of 2.0 volts and outputs a high voltage of 3.0 volts has a noise margin of 1.0
volts for high.
○ 3.6 Buses and Three-state Drivers - For the devices seen so far,
outputs cannot be connected together. But for busing applications
several devices must supply input on a common wire (computer
systems have many devices connected to the CPU via a common bus).
The devices, in addition to the two binary states where 0 or 1 is output,
can be disconnected from the output. As long as only a single device is
connected to the common wire at a time, there is no conflict. These
very useful devices are known as three or tri-state devices since they
have 0 or 1 state when selected and disconnect state when not
selected (disconnect is represented by Z for high-impedence). The