


























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
this is very useful lab manual
Typology: Study Guides, Projects, Research
1 / 66
This page cannot be seen from the preview
Don't miss anything!



























































AIM: To study and verify the truth table of logic gates
LEARNING OBJECTIVE:
COMPONENTS REQUIRED:
THEORY: The basic logic gates are the building blocks of more complex logic circuits. These logic gates perform the basic Boolean functions, such as AND, OR, NAND, NOR, Inversion, Exclusive-OR, Exclusive-NOR. Fig. below shows the circuit symbol, Boolean function, and truth. It is seen from the Fig that each gate has one or two binary inputs, A and B, and one binary output, C. The small circle on the output of the circuit symbols designates the logic complement. The AND, OR, NAND, and NOR gates can be extended to have more than two inputs. A gate can be extended to have multiple inputs if the binary operation it represents is commutative and associative.
These basic logic gates are implemented as small-scale integrated circuits (SSICs) or as part of more complex medium scale (MSI) or very large-scale (VLSI) integrated circuits. Digital IC gates are classified not only by their logic operation, but also the specific logic-circuit family to which they belong. Each logic family has its own basic electronic circuit upon which more complex digital circuits and functions are developed. The following logic families are the most frequently used.
TTL Transistor-transistor logic ECL Emitter-coupled logic MOS Metal-oxide semiconductor CMOS Complementary metal-oxide semiconductor
TTL and ECL are based upon bipolar transistors. TTL has a well established popularity among logic families. ECL is used only in systems requiring high-speed operation. MOS and CMOS, are based on field effect transistors. They are widely used in large scale integrated circuits because of their high component density and relatively low power consumption. CMOS logic consumes far less power than MOS logic. There are various commercial
AIM: To simplify the given expression and to realize it using Basic gates and Universal gates
LEARNING OBJECTIVE: To simplify the Boolean expression and to build the logic circuit. Given a Truth table to derive the Boolean expressions and build the logic circuit to realize it.
COMPONENTS REQUIRED: IC 7400, IC 7408, IC 7432, IC 7406, IC 7402, Patch Cords & IC Trainer Kit.
THEORY: Canonical Forms (Normal Forms): Any Boolean function can be written in disjunctive normal form (sum of min-terms) or conjunctive normal form (product of max-terms). A Boolean function can be represented by a Karnaugh map in which each cell corresponds to a minterm. The cells are arranged in such a way that any two immediately adjacent cells correspond to two minterms of distance 1. There is more than one way to construct a map with this property. Karnaugh Maps
For a function of two variables, say, f(x, y),
For a function of three variables, say, f(x, y, z)
For a function of four variables: f(w, x, y, z)
Realization of Boolean expression:
AB 1 1 1 1 1 1 1
After simplifying using K-Map method we get Y =A
_ B + C
_ D
Realization using Basic gates TRUTH TABLE
Realization using NAND gates
Realization using NOR gates
AIM: To realize i) Half Adder and Full Adder ii) Half Subtractor and Full Subtractor by using Basic gates and NAND gates
LEARNING OBJECTIVE: To realize the adder and subtractor circuits using basic gates and universal gates To realize full adder using two half adders To realize a full subtractor using two half subtractors
COMPONENTS REQUIRED: IC 7400, IC 7408, IC 7486, IC 7432, Patch Cords & IC Trainer Kit.
THEORY: Half-Adder: A combinational logic circuit that performs the addition of two data bits, A and B, is called a half-adder. Addition will result in two output bits; one of which is the sum bit, S, and the other is the carry bit, C. The Boolean functions describing the half-adder are: S =A ⊕ B C = A B
Full-Adder: The half-adder does not take the carry bit from its previous stage into account. This carry bit from its previous stage is called carry-in bit. A combinational logic circuit that adds two data bits, A and B, and a carry-in bit, Cin , is called a full-adder. The Boolean functions describing the full-adder are: S = (x ⊕ y) ⊕ Cin C = xy + Cin (x ⊕ y)
Half Subtractor: Subtracting a single-bit binary value B from another A (i.e. A -B ) produces a difference bit D and a borrow out bit B-out. This operation is called half subtraction and the circuit to realize it is called a half subtractor. The Boolean functions describing the half- Subtractor are: S =A ⊕ B C = A’ B
Full Subtractor: Subtracting two single-bit binary values, B, Cin from a single-bit value A produces a difference bit D and a borrow out Br bit. This is called full subtraction. The Boolean functions describing the full-subtracter are: D = (x ⊕ y) ⊕ Cin Br= A’B + A’(Cin) + B(Cin)
i) Basic Gates ii) NAND Gates
C=A B + B Cin + A Cin
i)BASIC GATES
A B Cin S C 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1
i)BASIC GATES ii) NAND Gates
Br=
_ A B + B Cin +
_ A Cin
i) BASIC GATES
A B Cin D Br 0 0 0 0 0 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 0 0 1 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1
ii) To Realize the Full subtractor using NAND Gates only
RESULT: The truth table of the above circuits is verified.
VIVA QUESTIONS:
is 011 2. To add four bits we require four full adders arranged in parallel. IC 7483 is a 4- bit parallel adder whose pin diagram is shown.
IC 7483 pin diagram
i) 4-Bit Binary Adder
An Example: 7+2=11 (1001)
ADDER CIRCUIT:
Cin A 3 A 2 A 1 A 0 B 3 B 2 B 1 B 0 OUTPUT Cout S 3 S 2 S 1 S 0
ii) 4-BIT BINARY SUBTRACTOR. Subtraction is carried out by adding 2’s complement of the subtrahend. Example: 8 – 3 = 5 (0101)
Therefore Cin = 1 A 3 A 2 A 1 A 0 = 1 0 0 0 B 3 B 2 B 1 B 0 = 1 1 0 0 S 3 S2 S1 S 0 = 0 1 0 1 Cout = 1 (Ignored)
Code converter is a combinational circuit that translates the input code word into a new corresponding word. The excess-3 code digit is obtained by adding three to the corresponding BCD digit. To Construct a BCD-to-excess-3-code converter with a 4-bit adder feed BCD- code to the 4-bit adder as the first operand and then feed constant 3 as the second operand. The output is the corresponding excess-3 code.
To make it work as a excess-3 to BCD converter, we feed excess-3 code as the first operand and then feed 2's complement of 3 as the second operand. The output is the BCD code.
i) BCD - EXCESS-3 CODE ii) EXCESS-3 TO BCD CODE
BCD EX-
0 0 0 0 0 0 1 1
0 0 0 1 0 1 0 0
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
Circuit Diagram
Realizing BCD-to-Excess-3-code:
RESULT: Realized BCD code to Excess-3 code conversion and vice versa using 7483 IC
VIVA QUESTIONS: 1) What is the internal structure of 7483 IC?
AIM: To realize Binary to Gray code converter and vice versa.
Gray Binary