Professional Documents
Culture Documents
LAB MANUAL
B.E (ECE) FULL TIME
III SEMESTER
(For Private Circulation)
Prepared By
K.M.Sivakumar.B.E,M.E.
Department of ECE, SCSVMV University
EXPT N O . :
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
3.
NOT GATE
IC 7404
4.
IC 7400
5.
NOR GATE
IC 7402
6.
X-OR GATE
IC 7486
8.
9.
IC TRAINER KIT
WIRES
1
AS REQUIRED
RESULT:
Thus the logic gates are studied and their truth tables were verified.
EXPT NO.
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.
1.
2.
3.
4.
5.
6.
COMPONENT
AND GATE
X-OR GATE
NOT GATE
OR GATE
IC TRAINER KIT
WIRES
SPECIFICATION
IC 7408
IC 7486
IC 7404
IC 7432
-
HALF ADDER
LOGIC DIAGRAM:
LOGIC DIAGRAM:
FULL ADDER USING TWO HALF ADDER
QTY.
1 No
1
1
1
1
AS REQUIRED
B
0
0
1
1
0
0
1
1
C
0
1
0
1
0
1
0
1
CARRY
0
0
0
1
0
1
1
1
0
1
0
1
SUM
0
1
1
0
1
0
0
1
DIFFERENCE
0
1
0
0
0
1
1
0
LOGIC DIAGRAM:
FULL SUBTRACTOR
A
0
0
0
0
1
1
1
1
TRUTH TABLE:
B
C
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
BORROW
0
1
1
1
0
0
0
1
DIFFERENCE
0
1
1
0
1
0
0
1
LOGIC DIAGRAM:
PROCEDURE:
(i)
Connections are given as per circuit diagram.
(ii)
(iii)
RESULT:
Thus the half adder, full adder, half subtractor and full subtractor was designed
and their truth table is verified.
EXPT NO.
DATE
AIM:
To design and implement 4-bit
(i)
Binary to gray code converter
ii) Gray to binary code converter
(ii)
BCD to excess-3 code converter iii) Excess-3 to BCD code converter
QTY.
1
1
1
1
1
AS REQUIRED
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
LOGIC DIAGRAM:
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
1
1
1
1
1
1
1
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
|
G0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
Gray Code
Binary Code
G3
G2
G1
G0
B3
B2
B1
B0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
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
LOGIC DIAGRAM
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
|
B1
B0
G3
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
Excess 3 output
G2
G1
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
|
G0
1
0
1
0
1
0
1
0
1
0
x
x
x
x
x
x
LOGIC DIAGRAM:
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)
(ii)
(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.
34
EXPT NO.
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
1.
IC
IC 7483
2.
EX-OR GATE
IC 7486
3.
NOT GATE
IC 7404
3.
IC TRAINER KIT
4.
WIRES
-
LOGIC DIAGRAM:
QTY.
1
1
1
1
AS REQUIRED
TRUTH TABLE:
Input Data A
Input Data B
Addition
Subtraction
A4 A3 A2 A1 B4 B3 B2 B1 C
S4 S3 S2 S1
D4 D3 D2 D1
1
1
TRUTH TABLE:
S4
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
BCD SUM
S3
S2
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
S1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
CARRY
C
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
PROCEDURE:
(i)
(ii)
(iii)
RESULT:
Thus the 4-bit adder, subtractor and BCD adder using IC 7483 was designed and
implemented.
EXPT NO.
DATE :
DESIGN AND IMPLEMENTATION OF MAGNITUDE COMPARATOR
AIM:
To design and implement
(i)
(ii)
COMPONENT
AND GATE
X-OR GATE
OR GATE
NOT GATE
4-BIT MAGNITUDE
COMPARATOR
IC TRAINER KIT
WIRES
SPECIFICATION
IC 7408
IC 7486
IC 7432
IC 7404
IC 7485
QTY.
2
1
1
1
2
1
AS REQUIRED
A0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
B1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
B0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
A>B
0
0
0
0
1
0
0
0
1
1
0
0
1
1
1
0
A=B
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
A<B
0
1
1
1
0
0
1
1
0
0
0
1
0
0
0
0
LOGIC DIAGRAM:
8 BIT MAGNITUDE COMPARATOR
TRUTH TABLE:
A
0000 0000
0001 0001
0000 0000
0000 0000
0000 0000
0001 0001
A>B
0
1
0
A=B
1
0
0
A<B
0
0
1
PROCEDURE:
(i)
(ii)
(iii)
RESULT:
Thus the 2 bit magnitude comparator using basic gates and 8 bit magnitude
comparator using IC 7485 was designed and implemented.
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.
1.
2.
3.
4.
5.
COMPONENT
3 I/P AND GATE
OR GATE
NOT GATE
IC TRAINER KIT
WIRES
SPECIFICATION
IC 7411
IC 7432
IC 7404
-
TRUTH TABLE:
S1
0
S0
0
Y = OUTPUT
D0
D1
1
1
0
1
D2
D3
QTY.
2
1
1
1
AS REQUIRED
TRUTH TABLE:
S1
0
0
0
0
1
1
1
1
INPUT
S0
0
0
1
1
0
0
1
1
I/P
0
1
0
1
0
1
0
1
D0
0
1
0
0
0
0
0
0
OUTPUT
D1
D2
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
D3
0
0
0
0
0
0
0
1
PROCEDURE:
(i)
Connections are given as per circuit diagram.
(ii)
(iii)
RESULT:
Thus the multiplexer and demultiplexer using logic gates was designed IC 74150
and IC 74154 also studied.
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.
COMPONENT
3 I/P NAND GATE
OR GATE
NOT GATE
IC TRAINER KIT
PATCH CORDS
SPECIFICATION
IC 7410
IC 7432
IC 7404
-
QTY.
2
3
1
1
27
Y2
0
1
0
0
0
0
0
Y3
0
0
1
0
0
0
0
INPUT
Y4
Y5
0
0
0
0
0
0
1
0
0
1
0
0
0
0
Y6
0
0
0
0
0
1
0
Y7
0
0
0
0
0
0
1
A
0
0
0
1
1
1
1
OUTPUT
B
0
1
1
0
0
1
1
C
1
0
1
0
1
0
1
OUTPUT
D0
D1
D2
D3
PROCEDURE:
(i)
(ii)
(iii)
RESULT:
Thus the encoder and decoder using logic gates were designed and IC 7445, IC
74147 was studied.
EXPT NO.
DATE :
CONSTRUCTION AND VERIFICATION OF 4 BIT RIPPLE COUNTER AND
MOD 10/MOD 12 RIPPLE COUNTER
AIM:
To design and verify 4 bit ripple counter mod 10/ mod 12 ripple counter.
COMPONENT
JK FLIP FLOP
NAND GATE
IC TRAINER KIT
WIRES
SPECIFICATION
IC 7476
IC 7400
-
QTY.
2
1
1
AS REQUIRED
TRUTH TABLE:
CLK
QA
QB
QC
QD
10
11
12
13
14
15
TRUTH TABLE:
CLK
QA
QB
QC
QD
10
TRUTH TABLE:
CLK
QA
QB
QC
QD
10
11
12
PROCEDURE:
(i)
(ii)
(iii)
RESULT:
Thus the 4 bit ripple counter mod 10/ mod 12 ripple counters was implemented
and the truth table was verified.
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.
1.
2.
3.
4.
5.
6.
7.
COMPONENT
JK FLIP FLOP
3 I/P AND GATE
OR GATE
XOR GATE
NOT GATE
IC TRAINER KIT
WIRES
LOGIC DIAGRAM:
SPECIFICATION
IC 7476
IC 7411
IC 7432
IC 7486
IC 7404
-
QTY.
2
1
1
1
1
1
AS REQUIRED
TRUTH TABLE:
Input
Up/Down
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
Present State
QA QB QC
0
1
1
1
1
0
0
0
0
0
0
0
1
1
1
1
0
1
1
0
0
1
1
0
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Next State
QA+1 QB+1 QC+1
1
1
1
1
0
0
0
0
0
0
0
1
1
1
1
0
1
1
0
0
1
1
0
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
JA
KA
JB
KB
JC
KC
1
X
X
X
X
0
0
0
0
0
0
1
X
X
X
X
X
0
0
0
1
X
X
X
X
X
X
X
0
0
0
1
1
X
X
0
1
X
X
0
0
1
X
X
0
1
X
X
X
0
1
X
X
0
1
X
X
X
0
1
X
X
0
1
1
X
1
X
1
X
1
X
1
X
1
X
1
X
1
X
X
1
X
1
X
1
X
1
X
1
X
1
X
1
X
1
PROCEDURE:
(i)
Connections are given as per circuit diagram.
(ii)
(iii)
RESULT:
Thus the 3 bit synchronous up/down counter was designed implemented.
EXPT NO.
DATE :
DESIGN AND IMPLEMENTATION OF SHIFT REGISTER
AIM:
To design and implement
(i)
Serial in serial out shift register ii) Serial in parallel out shift register
(ii)
Parallel in serial out shift register iii) Parallel in parallel out shift register
LIST OF COMPONENTS & INSTRUMENTS REQUIRED:
Sl.No.
1.
2.
3.
4.
COMPONENT
D FLIP FLOP
OR GATE
IC TRAINER KIT
WIRES
SPECIFICATION
IC 7474
IC 7432
-
LOGIC DIAGRAM:
SERIAL IN SERIAL OUT:
TRUTH TABLE:
CLK
1
2
3
4
5
6
7
Serial in
1
0
0
1
X
X
X
Serial out
0
0
0
1
0
0
1
QTY.
2
1
1
AS REQUIRED
LOGIC DIAGRAM:
SERIAL IN PARALLEL OUT:
TRUTH TABLE:
OUTPUT
CLK
1
2
3
4
DATA
1
0
0
1
QA
1
0
0
1
QB
0
1
0
0
QC
0
0
1
0
QD
0
0
1
1
TRUTH TABLE:
CLK
0
1
2
3
Q3
1
0
0
0
Q2
0
0
0
0
Q1
0
0
0
0
Q0
1
0
0
0
O/P
1
0
0
1
LOGIC DIAGRAM:
PARALLEL IN PARALLEL OUT:
TRUTH TABLE:
DATA INPUT
OUTPUT
CLK
DA
DB
DC
DD
QA
QB
QC
QD
PROCEDURE:
(i)
(ii)
(iii)
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.
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:
RESULT:
Thus the Boolean operation using LAB view is performed.
Quantity
1
NAND GATE:
module gl(a,b,c);
input a;
input b;
output c;
nand(c,a,b);
end module
NOR GATE:
module gl(a,b,c);
input a;
input b;
output c
nor(c,a,b);
end module
HALF ADDER:
module half adder(a,b,c,s);
input a;
input b;
output c;
output s;
xor(s,a,b);
and(c,~a,b);
end module
HALF SUBTRACTOR:
module half sub(a,b,c,s);
input a;
input b;
output c;
output s;
xor(s,a,b);
and(c,~a,b);
end module
ENCODER
module Encd2to4(i0, i1, i2, i3, out0, out1);
input i0,i1, i2, i3;
output out0, out1;
reg out0,out1;
always@(i0,i1,i2,i3)
case({i0,i1,i2,i3})
4'b1000:{out0,out1}=2'b00;
4'b0100:{out0,out1}=2'b01;
4'b0010:{out0,out1}=2'b10;
4'b0001:{out0,out1}=2'b11;
default: $display("Invalid");
endcase
endmodule
DECODER:
// Module Name: Decd2to4
module Decd2to4(i0, i1, out0, out1, out2, out3);
input i0, i1;
output out0, out1, out2, out3;
reg out0,out1,out2,out3;
always@(i0,i1)
case({i0,i1})
2'b00:
{out0,out1,out2,out3}=4'b1000;
2'b01:
{out0,out1,out2,out3}=4'b0100;
2'b10:
{out0,out1,out2,out3}=4'b0001;
default:
$display("Invalid");
endcase
endmodule
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.
EXPT NAME :
DATE :
IMPLEMENTATION OF FLIP-FLOPS
Quantity
1
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.
EXPT NAME :
DATE :
IMPLEMENTATION OF COUNTERS
Quantity
1
2 clock voltage
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:
Click on Place,click Component, select aComponent window opens & select the
following
Select Indicators,Probe, Dig Probe, Red indicator bulb & click ok.
Select Indicators, Probe,Dig probe Green indicator bulb & click ok.
Result:
Design of logic circuit of OR gate is completed. Simulation of logic circuit OR gate
satisfies the truth table.
2 clock voltage
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:
Click on Place,click Component, select aComponent window opens & select the
following
Select Indicators, Probe, Dig probe green bulb & click ok.
RESULT:
Design of logic circuit of AND gate is completed. Simulation of logic circuit AND gate
satisfies the truth table.
2 clock voltage
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:
Click on Place, clickComponent, selecta Component window opens & select the
following
Select Indicators, Probe, Dig probe green bulb & click ok.
RESULT:
Design of logic circuit of NOT gate is completed. Simulation of logic circuitNOT gate
satisfies the truth table.
2 clock voltage
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
RESULT:
Design of logic circuit of NOR gate is completed. Simulation of logic circuit NOR gate
satisfies the truth table.
2 Clock voltage
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:
Click on Place, click Component, select a Component window opens & select the
following
Select Indicators, Probe, Dig probe green bulb & click ok.
Result:
Design of logic circuit of NAND gate is completed. Simulation of logic circuit NAND
gate satisfies the truth table.
2 Clock voltage
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:
Click on Place, click Component, select a Component window opens & select the
following
Select Indicators, Probe, Dig probe red bulb & click ok.
Select Indicators, probe, dig probe green bulb & click ok.
Result:
Design of logic circuit of X-OR gate is completed. Simulation of logic circuit X-OR
gate satisfies the truth table.
NOT gate(7405N)
2 clock voltage
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 Indicators, Probe, Dig probe red bulb & click ok.
Select Indicators, probe, Dig probe green bulb & click ok.
RESULT:
Design of logic circuit of X-NOR gate is completed. Simulation of logic circuit X-NOR
satisfies the truth table.
2. COMBINATION OF GATES
2(a) HALF ADDER
AIM:
Design & Simulate a logic circuit of half adder.
COMPONENTS USED:
One XOR gate(7486N),
2 clock voltage,
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:
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.
RESULT:
Design of logic circuit of half adder is completed & is as shown in fig. Simulation of
logic circuit satisfies the truth table.
2 XOR gate(7486N),
2 AND gate(7408J),
one OR gate(7132N)
3 clock voltage
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.
RESULT:
Design of logic circuit of full adder is completed & is as shown in fig. Simulation of
logic circuit satisfies the truth table.
2 clock voltage
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:
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.
RESULT:
Design of logic circuit of half subtractor is completed. Simulation of logic circuit
satisfies the truth table shown.
2 clock voltage
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:
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.
RESULT:
Design of logic circuit of full subtractor is completed. Simulation of logic circuit
satisfies the truth table shown.
2 clock voltage
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:
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.
RESULT:
Design of logic circuit of 2-4 decoder is completed. Simulation of logic circuit satisfies
the truth table shown.
3 clock voltage
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:
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.
RESULT:
Design of logic circuit of 3-8 decoder is completed. Simulation of logic circuit satisfies
the truth table shown.
5. FLIP FLOP
5(a) S-R FLIP FLOP
AIM:
Design & Simulate a logic circuit of S-R Flip flop.
COMPONENTS USED:
2 clock voltage
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:
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.
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.
JK Flip Flop
Function generator
2 DGND
THEORY:
The J-K Flip Flop shown in fig.. The Flip Flop has two outputs Q and
Set and Reset.
PROCEDURE:
Click on Place, click Component, select a Component window opens & perform the
following
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
PROCEDURE:
Click on Place, click Component, select a Component window opens & perform the
following
LOGIC DIAGRAM 2
LOGIC DIAGRAM 3
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
7. 4X1 MULTIPLEXER
AIM:
Design & Simulate a 4X1 Multiplexer
COMPONENTS USED:
Indicator Probe
PROCEDURE:
Click on Place, click Component, select a Component window opens & perform the
following
Place the above components & Join the circuit as shown in fig.
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
8. 1X4 DEMULTIPLEXER
AIM:
Design & Simulate a 1x4 De multiplexer
COMPONENTS USED:
Two 74LS04N
PROCEDURE:
Click on Place, click Component, select a Component window opens & perform the
following
LOGIC DIAGRAM 1
LOGIC DIAGRAM 2
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
AIM:
Design & Simulate a 4 Bit Magnitude comparator
COMPONENTS USED:
PROCEDURE:
Click on Place, click Component, select a Component window opens & perform the
following
Place the above components & Join the circuit as shown in fig.
LOGIC DIAGRAM 1
LOGIC DIAGRAM 2
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
.
One 74LS163D
Digital Clock
PROCEDURE:
Click on Place, click Component, select a Component window opens & perform the
following
LOGIC DIAGRAM
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
.
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
RESULT:
Design of Half adder circuit is completed & is as shown in fig. Simulation of logic circuit
is according to the truth table shown .
FUNCTIONS USED:
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
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
FUNCTIONS USED:
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
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
Logical operators
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
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