Logic Circuits Lecture
Logic Circuits Lecture
● Digital (discrete-valued)
Number Base Conversions
ASCII
- American Standard Code for Information
Interchange
- 7 bits (128 characters)
Binary Logic
(+) Logic (-) Logic
True 1 0
False 0 1
Inverter IC: 7404 (Hex Inverter)
Logic Symbol:
Signals
(+) Logic (-) Logic
1 5V 0V Truth Table:
0 0V 5V
Circuits
(+) Logic (-) Logic
Function: Complementation/Inversion
1 ON/Conducting OFF/
Non-conducting Logical Expression:
0 OFF/ ON/Conducting
Non-conducting 2. OR Gate
- a logic gate that produces a high logic
TRUTH TABLE output when at least one of its inputs is
- table of combination (inputs, output) at logic high level. Note that an OR
𝑛
- number of combination = 2 (n is the number gate may have two or more inputs.
of inputs)
Truth Table:
3. AND Gate
- another basic logic gate whose output
is at a high logic level only when all
inputs are high.
Function: Not - OR Operation
Logical Expression:
5. NAND Gate
- produces a low logic output only if all its
inputs are high. This gate complements
the AND gate’s output. The NAND
AND Gate IC: 7408 (Quad 2-input AND Gate)
simply means NOT AND.
Logic Symbol:
Truth Table:
Truth Table:
4. NOR Gate
- derived from the OR gate. It produces a
high logic output when all inputs are at
a low logic level and a low logic output
when at least one input is at high level.
Function: Not - AND Operation 3-Input Gates
Logical Expression:
6. XOR Gate
- is an “exclusive” OR gate that produces
a high logic output only when one but
not all its inputs is high. When the
inputs are all high or low, the output is
low.
XOR Gate IC: 7486 (Quad 2-input XOR Gate)
Logic Symbol:
Operator Precedence (for evaluating Boolean
expression)
Truth Table: ● NOT
● AND
● OR
7. XNOR Gate
XNOR Gate IC: 74266 (Quad 2-input XNOR Gate)
Logic Symbol:
Truth Table:
➔ X’’ = X
4. Commutative Laws
➔ X+Y=Y+X
➔ X•Y=Y•X
5. Associative Laws
➔ X + (Y + Z) = (X + Y) + Z
➔ X(YZ) = (XY)Z
6. Distributive Laws
➔ X(Y + Z) = XY + XZ
➔ X + YZ = (X + Y) (X + Z)
Universality of Gates: NAND - none of the standard symbols have bubble
on their inputs, all the alternate symbols do
- the standard and alternate symbols for each
gate represent the same physical circuit,
there is no difference in the circuits
represented by the two symbols
- NAND and NOR gates are inverting gates,
and so both standard and alternate symbols
for each will have a bubble on either the
input or the output.
- AND and OR are non-inverting gates, and
so the alternate symbols for each will have
bubbles on both inputs and outputs.
Universality of Gates: NOR
Product Term - a single variable or the logical
product of several variables (A, X’ , A’BC’ , XY’Z)
● 𝐴1𝐴0 ● 𝐴>𝐵
● 𝐵1𝐵0 ● 𝐴<𝐵
● 𝐴=𝐵
Full Subtracter Circuit
5. Parallel Adder
● Binary Parallel Adder - produces the
arithmetic sum of two binary numbers
in parallel
● 4-Bit Full Adder
Single Bit Magnitude Comparator Truth Table 2-Bit Magnitude Comparator Circuit
2x4 Decoder
3x8 Decoder
(can be used for Binary to Octal Conversion)
𝑛
8. Encoder - has 2 input lines and n output
lines
8x3 Encoder
Combinational Logic Implementaion
- any Boolean function can be expressed in
sum of minterms
- use a decoder to generate the minterms and
an external OR gate to form the sum
Latches
- storage elements that operate with signal levels
- level-sensitive devices
- are the basic circuits from which all flip-flops are
constructed
Flip-flops
- controlled by a clock transition
- edge-sensitive devices NAND Latch
- a device with two stable states
- can maintain a binary state indefinitely until
directed by an input signal to switch states
- remains in one of these states until triggered into
the other
3. D Flip-Flop
4. T Flip-Flop
T Flip-Flop Transition Table
Flip-Flop Parameters
( )
● Propagation Delay Time 𝑡𝑝 - this represents
the amount of time it takes for the output of a
gate or flip-flop to change states
● ( )
Setup Time 𝑡𝑆𝐸𝑇𝑈𝑃 - is the minimum length of
time the data bit must be present before the
Level Clocking CLK edge hits
- output of the flip-flop responds during the high ● ( )
Hold Time 𝑡𝐻𝑂𝐿𝐷 - is the minimum length of
(or low) level of the clock signal
time the data bit must be present after the CLK
- positive or negative level clocking
edge has struck
Schematic Symbol:
JK Master-Slave Flip-Flop
Edge Triggering
- the flip-flop produces output only on the rising
(or falling) edge of the clock signal
- positive or negative edge triggering
Schematic Symbol:
Excitation Table
- lists the required inputs for a given change of
state
- is important in the design process to determine
Design Modelling
the flip flop input conditions that will cause the
- the relationship that exists among the inputs,
required transition
outputs, present states, and next states can be
specified by any of the following:
1. State Diagram - a graphical rrepresentation
wherein a state is represented by a circle;
and the transition between states is
indicated by directed lines (or arcs)
connecting the circles.
variables. Other name for Characteristic
Equation.
Registers
- are composed of group of flip flops, each one
shares a common clock and is capable of
storing one bit of information or modify stored
binary word
Counters
- are registers that go through a predetermined
sequence of binary states. It counts the number
of clock pulses arriving at its input