Physics Project
Physics Project
LOGIC GATES
SUBMITTED BY
NAME -
Roll no. – ______
VELAMMAL BODHI CAMPUS
Certificate
This is to certify that ___________________________ student
of class XIIth (Sci.) has successfully prepared the report on the
Project under the guidance of Mr. __________________ (PGT
Physics). The report is the result of his efforts & endeavors'.
The report is found worthy of acceptance as final Project report
for the subject Physics of class XII (sci)
------------------------------------------- -----------------------------------------
Signature of Principal
-----------------------------
DECLARATION
I hereby declare that the project work
entitled
“_________________________________________
__________________________________________
__________________”, submitted to
Department of Physics, VELAMMAL
BODHI CAMPUS THANJAVUR is
prepared by me.
NAME : ________________
CLASS : _________________
ACKNOWLEDGEMENTS
3
S.No. Contents Page-No
I Introduction
II BOOLEAN ALGEBRA
• Analog Signal
• Digital Signal
Analog Signal
An analog signal is defined as the signal having
continuous values. Analog signal can have infinite
number of different values. In real world scenario, most
of the things observed in nature are analog. Examples
of the analog signals are following.
• Temperature
• Pressure
• Distance
• Sound
• Voltage
• Current & power
Graphical representation of Analog Signal (Temperature)
The circuits that process the analog signals are called as analog circuits or system.
Examples of the analog system are following.
• Filter
• Amplifiers
• Television receiver
• Motor speed controller
Digital Signal
A digital signal is defined as the signal which has only a finite number of distinct
values. Digital signals are not continuous signals. In the digital electronic
calculator, the input is given with the help of switches. This input is converted into
electrical signal which have two discrete values or levels.
One of these may be called low level and another is called high level. The signal
will always be one of the two levels.
This type of signal is called digital signal. Examples of the digital signal are
following.
• Binary Signal
• Octal Signal
• Hexadecimal Signal
The circuits that process the digital signals are called digital systems or digital
circuits. Examples of the digital systems are following.
• Registers
• Flip-flop
• Counters
• Microprocessors
ADVANTAGE AND COMPARISON
Number System & Conversion
Advantage of Digital Systems
• More accuracy "A set of values used to represent
• More versatility
different quantities is known as Number
• Less distortion
• Easy communicate System". For example, a number system
• Possible storage of information can be used to represent the number of
students in a class or number of viewers
watching a certain TV program etc. The
Each number in this system consists of digits which are located at different
positions. The position of first digit towards left side of the decimal point is 0.
The position of second digit towards left side of the decimal point is 1. Similarly,
the position of first digit towards right side of decimal point is -1. The position
of second digit towards right side of decimal point is -2 and so on.
The value of the number is determined by multiplying the digits with the weight
of their position and adding the results. This method is known as expansion
method. The rightmost digit of number has the lowest weight. This digit is called
Least Significant Digit (LSD). The leftmost digit of a number has the highest
weight. This digit is called Most Significant Digit (MSD). The digit 7 in the number
724 is most significant digit and 4 is the least significant digit.
Example:
The weights and positions of each digit of the number 453 are as follows:
Position 2 1 0
Weights 102 101 100
Face value 4 5 3
The above table indicates that:
The actual number can be found by adding the values obtained by the digits as
follows:
400 + 50 + 3 =45310
Example:
The weights and positions of each digit of the number 139.78 are as follows.
Position 2 1 0 -1 -2
Weights 102 101 100 . 10-1 10-2
Face Value 1 3 9 7 8
The actual number can be found by adding the values obtained by the digits as
follows:
The positional value of each digit in binary number is twice the place value or
face value of the digit of its right side. The weight of each position is a power of
2.The place value of the digits according to position and weight is as follows:
Position 3 2 1 0
Weights 23 22 21 20
Position 2 1 0 -1 -2
Weights 102 101 100 10-1 10-2
Face Value 1 3 9 7 8
101112 = 1 x 24 + 0 x 23 + 1 x 22 + 1 x 21 + 1 x 20
= 1 x 16 + 0 + 1 x 4 + 1 x 2 + 1 x 1
= 16 + 0 + 4 2 + 1
= 2310
Position 2 1 0 -1 -2 -3
Face Value 1 0 1 . 1 0 1
Weight 24 21 20 2-1 2-2 2-3
101.1012 = 1 x 22 + 0x21 + 1 x 20 + 1x 2-1 + 0 x 2-2 + 1
x 2-3
= 1 x 4 + 0 + 1 x 1 + ½ + 0 + 1/8
= 4 + 0 + 1 + 0.5 + 0.125
= 5.62510
Step – 1
Divide the decimal number to be converted by the value of the new base. In this
case divide it by 2.
Step – 2
Step – 3
Step – 4
Record the remainder from Step – 3 as the next digit (to the left) of the new base
number.
Step – 5
1's complement
The 1's complement of a number is found by changing all 1's to 0's and all 0's to 1's. This is
called as taking complement or 1's complement. Example of 1's Complement is as follows.
2's complement
The 2's complement of binary number is obtained by adding 1 to the Least Significant Bit (LSB)
of 1's complement of the number.
1. Commutative law
2. INVERSION law
Boolean algebra is used to analyze and simplify the digital (logic)
circuits. It uses only the binary numbers i.e. 0 and 1. It is also 3. Theorems & K-map
called as Binary Algebra or logical Algebra. Boolean algebra
was invented by George Boole in 1854. 4. Boolean function
Commutative law
Any binary operation which satisfies the following expression is referred to as commutative
operation.
Commutative law states that changing the sequence of the variables does not have any effect on
the output of a logic circuit.
Associative law
This law states that the order in which the logic operations are performed is irrelevant as their
effect is the same.
Distributive law
AND law
These laws use the AND operation. Therefore they are called as AND laws.
OR law
These laws use the OR operation. Therefore they are called as OR laws.
INVERSION law
This law uses the NOT operation. The inversion law states that double inversion of a variable
results in the original variable itself.
Boolean Functions Boolean Functions and Expressions, K-Map and NAND Gates
realization
Boolean function:-
Boolean algebra deals with binary variables and logic operation. A Boolean
Function is described by an algebraic expression called Boolean expression
which consists of binary variables, the constants 0 and 1, and the logic operation
symbols. Consider the following example.
Here the left side of the equation represents the output Y. So we can state equation
no. 1
A truth table represents a table having all combinations of inputs and their
corresponding result.
It is possible to convert the switching equation into a truth table. For
example, consider the following switching equation.
The output will be high (1) if A = 1 or BC = 1 or both are 1. The truth table
for this equation is shown in Table (a). The number of rows in the truth table
is 2n where n is the number of input variables (n=3 for the given equation).
Hence there are 23 = 8 possible input combination of inputs.
Methods to Simplify a Boolean Function
The methods used for simplifying a Boolean function are as follows:
Karnaugh-map or K-map
The Boolean theorems and the De-Morgan's theorems are useful in manipulating
the logic expression. We can realize the logical expression using gates. The number
of logic gates required for the realization of a logical expression should be reduced
to a minimum possible value by K-map method. This method can be done in two
different ways, as discussed below.
Sum of Products (SOP) Form
It is in the form of sum of three terms AB, AC, BC with each individual term is a
product of two variables. Say A.B or A.C etc. Therefore such expressions are known
as expression in SOP form. The sum and products in SOP form are not the actual
additions or multiplications. In fact they are the OR and AND functions. In SOP
form, 0 represents a bar and 1 represents an unbar. SOP form is represented by .
Given below is an example of SOP.
It is in the form of product of three terms (A+B), (B+C), or (A+C) with each term is
in the form of a sum of two variables. Such expressions are said to be in the
product of sums (POS) form. In POS form, 0 represents an unbar and 1 represents
a bar. POS form is represented by .
]
Given below is an example of POS.
Logic gates are the basic building blocks of any digital system. It is an electronic
circuit having one or more than one input and only one output. The relationship
between the input and the output is based on a certain logic. Based on this, logic
gates are named as AND gate, OR gate, NOT gate etc.
DE MORGAN'S THEOREMS
De Morgan has suggested two theorems which are extremely useful in Boolean Algebra. The two
theorems are discussed below.
Theorem 1
• The left hand side (LHS) of this theorem represents a NAND gate with inputs A
and B, whereas the right hand side (RHS) of the theorem represents an OR gate
with inverted inputs.
• The LHS of this theorem represents a NOR gate with inputs A and B, whereas the
RHS represents an AND gate with inverted inputs.
Logic diagram
Truth Table
OR Gate
A circuit which performs an OR operation is shown in figure. It has n input (n >= 2) and one
output.
Logic diagram
Truth Table
NOT Gate
NOT gate is also known as Inverter. It has one input A and one output Y.
Logic diagram
Truth Table
NAND Gate: -
A NOT-AND operation is known as NAND operation. It has n input (n >= 2) and one output.
Logic diagram
Truth Table
NOR Gate
A NOT-OR operation is known as NOR operation. It has n input (n >= 2) and one output.
Logic diagram
Truth Table
XOR Gate
XOR or Ex-OR gate is a special type of gate. It can be used in the half adder, full adder and
subtract or. The exclusive-OR gate is abbreviated as EX-OR gate or sometime as X-OR gate. It
has n input (n >= 2) and one output.
Logic diagram
Truth Table
XNOR Gate
XNOR gate is a special type of gate. It can be used in the half adder, full adder and subtract or.
The exclusive-NOR gate is abbreviated as EX-NOR gate or sometime as X-NOR gate. It has n
input (n >= 2) and one output.
Logic diagram
Truth Table
AIM
To find truth table & Boolean expression from given
Diagram of given Boolean expression.
GIVEN -
Boolean expression:
Y = [(A.B)+B’].A
TRUTH TABLE:
0 0 1 0 1 0
0 1 0 0 0 0
1 0 1 0 1 1
1 1 0 1 1 1
OUTPUT:
19