Ch1.COA Tutorial
Ch1.COA Tutorial
1985
Time Frame 1942-1955 1955-1964 1964-1975 1975 - 1985
onwards
Integrated
LSI (Large VLSI (very
Circuit Vacuum Circuit
Transistor scale Large scale
Component Tube (Silicon
Integration ) Integration)
Chip)
Magnetic
Internal drum, Tape Magnetic Magnetic Integrated Integrated
Storage & Punched Cores Disks Circuits Circuits
cards
Memory
Capacity 4,000 32,000 128,000 100 million >100 million
(Characters)
IBM 360,
Popular IBM 650, IBM-1401, IBM 303X,
Honeywell ?
computers Univac – I CDC 36000 Univac 6000
200
Fundamental Building Blocks
LOGIC GATES
• Logic gates are the basic building blocks of a digital
computer.
• Logic gates are digital circuits that have two or more logic
inputs/electronic signals(except for NOT gate) and produce
a single output with a logic level based on the input.
• The input and output logic levels applied to these gates are
represented as Boolean variables.
Truth table
• A truth table is a table that describes the behavior of a logic
gate.
• It lists the value of the output for every possible
combination of the inputs and can be used to simplify the
number of logic gates and level of nesting in an electronic
circuit.
• Number of combinations or rows for truth table:
2n = Number of inputs combinations / row
n = number of inputs
2 = means binary number (0 or 1), constant
Two input truth table: 2n = 22 = 4 rows / combinations
Let us consider variables A and B for input, and Out for
output.
A B Out
0 0
0 1
1 0
1 1
Basic Logic Gates
• AND Gate
• An AND gate is an electronic circuit that generates an output signal of
1 only if all input signals are 1.
• An AND gate is the physical realization of logical multiplication.
• AND gate can have more than two inputs.
• The output of the AND gate with inputs A, B, and C is 1 only if A, B and C
are 1.
05/20/2025 18
INPUT OUTPUT
A B Q= A.B
0 0 0
1 0 0
0 1 0
1 1 1
Cont’d
• OR Gate
A or B or C is a 1.
05/20/2025 20
INPUT OUTPUT
A B Q= A+B
0 0 0
0 1 1
1 0 1
1 1 1
Cont’d
• NOT gate
• NOT gate is an electronic circuit that generates an output
signal which is the reverse of the input signal.
• A NOT gate is the physical realization of the
complementation or logical inversion.
• A NOT gate is also known as an inverter because it inverts
the input.
• A NOT gate always has a single input.
• Connecting two NOT gates in series gives an output equal to
the input.
05/20/2025 22
INPUT OUTPUT
A Q= A
0 1
1 0
Cont’d
• NOR GATE (Combines OR and NOT)
• A NOR gate is an electronic circuit that generates an output
signal of 1 when all input signals are 0 and it will be a 0 if
any input represents a 1.
• NOR gate is a complemented OR gate.
• The symbol is used to represent NOR operation in Boolean
expression. Thus
A B = (A+B)= A.B
• The NOR gate can then be seen to be an OR gate followed by a
NOT gate.
05/20/2025 24
A B Q= A.B
0 0 1
1 0 0
0 1 0
1 1 0
• NAND GATE (Combines AND & NOT)
• A NAND gate is an electronic circuit that generates an output
signal of 1 if any one of the input is a 0 and will be a 0 when all
input signals are 1.
• NAND gate is a complemented AND gate.
• The symbol is used to represent NAND operation in Boolean
expression. Thus
A B = (A.B)= A+B
• The NAND gate can then be seen to be an AND gate followed by a
NOT gate.
05/20/2025 26
INPUT OUTPUT
A B Q= A.B+A.B
0 0 0
1 0 1
0 1 1
1 1 0
05/20/2025 27
Logic expressions
Functional Units of Digital System
Input unit
Input units are used by the computer to read the data.
The most commonly used input devices are keyboards, mouse, joysticks,
trackballs, microphones, etc.
Whenever a key is pressed, the corresponding letter or digit is
automatically translated into its corresponding binary code and transmitted
over a cable to either the memory or the processor.
Central processing unit
Central processing unit commonly known as CPU can be referred as an
electronic circuitry within a computer that carries out the instructions given by
a computer program by performing the basic arithmetic, logical, control and
input/output (I/O) operations specified by the instructions.
Memory unit
The Memory unit can be referred to as the storage area in which programs are
kept which are running, and that contains data needed by the running
programs.
The Memory unit can be categorized in two ways namely, primary memory
and secondary memory.
Arithmetic & logical unit
Most of all the arithmetic and logical operations of a
computer are executed in the ALU (Arithmetic and Logical
Unit) of the processor.
It performs arithmetic operations like addition, subtraction,
multiplication, division and also the logical operations like
AND, OR, NOT operations.
Control unit
The control unit is a component of a computer's central
processing unit that coordinates the operation of the
processor.
It tells the computer's memory, arithmetic/logic unit and
input and output devices how to respond to a program's
instructions.
The control unit is also known as the nerve center of a
computer system
Output Unit
The primary function of the output unit is to send the
processed results to the user. Output devices display
Digital Logic Circuits
The digital circuitry in digital computers and other digital systems is
designed, and its behavior is analyzed, with the use of a
mathematical discipline known as Boolean algebra.
Boolean algebra – a symbolic logic invented by English
mathematician George Boole in 1854.
Each variable in Boolean algebra has either of the two values: true
or false.
The original purpose of this two-state algebra was to solve
logic problems.
It is ideally suited to digital circuit analysis.
05/20/2025 32
Basic Theorems
A+B=B+A AB = BA
A + (B +C) = (A +B) + C A (BC) = (AB) C
A (B + C) = AB +AC A + BC = (A + B) (A + C)
A+0=A A*1=A
A+1=1 A*0=0
A+A=A A*A=A
A + A’= 1 A * A’ = 0
(A’)’ = A A’’ = A
(A + B)’ = A’B’ (AB)’ = A’ + B’
A + AB = A A (A + B) = A
A + A’B = A +B A (A’ + B) = AB
Simplification Using Boolean Algebra
• A simplified Boolean expression uses the fewest gates
possible to implement a given expression.
AB+A(B+C)
B +B(B+C)
C
05/20/2025 34
EXAMPLES:
1. Y = AB’ +AB
= A ( B’ +B )
=A
2. Y = AB + AC + BD + CD
=A(B+C)+D(B+C)
= ( A + D ) ( B + C)
3. Z = ( A’ + B ) ( A + B )
= A’A + A’B + BA + BB
= 0 + A’B + BA + BB
= A’B + BA + B
= B ( A’ + A + 1)
=B
Map Simplification
• The Map method involves a simple, straightforward
map.
• Each combination of the variables in a truth table is called
a mid-term.
• When expressed in a truth table a function of n variables will
05/20/2025 40
The Standard SOP Form
• A standard SOP expression is one in which all the
variables in the domain appear in each product term in
the expression.
• Example:
AB CD A B CD ABC D
• Standard SOP expressions are important in:
• Constructing truth tables
Converting Product Terms to Standard SOP
• Step 1:
• Multiply each nonstandard product term by a term
made up of the sum of a missing variable and its
complement.
• This results in two product terms.
• As you know, you can multiply anything by 1 without
changing its value.
• Step 2:
• Repeat step 1 until all resulting product term contains
all variables in the domain in either complemented or
uncomplemented form.
• In converting a product term to standard form, the number
of product terms is doubled for each missing variable.
Cont’d
• Example
• Convert the following Boolean expression into standard
SOP form:
AB C A B ABC D
AB C AB C ( D D ) AB CD AB CD
A B A B (C C ) A B C A B C
A B C ( D D ) A B C ( D D ) A B CD A B CD A B C D A B C D
AB C A B ABC D AB CD AB CD A B CD A B CD A B C D A B C D ABC D
POS
• Multiplication of two or more integers and the result we get is known
as the Product of the Sum. It is a crucial component of mathematics
and has many uses. The product of a Sum is a function that computes
the product of two or more numbers.
• For getting the standard POS form of the given non-standard POS
form, we will add all the variables in each product term that do not
have all the variables. By using the Boolean algebraic law (x * x' = 0)
and by following the below steps, we can easily convert the normal
POS function into a standard POS form.
By adding each non-standard sum term to the product of its missing
variable and its complement, which results in 2 sum terms
Applying Boolean algebraic law, x + y z = (x + y) * (x + z)
By repeating step 1, until all resulting sum terms contain all variables
• By these three steps, we can convert the POS function into a standard
POS function.
Combinational Circuits
• A combinational circuit comprises of logic gates whose
following steps:
• The problem is stated.
• The total number of available input variables and required output variables is
determined.
• The input and output variables are allocated with letter symbols.
• The exact truth table that defines the required relationships between inputs and
outputs is derived.
• The simplified Boolean function is obtained from each output.
• 'x' and 'y' are the two inputs, and S (Sum) and C (Carry) are the two
outputs.
• The Carry output is '0' unless both the inputs are 1.
• 'S' represents the least significant bit of the sum.
Full - Adder
• This circuit needs three binary inputs and two binary outputs.
• S-R flip-flop
• J-K Flip-Flop
• T Flip-Flop
• SR Flip Flop
This is the most common flip-flop among all.
This simple flip-flop circuit has a set input (S) and a reset input (R).
In this system, when you Set “S” as active, the output “Q” would be high,
and “Q‘” would be low.
Once the outputs are established, the wiring of the circuit is maintained
until “S” or “R” go high, or power is turned off.
The first input condition in the table is R=0, S=0. Since 0 input has no effect on its
output, the Flip-Flop retains its previous state. Hence Q remains unchanged.
The second input condition R=0, S=1 forces the output of NOR gate2 low.
This low output will reach NOR gate1 and when both inputs of NOR gates1 is low, its
Thus, a 1 at the S input will SET the flip-flop and Q will be equal to 1.
The third input condition R=1, S=0 will force the output of NOR gate1 to low.
This low will reach NOR gate2 and forces its outputs to high. Hence, when R=1, S=0, then Q=0, Q=1.
The last input condition in the table R=1, S=1 is forbidden since it forces both the NOR gates to the
low state, means both Q=0, and Q=0 at the same time, which violets the basic definition of flip-flop
Fan-in
For a given logic family, the maximum number of inputs
available on any one gate is called the fan-in.
Fan-in
N
05/20/2025 73
Fan-out
The fan-out of a logic gate is the number of inputs
that the gate can drive without exceeding its worst-
case loading specs.
Fan-out
N
05/20/2025 74
Propagation Delay
• Propagation delay is the time for a change on an input of a gate
to propagate to the output.
• Delay is usually measured at the 50% point with respect to the
H and L output voltage levels.
• High-to-low (tPHL) and low-to-high (tPLH) output signal changes
may have different propagation delays.
• High-to-low (HL) and low-to-high (LH) transitions are defined
with respect to the output, not the input.
• An HL input transition causes:
• an LH output transition if the gate inverts and
`
END of chapter one!!
Read more to get more concepts