170 likes | 412 Views
ECE2030 Introduction to Computer Engineering Lecture 5: Boolean Algebra. Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia Tech. What is Boolean Algebra. An algebra dealing with Binary variables by alphabetical letters Logic operations: OR, AND, XOR, etc
E N D
ECE2030 Introduction to Computer EngineeringLecture 5: Boolean Algebra Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia Tech
What is Boolean Algebra • An algebra dealing with • Binary variables by alphabetical letters • Logic operations: OR, AND, XOR, etc • Consider the following Boolean equation • A Boolean function can be represented by a truth table which list all combinations of 1’s and 0’s for each binary value
Fundamental Operators • NOT • Unary operator • Complements a Boolean variable represented as A’, ~A, or Ā • OR • Binary operator • A “OR”-ed with B is represented as A + B • AND • Binary operator • A “AND”-ed with B is represented as AB or A·B • Can perform logical multiplication
B A·B A AB A+B Ā A·B NULL B A+B AB Identity Binary Boolean Operations • All possible outcomes of a 2-input Boolean function
Precedence of Operators • Precedence of Operator Evaluation (Similar to decimal arithmetic) • () : Parentheses • NOT • AND • OR
ABCDE=00000 ABCDE=10000 Function Evaluation
Duality Principle • A Boolean equation remains valid if we take the dual of the expressions on both sides of the equals sign • Dual of expressions • Interchange 1’s and 0’s • Interchange AND () and OR (+)
DeMorgan’s Law
Vdd A C B F B A C Example in Lecture 4
Vdd A C B F B A C Another Way to Draw It