Logic Circuits - Simpler
Logic Circuits - Simpler
COLLEGE OF COMPUTING
Digital Signals
• In a nutshell, a digital signal refers to a 0 (False) or a 1 (True)
• In electronics, digital signal 1 indicates a small voltage
• While digital signal 0 indicates no voltage
• Example:
1 (3V)
1 0 0 1 0 1 1 0
0 (0V)
=A⊕B
= A×B
Full-Adders
• 2 Half Adders and an OR gate is required to implement a Full Adder.
• From this, larger adders are developed for multi-bit binary numbers (i.e. ALUs)
Full-Adders
⊕ (A ⊕ B)
(A ⊕ B)
AB + (A ⊕ B)
AB
Sequential Logic
• A sequential circuit consists of a feedback path, and employs some memory
elements.
• In essence,
• Sequential circuit = Combinational logic + Memory Elements
Combinational Memory
logic elements
External inputs
Memory Elements
• Two types of triggering/activation:
Positive pulses
• pulse-triggered
• edge-triggered
• Pulse-triggered
Positive edges Negative edges
• latches
• ON = 1, OFF = 0
• Edge-triggered
• flip-flops
• positive edge-triggered (ON = from 0 to 1; OFF = other time)
• negative edge-triggered (ON = from 1 to 0; OFF = other time)
Set-Reset (S-R) Flip Flop
• Digital circuit component used in electronics and digital logic circuits
to store one bit of data.
• Asynchronous
• Two inputs and Two outputs
• When Q is HIGH, SET state is on.
S R Q Q' State
• When Q is LOW, RESET state is on.
0 0 NC NC No change. OP
• R=HIGH (and S=LOW) is a RESET state remained in present
• S=HIGH (and R=LOW) is a SET state state.
1 0 1 0 SET.
• Both inputs LOW a no change 0 1 0 1 RESET.
• Both inputs HIGH a Q and Q’ are invalid! 1 1 0 0 Invalid condition.
Any Questions?