Documente Academic
Documente Profesional
Documente Cultură
Page 2
LIST OF EXPERIMENTS
1. Realization of Logic gates.
2. Parity Encoder.
3. Random Counter
4. Synchronous RAM.
5. ALU. 6. UART Model.
7. Fire Detection and Control System using Combinational Logic
circuits.
8. Traffic Light Controller using Sequential Logic circuits
9. Pattern Detection using Moore Machine.
10. Finite State Machine (FSM) based logic circuit.
Page 3
AIM: To Design the following Logic Gates and verify the functionality using software
and hardware.
1.AND Gate
2.OR Gate
3.NOT Gate
4.NAND Gate
5.NOR Gate
6.Ex-OR Gate
7.Ex-NOR Gate
APPARATUS:
1. Xilinx ise 9.2i
2. Digital IC-7408,7432,7404,7400,7402,7486,74135
3. Power cards, interfacing cards
AND GATE
I.DESIGN PROCEDURE:
1 .Def:-A circuit whose output is 1 if both of its inputs are 1 and output is 0 if any of
its input is 0.
2 Determine the required number of input and output from specification
Number of inputs:2
Number of outputs:1
3. Assign a symbol to each input/output
Inputs:x,y
Outputs:z
3. Derive the truth table from the required relationship
Inputs
y
Outp
ut
z
Page 4
Page 5
end behav1;
-- Behavioral model
architecture behav2 of AND2 is
begin
process (x, y)
begin
if (x='1' and y='1') then
Z <= '1';
else
Z <= '0';
end if;
end process;
end behav2;
Page 6
OR gate
I.DESIGN PROCEDURE:
Page 7
1 .Def:-A circuit whose output is 0 when all the inputs are 0 otherwise the output will
be 1.
2 Determine the required number of input and output from specification
Number of inputs:2
Number of outputs:1
3. Assign a symbol to each input/output
Inputs:x,y
Outputs:z
3. Derive the truth table from the required relationship
Inputs
y
Outp
ut
z
Page 8
end behav1;
-- Behavioral model
architecture behav2 of OR2 is
begin
process (x, y)
Dept. of Electronics and Communication Engineering
Page 9
begin
if (x='0' and y='0') then -- Compare with truth table
Z <= '0';
else
Z<= '1';
end if;
end process;
end behav2;
P a g e 10
bench.
3. Perform Check syntax and simulate test bench. SIMULATION RESULTS will be
displayed
OUTPUT WAVEFORM:
NOT gate
I.DESIGN PROCEDURE:
1 .Def:-A circuit whose output is compliment of the input.
2 Determine the required number of input and output from specification
Dept. of Electronics and Communication Engineering
P a g e 11
Number of inputs:1
Number of outputs:1
3. Assign a symbol to each input/output
Inputs:x
Outputs:y
3. Derive the truth table from the required relationship
Inpu
t
x
Outpu
t
y
P a g e 12
end behav1;
-- Behavioral model
architecture behav2 of not1 is
begin
process (X)
begin
if (x='0') then -- Compare with truth table
Z <= '1';
else
Dept. of Electronics and Communication Engineering
P a g e 13
Z<= '0';
end if;
end process;
end behav2;
P a g e 14
NAND gate
I.DESIGN PROCEDURE:
1 .Def:-A circuit whose output is 0 when all the inputs are 1 otherwise the output will
be 1.
2 Determine the required number of input and output from specification
Number of inputs:2
Dept. of Electronics and Communication Engineering
P a g e 15
Number of outputs:1
3. Assign a symbol to each input/output
Inputs:x,y
Outputs:z
3. Derive the truth table from the required relationship
Inputs
y
Outp
ut
z
P a g e 16
end behav1;
-- Behavioral model
architecture behav2 of nand2 is
begin
Process (x, y)
Begin
Dept. of Electronics and Communication Engineering
P a g e 17
P a g e 18
bench.
3. Perform Check syntax and simulate test bench. SIMULATION RESULTS will be
displayed
OUTPUT WAVEFORM:
NOR gate
I.DESIGN PROCEDURE:
1 .Def:-A circuit whose output is 1 when all the inputs are 0 otherwise the output will
be 0.
2 Determine the required number of input and output from specification
Number of inputs:2
Dept. of Electronics and Communication Engineering
P a g e 19
Number of outputs:1
3. Assign a symbol to each input/output
Inputs:x,y
Outputs:z
3. Derive the truth table from the required relationship
Inputs
y
Outp
ut
z
P a g e 20
-- Behavioral model
architecture behav2 of nor2 is
begin
process (x, y)
Dept. of Electronics and Communication Engineering
P a g e 21
begin
If (x='0' and y='0') then -- Compare with truth table
Z <= '1';
else
Z <= '0';
end if;
end process;
end behav2;
P a g e 22
next. A dummy test bench will be created. Provide the test bench and save the test
bench.
3. Perform Check syntax and simulate test bench. SIMULATION RESULTS will be
displayed
OUTPUT WAVEFORM:
EX-OR gate
I.DESIGN PROCEDURE:
1 .Def:-A circuit whose output is 0 when all the inputs are same otherwise the
output will be 1.
2 Determine the required number of input and output from specification
Dept. of Electronics and Communication Engineering
P a g e 23
Number of inputs:2
Number of outputs:1
3. Assign a symbol to each input/output
Inputs:x,y
Outputs:z
3. Derive the truth table from the required relationship
Inputs
y
Outp
ut
z
P a g e 24
-- Behavioral model
architecture behav2 of xor2 is
begin
process (x, y)
begin
Dept. of Electronics and Communication Engineering
P a g e 25
If (x/=y) then
Z <= '1';
else
Z<= '0';
end if;
end process;
end behav2;
P a g e 26
bench.
3. Perform Check syntax and simulate test bench. SIMULATION RESULTS will be
displayed
OUTPUT WAVEFORM:
EX-NOR gate
I.DESIGN PROCEDURE:
1 .Def:-A circuit whose output is 1 when all the inputs are same otherwise the
output will be 0.
2 Determine the required number of input and output from specification
Dept. of Electronics and Communication Engineering
P a g e 27
Number of inputs:2
Number of outputs:1
3. Assign a symbol to each input/output
Inputs:x,y
Outputs:z
3. Derive the truth table from the required relationship
Inputs
y
Outp
ut
z
P a g e 28
end behav1;
-- Behavioral model
architecture behav2 of xnor2 is
begin
process (x, y)
begin
Dept. of Electronics and Communication Engineering
P a g e 29
If (x=y) then
Z <= '1';
else
Z<= '0';
end if;
end process;
end behav2;
P a g e 30
bench.
3. Perform Check syntax and simulate test bench. SIMULATION RESULTS will be
displayed
OUTPUT WAVEFORM:
THEORY:
In digital electronic circuits as two logic levels Logic-I, Logic-O. These are also known as HIGH
and LOW logic levels.
There are two logic circuits.
1. Positive logic: In which 1 corresponding to HIGH, 0 corresponding to LOW.
2. Negative logic: In which 1 corresponding to LOW, 0 corresponding to HIGH.
P a g e 31
BASIC OPERATIONS:
AND Gate:
IC 74LS08 is quad 2-i/p AND gate. It requires 5V DC. The o/p of AND gate is HIGH
when both the inputs are HIGH otherwise HIGH.
OR Gate:
IC 74LS32 is quad 2-i/p OR gate. It requires 5V DC. The o/p of OR gate is LOW when
both the inputs are LOW otherwise IIIGH.
NOT Gate:
IC 74LS04 is hex NOT gate. The o/p of NOF gate is always complementing of i/p.
NAND Gate:
IC 74LS00 is quad 2-i/p NAND gate. It requires 5V DC. The o/p of NAND gate is LOW
when both the inputs are HIGH otherwise I 11GII.
NOR Gate:
IC 74LS02 is quad 2-i/p NOR gate. It requires 5v. The O/p of NOR gate is HIGH when
both e inputs are LOW otherwise LOW.
EX-OR Gate:
IC 74LS86 is quad 2-i/p EX-OR gate. It requires 5V DC. The o/p of EX-OR gate is HIGH when
two different inputs are applied otherwise LOW.
PROCEDURE:
1.+5V DC is applied at 1cc (pin no 14)of each IC w.r.t ground (pin no7).
2. 1/Ps are applied (at pin nos l&2) and output is taken from (pin no 3).
3. I/Ps are applied from toggle switches and o/p is observed at o/p indicators.
PRECATIONS:
1. Avoid loose connections on bread board.
2. Take care while make connections with NOT and NOR gates.
RESULT:
P a g e 32
0
1
1
0
0
0
1
1
0
1
0
1
0
1
1
1
AND GATE:
A
0
0
1
1
0
1
0
1
0
0
0
1
0
1
1
0
P a g e 33
0
0
1
1
0
1
0
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
PROCEDURE:
1. +5V DC is applied at VCC (pin no 14) of each IC w.r.t ground (pin no7).
2. Connect the circuit as shown in circuit diagram
3. Inputs are applied to toggle switches and outputs are connected to output LEDs.
4. Verify the truth tables as shown in the truth tables.
PRECATIONS:
1. Avoid loose connections on bread board.
2. Take care while make connections with VCC and GND.
3. Dont switch ON the kit till all connections are made.
RESULT:
P a g e 34
APPARATUS:
1. Bread board IC trainer
2. IC 7404, 7408, 7432
3. Patch cards.
THEORY:
CIRCUIT DIAGRAMS:
TRUTH TABLES:
+
0
1 Engineering
Dept. of Electronics and Communication
P a g e 35
PROCEDURE:
1. +5V DC is applied at VCC (pin no 14) of each IC w.r.t ground (pin no7).
2. Connect the circuit as shown in circuit diagram
3. Inputs are applied to toggle switches and outputs are connected to output LEDs.
4. Verify the truth tables as shown in the truth tables.
PRECAUTIONS:
1. Avoid loose connections on bread board.
2. Take care while make connections with VCC and GND.
3. Dont switch ON the kit till all connections are made.
RESULT:
3. 41 MULTIPLEXER
AIM:
Design a Combinational Logic Circuit for 41 MUX and verify the truth table.
APPARATUS:
1. Bread board IC trainer
2. IC 74153
3. Patch cards.
P a g e 36
THEORY:
Multiplexers are very useful components in digital systems. They transfer a large number
of information units over a smaller number of channels, (usually one channel) under the control
of selection signals. Multiplexer means many to one. A multiplexer is a circuit with many inputs
but only one output. By using control signals (select lines) we can select any input to the output.
Multiplexer is also called as data selector because the output bit depends on the input data bit
that is selected. The general multiplexer circuit has 2n input signals, n control/select signals and
1 output signal.
CIRCUIT DIAGRAM:
PIN DIAGRAM:
TRUTH TABLE:
P a g e 37
PROCEDURE:
1. +5V DC is applied at VCC (pin no 16) w.r.t ground (pin no 8).
2. Connect the circuit as shown in circuit diagram
3. Inputs are applied to toggle switches and outputs are connected to output LEDs.
4. Verify the truth tables as shown in the truth tables.
PRECAUTIONS:
1. Avoid loose connections on bread board.
2. Take care while make connections with VCC and GND.
3. Dont switch ON the kit till all connections are made.
RESULT:
4. 14 DE-MULTIPLEXER
Dept. of Electronics and Communication Engineering
P a g e 38
AIM:
Design a combinational circuit for 14 De-MUX and verify the truth table.
APPARATUS:
1. Bread board IC trainer
2. IC 74156
3. Patch cards.
THEORY:
De-multiplexers perform the opposite function of multiplexers. They transfer a small
number of information units (usually one unit) over a larger number of channels under the
control of selection signals. The general de-multiplexer circuit has 1 input signal, n control/select
signals and 2n output signals. De-multiplexer circuit can also be realized using a decoder
circuit with enable.
PIN DIAGRAM:
TRUTH TABLE:
P a g e 39
PROCEDURE:
1. +5V DC is applied at VCC (pin no 16) w.r.t ground (pin no 8).
2. Connect the circuit as shown in circuit diagram
3. Inputs are applied to toggle switches and outputs are connected to output LEDs.
4. Verify the truth tables as shown in the truth tables.
PRECAUTIONS:
1. Avoid loose connections on bread board.
2. Take care while make connections with VCC and GND.
3. Dont switch ON the kit till all connections are made.
RESULT:
5. RAM-74189
Dept. of Electronics and Communication Engineering
P a g e 40
AIM:
Verify the data read and data write operations for the IC74189.
APPARATUS:
1. Bread board IC trainer
2. IC 74189
3. Patch cards.
4. Connecting Wires
THEORY:
The 74189 is a high speed 64-bit RAM organized as a 16-word by 4-bit array. Address
inputs are buffered to minimize loading and are fully decoded on- chip. The outputs are 3-state
and are in high impedance state whenever the Memory Enable (ME) input is HIGH. The outputs
are active only in the Read mode and the output data is the complement of the stored date. Here
A0-A3 are the address inputs, D1-D4 are data inputs, O1-O4 are inverted data outputs
PIN DIAGRAM:
P a g e 41
MEMORY ENABLE
WRITE ENABLE
OPEARION
PROCEDURE:
This experiment has 3-stages- clearing the memory, data entry(write operation) and
data verification (read operation).
1. The memory enable pin is used to select 1-of-n ICs i.e., like a chip select
signal.
For simplicity, the memory enable pin is permanently held low.
2. The address lines are given through an up/down counter with preset
capability.
3. The set address switch is held high to allow the user choose any location in
the RAM, using the address bots.
4. The address and data bits are used to set an address and enter the data.
5. The Read Write switch is used to write data on the RAM.
P a g e 42
The 74189 is a volatile memory. This means that it will lose the data stored in it, on
loss of power. However this does not means the content of the memory becomes
0h, but not always. The RAM IC 74189 does not come with a Clear Memory signal.
The memory has to be cleared manually.
1.
2.
3.
4.
Design a Gray Code Encoder and interface it to SRAM IC74189 for Write operation display on
7-Segment.
Design a Gray code De-Coder and interface it to SRAM IC74189 for Read operation display it
on 7-Segment.
P a g e 43
P a g e 44
CIRCUIT DIAGRAM:
HALF ADDER
FULL ADDER
TRUTH TABLE:
TRUTH TABLE:
A
SUM
CARRY
A
0
0
0
0
1
1
1
1
B
0
0
1
1
0
0
1
1
C
0
1
0
1
0
1
0
1
PROCEDURE:
1. +5V DC is applied at VCC (pin no 14) of each IC w.r.t ground (pin no7).
2. Connect the circuit as shown in circuit diagram
3. Inputs are applied to toggle switches and outputs are connected to output LEDs.
4. Verify the truth tables of half adder as shown in the truth tables.
PRECATIONS:
1. Avoid loose connections on bread board.
2. Take care while make connections with VCC and GND.
Dept. of Electronics and Communication Engineering
Sum
0
1
1
0
1
0
0
1
Carry
0
0
0
1
0
1
1
1
P a g e 45
Unpredictable
state
0
1
0
1
1
0
1
0
1
1
No change
Dept. of Electronics and Communication Engineering
0
P a g e 46
R
0
0
1
1
0S
00
0Q
11
10
1
Q
cant say
1 No change
1
0
00
01
1
1
0
1
No change
Unpredictable
state
PROCEDURE:
1. +5V DC is applied at VCC (pin no 14)of each IC w.r.t ground (pin no7).
2. Connect the circuit as shown in circuit diagram
3. Inputs are applied to toggle switches and outputs are connected to output LEDs.
4. Verify the truth tables of NAND and NOR Latches as shown in the truth tables.
PRECATIONS:
1.Avoid loose connections on bread board.
2. Take care while make connections with VCC and GND.
3. Dont switch ON the kit till all connections are made.
RESULT:
P a g e 47
11.
AIM:
Implementations of master slave flip-flop with JK Flip-Flop and verify the truth table for race
around condition.
EQUIPMENT REQUIRED:
1. IC trainer kit.
2. ICs 7476
3. Connecting wires/ patch chords.
THEORY:
A master slave flip flop contains two clocked flip flops. The first is called master and the
second slave. When the clock is high the master is active. The output of the master is set or reset
according to the state of the input. As the slave is inactive during this period its output remains in
the previous state. When clock becomes low the output of the slave flips flop changes because it
become active during low clock period. The final output of master slave flip flop is the output of
the slave flip flop. So the output of master slave flip flop is available at the end of a clock pulse.
PIN DIAGRAM:
P a g e 48
CONNECTION DIAGRAM:
TRUTH TABLE:
PROCEDURE:
1. +5V DC is applied at VCC (pin no 5)of each IC w.r.t
ground (pin no13).
2. Connect the circuit as shown in circuit diagram
3. Inputs are applied to toggle switches and outputs are connected to output LEDs.
4. Connect the NOT gate input to the pin no.1 and output to the pin no.6.
5. Apply the clock signal to the pin no.1
Dept. of Electronics and Communication Engineering
P a g e 49
12.
DECADE COUNTER
AIM:
Design a decade counter and verify the truth table.
EQUIPMENT REQUIRED:
1. IC trainer kit.
2. ICs 7490
3. Connecting wires/ patch chords.
THEORY:
The decade counter (mod-10 counter) is used most often. In order to count from 0 through 9, a
counter with 3 flip-flops is not sufficient. With 4 flip-flops one can count from 0 to15 (16 states).
Out of these 16 states, we should skip any 6 states. In the decade counter, when the output is
1010(for the 10th clock pulse), all the flip-flops should be reset. Thus the outputs Q3 and Q1 are
given directly to the inputs of the AND gate and the outputs Q2 and Q0 are given through
inverters. Therefore, for the 10th clock pulse, the counter output would be 1010 for a moment.
This sends the output of the AND gate to HIGH clearing all the flip-flops. Thus a decade counter
has been developed.
PIN DIAGRAM:
Dept. of Electronics and Communication Engineering
P a g e 50
TRUTH TABLE:
PROCEDURE:
1. Connect the circuit as shown in the figure.
2. The clock pulse is given to pin-14 of IC 7490.
3. The Vcc supply is given to pin-5 of IC 7490.
4. Pin-12 and pin-1 to be shorted.
Dept. of Electronics and Communication Engineering
P a g e 51
5. Pins-2, 3 are Master Reset (MR) inputs and pins-6, 7 are Master Set (MS) inputs.
6. Pins-13, 14 has no connections.
7. Pins-2, 3, 6, 7 are inputs and is always 0 so that it is connected to ground.
8. Pins-12, 9,8,11 are outputs.
9. Feed MR terminal with 1 and MS terminals with 0 then the display shows0.
10.Feed MR terminal with 0 and MS terminals with 1 then the display shows9.
11.Feed MR terminal with 0 and MS terminals with 0,now apply clock then the output varies
between the values 0 and 9.
PRECAUTIONS:
1. Avoid loose connections on the bread board.
2. No connections are to be given to pins-13, 14.
3. Vcc should not exceed +5v.
RESULT: