0% found this document useful (0 votes)
12 views23 pages

COA Chapter 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views23 pages

COA Chapter 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Chapter Two

Digital logic circuits

e-mail: alula.taf@gmail.com

1
Objective

• The main objective of this chapter is:


• To introduce student the fundamental knowledge needed for the design
of digital systems constructed with individual gates and flip-flops.
• Outline
• Logic gates: AND,OR,NOT ,NAND,NOR,XOR
• Boolean Algebra
• Combinational circuits: half adder , Full adder, decoders and Encoders,
Multiplexers
• Sequential Circuits: Flip-Flops, registers

2
Logic agates : AND,OR,NOT ,NAND,NOR,XOR
• The manipulation of binary information is done by logic circuit called
“gate”.
• Blocks of H/W that produce signals of binary 1 or 0 when input logic
requirements are satisfied.
• Digital Logic Gates : AND, OR, INVERTER, BUFFER, NAND, NOR, XOR,
XNOR

3
4
Boolean Algebra
• Boolean algebra - Deals with binary variable (A, B, x, y: T/F or
1/0) + logic operation (AND, OR, NOT…)
• Boolean Function: variable + operation
F(x, y, z) = x + y’z
• Truth Table: Relationship between a function and variable

5
Logic Diagram: Algebraic Expression  Logic Diagram

Table: Basic identity of Boolean algebra


6
Combinational circuits: half adder , Full adder, decoders and
Encoders, Multiplexers
• Logic circuits for digital systems may be
• combinational or sequential.
• A combinational circuit consists of logic gates whose outputs at any time
are determined directly from the current combination of inputs without
regard to the previous inputs.
• But sequential circuits employ memory elements (binary cells) in
addition to the logic gates. Their outputs are a function of the inputs and
the state of the memory elements.
• A combinational circuit consists of input variables, logic gates, and
output variables.
• The logic gate accepts signals from the inputs and generates signals to
the outputs.

7
• For n input variables, there are 2n possible combinations of binary
input values.

8
Half adder
• The combinational circuits that performs the arithmetic addition of
two bits.
• Figure: Half adders

• The Boolean function for the two output :

• The logic diagram consists of an exclusive –OR gate and AND gate.

9
Full adder
• It is a combinational circuit that forms the arithmetic sum of three input
bits. It consists of three inputs and two outputs.
• Two of the input variables, denoted by x and y, represents the two
significant bits to be added. The third input, z, represents the carry from
the previous.

Table: Truth- Table for the Full adder

10
• The Boolean function for the carry out parts

• The Boolean function for the sum part:

11
• The Boolean function for the two output:

12
Decoders
• A binary code of n bits is capable of representing up to 2n distinct
elements of coded information.
• So decoders are combinational circuits that convert binary
information from n coded input to maximum of 2n unique outputs.

13
Encoders
• Is digital circuits that perform the inverse operation of the decoders. It
has 2n input lines and n output lines.
• Example: truth table for octal –to- binary encoders

• Its Boolean function can be expressed as

14
Multiplexers
• It is combinational circuits that receives binary information from one of
2n input lines and direct it to a single output line. The selection of a
particular input data line for the output is determined by a set of
selection inputs.
• A 2n–to-1 multiplexer has 2n input and n input selection lines whose bit
combination determine which input data are selected for the output.
Figure: 4-to-1 line multiplexer

15
Table: Function table for 4-to-1 line multiplexer

16
Sequential Circuits: Flip-Flops, counters
• Sequential circuits consist of combinational circuits to which
memory elements are connected to form a feedback path.
• The memory elements are device capable of storing binary
information within them.
• The binary information stored in the memory elements at any
given time defines the state of the sequential circuits.

17
Flip- Flops
• Is storage elements employed in clocked sequential circuits. It is a
binary cell capable of storing one bit of information.
• It has two outputs, one for the normal values and one for the
complement value of the bit stored in it.
• A flip-flop maintains a binary state until directed by the clock pulse
to switch the state. There are a number of different types of flip-
flops.
• There difference among them is in the number of inputs they
possess and the manner in which the inputs affect the binary state.
• The most common types of the FF are:
• SR Flip Flop
• D Flip-Flop
• JK Flip-Flop

18
SR Flip-Flop
• It has three inputs, labeled S (for set), R (for reset), and C (for clock). It has
an output Q and sometimes the flip-flop has the complemented output,
which is indicated with circle at the other output terminals.
Figure SR- Flip-Flops

19
• The operation of the SR Flip-Flop is:
• If there is no signal at the clock input C, the output of the
circuits cannot change irrespective of the values of the input S
and R.
• Only when the clock signal changes from the 0 to 1 can be
affected according to the values of the input S and R.
• If S =1 and R = 0 when C changes from 0 to 1, output Q is set to 1.
• If S = 0 and R =1 when C changes from 0 to 1, output cleared to 0.
• If both S and R are 0 during the clock transition, the output does not
change.
• When both S and R are equal to one, the output is unpredictable
and may go to either 0 or 1, depending on internal timing delays
that occur within the circuit.

20
D (Data) Flip-Flop
• Is a slight modification of the SR flip flops. The D input is
sampled during the occurrence of a clock transition from 0 to 1.
• If D =1, the output of the flip-flop goes to the 1 state, but if D=0
, the output of the flip-flop goes to 0 states.
• Figure: D flip-flops

21
JK Flip-Flop
• It is the refinement of the SR flip-flops in that the indeterminate
states of the SR is defined in the JK type.
• When the input J and K are both equal to 1 , a clock transition
switches the output of the flip flops to the complements state.
Figure: JK flip-flops

22
Registers
• Is a group of flip-flops with each flip-flop capable of storing one
bit of information. An n bit register has a group of n flip-flop and
is capable of storing any binary information of n bits.
Figure: Four bits register

23

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy