Gates
Gates
Digital Systems
Digital Systems
• Binary Quantities and Variables
• Number Systems and Binary Arithmetic
• Numeric and Alphabetic Codes
• Logic Gates
• Boolean Algebra
• Combinational Logic
Introduction
• Digital systems are concerned with digital signals
• Binary signal is the most common form of digital
signals
• Could be used individually
• To represent a single binary quantity or the state of a single switch
• can be used in combination
• To represent more complex quantities
Binary Quantities and Variables
• A binary quantity is one that can take only 2 states
S L
OPEN OFF
CLOSED ON
S L
0 0
1 1
A simple binary arrangement
A truth table
Binary Quantities and Variables
• A binary arrangement with two switches in series
L = S1 AND S2
Binary Quantities and Variables
• A binary arrangement with two switches in parallel
L = S1 OR S2
Binary Quantities and Variables
• Three switches in series
L = S1 AND S2 AND S3
Binary Quantities and Variables
• Three switches in parallel
L = S1 OR S2 OR S3
Binary Quantities and Variables
• A series/parallel arrangement
AB BA A AB A
AB B A A( A B ) A
A(BC ) ( AB )C A AB A B
A (B C ) ( A B ) C A( A B) AB
Combinational Logic
• Digital systems may be divided into two broad categories:
• combinational logic
• where the outputs are determined solely by the current states of the inputs
• sequential logic
• where the outputs are determined not only by the current inputs but also by the sequence of
inputs that led to the current state
• A common example of a circuit employing sequential logic is the flip-flop, also called a bistable
gate.
• A simple flip-flop has two stable states.
• The flip-flop maintains its states indefinitely until an input pulse called a trigger is received.
• If a trigger is received, the flip-flop outputs change their states according to defined rules, and
remain in those states until another trigger is received.
• Implementing a function from a Boolean expression
Example – Implement the function
X A BC
• Implementing a function from a Boolean expression
Example
Implement the function Y AB CD
Assignment - 4
• Generate a Boolean expression from below logic
diagram
Example (continued)
– work progressively from the inputs to the output adding logic
expressions to the output of each gate in turn
• Implementing a logic function from a description
Example
The operation of the Exclusive OR gate can be stated as:
“The output should be true if either of its inputs are true,
but not if both inputs are true.”
This can be rephrased as:
“The output is true if A OR B is true,
AND if A AND B are NOT true.”
X (A B) (AB)
Example (continued)
The logic function
X (A B) (AB)
can then be implemented as before
• Implementing a logic function from a truth table
Example
Implement the function of the following truth table
A B C X – first write down a Boolean
0 0 0 0 expression for the output
0 0 1 1
0 1 0 0
– then implement as before
0 1 1 0 – in this case
1 0 0 0
1 0 1 1
X A BC ABC ABC
1 1 0 1
1 1 1 0
Example (continued)
The logic function X A BC A BC AB C
can then be implemented as before
• In some cases it is possible to simplify logic expressions
using the rules of Boolean algebra
Example can be simplified to
X ABC A BC AC A C X BC A