Number System and Logic Gates
Number System and Logic Gates
• The output (Y) of the AND gate is 1 if and only if both inputs A and B
are 1.
OR Gate:
• The OR gate also takes two or more input signals and produces an
output signal when at least one input signal is high (1). The logic
symbol for an OR gate is:
• The output of the XOR gate is 1 if the inputs A and B are different
(one is 0 and the other is 1).
NAND Gate:
• The NAND gate is a combination of an AND gate followed by a NOT
gate. It produces an output signal that is the inverse of the output from
the AND gate. The logic symbol for a NAND gate is:
• The output of the NAND gate is 0 only when both inputs A and B are 1.
NOR Gate:
• The NOR gate is a combination of an OR gate followed by a NOT
gate. It produces an output signal that is the inverse of the output from
the OR gate. The logic symbol for a NOR gate is:
• The output (Q) of the NOR gate is 1 only when both inputs A and B
are 0.
Boolean Algebra with Logic Gates
• Boolean algebra is a fundamental concept in digital circuit design and
computer science. It's a mathematical system that deals with binary
variables and logical operations. Here's a lesson on Boolean algebra:
• Boolean Variables: In Boolean algebra, variables can have one of two
values: 0 or 1. These values represent "false" and "true," respectively.
• 2. Logical Operators: There are three basic logical operators in
Boolean algebra:
• AND, OR and NOT
Laws of Boolean Algebra:
• Identity Law:
• A+0=A
• A.1=A
• Null Law
• A + A’ =1
• A .A’ =0
• Domination Law
• A + 1= 1
• A.0=0
• The Absorption Law
• A+(A⋅B)=A
• A.(A+B)=A
Laws of Boolean algebra
•Idempotent Laws:
•A + A = A
•A · A = A
•Commutative Laws:
•A + B = B + A
•A · B = B · A
•Associative Laws:
•(A + B) + C = A + (B + C)
•(A · B) · C = A · (B · C)
•Distributive Laws:
•A · (B + C) = (A · B) + (A · C)
•A + (B · C) = (A + B) · (A + C)
•De Morgan's Laws:
•(A + B)' = A' · B'
•(A · B)' = A' + B'
Variables: