Lab Manual DT
Lab Manual DT
Lab Manual DT
NAME OF STUDENT
CLASS/ SEM./BATCH
VISION
To enable & transform computer technology for rural
society
MISSION
• To realize the full potential of the internet universal accesses to
research & education.
• To create technology content those educate, inform & inspire
industry.
• To work towards an integrated technology that reaches across
all disciplines & age levels.
• To apply innovative technology to promote the highest levels of
technology support.
PROGRAM EDUCATIONAL OBJECTIVES (PEO)
LAB MANUAL
COURSE CLUSTER
PRN. NO.
EXAM. NO.
INDEX
As. Pg. Submission
Name of Topic/Sub-topic Given Date Marks Sign.
No. No. Date
1 b) Implementation of Boolean 20 20
functions using Basic and
Universal Gates.
Implementation of reduced
Boolean functions (K – map 20 20
technique) from Assignment No
2 1 using basic and universal
gates.
ROLL NO.
GIVEN DATE
SUBMISSION DATE
SIGN. OF STUDENT
02 02 06 10
SIGN. OF FACULTY
REMARKS
EXPERIMENT NO.01
TITLE: BASIC AND UNIVERSAL GATES
AIM:
a) Verification of truth table of basic and universal logic gates.
b) Implementation of Boolean functions using Basic and Universal Gates
OBJECTIVES:
APPARATUS:
IC Trainer Kit, patch chords, power supply, AND(IC 7408), OR (IC7432), NOT
(IC7404), NOR (IC7402), NAND (IC7400).
THEORY:
A logic gate is just a simple Boolean function, in the sense that it has only
either of two outputs. Either 1 or 0, high or low, true or false, whatever you call
it. It is the most elementary tool in building a circuit. A logic gate performs a
logical operation on an input and gives the appropriate output for it. There are 3
basic logic gates. Those are AND gate, OR gate and NOT gate. There are 2
universal gates NAND gate and NOR gate. Given below are the different logic
gates, their symbols, descriptions and truth tables.
The AND gate is a digital logic gate with ‘n’ i/ps one o/p, which perform
logical conjunction based on the combinations of its inputs. The output of this
gate is true only when all the inputs are true. When one or more inputs of the
AND gate’s i/ps are false, then only the output of the AND gate is false. The
symbol and truth table of an AND gate with two inputs is shown below.
Truth Table of AND Gate
A B Y=A.B
0 0 0
0 1 0
1 0 0
1 1 1
The OR gate is a digital logic gate with ‘n’ i/ps and one o/p, that performs
a logical conjunction based on the combinations of its inputs. The output of the
OR gate is true only when one or more inputs are true. If all i/ps of the gate
are false, then only the output of the OR gate is false. The symbol and truth table
of an OR gate with two inputs is shown below.
A B O/P
0 0 0
1 0 1
1 1 1
Inverter Gate (NOT Gate) IC7404
The NOT gate is a digital logic gate with one input and one output that
operates an inverter operation of the input. The output of the NOT gate is the
reverse of the input. When the input of the NOT gate is true then the output will
be false and vice versa. The symbol and truth table of a NOT gate with one input
is shown below.
0 0 1
0 1 0
1 0 0
The NAND gate is a digital logic gate with ‘n’ i/ps and one o/p, that
performs the operation of the AND gate followed by the operation of the NOT
gate. NAND gate is designed by combining the AND and NOT gates. If the input
of the NAND gate high, then the output of the gate will be low. The symbol and
truth table of the NAND gate with two inputs is shown below. Truth Table of
NAND Gate
A O/P
0 1
1 0
Y=AB+AC (1.1)
Considering the fifth term, the output is ‘1’ when A =1, B =0 and C =0. Other
terms can be explained similarly.
Table 1.1 truth table of Boolean expression of equation 1.1
A B C Y1 Y2 Y
0 0 0 0 0 0
0 0 1 0 0 0
0 1 0 0 0 0
0 1 1 0 0 0
1 0 0 0 1 1
1 0 1 0 0 0
1 1 0 1 1 1
1 1 1 1 0 0
Procedure: -
Conclusion:
Questions
1. Write and explain all the gates with truth table and Symbols.
2. Explain uses of different Gates in various Fields.
Sahakar Maharshi Shankarao Mohite Patil Institute Of
Technology & Research, Akluj
GIVEN DATE
SUBMISSION DATE
SIGN. OF STUDENT
02 02 06 10
SIGN. OF FACULTY
REMARKS
EXPERIMENT NO. 2
TITLE: REDUCED BOOLEAN FUNCTIONS
AIM:
Implementation of reduced Boolean functions (K – map technique) from
Assignment No 1 using basic and universal gates
OBJECTIVES:
Apparatus:
Theory:
Karnaugh maps are the most extensively used tool for simplification of
Boolean functions. It is mostly used for functions having up to six variables
beyond which it becomes very cumbersome. In an n-variable K-map there are 2ⁿ
cells. Each cell corresponds to one of the combination of n variable, since there
are 2ⁿ combinations of n variables. Gray code has been used for the identification
of cells. The following function is to be reduced by using K-Map.
Y=ABC+A’BC+AB’C+ABC’……….1
The given function is in SOP form. In SOP form Normal terms are represented
by 1 and negation terms are represented by 0.So, the equation will become as
in binary form as below,
Y=111+011+101+110…………2
INPUTS OUTPUT
A B C Y
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
Y=AB+BC+AC……………4
2. Enter the values of the O/P variable in each cell corresponding to its
Min/Max term.
5. Design the circuit of minimized equation & verify the truth table.
Conclusion:
Questions
GIVEN DATE
SUBMISSION DATE
SIGN. OF STUDENT
02 02 06 10
SIGN. OF FACULTY
REMARKS
EXPERIMENT NO. 03
Half Adder and Full Adder
AIM:
OBJECTIVES:
Apparatus:
Half Adder:
A half adder can add two bits at a time. Its outputs are SUM and
CARRY. For two bit addition- SUM will be 1, if only one input is 1(X-OR
operation). CARRY will be one, when both inputs are 1 (AND operation).
So, by using one AND gate and one X-OR gate, a half adder circuit can be
constructed.
Inputs Outputs
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
From the truth table, we obtain the logical expressions for S and C outputs as:
SUM=A + B
CARRY = AB (3.2)
Full adder:
An half adder has only two inputs and there is no Provision to add a carry
coming from lower order bits when multi bit is performed.
For this purpose ,a third input terminal is added and this circuit is used
to add An , Bn and Cn-1,where An and Bn are nth order bits of the numbers A
and B respectively and Cn- is the carry generated from the addition of (n-1)th
order bits. This circuit is referred to as full-adder and its truth table is given in
Table 3.2
Inputs Outputs
An Bn Cn-1 Sn Cn
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
The K-map for the outputs Sn and Cn are given below and the minimized
expressions are given below,
00 01 11 10
00 01 11 10
0 0 1 0
0 1 1 1
0 1 0 1
1 0 1 0
Fig3.2: realization of a full adder using the basic gates
Procedure:
Conclusion:
Questions
1. Explain Half Adder and Full adder with truth Table and Diagram.
2. Explain Half Sub-tractor and Full Sub-tractor with truth Table and
Diagram.
Sahakar Maharshi Shankarao Mohite Patil Institute Of
Technology & Research, Akluj
Department of Computer Science &
Engineering
GIVEN DATE
SUBMISSION DATE
SIGN. OF STUDENT
02 02 06 10
SIGN. OF FACULTY
REMARKS
EXPERIMENT NO. 04
IMPLIMENTATION OF MULTIPLEXER
Aim:
Objectives:
Apparatus:
Theory:
Multiplexer:-
4:1 multiplexer
IC Description:
G S1 S0 Y
1 X X 0
0 0 0 D0
0 0 1 D1
0 1 0 D2
0 1 1 D3
8:1 multiplexer
IC Description:
Table 5.1
S S2 S1 S0 Y
1 X X X 0
0 0 0 0 D0
0 0 0 1 D1
0 0 1 0 D2
0 0 1 1 D3
0 1 0 0 D4
0 1 0 1 D5
0 1 1 0 D6
0 1 1 1 D7
Procedure: -
2. Switch on Vcc.
Conclusion:
Questions
GIVEN DATE
SUBMISSION DATE
SIGN. OF STUDENT
02 02 06 10
SIGN. OF FACULTY
REMARKS
EXPERIMENT NO. 05
Flip Flops Using NAND/NOR Gates
Aim: Implementation of flip flops using NAND/NOR gates: S-R Flip flop, D
flips flop.
Objectives:
A simple memory flip-flop is the RS FF (SR FF). This device has two inputs
- S for setting and R for resetting the flip-flop (hence its name). The RS flip-flop
preserves its states as long as the inputs S and R are 0. If it receives a set signal,
it turns to 1, regardless of its former state. A reset signal enforces a 0 state.
Inputs Output
Sn Rn Qn+1
0 0 Qn
0 1 0
1 0 1
1 1 ?
Fig 7.3(a) Symbol of JK flip flop (b) Circuit diagram of JK Flip Flop.
Inputs Output
Sn Rn Qn+1
0 0 Qn
0 1 0
1 0 1
1 1 Qn
Fig 5.5(a) Symbol of D flip flop (b) Circuit diagram of D Flip Flop.
Inputs Output
0 0
1 1
Procedure:
1 Draw block diagram, truth table and pin diagram for respective IC.
Conclusion:
Questions
GIVEN DATE
SUBMISSION DATE
SIGN. OF STUDENT
02 02 06 10
SIGN. OF FACULTY
REMARKS
EXPERIMENT NO. 06
Implementation of Mod 10 (Decade) Counter using IC 7490
Theory :
7490 4-Bit Ripple Counter:
The 7490, like the 7493, is another 4-bit ripple counter. However, its flip-
flops are internally connected to provide MOD-2 (count-to-2) and MOD-5 (count-
to-5) counter sections. Again, each section uses a separate clock: Cp0 for MOD-
2 and Cp1 for MOD-5. By connecting Q0 to Cp1 and using Cp0 as the single
clock input, a MOD-10 counter (decade or BCD counter) can be created. When
master reset inputs MR1 and MR2 are set high, the counter’s outputs are reset
to 0—provided that master set inputs MS1 and MS2 are not both high (the MS
inputs override the MR inputs).
When MS1 and MS2 are high, the outputs are set to Q0 = 1, Q1 = 0, Q2 =
0, and Q3 = 1. In the MOD-10 configuration, this means that the counter is set
to 9 (binary 1001). This master set feature comes in handy if you wish to start a
count at 0000 after the first clock transition occurs (with master reset, the count
starts out at 0001).
1st 0 0 0 0
2nd 0 0 0 1
3rd 0 0 1 0
4th 0 0 1 1
5th 0 1 0 0
6th 0 1 0 1
7th 0 1 1 0
8th 0 1 1 1
9th 1 0 0 0
10th 1 0 0 1
If any one of R1 & R2 is at high or R3 & R4 are at ground, the counter will reset
all the outputs QA, QB, QC and QD to 0. If the pins R3 & R4 are high, then the
count on QA, QB, QC and QD is 1001.
7490 IC can work like bi –quinary counter, which is used to store decimal digits
in the form of 4 bit binary numbers.
Procedure:
3) Connect the outputs to the switches of O/P LEDs and observe conditions of
LEDs.
4) Note the readings from QA, QB, QC, QD and make the observation table.
Conclusion:
Questions
SUBMISSION DATE
SIGN. OF STUDENT
02 02 06 10
SIGN. OF FACULTY
REMARKS
EXPERIMENT NO. 07
Verilog code implementation
Aim: a) Write Verilog code to realize all the logic gates, Simulate and verify it’s
working.
b) Design the Half subtractor and full Subtractor using Verilog Code,
Simulate and verify it’s working.
Software Used: Xlinx
Theory :
Verilog is a Hardware Description Language; a textual format for describing
electronic circuits and systems. Applied to electronic design, Verilog is intended
to be used for verification through simulation, for timing analysis, for test
analysis (testability analysis and fault grading) and for logic synthesis.
The Verilog HDL is an IEEE standard - number 1364. The first version of the
IEEE standard for Verilog was published in 1995. A revised version was
published in 2001; this is the version used by most Verilog users. The IEEE
Verilog standard document is known as the Language Reference Manual, or
LRM. This is the complete authoritative definition of the Verilog HDL.
A logic gate performs a logical operation on one or more logic inputs and
produces a single logic output. The logic is normally performed as Boolean logic
and is most commonly found in digital circuits.
i. AND gate
The AND gate is an electronic circuit that gives a high output (1) only
if all its inputs are high. A dot (.) is used to show the AND operation
i.e. A.B. Bear in mind that this dot is sometimes omitted i.e. AB
ii. OR gate
The OR gate is an electronic circuit that gives a high output (1) if one
or more of its inputs are high. A plus (+) is used to show the OR
operation.
iii. NOT gate
The NOT gate is an electronic circuit that produces an inverted
version of the input at its output. It is also known as an inverter. If
the input variable is A, the inverted output is known as NOT A. This is
also shown as A', or A with a bar over the top, as shown at the
outputs.
v. NOR gate
This is a NOT-OR gate which is equal to an OR gate followed by a NOT
gate. The outputs of all NOR gates are low if any of the inputs are
high.
The symbol is an OR gate with a small circle on the output. The small
circle represents inversion.
Program:
Program:
module hs ( a, b, d, br)
input a, b;
output d, br;
assign d= a ^ b;
assign br= ~a & b;
endmodule
Program:
module fs ( a, b, bin, d, br)
input a, b, bin;
output d, br;
assign d= a ^ b^bin;
assign br= (~a & b)l(b & bin)l(~a & bin);
endmodule
Conclusion:
Questions
3. Write VHDL code for full subtractor and draw output waveforms.
Sahakar Maharshi Shankarao Mohite Patil Institute Of
Technology & Research, Akluj
GIVEN DATE
SUBMISSION DATE
SIGN. OF STUDENT
02 02 06 10
SIGN. OF FACULTY
REMARKS
EXPERIMENT NO. 08
TITLE:MULTIPLEXER USING VERILOG CODE
Aim: Design a 4:1 & 8:1 multiplexer circuit using Verilog Code, Simulate and
verify it’s working.
Theory:
Multiplexer:-
4:1 multiplexer
Fig: Block Diagram of 4:1 MUX
S1 S0 Y
X X 0
0 0 D0
0 1 D1
1 0 D2
1 1 D3
8:1 multiplexer
S2 S1 S0 Y
X X X 0
0 0 0 D0
0 0 1 D1
0 1 0 D2
0 1 1 D3
1 0 0 D4
1 0 1 D5
1 1 0 D6
1 1 1 D7
Program:
4:1 multiplexer
output Y;
reg Y;
begin
0: Y=D0;
1:Y=D1;
2:Y=D2;
3:Y=D3;
endcase
end
endmodule
8:1 multiplexer
module mux8to1(S0, S1, S2, DO, D1, D2, D3,D4, D5, D6, D7, Y);
output Y;
reg Y;
begin
0: Y=D0;
1:Y=D1;
2:Y=D2;
3:Y=D3;
4:Y=D4;
5:Y=D5;
6:Y=D6;
7:Y=D7;
endcase
end
endmodule
Conclusion:
Questions
3. Write a Verilog code for 3 line to 8 line decoder using behavioral modeling
Sahakar Maharshi Shankarao Mohite Patil Institute of
Technology & Research, Akluj
Department of Computer Science &
Engineering
PROGRAM OUTCOMES (PO)
Engineering Graduate will be able to –
1. Engineering knowledge: Apply the knowledge of mathematics,
science, engineering fundamentals, and an engineering
specialization to the solution of complex engineering problems.
2. Problem analysis: Identify, formulate, review research literature,
and analyze complex engineering problems reaching substantiated
conclusions using first principles of mathematics,
natural sciences, and engineering sciences.
3. Design/development of solutions: Design solutions for complex
engineering problems and design system components or processes
that meet the specified needs with appropriate consideration for the
public health and safety, and the cultural, societal, and
environmental
considerations.
4. Conduct investigations of complex problems: Use research-
based knowledge and research methods including design of
experiments, analysis and interpretation of data, and synthesis of the
information to provide valid conclusions.
5. Modern tool usage: Create, select, and apply appropriate
techniques, resources, and modern engineering and IT tools
including prediction and modeling to complex engineering activities
with an understanding of the limitations.
6. The engineer and society: Apply reasoning informed by the
contextual knowledge to assess societal, health, safety, legal and
cultural issues and the consequent responsibilities relevant to the
professional engineering practice.
7. Environment and sustainability: Understand the impact of the
professional engineering solutions in societal and environmental
contexts, and demonstrate the knowledge of, and need for
sustainable development.
8. Ethics: Apply ethical principles and commit to professional ethics
and responsibilities and norms of the engineering practice.
9. Individual and team work: Function effectively as an individual,
and as a member or leader in diverse teams, and in multidisciplinary
settings.
10. Communication: Communicate effectively on complex
engineering activities with the engineering community and with
society at large, such as, being able to comprehend and write effective
reports and design documentation, make effective presentations, and
give and receive clear instructions.
11. Project management and finance: Demonstrate knowledge and
understanding of the engineering
and management principles and apply these to one’s own work, as a
member and leader in a team,
to manage projects and in multidisciplinary environments.
12. Life-long learning: Recognize the need for, and have the
preparation and ability to engage in
independent and life-long learning in the broadest context of
technological change.