Digital logic
Boolean algebra
Basics
A | B | NOT | AND | OR | XOR | NAND | NOR | XNOR |
---|---|---|---|---|---|---|---|---|
0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 |
0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 |
1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 |
1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 |
Dot | Point | Round |
Laws
Law | Expression |
---|---|
Identity Law | |
Null Law | |
Idempotent Law | |
Complement Law | |
Commutative Law | |
Associative Law | |
Distributive Law | |
Absorption Law | |
De Morgan's Theorem | |
Implementation of boolean function
We can implement any boolean function using either SOP or POS form.
We should use the SOP form if the function is mostly 1s, and POS form if the function is mostly 0s.
Express boolean function as OR of AND terms.
Convert truth table to boolean expression
a | b | c | P |
---|---|---|---|
0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 |
0 | 1 | 0 | 1 |
0 | 1 | 1 | 0 |
1 | 0 | 0 | 1 |
1 | 0 | 1 | 1 |
1 | 1 | 0 | 0 |
1 | 1 | 1 | 1 |
Express boolean function as AND of OR terms.
Convert truth table to boolean expression
a | b | c | P |
---|---|---|---|
0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 |
0 | 1 | 0 | 1 |
0 | 1 | 1 | 0 |
1 | 0 | 0 | 1 |
1 | 0 | 1 | 1 |
1 | 1 | 0 | 0 |
1 | 1 | 1 | 1 |