Boolean Algebra and Logic Circuits
Boolean Algebra and Logic Circuits
Boolean Algebra and Logic Circuits
Activity:
• Draw up the truth table
including the output at
each gate
HALF ADDER
LOGIC CIRCUI
• Based on the previous diagram now
construct the half adder circuit using only
NOR gates
Activity:
• Draw up the truth table
including the output at
each gate
Sequential Logic Circuits
Flip-Flops
Introduction
• So far the gate we have been using were combinational gate whereby
each gates output ddpende soley on the input
• Sequential gates are those which depend on an input value and the
value of a previous output
SR Flip-Flop
• The SR flip-flop aka latch is an example of a sequential circuit.
• It is constructed with either 2 NOR gate or 2 NAND gates
• The output of an SR circuit are always different from each other
• Meaning the second output is the complement of the first.
• S(set) and R(reset) can never be both 1 because this leads to an
invalid state with both Q and Q’ having value 0.
TRUTH TABLE
SR flip-flop
Activity:
• Draw the SR circuit using
the NAND Gate
• Draw up the truth table
including the output at
each gate
How an SR is used to store data
• SR flip-flop can be used as a storage device for 1 bit and therefore
could be used as a component in RAM because a value is stored but
can be altered. The truth table does
• not contain rows for R=1 and S=1 Because of this the circuit must be
protected from receiving an input signal on R and S
• simultaneously.
• The alternative NAND gate circuit for the SR flip-flop has a similar
structure but the labeling is different.
• The important difference is that setting is achieved with S=0 and R=1
and resetting with R=0 and S=1.
JK Flip-flop
• In addition to the possibility of entering an invalid state there is also
the potential for a circuit to arrive in an uncertain state if inputs do
not arrive at the same time.
• In order to prevent this, a circuit may include a clock pulse input to
increase synchronization of inputs.
• The JK flip-flop is an example of a synchronised circuit.
Circuit symbol
JK Flip-
Flop
• If the circuit is in the unset state with
Q = 0 and Q’ =1 this is stable and self-
consistent as shown by the following
argument:
a. the clock and R both input 0
b. the top-left NAND gate therefore
has output 1
c. this then leads to two 1 inputs to
the top-right NAND gate
d. ensuring that Q = 0.
JK Flip-
Flop
Thank You!!!