Professional Documents
Culture Documents
Lecture5 CENG241 Fall2015
Lecture5 CENG241 Fall2015
Lecture5 CENG241 Fall2015
Digital Design 1
Lecture 5
Amirali Baniasadi
amirali@ece.uvic.ca
This Lecture
HW 2 Announced.
2
Three-input XOR Function
F = A XOR B XOR C
Multiple input XOR is 1 only if the number of 1 variables is odd: ODD function
3
ODD Function Implementation
4
Four-input XOR Function
5
Parity Generation and Checking
Parity bit is included in the message to make the number of 1s either odd
(odd parity) or even (even parity).
6
Parity Generation and Checking circuits
7
Combinational Logic
8
Design Procedure
9
Design Procedure example
Binary Adder-Subtractor
10
Half Adder circuit
11
Full Adder?
Truth Table:
xyz CS
000 00
001 01
010 01
011 10
100 01
101 10
110 10
111 11
12
Full Adder Map
13
Full Adder Circuit
14
Full Adder Circuit
Half adder ?
15
4-bit Adder Circuit
16
Binary Subtractor
A-B= A + B’+1
17
4-bit adder subtractor
18
Binary Multiplier
19
Binary Multiplier
20
4-bit by 3-bit Binary Multiplier
B3 B2 B1 B0
A2 A1 A0
21
HW 2
22