S2 - Cse231 - Summer 2024 - Muu
S2 - Cse231 - Summer 2024 - Muu
S2 - Cse231 - Summer 2024 - Muu
Property AND OR
Commutative AB=BA A+B=B+A
Associative (AB)C=A(BC) (A+B)+C=A+(B+C)
Distributive A(B+C)=AB+AC A+(BC)=(A+B)(A+C)
Identity A1=A A+0=A
Complement A(A’)=0 A+A’=1
DeMorgan’s Law (AB)’=A’ + B’ (A+B)’=A’B’
Boolean Algebra: Basic Theorems
The theorems and postulates listed are the most basic relationships in Boolean algebra.
Postulates and Theorems of Boolean Algebra are:
Proof
Proof
Proof
Proof
Example:
Simplify the following Boolean functions to a minimum number of literals.
1. x(x + y) = xx + xy = 0 + xy = xy.
2. x + xy = (x + x)(x + y) = 1(x + y) = x + y.
3. (x + y)(x + y) = x + xy + xy + yy = x(1 + y + y) = x.
4. xy + xz + yz = xy + xz + yz(x + x) = xy + xz + xyz + xyz = xy(1 + z) + xz(1 + y) = xy
+ xz.
5. (x + y)(x + z)(y + z) = (x + y)(x + z), by duality from function 4.
Example:
Simplify the following Boolean functions to a minimum number of literals.
1. x(x + y) = xx + xy = 0 + xy = xy.
2. x + xy = (x + x)(x + y) = 1(x + y) = x + y.
3. (x + y)(x + y) = x + xy + xy + yy = x(1 + y + y) = x.
4. xy + xz + yz = xy + xz + yz(x + x) = xy + xz + xyz + xyz = xy(1 + z) + xz(1 + y) = xy
+ xz.
5. (x + y)(x + z)(y + z) = (x + y)(x + z), by duality from function 4.
Complement of a Function
The complement of a function F is F’ and is obtained from an interchange of 0’s
for 1’s and 1’s for 0’s in the value of F.
DeMorgan’s theorems can be extended to three or more variables. The three‐
variable form of the first DeMorgan’s theorem is derived as follows:
(A+B+C)’=(A+x)’=A’x’=A’(B+C)’= A’B’C’
• Examples:
• Y =A.B is read “Y is equal to A AND B.”
• Z=X+Y is read “Z is equal to X OR Y.”
• X=A’ is read “X is equal to NOT A.”
Logic Symbol-
The logic symbol for OR Gate is as shown below-
Truth Table- Timing Diagram-
The truth table for OR Gate is as shown The timing diagram for OR Gate is as shown
below- below-
Universal Logic Gates-
Universal logic gates are the logic gates that are capable of implementing any Boolean
function without requiring any other type of gate.
They are called as “Universal Gates” because- They can realize all the binary operations.
All the basic logic gates can be derived from them.
They have the following properties-
Universal gates are not associative in nature.
Universal gates are commutative in nature.
There are following two universal logic gates-
Universal Logic Gates: NAND Gate-
Logic Symbol-
The logic symbol for NOR Gate is as shown below-
Truth Table- Timing Diagram-
The truth table for NOR Gate is as shown below- The timing diagram for NOR Gate is as shown below-
XOR Gate
An XOR gate accepts two input signals
If both are the same, the output is 0; otherwise, the output is 1
EX-OR Gate
Note the difference between the XOR gate
and the OR gate; they differ only in one input situation
When both input signals are 1, the OR gate produces a 1 and the XOR produces a 0
XOR is called the exclusive OR
EX-NOR Gate
EXNOR gate means exclusive NOR gate and is
a combination of X-OR and NOT gate. It also
has two inputs and one output. When both the
inputs are at 0, the output of the EXNOR gate
will be high i.e.1. If one of the input is 0 and the
other is 1 the output will be 0, and the gate is
known as Coincidence gate.
Draw a circuit diagram for f= (xy' + x'y)z.
38
Draw a circuit diagram for f= (xy' + x'y)z.
39
Find the Boolean expression for the following circuit
40
The Boolean expression that represent the circuit in the following
Figure is yz+x(yz’+y’z)
41
Example:
42
A circuit for two light switches
EXAMPLE
F(x,y)=1 when the light is on
• F(x,y)=0 when the light is off
• When both switches are closed, the light is on:
F(1,1)=1, this implies
• When we open one switch, the light is off:
F(1,0)=F(0,1)=0
• When the other switch is also open, the light is on:
F(0,0)=1
43
Thus, we get:
x y F(x,y)
Which Boolean expression is given by F?
1 1 1
1 0 0 F(x,y) = xy + x'y'
0 1 0
0 0 1
Draw a circuit for F,
i.e., a circuit to control two light switches.
44
EXAMPLE:
45
EXAMPLE:
46
47
48
49
50
51
52
53
Logical Gates and Combinatorial Circuits
• A NOT gate can
be implemented
using a NAND
gate (a).
• An OR gate can be
implemented
using NAND gates
(c).
54
Canonical and Standard Form : Minterms and Maxterms
A binary variable may appear either in its normal form (x) or in its complement form
(x).
Now consider two binary variables x and y combined with an AND operation.
Since each variable may appear in either form, there are four possible combinations:
xy, x’y, xy’, and x’y’.
Each of these four AND terms is called a minterm, or a standard product.
In a similar manner, n variables can be combined to form 2n minterms.
The 2n different minterms may be determined by a method similar to the one shown in
a Table (next slide) for three variables.
Canonical and Standard Form : Minterms and Maxterms
The binary numbers from 0 to 2n - 1 are listed under the n variables.
Each minterm is obtained from an AND term of the n variables, with each variable
being primed if the corresponding bit of the binary number is a 0 and unprimed if a 1.
A symbol for each minterm is also shown in the table and is of the form mj , where the
subscript j denotes the decimal equivalent of the binary number of the minterm
designated.
A Boolean function can be expressed algebraically from a given truth table by
forming a minterm for each combination of the variables that produces a 1 in the
function and then taking the OR of all those terms.
Canonical and Standard Form : Minterms and Maxterms
=M4M6M2
=∏(M4M6M2)
=∏M (2,4,6)
Product of Maxterm 2, 4, 6
Canonical Forms
Example in slide 3 and 4 ∑m(0,1,3.5,7) =∏M (2,4,6)
In general ∑m({x}) =∏M ({y})
Where
Proof:
Canonical/Standard Forms
There are two types of standard forms:
• Sum of products (SOP) and
• Products of sums (POS).
Sum of Product (SOP)
0
1 SOP form POS form Directly written
0 from Truth Table
1
Each minterm is having all the
1 Canonical/ Standard form variable or complemented form
F=x’yz’+xy’z’+xy’z+xyz’+xyz
= x’yz’+xy’[z’+z]+xy[z’+z]
=x’yz’+xy’+xy
Each minterm does not have all the variables
=x’yz’+x[y’+y]
in normal or complemented form = x’yz’+x
Minimal SOP form = x+yz’ [Distributed law A+A’B=A+B)]
Standard Forms: Two‐level implementation
y’+x’yz’+xy
Standard Forms: Conversion from other form
A Boolean function may be expressed in a nonstandard form
Example: F3 = AB + C(D + E)
Neither in sum‐of‐products nor in product‐of‐sums form.
Sum of Product
3-> 2 level
Two-level produces the least amount of delay through the gates when the
signal propagates from the inputs to the output.
Constructing Gates
Transistor
A device that acts either as a wire that conducts electricity or as a resistor that
blocks the flow of electricity, depending on the voltage level of an input signal
A transistor has no moving parts, yet acts like a switch
It is made of a semiconductor material, which is neither a particularly good
conductor of electricity nor a particularly good insulator
How is the behavior implemented
B
E
Circuits
Combinational Circuit
• The input values explicitly determine the output
Sequential Circuit
• The output is a function of the input values and the existing state of the circuit
THANKS