Algebra Report (Logic Gates)
Algebra Report (Logic Gates)
FACULTY OF ENGINEERING
Basic Concepts
Logic Gates
BASIC CONCEPTS
Digital Electronics
• Digital electronic circuits, are electronics that represent signals by
discrete bands of analog levels, rather than by continuous ranges (as
used in analogue electronics).
4
Digital Electronics..
Advantages:
• Digital techniques are useful because it is easier to get an electronic
device to switch into one of a number of known states than to
accurately reproduce a continuous range of values.
• Signals represented digitally can be transmitted without degradation
due to noise.
• Computer-controlled digital systems can be controlled by software,
allowing new functions to be added without changing hardware.
Disadvantage:
• In some cases, digital circuits use more energy than analog circuits to
accomplish the same tasks, thus producing more heat which
increases the complexity of the circuits such as the inclusion of heat 5
sinks.
Digital Electronics…
• A digital circuit is often constructed from small electronic
circuits called logic gates that can be used to create
combinational logic.
• Each logic gate represents a function of boolean logic.
• A logic gate is an arrangement of electrically controlled
switches, better known as transistors.
• Logic gates often use the fewest number of transistors in
order to reduce their size, power consumption and cost, and
increase their reliability.
• Integrated circuits are the least expensive way to make logic
gates in large volumes. Integrated circuits are usually designed
by engineers using electronic design automation software 6
Classification of Integrated Circuits
• Small Scale Integration or (SSI) – Contain up to 10 transistors or a few
gates within a single package such as AND, OR, NOT gates.
• Medium Scale Integration or (MSI) – between 10 and 100 transistors or
tens of gates within a single package and perform digital operations
such as adders, decoders, counters, flip-flops and multiplexers.
• Large Scale Integration or (LSI) – between 100 and 1,000 transistors or
hundreds of gates and perform specific digital operations such as I/O
chips, memory, arithmetic and logic units.
• Very-Large Scale Integration or (VLSI) – between 1,000 and 10,000
transistors or thousands of gates and perform computational operations
such as processors, large memory arrays and programmable logic
devices.
• Super-Large Scale Integration or (SLSI) – between 10,000 and 100,000
transistors within a single package and perform computational
operations such as microprocessor chips, micro-controllers, basic PICs
and calculators.
• Ultra-Large Scale Integration or (ULSI) – more than 1 million transistors – 7
the big boys that are used in computers CPUs, GPUs, video processors,
micro-controllers, FPGAs and complex PICs.
LOGIC GATES
8
BASIC LOGIC BLOCK (GATE)
Binary Binary
Digital Gate Digital
Input .. Output
.
Signal Signal
10
NOT Gate – Inverter..
• Transistor NOT Gate
• 7404 NOT Gate or Inverter
11
OR Gate
If either A or B is true, then Q is true
12
OR Gate
• Multi-input OR Gate
13
AND Gate
If both A and B are true,
then Q is true
14
AND Gate
15
OR/AND Gates using
diodes
74xx IC
• 7432 Quad 2-input Logic OR Gate • 7408 Quad 2-input AND Gate
17
NOR Gate
7402 Quad 2-input NOR Gate
18
NAND Gate
7400 Quad 2-input Logic NAND Gate
NOR & NAND Universal Gate
• Any gate can be constructed using them.
20
XOR and XNOR
Gates
21
Truth Table Summary
EXAMPLES OF LOGIC CIRCUITS
22
Example of a Logic Function
3- input majority function • Logical expression form
A B C F F=AB+BC+AC
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1 24
Multiplexers
• An Example of Combinational Circuit
• Output depends only on the current inputs
4- data input MUX
• Multiplexer
• 2n data inputs
• n selection inputs
• a single output
• Selection input
determines the input
that should be
connected to the output
25
SR Latch
• A Sequential example
• Output depends on current as well as past inputs
26
• For more details, refer to:
• Digital Logic Tutorial, found online at
http://www.electronics-tutorials.ws/logic/logic_1.html
• Other Digital Logic online Tutorials & wiki.
• Reference books:
• M. Mano, Digital-Design, 4th ed.
• Fundamentals of Computer Organization and Design.
• For inquires, send to:
• [email protected]
27