1. DIGITAL SYSTEM DESIGN
LAB MANUAL
B.E (ECE) – FULL TIME
III SEMESTER
(For Private Circulation)
DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING
SRI CHANDRASEKHARENDRA SARASWATHI VISWA
MAHAVIDYALAYA
(A University U/S 3 of UGC Act 1956)
(Accredited with ‘B’ Grade by NAAC)
Enathur, Kanchipuram – 631561
Prepared By
K.M.Sivakumar.B.E,M.E.
Department of ECE, SCSVMV University
2.
3. EXPERIMENTS USING DIGITAL IC TRAINER KIT
1. STUDY OF LOGIC GATES
2. DESIGN OF ADDER AND SUBTRACTOR
3. DESIGN AND IMPLEMENTATION OF CODE CONVERTER
4. DESIGN OF 4-BIT ADDER ANDSUBTRACTOR
5. DESIGN AND IMPLEMENTATION OF MAGNITUDE COMPARATOR
6. DESIGN AND IMPLEMENTATION OF MULTIPLEXER AND DEMULTIPLEXER
7. DESIGN AND IMPLEMENTATION OF ENCODER AND DECODER
8. CONSTRUCTION AND VERIFICATION OF 4 BIT RIPPLE COUNTERAND MOD 10/
MOD 12 RIPPLE COUNTER
9. DESIGN AND IMPLEMENTATION OF 3 BIT SYNCHRONOUS UP/DOWN COUNTER
10. DESIGN AND IMPLEMENTATION OF SHIFT REGISTER
11. BOOLEAN OPERATIONS USING LABVIEW
EXPERIMENTS USING XILINX ISE SIMULATOR (VHDL/VERILOG)
12. DESIGN ENTRY AND SIMULATION OF COMBINATIONAL LOGIC CIRCUITS
USING XILINX ISE SIMULATOR
13. IMPLEMENTATION OF FLIP-FLOPS USING XILINX ISE SIMULATOR
14. IMPLEMENTATION OF COUNTERS USING XILINX ISE SIMULATOR
EXPERIMENTS USING NI MULTISIM SOFTWARE
15. IMPLEMENTATION OF BASIC LOGIC GATES
16. TESTING OF LOGIC GATES
17. HALF ADDER/SUBTRACTOR & FULL ADDER/SUBTRACTOR
18. DECODERS & ENCODERS: 2-4 DECODER & 3-8 DECODER
19. IMPLEMENTATION OF FLIP-FLOPS :S-R FLIP FLOP & J-K FLIP FLOP
20. DESIGN AND IMPLEMENTATION OF MULTIPLEXER AND DEMULTIPLEXER
21. FOUR BIT MAGNITUDE COMPARATOR
22. 4 BIT SYNCHRONOUS COUNTER
EXPERIMENTS USING MATLAB SIMULINK MODELING
23. DESIGN OF ADDER & SUBTRACTOR USING MATLAB SIMULINK
24. TESTING OF BASIC LOGIC GATES USING MATLAB SIMULINK
25. MASTER – SLAVE J K FLIP FLOP MODELING USING MATLAB SIMULINK
26. DESIGN OF MULTIPLEXER & DEMULTIPLXER USING MATLAB SIMULINK
4. EXPT N O . : STUDY OF LOGIC GATES
DATE :
AIM:
To study about logic gates and verify their truth tables
LIST COMPONENTS & INSTRUMENTS REQUIRED:
SL No. COMPONENT SPECIFICATION QTY
1. AND GATE IC 7408 1 No
2. OR GATE IC 7432 1
3. NOT GATE IC 7404 1
4. NAND GATE 2 I/P IC 7400 1
5. NOR GATE IC 7402 1
6. X-OR GATE IC 7486 1
8. IC TRAINER KIT - 1
9. WIRES - AS REQUIRED
RESULT:
Thus the logic gates are studied and their truth tables were verified.
5. EXPT NO. : DESIGN OF ADDER AND SUBTRACTOR
DATE :
Aim:
To design and construct half adder, full adder, half subtractor and full subtractor circuits
and verify the truth table using logic gates.
LIST COMPONENTS & INSTRUMENTS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. AND GATE IC 7408 1 No
2. X-OR GATE IC 7486 1
3. NOT GATE IC 7404 1
4. OR GATE IC 7432 1
5. IC TRAINER KIT - 1
6. WIRES - AS REQUIRED
HALF ADDER
LOGIC DIAGRAM:
LOGIC DIAGRAM:
FULL ADDER USING TWO HALF ADDER
6. FULL ADDER TRUTH TABLE:
A B C CARRY SUM
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
0
1
0
1
1
1
0
1
1
0
1
0
0
1
HALFSUBTRACTOR TRUTH TABLE:
A B BORROW DIFFERENCE
0
0
1
1
0
1
0
1
0
1
0
0
0
1
1
0
LOGIC DIAGRAM:
FULL SUBTRACTOR TRUTH TABLE:
A B C BORROW DIFFERENCE
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
1
1
0
0
0
1
0
1
1
0
1
0
0
1
7. LOGIC DIAGRAM:
FULL SUBTRACTOR USING TWO HALF SUBTRACTOR:
PROCEDURE:
(i) Connections are given as per circuitdiagram.
(ii) Logical inputs are given as per circuit diagram.
(iii) Observe the output and verify the truth table.
RESULT:
Thus the half adder, full adder, half subtractor and full subtractor was designed
and their truth table is verified.
8. EXPT NO. : DESIGN AND IMPLEMENTATION OF CODE CONVERTER
DATE :
AIM:
To design and implement 4-bit
(i) Binary to gray code converter ii) Gray to binary codeconverter
(ii) BCD to excess-3 code converter iii) Excess-3 to BCD code converter
LIST OF COMPONENTS & INSTRUMENTS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. X-OR GATE IC 7486 1
2. AND GATE IC 7408 1
3. OR GATE IC 7432 1
4. NOT GATE IC 7404 1
5. IC TRAINER KIT - 1
6. WIRES - AS REQUIRED
LOGIC DIAGRAM:
11. LOGIC DIAGRAM
BCD TO EXCESS -3 CONVERTOR
TRUTH TABLE:
| BCD input | Excess – 3 output |
B3 B2 B1 B0 G3 G2 G1 G0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
1
1
1
1
x
x
x
x
x
x
0
1
1
1
1
0
0
0
0
1
x
x
x
x
x
x
1
0
0
1
1
0
0
1
1
0
x
x
x
x
x
x
1
0
1
0
1
0
1
0
1
0
x
x
x
x
x
x
12. 34
LOGIC DIAGRAM:
EXCESS-3 TO BCD CONVERTOR
TRUTH TABLE:
| Excess – 3 Input | BCD Output |
B3 B2 B1 B0 G3 G2 G1 G0
0
0
0
0
0
1
1
1
1
1
0
1
1
1
1
0
0
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
PROCEDURE:
(i) Connections were given as per circuit diagram.
(ii) Logical inputs were given as per truth table
(iii) Observe the logical output and verify with the truth tables.
RESULT:
Thus the Binary to gray code converter,Gray to binary code converter,BCD to
excess-3 code converter and Excess-3 to BCD code converter was designed and
implemented.
13. EXPT NO. : DESIGN OF 4-BIT ADDER ANDSUBTRACTOR
DATE :
AIM:
To design and implement 4-bit adder, subtractor and BCD adder using IC 7483.
LIST OF COMPONENTS & INSTRUMENTS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. IC IC 7483 1
2. EX-OR GATE IC 7486 1
3. NOT GATE IC 7404 1
3. IC TRAINER KIT - 1
4. WIRES - AS REQUIRED
LOGIC DIAGRAM: 4-BIT BINARYADDER
16. TRUTH TABLE:
BCD SUM CARRY
S4 S3 S2 S1 C
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
PROCEDURE:
(i) Connections were given as per circuit diagram.
(ii) Logical inputs were given as per truth table
(iii) Observe the logical output and verify with the truth tables.
RESULT:
Thus the 4-bit adder, subtractor and BCD adder using IC 7483 was designed and
implemented.
17. EXPT NO. :
DATE :
DESIGN AND IMPLEMENTATION OF MAGNITUDE COMPARATOR
AIM:
To design and implement
(i) 2 – bit magnitude comparator using basic gates.
(ii) 8 – bit magnitude comparator using IC 7485.
LIST OF COMPONENTS & INSTRUMENTS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. AND GATE IC 7408 2
2. X-OR GATE IC 7486 1
3. OR GATE IC 7432 1
4. NOT GATE IC 7404 1
5. 4-BIT MAGNITUDE
COMPARATOR
IC 7485 2
6. IC TRAINER KIT - 1
7. WIRES - AS REQUIRED
2- BIT MAGNITUDE COMPARATOR - LOGIC DIAGRAM
19. PROCEDURE:
(i) Connections are given as per circuitdiagram.
(ii) Logical inputs are given as per circuit diagram.
(iii) Observe the output and verify the truth table.
RESULT:
Thus the 2 – bit magnitude comparator using basic gates and 8 – bit magnitude
comparator using IC 7485 was designed and implemented.
20. EXPT NO. :
DATE :
DESIGN AND IMPLEMENTATION OF MULTIPLEXER AND DEMULTIPLEXER
AIM:
To design and implement multiplexer and demultiplexer using logic gates and
study of IC 74150 and IC 74154.
LIST OF COMPONENTS & INSTRUMENTS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. 3 I/P AND GATE IC 7411 2
2. OR GATE IC 7432 1
3. NOT GATE IC 7404 1
4. IC TRAINER KIT - 1
5. WIRES - AS REQUIRED
CIRCUIT DIAGRAM FOR MULTIPLEXER:
TRUTH TABLE:
S1 S0 Y = OUTPUT
0 0 D0
0 1 D1
1 0 D2
1 1 D3
22. PROCEDURE:
(i) Connections are given as per circuitdiagram.
(ii) Logical inputs are given as per circuit diagram.
(iii) Observe the output and verify the truth table.
RESULT:
Thus the multiplexer and demultiplexer using logic gates was designed IC 74150
and IC 74154 also studied.
23. EXPT NO. :
DATE :
DESIGN AND IMPLEMENTATION OF ENCODER AND DECODER
AIM:
To design and implement encoder and decoder using logic gates and study of IC
7445 and IC 74147.
LIST OF COMPONENTS & INSTRUMENTS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. 3 I/P NAND GATE IC 7410 2
2. OR GATE IC 7432 3
3. NOT GATE IC 7404 1
2. IC TRAINER KIT - 1
3. PATCH CORDS - 27
LOGIC DIAGRAM FOR ENCODER:
25. PROCEDURE:
(i) Connections are given as per circuitdiagram.
(ii) Logical inputs are given as per circuit diagram.
(iii) Observe the output and verify the truth table.
RESULT:
Thus the encoder and decoder using logic gates were designed and IC 7445, IC
74147 was studied.
26. EXPT NO. :
DATE :
CONSTRUCTION AND VERIFICATION OF 4 BIT RIPPLE COUNTERAND
MOD 10/MOD 12 RIPPLE COUNTER
AIM:
To design and verify 4 bit ripple counter mod 10/ mod 12 ripple counter.
LIST OF COMPONENTS & INSTRUMENTS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. JK FLIP FLOP IC 7476 2
2. NAND GATE IC 7400 1
3. IC TRAINER KIT - 1
4. WIRES - AS REQUIRED
LOGIC DIAGRAM FOR 4 BIT RIPPLE COUNTER:
30. PROCEDURE:
(i) Connections are given as per circuitdiagram.
(ii) Logical inputs are given as per circuit diagram.
(iii) Observe the output and verify the truth table.
RESULT:
Thus the 4 bit ripple counter mod 10/ mod 12 ripple counters was implemented
and the truth table was verified.
31. EXPT NO. :
DATE :
DESIGN AND IMPLEMENTATION OF 3 BIT SYNCHRONOUS UP/DOWN
COUNTER
AIM: To design and implement 3 bit synchronous up/down counter
LIST OF COMPONENTS & INSTRUMENTS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. JK FLIP FLOP IC 7476 2
2. 3 I/P AND GATE IC 7411 1
3. OR GATE IC 7432 1
4. XOR GATE IC 7486 1
5. NOT GATE IC 7404 1
6. IC TRAINER KIT - 1
7. WIRES - AS REQUIRED
LOGIC DIAGRAM:
32. TRUTH TABLE:
Input
Up/Down
Present State
QA QB QC
Next State
QA+1 QB+1 QC+1
A
JA KA
B
JB KB
C
JC KC
0 0 0 0 1 1 1 1 X 1 X 1 X
0 1 1 1 1 1 0 X 0 X 0 X 1
0 1 1 0 1 0 1 X 0 X 1 1 X
0 1 0 1 1 0 0 X 0 0 X X 1
0 1 0 0 0 1 1 X 1 1 X 1 X
0 0 1 1 0 1 0 0 X X 0 X 1
0 0 1 0 0 0 1 0 X X 1 1 X
0 0 0 1 0 0 0 0 X 0 X X 1
1 0 0 0 0 0 1 0 X 0 X 1 X
1 0 0 1 0 1 0 0 X 1 X X 1
1 0 1 0 0 1 1 0 X X 0 1 X
1 0 1 1 1 0 0 1 X X 1 X 1
1 1 0 0 1 0 1 X 0 0 X 1 X
1 1 0 1 1 1 0 X 0 1 X X 1
1 1 1 0 1 1 1 X 0 X 0 1 X
1 1 1 1 0 0 0 X 1 X 1 X 1
PROCEDURE:
(i) Connections are given as per circuitdiagram.
(ii) Logical inputs are given as per circuit diagram.
(iii) Observe the output and verify the truth table.
RESULT:
Thus the 3 bit synchronous up/down counter was designed implemented.
33. EXPT NO. :
DATE :
DESIGN AND IMPLEMENTATION OF SHIFT REGISTER
AIM:
To design and implement
(i) Serial in serial out shiftregister ii) Serial in parallel out shift register
(ii) Parallel in serial out shift register iii) Parallel in parallel out shiftregister
LIST OF COMPONENTS & INSTRUMENTS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. D FLIP FLOP IC 7474 2
2. OR GATE IC 7432 1
3. IC TRAINER KIT - 1
4. WIRES - AS REQUIRED
LOGIC DIAGRAM:
SERIAL IN SERIAL OUT:
TRUTH TABLE:
CLK Serial in Serial out
1 1 0
2 0 0
3 0 0
4 1 1
5 X 0
6 X 0
7 X 1
35. LOGIC DIAGRAM:
PARALLEL IN PARALLEL OUT:
TRUTH TABLE:
CLK
DATA INPUT OUTPUT
DA DB DC DD QA QB QC QD
1 1 0 0 1 1 0 0 1
2 1 0 1 0 1 0 1 0
36. PROCEDURE:
(i) Connections are given as per circuitdiagram.
(ii) Logical inputs are given as per circuit diagram.
(iii) Observe the output and verify the truth table.
RESULT:
Thus the Serial in serial out, Serial in parallel out, Parallel in serial out and
Parallel in parallel out shift registers were implemented using IC 7474.
37. EXPT NO. :
DATE :
BOOLEAN OPERATIONS USING LABVIEW
Aim: To perform Boolean operations using Labview.
Algorithm:
Step 1: Start the Labview and select the blank VI.
Step 2: Create front and block diagram panel.
Step 3: To perform Boolean operation push buttons are taken as inputs and round LED as output.
Step 4: Different Boolean operations such as AND, OR, XOR, NOT, NAND are
selected from the block diagram panel.
Step 5: Boolean inputs and outputs are wired in the block diagram panel.
Step 6: Logic values 0 & 1 are given in the front panel and the program is executed.
Block diagram:
39. EXPT NAME: Design Entry and Simulation of Combinational Logic Circuits
DATE :
OBJECTIVE OF THE EXPERIMENT
To study about the simulation tools available in Xilinx project navigator using Verilog tools.
FACILITIES REQUIRED AND PROCEDURE
a) Facilities required to do the experiment
S.No. SOFTWARE REQUIREMENTS Quantity
1 Xilinx Project navigator – ISE 9.1 1
Procedure for doing the experiment
No Details of the step
1 Double click the project navigator and select the option File-New project.
2 Give the project name.
3 Select Verilog module.
4 Type your Verilog coding.
5 Check for syntax.
6 Select the new source of test bench waveform
7 Choose behavioral simulation and simulate it by Xilinx ISE simulator.
8 Verify the output.
c) Verilog coding:
Logic gates:
AND GATE:
module gl(a,b,c);
input a;
input b;
output c;
and(c,a,b);
end module
OR GATE:
module gl(a,b,c);
input a;
input b;
output c;
or(c,a,b);
end module
XOR GATE:
module gl(a,b,c);
input a;
input b;
output c;
xor (c,a,b);
end module
42. MULTIPLEXER:
// Module Name: Mux4to1
module Mux4to1(i0, i1, i2, i3, s0, s1, out);
input i0, i1, i2, i3, s0, s1;
output out;
wire s1n,s0n;
wire y0,y1,y2,y3;
not (s1n,s1);
not (s0n,s0);
and (y0,i0,s1n,s0n);
and (y1,i1,s1n,s0);
and (y2,i2,s1,s0n);
and (y3,i3,s1,s0);
or (out,y0,y1,y2,y3);
endmodule
DEMULTIPLEXER:
// Module Name: Dux1to4
module Dux1to4(in, s0, s1, out0, out1, out2, out3);
input in, s0, s1;
output out0, out1, out2,out3;
wire s0n,s1n;
not(s0n,s0);
not(s1n,s1);
and (out0,in,s1n,s0n);
and (out1,in,s1n,s0);
and (out2,in,s1,s0n);
and (out3,in,s1,s0);
endmodule
8 BIT ADDER
module adder(a,b, s,c);
input [7:0] a,b;
output [7:0] s,c;
assign {c,s} = a + b;
endmodule
RESULT:
Thus the program for study of simulation using tools and the output also verified
successfully.
43. EXPT NAME : IMPLEMENTATION OF FLIP-FLOPS
DATE :
OBJECTIVE OF THE EXPERIMENT
To implement Flip-flops using Verilog HDL.
FACILITIES REQUIRED AND PROCEDURE
a) Facilities required to do the experiment
S.No. SOFTWARE REQUIREMENTS Quantity
1 Xilinx Project navigator – ISE 9.1 1
b) Procedure for doing the experiment
S.No Details of the step
1 Double click the project navigator and select the option File-New project.
2 Give the project name.
3 Select Verilog module.
4 Type your verilog coding.
5 Check for syntax.
6 Select the new source of test bench waveform
7 Choose behavioral simulation and simulate it by xilinx ISE simulator.
8 Verify the output.
c) Verilog coding:
PROGRAM:
D Flip-Flop:
// Module Name: DFF
module DFF(Clock, Reset, d, q);
input Clock;
input Reset;
input d;
output q;
reg q;
always@(posedge Clock or negedge Reset)
if (~Reset) q=1'b0;
else q=d;
endmodule
44. T Flip-Flop:
// Module Name: TFF
module TFF(Clock, Reset, t, q);
input Clock;
input Reset;
input t;
output q;
reg q;
always@(posedge Clock , negedge Reset)
if(~Reset) q=0;
else if (t) q=~q;
else q=q;
endmodule
JK Flip-Flop:
Program:
// Module Name: JKFF
module JKFF(Clock, Reset, j, k, q);
input Clock;
input Reset;
input j;
input k;
output q;
reg q;
always@(posedge Clock, negedge Reset)
if(~Reset)q=0;
else
begin
case({j,k})
2'b00: q=q;
2'b01: q=0;
2'b10: q=1;
2'b11: q=~q;
endcase
end
endmodule
RESULT:
Thus the flip-flops program was implemented using tools and the output also verified
successfully.
45. EXPT NAME : IMPLEMENTATION OF COUNTERS
DATE :
OBJECTIVE OF THE EXPERIMENT
To implement Counters using Verilog HDL.
FACILITIES REQUIRED AND PROCEDURE
a) Facilities required to do the experiment
S.No. SOFTWARE REQUIREMENTS Quantity
1 Xilinx Project navigator – ISE 9.1 1
b) Procedure for doing the experiment
S.No Details of the step
1 Double click the project navigator and select the option File-New project.
2 Give the project name.
3 Select Verilog module.
4 Type your verilog coding.
5 Check for syntax.
6 Select the new source of test bench waveform
7 Choose behavioral simulation and simulate it by xilinx ISE simulator.
8 Verify the output.
c) Verilog coding:
PROGRAM:
2- Bit Counter:
// Module Name: Count2Bit
module Count2Bit(Clock, Clear, out);
input Clock;
input Clear;
output [1:0] out;
reg [1:0]out;
always@(posedge Clock, negedge Clear)
if((~Clear) || (out>=4))out=2'b00;
else out=out+1;
endmodule
RESULT:
Thus the counters program was implemented using tools and the output also verified
successfully.
46. IMPLEMENTATION OF BASIC LOGIC GATES
1(a)OR GATE
AIM: Design &Simulate a logic circuit of OR gate
COMPONENTS USED:
OR gate(7432N)
2 clock voltage
2dig probe bulb
1dig probe green bulb
2DGND
THEORY:
The OR gate performs logical addition,more commonly known as the ‘OR’ function.
An OR gate has two or more inputs and one output as indicated by the standard logic symbol
as shown in fig
PROCEDURE:
Open Multisim,click on file, select new-schematic capture.
Click on ‘Place’,click Component, select aComponent window opens & select the
following
Select TTL,74STD,OR gate(74s32) & click ok.
Pick and place the OR gate on the screen.
Select Sources, Signal Sources,Clock voltage & click ok.
Place 2 clock voltages on the screen(for 2 inputs).
Select Sources, Power source,DGND( ground)& click ok.
Place 2 DGND on the screen(for 2 inputs).
Select Indicators,Probe, Dig Probe, Red indicator bulb & click ok.
Place 2 Dig Probe Red bulb on the screen.(for 2 inputs).
Select Indicators, Probe,Dig probe Green indicator bulb & click ok.
Place 1 Dig Probe Green bulb on the screen.(for 1 output).
Now join the circuit as shown in fig.
Run/Simulate the circuit using simulation bar.
47. Result:
Design of logic circuit of OR gate is completed. Simulation of logic circuit OR gate
satisfies the truth table.
48. 1(b) AND GATE
AIM:
Design &simulate a logic circuit of OR gate
COMPONENTS USED:
ANDgate (7408J)
2 clock voltage
2dig probe red bulbs
1dig probe green bulb
2DGND
THEORY:
The AND gate performs logical multiplication, more commonly known as the AND
function. The AND gate may have two or more inputs and a single output, as indicated by the
standard logic symbols shown in the fig.
PROCEDURE:
Open Multisim,click on file, select new-schematic capture.
Click on Place,click Component, select aComponent window opens & select the
following
Select TTL,74STD,ANDgate(7408J) & click ok.
Place the AND gate on the screen.
Select Sources, Signal, sources, Clock voltage & click ok.
Place 2 Clock voltages on the screen(for 2 inputs).
Select Sources, Power source,DGND & click ok.
Place 2 DGND on the screen(for 2 inputs).
Select Indicators,Probe,Dig probe red bulb & click ok.
Place 2 dig probe red bulb on the screen.(for 2 inputs).
Select Indicators, Probe, Dig probe green bulb & click ok.
Place 1 dig probe green bulb on the screen.(for 1 output).
Now join the circuit as shown in fig.
Run/Simulate the circuit using simulation bar.
49. RESULT:
Design of logic circuit of AND gate is completed. Simulation of logic circuit AND gate
satisfies the truth table.
50. 1(c) NOT GATE
AIM:
Design & Simulate a logic circuit of NOT gate
COMPONENTS USED:
NOTgate (7404N)
2 clock voltage
2Dig probe red bulbs
1Dig probe green bulb
2DGND
THEORY:
A NOT gate produces an output that is a complement of the input. It has only one input
signal and one output signal as indicated by the logic symbol as shown in fig.
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, clickComponent, selecta Component window opens & select the
following
Select TTL, 74STD, NOT gate(7404N) & click ok.
Place the NOT gate on the screen.
Select Sources, Signal Sources,Clock voltage & click ok.
Place 1 clock voltages on the screen(for 1inputs).
Select Sources, Power source,DGND & click ok.
Place 1 DGND on the screen (for 1 input).
Select Indicators,Probe,Dig probe red bulb & click ok.
Place 1 dig probe red bulb on the screen. (for 1 inputs).
Select Indicators, Probe, Dig probe green bulb & click ok.
Place 1 dig probe green bulb on the screen.(for 1 output).
Now join the circuit as shown in fig.
Run/Simulate the circuit using simulation bar.
51. RESULT:
Design of logic circuit of NOT gate is completed. Simulation of logic circuitNOT gate
satisfies the truth table.
52. 1(d) NOR GATE
AIM:
Design &Simulate a logic circuit of NOR gate
COMPONENTS USED:
NOR gate(7402N)
2 clock voltage
2dig probe red bulbs
1dig probe green bulb
2DGND
THEORY:
The term NOR is a contraction of NOT-OR and implies an OR function with an
inverted (compliment) output.A standard logic symbol for two inputs NOR gate is as shown in
fig.
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & select the
following
Select TTL,74STD,NOR gate(7402N) & click ok.
Place the NOR gate on the screen.
Select Sources, Signal sources, Clock voltage & click ok.
Place 2 clock voltages on the screen(for 2 inputs).
Select Sources, Power source,DGND & click ok.
Place 2 DGND on the screen(for 2 inputs).
Select Indicators,Probe,Dig probe red bulb & click ok.
Place 2 dig probe red bulb on the screen (for 2 inputs).
Select Indicators,probe, Dig probe green bulb & click ok.
Place 1 dig probe green bulb on the screen.(for 1 output).
Now join the circuit as shown in fig.
Run/Simulate the circuit using simulation bar.
53. RESULT:
Design of logic circuit of NOR gate is completed. Simulation of logic circuit NOR gate
satisfies the truth table.
54. 1(e) NAND GATE
AIM:
Design & Simulate a logic circuit of NAND gate
COMPONENTS USED:
NANDgate(7400N)
2 Clock voltage
2Dig probe red bulbs
1Dig probe green bulb
2DGND
THEORY:
The term NAND is a contraction of NOT-AND and implies an AND function with a
complement (inverted) output. A standard logic symbol for 2-input NAND gate is as shown in
fig.
PROCEDURE:
Open Multisim, Click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & select the
following
Select TTL,74STD,NANDgate(7400N) & click ok.
Place the NAND gate on the screen.
Select Sources, Signal sources, Clock voltage & click ok.
Place 2 clock voltages on the screen(for 2 inputs).
Select Sources, Power source,DGND & click ok.
Place 2 DGND on the screen(for 2 inputs).
Select Indicators,Probe,Dig probe red bulb & click ok.
Place 2 dig probe red bulb on the screen.(for 2 inputs).
Select Indicators, Probe, Dig probe green bulb & click ok.
Place 1 dig probe green bulb on the screen.(for 1 output).
Now join the circuit as shown in fig.
Run/Simulate the circuit using simulation bar.
55. Result:
Design of logic circuit of NAND gate is completed. Simulation of logic circuit NAND
gate satisfies the truth table.
56. 1(f) X-OR GATE
AIM:
Design &simulate a logic circuit of X-OR gate
COMPONENTS USED:
X-OR gate(7432N)
2 Clock voltage
2Dig probe red bulbs
1Dig probe green bulb
2DGND
THEORY:
The X-OR is an abbreviation for Exclusive-OR gate. An X-OR gate has two or more
inputs and one output as indicated by the standard logic symbol as shown in fig.
PROCEDURE:
Open Multisim,click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & select the
following
Select TTL,74STD,X-OR gate(7486N) & click ok.
Place the OR gate on the screen.
Select Sources, signal sources, Clock voltage & click ok.
Place 2 clock voltages on the screen(for 2 inputs).
Select Sources, Power source, DGND & click ok.
Place 2 DGND on the screen(for 2 inputs).
Select Indicators, Probe, Dig probe red bulb & click ok.
Place 2 dig probe red bulb on the screen.(for 2 inputs).
Select Indicators, probe, dig probe green bulb & click ok.
Place 1 dig probe green bulb on the screen.(for 1 output).
Now join the circuit as shown in fig.
Run/Simulate the circuit using simulation bar.
57. Result:
Design of logic circuit of X-OR gate is completed. Simulation of logic circuit X-OR
gate satisfies the truth table.
58. 1(g) X-NOR GATE
AIM:
Design & simulate a logic circuit of X-NOR gate
COMPONENTS USED:
XOR gate(7486N)
NOT gate(7405N)
2 clock voltage
2dig probe red bulbs
1dig probe green bulb
2DGND
THEORY:
An Exclusive-NOR(X-NOR) gate is a coincidence gate. It produces one output only
when its two inputs are equal, i.e., when both inputs are either zero or one.
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a component window opens & select the
following
Select TTL, 74STD, X-OR gate(7486N),NOT(7405N)& click ok.
Place the X-OR gate, NOT gate on the screen.
Select Sources, Signal sources, Clock voltage & click ok.
Place 2 clock voltages on the screen (for 2 inputs).
Select Sources, Power source, DGND & click ok.
Place 2 DGND on the screen(for 2 inputs).
Select Indicators, Probe, Dig probe red bulb & click ok.
Place 2 dig probe red bulb on the screen.(for 2 inputs).
Select Indicators, probe, Dig probe green bulb & click ok.
Place 1 dig probe green bulb on the screen.(for 1 output).
Now join the circuit as shown in fig.
Run/Simulate the circuit using simulation bar.
59. RESULT:
Design of logic circuit of X-NOR gate is completed. Simulation of logic circuit X-NOR
satisfies the truth table.
60. 2. COMBINATION OF GATES
2(a) HALF ADDER
AIM:
Design & Simulate a logic circuit of half adder.
COMPONENTS USED:
One XOR gate(7486N),
one AND gate(7408J),
2 clock voltage,
2 dig probe red bulb,
2 dig probe green bulb,
2 DGND
THEORY:
The half adder circuit adds two binary digits & produces a sum (Σ) & a carry output
(Co).In other words, the binary arithmetic operation (A+B) produces (Σ) .
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a component window opens & perform the
following
Place XOR gate(7486N), one AND gate(7408J),2 clock voltage,2 dig probe red bulb,2
dig probe green bulb,2 DGND on the screen.
Join the circuit as shown in fig.
Run/Simulate the circuit.
61. RESULT:
Design of logic circuit of half adder is completed & is as shown in fig. Simulation of
logic circuit satisfies the truth table.
62. 2(b) FULL ADDER
AIM:
Design & Simulate a logic circuit of full adder.
COMPONENTS USED:
2 XOR gate(7486N),
2 AND gate(7408J),
one OR gate(7132N)
3 clock voltage
3 dig probe red bulb
2 dig probe green bulb
3 DGND
THEORY:
The full adder adds the bits A & B &Carry (Ci) from the previous column. It generates
a sum (Σ) and a Carry output (CO).The basic difference between a full adder & a half adder is
that the full adder accepts an additional input.
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place X-OR gate(7486N), one AND gate(7408J),2 clock voltage,2 dig probe red
bulbs,2 dig probe green bulbs,2 DGND on the screen.
Join the circuit as shown in fig.
Run/Simulate the circuit.
63. RESULT:
Design of logic circuit of full adder is completed & is as shown in fig. Simulation of
logic circuit satisfies the truth table.
64. 2(c) HALF SUBTRACTOR
AIM:
Design & Simulate a logic circuit of half subtractor.
COMPONENTS USED:
One X-OR gate(7486N)
one AND gate(7408J)
one NOT gate(7404N)
2 clock voltage
2 dig probe red bulb
2 dig probe green bulb
2 DGND
THEORY:
A half Subtractor is an arithmetic circuit that subtracts one bit from another bit,
producing a difference bit (D) and borrow bit (Bo).
PROCEDURE:
Open Multisim,click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place one X-OR gate(7486N), one AND gate(7408J), one NOT gate(7404N),2 clock
voltage,2 dig probe red bulb,2 dig probe green bulb,2 DGND on the screen.
Join the circuit as shown in fig.
Run/Simulate the circuit.
65. RESULT:
Design of logic circuit of half subtractor is completed. Simulation of logic circuit
satisfies the truth table shown.
66. 2(d) FULL SUBTRACTOR
AIM:
Design & Simulate a logic circuit of full subtractor.
COMPONENTS USED:
One X-OR gate(7486N)
one AND gate(7408J)
one NOT gate(7404N)
2 clock voltage
2 dig probe red bulb
2 dig probe green bulb
2 DGND
THEORY:
It is an arithmetic circuit that subtracts one bit (subtrahend) from another bit (minuend)
taking into consideration the borrow (Bo) from the column. It produces a difference bit (D) and
a borrow bit (Bo) required for the next higher column.
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place one X-OR gate(7486N), one AND gate(7408J), one NOT gate(7404N),2 clock
voltage,2 dig probe red bulb,2 dig probe green bulb,2 DGND on the screen.
Join the circuit as shown in fig.
Run/Simulate the circuit.
67. RESULT:
Design of logic circuit of full subtractor is completed. Simulation of logic circuit
satisfies the truth table shown.
68. 3. DECODERS & ENCODERS
3(a) 2-4 DECODER
AIM:
Design & Simulate a logic circuit of 2-4 decoders.
COMPONENTS USED:
Four AND gate(7408J)
two NOT gate(7404N)
2 clock voltage
2 dig probe red bulb
4 dig probe green bulb
2 DGND
THEORY:
A decoder is a logic circuit that looks at its inputs, determines which number is there and
activates the one output that corresponds to that number.2-4 decoders are used where a decoder
has two input lines and four output lines. It takes a two bit binary number and activates any one
of the four outputs corresponding to that number.
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place Four AND gate(7408J), two NOT gate(7404N), 2 clock voltage, 2 dig probe red
bulb,4 dig probe green bulb, 2 DGND on the screen.
Join the circuit as shown in fig.
Run/Simulate the circuit.
69. RESULT:
Design of logic circuit of 2-4 decoder is completed. Simulation of logic circuit satisfies
the truth table shown.
70. 3(b) 3-8 DECODER
AIM:
Design & Simulate a logic circuit of 3-8 decoder.
COMPONENTS USED:
Eight AND gate(7408J)
three NOT gate(7404N)
3 clock voltage
3 dig probe red bulb
8 dig probe green bulb
3 DGND
THEORY:
A decoder is a logic circuit that looks at its inputs, determines which number is there,
and activates the output that corresponds to that number.3-8 decoders are used where a decoder
has three input lines and eight output lines. It takes a three bit binary number and activates any
one of the eight outputs corresponding to that number.
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component,select aComponent window opens & perform the
following
Place eight AND gate(7408J), three NOT gate(7404N), 3 clock voltage, 3 dig probe red
bulb,8 dig probe green bulb, 3 DGND on the screen.
Join the circuit as shown in fig.
Run/Simulate the circuit.
71. RESULT:
Design of logic circuit of 3-8 decoder is completed. Simulation of logic circuit satisfies
the truth table shown.
72. 5. FLIP FLOP
5(a) S-R FLIP FLOP
AIM:
Design & Simulate a logic circuit of S-R Flip flop.
COMPONENTS USED:
Two NOT gate(7416N)
two NAND gate(7402N)
2 clock voltage
2 dig probe red bulb
2 dig probe green bulb
2 DGND
THEORY:
The S-R Flip Flop using two NAND gates as shown in fig. The two NAND gates are
cross coupled, so that the output of NAND gate 1 is connected to one of the inputs of NAND
gate 2 and vice versa. The Flip Flop has two outputs Q and and two inputs Set and Reset.
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place Two NOT gate(7416N),two NAND gate(7402N), 2 clock voltage, 2 dig probe
red bulb,2 dig probe green bulb, 2 DGND on the screen.
Join the circuit as shown in fig.
Run/Simulate the circuit.
73. RESULT:
Design of logic circuit of S-R flip flop is completed & is as shown in fig. Simulation of
logic circuit is according to the truth table shown.
74. 5(b) J-K FLIP FLOP
AIM:
Design & Simulate a logic circuit of J-K Flip flop.
COMPONENTS USED:
JK Flip Flop
Two SPDT Switch
Function generator
Two Indicator Probes
2 dig probe green bulb
2 DGND
THEORY:
The J-K Flip Flop shown in fig.. The Flip Flop has two outputs Q and and two inputs
Set and Reset.
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place the above components
Join the circuit as shown in fig.
Run/Simulate the circuit.
75. J-K FLIP FLOP LOGIC DIAGRAM
RESULT:
Design of logic circuit of J-K flip flop is completed & is as shown in fig. Simulation of logic
circuit is according to the truth table shown
76. 6. TESTING OF LOGIC GATES
AIM:
Design & Simulate a Basic logic circuits
COMPONENTS USED:
Basic Logic gates
Two SPDT Switch
six Indicator Probes
VCC & Ground
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place the above components
Join the circuit as shown in fig.
Run/Simulate the circuit.
LOGIC DIAGRAM 1
78. LOGIC DIAGRAM 4
RESULT:
Design of testing basic logic circuits is completed & is as shown in fig. Simulation of
logic circuit is according to the truth table shown
79. 7. 4X1 MULTIPLEXER
AIM:
Design & Simulate a 4X1 Multiplexer
COMPONENTS USED:
Two 74LS04N, Four 74LS11N, One 4 Input OR gate
SIX SPDT Switch
Indicator Probe
VCC & Ground
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place the above components & Join the circuit as shown in fig.
Run/Simulate the circuit.
LOGIC DIAGRAM OF 4X1 MUX – EQUATION & TRUTH TABLE
80. LOGIC DIAGRAM
RESULT:
Design of 4X1 multiplexer circuits is completed & is as shown in fig. Simulation of
logic circuit is according to the truth table shown
81. 8. 1X4 DEMULTIPLEXER
AIM:
Design & Simulate a 1x4 De multiplexer
COMPONENTS USED:
Two 74LS04N
Three SPDT Switch
Four 3 Input AND gate
Four Indicator Probe
VCC & Ground
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place the above components
Join the circuit as shown in fig.
Run/Simulate the circuit.
LOGIC DIAGRAM WITH EQUATION & TRUTH TABLE
83. LOGIC DIAGRAM 3
LOGIC DIAGRAM 4
RESULT:
Design of 1X4 De multiplexer circuits is completed & is as shown in fig. Simulation of logic
circuit is according to the truth table shown
84. 9. FOUR BIT MAGNITUDE COMPARATOR
AIM:
Design & Simulate a 4 Bit Magnitude comparator
COMPONENTS USED:
Eight 74LS04N ,Eight 74LS08N,Four 74LS02N
Two 2 Input AND gate, Two 3 Input AND gate
Two 4 Input AND gate, Two 4 Input OR gate
Two 4 Input AND gate, Three Indicator Probes
Eight SPDT Switch
VCC & Ground
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place the above components & Join the circuit as shown in fig.
Run/Simulate the circuit.
LOGIC DIAGRAM & EQUATIONS FOR EACH CONDITIONS
86. LOGIC DIAGRAM 3
RESULT:
Design of 4 Bit Magnitude Comparator circuit is completed & is as shown in fig.
Simulation of logic circuit is according to the truth table shown .
87. 10. 4 BIT SYNCHRONOUS COUNTER
AIM:
Design & Simulate a 4 Bit Synchronous counter
COMPONENTS USED:
One 74LS163D
Digital Clock
4 PIN DSWPK-4 Switch
Eight SPDT Switch
Four Indicator Probes
VCC & Ground
PROCEDURE:
Open Multisim, click on file, select new-schematic capture.
Click on Place, click Component, select a Component window opens & perform the
following
Place the above components
Join the circuit as shown in fig.
Run/Simulate the circuit.
LOGIC DIAGRAM
88. RESULT:
Design of 4 Bit Synchronous counter circuit is completed & is as shown in fig.
Simulation of logic circuit is according to the truth table shown .
89. 1. DESIGN OF ADDER & SUBTRACTOR
AIM:
Design & Simulate a Half adder circuit using matlab Simulink model
FUNCTIONS USED:
Constant Bit Function
Logical operators
Display system
PROCEDURE:
Open Matlab software, Click on file, click, select a model file, Simulink & perform the
following
Place the above components from commonly used blocks and SimElectronics tool box
Join the circuit as shown in fig.
Run/Simulate the circuit.
SIMULINK MODEL FOR HALF ADDER
RESULT:
Design of Half adder circuit is completed & is as shown in fig. Simulation of logic circuit
is according to the truth table shown .
90. 2. TESTING OF BASIC LOGIC GATES
AIM:
Design & Simulate a Basic logic circuit using matlab Simulink model
FUNCTIONS USED:
Constant Bit Function
Logical operators
Display system
PROCEDURE:
Open Matlab software, Click on file, click, select a model file, Simulink & perform the
following
Place the above components from commonly used blocks and SimElectronics tool box
Join the circuit as shown in fig.
Run/Simulate the circuit.
SIMULINK MODEL FOR BASIC LOGIC GATES
RESULT:
Design of Testing of Basic logic gates circuit is completed & is as shown in fig.
Simulation of logic circuit is according to the truth table shown
91. 3. MASTER – SLAVE J K FLIP FLOP MODELING
AIM:
Design & Simulate a Master Slave JK Flip-flop circuit using matlab Simulink model
FUNCTIONS USED:
Constant Bit Function
M-S JK Flip flop block
Manual switch (SPDT)
Logical operators, Solver block, clock source,
Three Scope Display system
PROCEDURE:
Open Matlab software, Click on file, click, select a model file, Simulink & perform the
following
Place the above components from commonly used blocks and SimElectronics tool box
Join the circuit as shown in fig.
Run/Simulate the circuit.
SIMULINK MODEL FOR MASTER SLAVE JK FLIPFLOP
RESULT:
Modeling of Master slave JK Flipflop circuit is completed & is as shown in fig.
Simulation of logic circuit is according to the truth table shown
92. 4. DESIGN OF MULTIPLEXER & DEMULTIPLXER
AIM:
Design & Simulate a Multiplexer and demultiplxer using matlab Simulink model
FUNCTIONS USED:
Constant Bit Function
Logical operators
Three Scope Display system
PROCEDURE:
Open Matlab software, Click on file, click, select a model file, Simulink & perform the
following
Place the above components from commonly used blocks and SimElectronics tool box
Join the circuit as shown in fig.
Run/Simulate the circuit.
LOGIC DIAGRAM OF 8 INPUT DIGITAL MULTIPLEXER
94. LOGIC DIAGRAM OF 8 OUTPUT DIGITAL MULTIPLEXER
SIMULINK MODEL FOR DEMULTIPLEXER CIRCUIT
RESULT:
Modeling of Multiplexer and De multiplexer circuit is completed & is as shown in fig.
Simulation of logic circuit is according to the truth table shown