Ade Final Manual PDF
Ade Final Manual PDF
Ade Final Manual PDF
DEPARTMENT OF
INFORMATION SCIENCE AND ENGINEERING
CODE: 18CSL37
Prepared By:
Prof. C.S JAYASHEELA
Assistant Professor
Dept. of ISE, BIT
ANALOG AND DIGITAL ELECTRONICS LABORATORY (18CSL37)
Pre-requisite
• Basic Mathematics
Course objectives
Course Outcomes
Students should be able to
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1 3 2 2 2
ADE
Lab CO2 3 3 3 2 2 2 1
18CSL37
CO3 3 3 3 2 2 2 1
CO4 2 2 2 2 1
CO5 3 3 3 2 3 3 1
PSO1 PSO2
CO1 2 3
ADE Lab CO2 2 3
18CSL37
CO3 2 3
CO4 2 3
CO5 2 3
Design an astable multivibrator circuit for three cases of duty cycle (50%, <50% and
1 >50%) using NE 555 timer IC. Simulate the same for any one duty cycle.
Using ua 741 Opamp, design a 1 kHz Relaxation Oscillator with 50% duty cycle. And
2 simulate the same
Using ua 741 opamap, design a window comparator for any given UTP and LTP. And
3 simulate the same.
Given a 4-variable logic expression, simplify it using appropriate technique and realize the
5 simplified logic expression using 8:1 multiplexer IC. And implement the same in HDL.
Realize a J-K Master / Slave Flip-Flop using NAND gates and verify its truth table. And
6 implement the same in HDL.
Design and implement code converter I) Binary to Gray (II) Gray to Binary Code using
7 basic gates.
Design and implement a mod-n (n<8) synchronous up counter using J-K Flip-Flop ICs and
8 demonstrate its working.
Design and implement an asynchronous counter using decade counter IC to count up from
9 0 to n (n<=9) and demonstrate on 7-segment display (using IC-7447).
Write-up &
Implementation Analysis & Execution Results & Tabulation Record/Journal
Write-up &
Implementation Execution & Results Viva
A Group of students will be designing and demonstrating the given Analog/Digital Circuit in
Hardware or Software. Based on their work marks will be allocated.
GROUP ACTIVITY
Design Implementation Presentation Total
Design and implement code converter I) Binary to Gray (II) Gray Week3
3 to Binary Code using basic gates.
Given a 4-variable logic expression, simplify it using appropriate
4 technique and realize the simplified logic expression using 8:1 Week4
multiplexer IC. And implement the same in HDL.
Realize a J-K Master / Slave Flip-Flop using NAND gates and Week5
5 verify its truth table. And implement the same in HDL.
TEST-I Week6
Using ua 741 opamap, design a window comparator for any given Week11
10 UTP and LTP. And simulate the same.
TEST-II Week 12
11 Repetitions Week13
12 Repetitions Week14
Introduction
AIM:
To design and implement an astable multivibrator using 555 Timer for a given frequency and
duty cycle.
COMPONENTS REQUIRED:
THEORY:
Multivibrator is a form of oscillator, which has a non-sinusoidal output. The output waveform
is rectangular. The multivibrators are classified as
ii) Monostable or one shot multivibrators: It has one stable state and one quasi stable. The
application of an input pulse triggers the circuit time constants and the output goes to the
quazi stable state, after a period of time determined by the time constant, the circuit returns to
its initial stable state. The process is repeated upon the application of each trigger pulse.
iii) BistableMultivibrators: It has both stable states. It requires the application of an external
triggering pulse to change the output from one state to other. After the output has changed its
state, it remains in that state until the application of next trigger pulse. Flip flop is an
example.
Timer IC 555 is a general purpose integrated circuit, widely used to configure monostable
and astable multivibrator circuits around.
CIRCUIT:
+VCC
4,8
RA
7
V0
555 3
RB +
V0 CRO
2,6
5 1
+ -
Vc 0.1μF
-
0.01µf
DESIGN:
Design 1: Given frequency (f) = 1 KHz and duty cycle = 60% (=0.6)
The time period T =1/f = 1ms = tH + tL
Where tH is the time the output is high and tL is the time the output is low.
From the theory of astable multivibrator using 555 Timer (refer Malvino), we have
tH = 0.693 RB C ------(1)
tL = 0.693 (RA + RB)C ------(2)
T = tH + tL = 0.693 (RA +2 RB) C
Duty cycle = tH / T = 0.6. Hence tH = 0.6T = 0.6ms and tL = T – tH = 0.4ms.
Let C=0.1μF and substituting in the above equations,
RB = 5.8KΩ (from equation 1) and RA = 2.9KΩ (from equation 2 & RB values).
The Vcc determines the upper and lower threshold voltages (observed from the capacitor
2 1
voltage waveform) as VUT = VCC & VLT = VCC .
3 3
Note: The duty cycle determined by RA & RB can vary only between 50 & 100%. If RA is
much smaller than RB, the duty cycle approaches 50%. Since charging and discharging is via
RB, ignoring RA
f= 1 Hz
0.693 (2R2) .C
EXPECTED OUTPUT:
PROCEDURE:
APPLICATIONS:
Astable multivibrators are used in pulse position modulation, frequency modulation, etc.
To Flash LEDs, it acts as Frequency divider, ramp generators etc.
RESULT:
Astable Multivibrator was designed and implemented using 555 timer with three cases and
the given frequency was verified with the output graph obtained.
OUTPUT WAVEFORM:
2. Using ua 741 Opamp, design a 1 kHz Relaxation Oscillator with 50% duty cycle. And
simulate the same.
AIM:
COMPONENTS REQUIRED:
THEORY:
Oscillator is an equipment produces oscillated output (Sine,Square or Rectangular) without any input
except the bias voltage (DC). The type of feedback is positive. The main components required are
Amplifier.(opamp is used here) Tank circuit, Positive Feed Back network. The condition for
oscillation is Av = -1 (loop gain) and Total phaseShift arround loop is 0 or 3600 (since positive
feedback). Av is open loop gain of Opamp, is Feedback factor.
Relaxation oscillator is an oscillator circuit that produces a non sinusoidal output where
time period is depend on charging time of a capacitor connected as a part of the oscillator circuit. Op-
amp adopts very well for construction of relaxation oscillator that produces a square and rectangular
output. The time period of output may be conventionally vary by varying the value of resistor R
which is a part of tank circuit. The resistances R1and R2 make the feedback circuit (positive) that
compress the loss of R C circuit.
When the output is in positive saturation, the voltage at non-inverting input of op-amp is
+Vsat this forces output to stay in positive saturation as the capacitor ‘C’ is initially
discharged. It starts charging towards +Vsat through R. The moment capacitor voltage
exceeds the voltage appearing at non- inverting input, the output switches to –Vsat. The
voltage at non inverting input also changes to –Vsat ( The capacitor starts discharging
and after reaching zero, it begins to discharge towards –Vsat. As it becomes more –ve than the –ve
threshold appearances at non inverting input, the output switches to +Vsat and cycle repeats.
CIRCUIT:
R1 R
12V
3
7 6
µA741
C 2 -
4 +
- CRO
+ 12V CRO
VC VOUT
-
R2
DESIGN:
where
when R1= R2, T =2RC ln (3)
If we choose R2=1.16 R1, T =2RC
For a frequency of design 1 kHz means, T = 1/f
T = 1/103 or T = 10-3 ms, Hence, T = 1ms
Let R1 =10KΩ, then R2=11.6 KΩ (use a 20 KΩ potentiometer) Choosing a suitable value of
C, the value of R can be calculated . Let C = 0.1µF, then R = T/2C
R = (1x 10-3 )/ (2 x 0.1 x 10-6 ) Therefore, R = 5 KΩ. Based on the hardware design,
EXPECTED OUTPUT:
PROCEDURE:
1. Before making the connections check the working conditions of all the components.
2. Make the connections as shown in figure and switch on the power supply.
3. Observe the waveform across the capacitor on CRO and measure its amplitude.
4. Also observe the output waveform on CRO. Measure its amplitude and frequency.
APPLICATIONS:
• Used as an oscillator to produce Square or Rectangular wave.
• The Square wave can be used as a frequency generator in CPU.
RESULT:
The designed frequency is verified from the waveforms obtained on CRO and duty cycle is
measured.
SIMULATION CIRCUIT
R1 R
12V
3
7 6 V
V +
VC µA741
-
C 2 VOUT
4
12V
R2
EXPECTED OUTPUT:
20V
10V
0V
- 10V
- 20V
0s 5ms 10ms 15ms 20ms 25ms 30ms 35ms 40ms
V(C1:2) V(R3:2)
Time
Type of analysis: TIME DOMAIN (TRANSIENT), Run to time: 10ms, Step size: 0.01ms
PROCEDURE:
RESULT:
Relaxation oscillator was designed for 1khz using 741 Opamp and the output waveforms
were verified.
3. Using µa 741 opamp, design a window comparator for any given UTP and LTP. And
simulate the same.
AIM:
To design and implement a window comparator using µa 741 op-amp for the given UTP and
LTP values.
COMPONENTS REQUIRED:
THEORY:
A Window Comparator is basically the inverting and the non-inverting comparators above
combined into a single comparator stage. The window comparator detects input voltage
levels that are within a specific band or window of voltages, instead of indicating whether a
voltage is greater or less than some preset or fixed voltage reference point.
This time, instead of having just one reference voltage value, a window comparator will have
two reference voltages implemented by a pair of voltage comparators. One which triggers an
op-amp comparator on detection of some upper voltage threshold, VREF(UPPER)and one which
triggers an op-amp comparator on detection of a lower voltage threshold level, VREF(LOWER).
Then the voltage levels between these two upper and lower reference voltages is called the
“window”, hence its name.
Using our idea above of a voltage divider network, if we now use three equal value resistors
so that R1 = R2 = R3 = R we can create a very simple window comparator circuit as shown.
Also as the resistive values are all equal, the voltage drops across each resistor will also be
equal at one-third the supply voltage, 1/3Vcc. Then in this simple example, we can set the
upper reference voltage to 2/3Vcc and the lower reference voltage to 1/3Vcc.
CIRCUIT:
Design Steps 1. Define the upper (VH) and lower (VL ) window voltages. 2. Choose
resistor values to achieve the
PROCEDURE:
1. Before making the connections check the working conditions of all the components.
2. Make the connections as shown in figure and switch on the power supply.
3. Give the input waveform with required frequency and amplitude.
4. Also observe the output waveform on CRO. Measure its amplitude and frequency.
APPLICATIONS:
RESULT:
4. Design and implement Half adder, Full Adder, Half Subtractor, Full Subtractor using
basic gates. And implement the same in HDL.
AIM:
To realize Half Adder, Full Adder, Half Subtractor, Full Subtractor using basic gates.
COMPONENTS REQUIRED:
1 IC7404 1
2 IC 7408 2
3 IC 7432 1
4 Patch chords 30
5 Trainer kit 1
HALF ADDER:
THEORY:
Half Adder is a combinational circuit is used to perform addition of 2 bits in the form of sum
and carry.
i/p’s o/p’s
A B Sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
SIMPLIFICATION:
Sum= A B + A B
Carry= A B
CIRCUIT:
A B
7404
7408
7432
Sum
Carry
FULL ADDER:
THEORY:
Full Adder is a combinational circuit, is used to perform addition of 3 bits. It returns 2 bits of
output in the form of sum and carry.
i/p’s o/p’s
A B Cin Sum Carry
0 0 0 0 0
0 1 0 1 0
0 0 1 1 0
0 1 1 0 1
1 0 0 1 0
1 1 0 0 1
1 0 1 0 1
1 1 1 1 1
SIMPLIFICATION:
= Cin +AB
CIRCUIT DIAGRAM:
HALF SUBTRACTOR:
THEORY:
i/p’s o/p’s
A B Diff Borrow
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
SIMPLIFICATION:
Diff= A B + A B
Borrow = A B
CIRCUIT:
A B
7404
7408
Borrow
Diff
7432
FULL SUBTRACTOR:
THEORY:
i/p’s o/p’s
A B Bin Diff Borrow
0 0 0 0 0
0 1 0 1 1
0 0 1 1 1
0 1 1 0 1
1 0 0 1 0
1 1 0 0 0
1 0 1 0 0
1 1 1 1 1
SIMPLIFICATION:
= Bin(A B +A B) + Bin(A B +A B)
= Bin + AB
CIRCUIT:
PROCEDURE:
APPLICATIONS:
To perform arithmetic operation (add, sub, mul, div) and also to produce 2’s complement for
a given input
RESULTS:
The truth table for Half Adder, Full Adder, Half Subtractor and Full Subtractor has been
verified.
SIMULATION:
Truth Table
a) DATA FLOW
i) VHDL code
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
b) BEHAVIORAL
i) VHDL code
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity fab is--Define the input and output ports inside the entity;
Port ( d : in std_logic_vector(2 downto 0);
e : out std_logic_vector(1 downto 0));
end fab;--End the entity;
architecture Behavioral of fab is
begin
process(d)-- process statement represents
beginthe behavior of some portion of the design;
if (d="000") then e<="00"; --Defining differnt input conditions using
elsif (d="001") then e<="10";conditional statements;
elsif (d="010") then e<="10";
elsif (d="011") then e<="01";
elsif (d="100") then e<="10";
elsif (d="101") then e<="01";
elsif (d="110") then e<="01";
else e<="11";
end if; --Ending conditional & process statements;
end process;
end Behavioral; --End the architectural body;
Note: Students should write the code for Half and Full Subtractor and execute.
AIM:
To simplify Boolean expression using Entered Variable Map method and realize the
simplified expression using 8:1 MUX
COMPONENTS REQUIRED:
THEORY:
The term multiplex means “many to one”. A multiplexer (MUX) has n inputs. Each
line is used to shift digital data serially. There is a single output line. One of the data stored in
the n input line is transferred to the output based on the valued of control bits. An n to 1
multiplexer requires m control bits where n<= 2m
Example:
0 0000 0 0 Do
1 0001 0
2 0010 1
3 0011 1 1 D1
4 0100 1
5 0101 1 1 D2
6 0110 0
7 0111 0 0 D3
8 1000 X
9 1001 X X D4
10 1010 X
11 1011 X X D5
12 1100 0
13 1101 1 D D6
14 1110 0
15 1111 1 D D7
ABC
D 000 001 010 011 100 101 110 111
0 2 4 6 8 10 12 14
0 0 1 1 0 X X 0 0
1 3 5 7 9 11 13 15
1
0 1 1 0 X X 1 1
D0 D1 D2 D3 D4 D5 D6 D7
D0 = D3 = 0
D1 = D2 = D4 = D5 = 1 (Don’t cares considered as 1)
D6 = D7 = D·
Circuit Diagram
PROCEDURE:
• Connect the input to mux by using any one variable say LSB or MSB (Say D) and use
other lines ABC as select lines to MUX.
• Check output Pin no 5(Y) as per Truth table or Boolean Expression.
APPLICATIONS:
RESULTS:
The given 4-variable logic expression is realized using 8:1 multiplexer and verified.
Implementation in HDL
BLOCK DIAGRAM:
MULTIPLEXER
I 8 TO 1 Zout
8
3
SEL
TRUTH TABLE:
INPUTS OUTPUTS
SEL(2) SEL(1) SEL (0) Zout
0 0 0 I(0)
0 0 1 I(1)
0 1 0 I(2)
0 1 1 I(3)
1 0 0 I(4)
1 0 1 I(5)
0 1 1 I(6)
1 1 1 I(7)
VHDL CODE:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity mux1 is
Port ( I : in std_logic_vector(7 down to 0);
sel : in std_logic_vector(2 downto 0);
zout : out std_logic);
end mux1;
OUTPUT/GRAPH:
RESULTS:
The output graph is obtained by giving different set of combinations of input and the
multiplexer output is observed.
6. Realize a J-K Master / Slave Flip-Flop using NAND gates and verify its truth table.
And implement the same in HDL.
AIM:
To realize a J-K Master/Slave FF using NAND gates and verifies its functioning.
COMPONENTS REQUIRED:
THEORY:
A flip-flop is a device very much like a latch in that it is a bitable multivibrator, having two
states and a feedback path that allows it to store a bit of information. The difference between
a latch and a flip-flop is that a latch is asynchronous, and the outputs can change as soon as
the inputs do (or at least after a small propagation delay). A flip-flop, on the other hand, is
edge-triggered and only changes state when a control signal goes from high to low or low to
high.
Master Slave Flip Flop:
The control inputs to a clocked flip flop will be making a transition at approximately the
same times as triggering edge of the clock input occurs. This can lead to unpredictable
triggering. A JK master flip flop is positive edge triggered, whereas slave is negative edge
triggered. Therefore master first responds to J and K inputs and then slave. If J=0 and K=1,
master resets on arrival of positive clock edge. High output of the master drives the K input
of the slave. For the trailing edge of the clock pulse the slave is forced to reset. If both the
inputs are high, it changes the state or toggles on the arrival of the positive clock edge and the
slave toggles on the negative clock edge. The slave does exactly what the master does.
TRUTH TABLE:
CIRCUIT:
7400 7400
7410 7400
7410
7400 7400
7400
7400
PROCEDURE:
• Verify all the components and patch chords whether they are in good condition or not.
• Make connections as shown in the circuit diagram.
• Give power supply to the trainer kit.
• Provide the input data to the circuit via switches.
• Record and verify the output sequence for each combination of the select lines.
APPLICATIONS:
RESULT:
The Master Slave JK Flip-flop was implemented using Nand gates and verified.
VHDL CODE:
entity jkff is
Port ( clk,j,k : in std_logic;
q : inout std_logic:='0';
qb : out std_logic);
end jkff;
architecture Behavioral of jkff is
begin
process(clk)
begin
if(j='0' and k='0')then q<=q;
elsif(j='0' and k='1')then q<='0';
elsif(j='1' and k='0')then q<='1';
elsif(j='1' and k='1')then q<=not q;
end if;
end process;
qb<= not q;
end Behavioral;
OUTPUT/GRAPH:
RESULT:
The JK flip-flop was implemented using VHDL code and output graph was observed.
7. Design and implement code converter I) Binary to Gray (II) Gray to Binary Code
using basic gates.
AIM:
To design and implement 4-bit
a. Binary to gray code converter
b. Gray to binary code converter
COMPONENTS REQUIRED:
THEORY:
Binary to gray code conversion is a very simple process. There are several steps to
do this types of conversions. Steps given below elaborate on the idea on this type of
conversion.
The M.S.B. of the gray code will be exactly equal to the first bit of the given binary number.
Now the second bit of the code will be exclusive-or of the first and second bit of the given
binary number, i.e if both the bits are same the result will be 0 and if they are different the
result will be 1.
The third bit of gray code will be equal to the exclusive-or of the second and third bit of the
given binary number. Thus the Binary to gray code conversion goes on. One example given
below can make your idea clear on this type of conversion.
BINARY TO GRAY
TRUTH TABLE:
SIMPLIFICATION:
BINARY TO GRAY
G3
B1B0
B3 B2 00 01 11 10
00
01
11 1 1 1 1
1 1 1 1
10
Simplification:
G3=B3
G2
B1B0
B3 B2 00 01 11 10
00
01 1 1 1 1
11
1 1 1 1
10
Simplification:
G2=B3 B2 + B3 B2
G1
B1B0
B3 B2 00 01 11 10
1 1
00
01 1 1
11 1 1
10 1 1
Simplification:
G1=B2 B1 + B2 B1
G0
B1B0
B3 B2 00 01 11 10
1 1
00
01 1 1
11 1 1
10 1 1
Simplification:
G0=B1 B0 + B1 B0
CIRCUIT:
GRAY TO BINARY
Gray code to binary conversion is again very simple and easy process. Following step scan
make your idea clear on this type of conversions.
The M.S.B of the binary number will be equal to the M.S.B of the given gray code. Now if
the second gray bit is 0 the second binary bit will be same as the previous or the first bit. If
the gray bit is 1 the second binary bit will alter. If it was 1 it will be 0 and if it was 0 it will be
1. This step is continued for all the bits to do Gray code to binary conversion. One example
given below will make your idea clear.
TRUTH TABLE:
SIMPLIFICATION:
B3
G1G0
G3 G2 00 01 11 10
00
01
11 1 1 1 1
10 1 1 1 1
Simplification:
B3=G3
B2
G1G0
G3 G2 00 01 11 10
00
01 1 1 1 1
11
10 1 1 1 1
Simplification:
B2=G3 G2 + G3 G2
B1
G1G0
G3 G2 00 01 11 10
00
1 1
01 1 1
11 1 1
10 1 1
Simplification:
B1=G3 G2 G1 + G3 G2 G1 + G3 G2 G1 + G3 G2 G1
= G1(G3 G2 + G3 G2) + G1(G3 G2 + G3 G2)
B0
G1G0
G3 G2 00 01 11 10
00
1 1
01 1 1
11 1 1
10 1 1
Simplification:
(G3 G2 + G3 G2)
CIRCUIT:
G3 G2 G1 G0
B3 = G3
B2= G3 G2 +G3 G2
B1= B2 G1 + B2 G1
B0= B1 G0 + B1 G0
PROCEDURE:
APPLICATIONS:
RESULTS:
Binary to Gray and Gray to Binary converters are verified with basic gates.
8.Design and implement a mod-n (n<8) synchronous up counter using J-K Flip-Flop
ICs and demonstrate its working.
AIM:
To Design and implement a mod n (a<8) synchronous up counter using JK FF IC’s and
demonstrate its working.
THEORY:
The ripple (Asynchronous) counter requires a finite amount of time for each flip flop to
change state. This problem can be solved by using a synchronous parallel counter where
every flip flop is triggered in synchronism with the clock and all the output which are
scheduled to change do so simultaneously.
The counter progresses counting upwards in a natural binary sequence from count 000 to
count 111 advancing count with every clock transition and get back to 000 after this cycle.
In synchronous counter, all of the FF’s are clocked at the same time. Before each clock pulse,
the J and K inputs of each FF must be at the correct level to ensure that each FF goes to the
correct state.
TRUTH TABLE:
EXCITATION TABLE
Qn Qn+1 J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
K-Map
J0 = K0 = 1
J1 = K1 = Q0
J2 = K2 = Q1*Q0
CIRCUIT: Mod 8
Q0 Q1 Q2
Vcc +Vcc
PRE
J1 PRE Q1 J2 PRE Q2
J0 Q0
Clk
Clk
K2 Q2
K1 Q1
K0 Q0
CLR CLR
CLR
+Vcc
Clk
PROCEDURE:
• Verify all the components and patch chords whether they are in good condition or not.
• Make connections as shown in the circuit diagram.
• Give power supply to the trainer kit.
• Provide the input data to the circuit via switches.
• Record and verify the output sequence for each combination of the select lines.
APPLICATIONS:
RESULT:
AIM:
To design and implement an asynchronous counter using decade counter IC to count up from
0 to n (n≤9)
COMPONENTS REQUIRED:
THEORY:
Asynchronous counter is a counter in which the clock signal is connected to the clock
input of only first stage flip flop. The clock input of the second stage flip flop is triggered by
the output of the first stage flip flop and so on. This introduces an inherent propagation delay
time through a flip flop. A transition of input clock pulse and a transition of the output of a
flip flop can never occur exactly at the same time. Therefore, the two flip flops are never
simultaneously triggered, which results in asynchronous counter operation.
RBI =Ripple Blanking Input (Active LOW) LT= Lamp Test Input (Active LOW)
RBO =Ripple Blanking Output (Active LOW) a –g =Segment Outputs (Active LOW)
R1 and R2-clear all flip-flop (high active and low for not active) S1 and S2- set all flip flop
(high active and low for not active) CLKA-clock pulse to first flip flop
CLKB-clock pulse to second flip flop (output of first flip flop clock for second filp flop)
Circuit Diagram
TRUTH TABLE:
CLK QD QC QB QA
1 0 0 0 0
1 0 0 0 1
1 0 0 1 0
1 0 0 1 1
1 0 1 0 0
1 0 1 0 1
1 0 1 1 0
1 0 1 1 1
1 0 0 0 0
1 1 0 0 1
For mod 9
connect Q0 and Q3 to reset(clear) through an AND gate. Reset should not be connected to the
switch
For mod8
Connect Q3 to reset
For mod7
Connect Q2, Q1,Q0 to reset through an And Gate
For Mod 6
Connect Q2 and Q1 to reset through an AND gate
For mod 5
Connect Q0 and Q2 to reset through an AND gate
For Mod 4
Connect Q2 to reset
For mod 3
Connect Q1 and Q0 to reset through an AND gate
For mod 2
Connect Q1 to reset
PROCEDURE:
• Verify all the components and patch chords whether they are in good condition or not.
• Make connections as shown in the circuit diagram.
• Give power supply to the trainer kit.
• Provide the input data to the circuit via switches.
• Record and verify the output sequence for each combination of the select lines.
APPLICATIONS:
To count the number of pulses at the input and to check lexico graphical errors in
programming language.
RESULT:
Xilinx ISE means Xilinx® Integrated Software Environment (ISE), i.e. programmable logic design tool
in electronics industry. This Xilinx ® design software suite allows taking design from design entry
through Xilinx device programming. The ISE Project Navigator manages and processes design through
several steps in the ISE design flow. These steps are Design Entry, Synthesis, Implementation,
Simulation/Verification, and Device Configuration. Xilinx is one of most popular software tool used to
synthesize VHDL code.
Tool Procedure:
1. Double click on Project Navigator Icon.
3. Enter the project name and location as shown below and press NEXT.
4. Select the Family, Device, Package and speed as per the requirements and press NEXT.
5. Create a new source by using new source icon or right click on the device/project folder to create
new source.
6. Select the appropriate source type and enter the file name in New Source Wizard window and
press NEXT
7. Enter the architecture name – dataflow/behavioral/structural, port name and select the direction.
This will create .v source file. Press NEXT and finish the initial project creation.
8. Write complete VHDL/Verilog code implementation and save.
9. Click on implementation and check for syntax using “Check syntax” option under synthesize
tab. If any error, edit and correct VHDL/Verilog code and repeat check syntax until zero errors.
CPLD reports will be generated.
10. After CPLD report is generated go to source window in the top and select behavioral
simulation.
11. Go to processes window below the source window, select your file and click on
simulate behavioral model. We will get Modelsim XE III/starter 6.0a-custom Xilinx
version.
12. Default wave window will appear maximize the window.
13. Click on RESTART button to delete the unwanted waveforms.
14. Select and right click on the variable you want to give inputs and click force. Give input value
in value box(either 0 or 1 or x).
15. Once the required number of input is given click on RUN. We will get the output waveform in
the modelisim window. Click on the waveforms to see the input and output value in data
column.
In order to ensure a successful circuit design and mitigate costly and potentially dangerous design
flaws, careful planning and evaluation must occur at every stage of the circuit design process. Circuit
simulation provides a cost-effective and efficient method for identifying faults before moving to the
more expensive and time-consuming prototyping stage. Including simulation in the design process
reduces design errors and speeds the design cycle by allowing you to predict and better understand
circuit behavior. The main purpose of simulation is to predict and understand the behavior of
electronic circuits. PSpice is a program that simulates electronic circuits on your PC.
Limitations of simulation:
While a prototype helps you to verify and validate your design in the real world, simulation helps you
catch design errors before spending money and time on prototyping.
2.Once the capture window appears, select FILE - NEW – PROJECT. The following window appears:
6. Click OK.
The following window appears:
7. Select Create a blank project and click OK. The following window appears:
8.To place parts, click PLACE PART (Shift+P). Then the following window appears:
If Libraries are not appearing in the window then click Add Library. The library files will generally be
available in the following path by default.
C:\Program Files\Orcad_Demo \Capture \ Library\Pspice. Select all Library files by pressing Ctrl A
and then press Open. All the
Library files will appear in the window.
9. Select the part you wish to place in the schematic. Insert as many as needed
10. Right Click and select END MODE to stop inserting parts
11. To wire parts together, click Place Wire Icon from the Right hand side vertical Icons list
(Shift+W). Place cursor over boxes at ends of parts and draw wires connecting parts. When done,
right click and select End Wire.
12. To insert a ground node, click Place – Ground Icon. Window appears with caption Place Ground
with only ground nodes available for selection.
Always select 0/SOURCE for the ground node of an analog circuit – every analog circuit must
contain at least one 0 ground. This is not a requirement for digital circuits.
13. To change component values that are displayed. Double click the displayed value· Change the
desired value in the dialog box that appears.
To set up a simulation profile:
Select PSPICE ---NEW SIMULATION PROFILE from the menu.
Give a descriptive name to the type of simulation.
Select the desired parameters for the particular circuit and then click OK.
Place voltage, current, and power markers from the PSPICE --- MARKERS menu where needed.