Chapter 3 Notes: 3.1 Representation of Binary Values
Chapter 3 Notes: 3.1 Representation of Binary Values
○ 3.2.2 Inverter or NOT gate - In the above diagram, a high input results in a low
output, a low input results in a high output. The device acts as a voltage inverter.
Using positive logic the voltage representation and graphics symbol would be:
○ 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 AND NOR NAND
+ | - - | + + | + - | -
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 | L
0 1 | 1 1 0 | 0 0 1 | 0 1 0 | 1
H L | L
1 0 | 1 0 1 | 0 1 0 | 0 0 1 | 1
H H | L
1 1 | 1 0 0 | 0 1 1 | 0 0 0 | 1
○ 3.2.4 Positive Logic AND and OR - Constructed by adding an inverter to a
positive logic NAND or NOR.
AND OR
○ 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.
○ Input and Output Loading - An output must drive a voltage for every connected
input. For the same reason that one can connect only a limited number of
appliances to a wall plug before surprising things begin to happen, logic device
outputs can only provide power for a limited number of device inputs.
○ Fanout - The maximum number of inputs that a device can drive. TTL
(Transistor Transistor Logic) compatible device outputs generally can drive 10
TTL inputs, CMOS outputs can drive12 CMOS inputs. Individual device fanout is
stated in terms of standard loads, a TTL device with 2 standard loads could drive
20 inputs, a CMOS device with 3 standard loads could drive 36 CMOS inputs.
○ Fanin - The number of inputs to a device, a two-input AND gate has a fanin of
two. Usually, the larger the number of inputs, the larger the delay.
○ 3.4 - Voltage Variations and Noise Margin - Devices can operate reliably only
within fixed ranges of input voltages. For CMOS, a high is above 2.0 volts, a low
is below 0.8 volts. In between is forbidden for reliable operation so during voltage
transitions the output is unreliable.
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
0 0 | Z
0 1 | Z
1 0 | 0
1 1 | 1
○ Busing - An example of using tri-state devices to connect several outputs A0, A1,
and A2 to the common Output is given below. When Enable2 = 1, Enable0 = 0,
Enable1 = 0, Output is the value of A2 input.