CA Lab File
CA Lab File
Architecture
(OrCAD)
Laboratory File
//e.number
1) Click the capture lite icon from desktop or from the start menu.
2) Click on file, then on new, and then click on project.
3) Write the name of the project and choose the location to store it, then click “OK” and
make sure to choose analog or mixed A/D option and then again click “OK”.
4) Next pop-up window opens Pspice project on this choose a blank project option, then
click “OK”.
5) Now realize the circuits using proper components.
6) Now choose Pspice option on top toolbar and click on new simulation profile.
7) Enter the name of the profile and then click on “OK”.
8) In the next window choose options and then choose gate level simulation. Choose the
option and initialize all flip-flops to zero, then click on “OK”.
9) Now place voltage where we need to see the outputs.
10) Lastly click the “Run” button in Pspice or Run option to see the resulting output.
Analog Circuits
Procedure for simulation of circuits on ORCAD capture tool:
1) Select the ‘(PWR/Q)’ from the right hand side of the window.
2) Select ‘Vcc_arrow’.
3) Name = V+ or V-
4) While using a dc source always use a DC source.
For Output:-
9. To design an ALU.
THEORY: A half adder is a logical circuit that performs an additional operation on two binary
digits. The half adder produces a sum and a carry value which are both binary digits.
A half adder circuit has two inputs A and B and two outputs – S representing sum and C
representing carry.
TRUTH TABLE:
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
SCHEMATIC DIAGRAM:
WAVEFORM:
THEORY: A full adder is a logical circuit that performs an additional operation on three binary
digits. The half adder produces a sum and a carry value which are both binary digits.
A full adder circuit has three inputs A,B and Cin and two outputs – S representing sum and Cout
representing carry.
S = A xor B xor C
A B Cin S Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
SCHEMATIC DIAGRAM:
WAVEFORM:
THEORY: A half subtractor is a logical circuit that performs an subtraction operation on two
binary digits. The half subtractor produces a Difference and a borrow value which are both
binary digits.
A half subtractor circuit has two inputs X, Y and two outputs – D representing difference and B
representing borrow.
B = A’B
TRUTH TABLE:
X Y D B
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
SCHEMATIC DIAGRAM:
WAVEFORM:
THEORY: A full subtractor is a logical circuit that performs an subtraction operation on three
binary digits. The full subtractor produces a difference and a borrow value which are both binary
digits.
A Full adder circuit has three inputs A,B and C and two outputs – DIFF representing difference
and BOR representing borrow.
S = A xor B xor C
A B C DIFF BOR
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
SCHEMATIC DIAGRAM:
WAVEFORM:
THEORY: A multiplexer is a device that performs multiplexing i.e. it selects one of many analog
or digital input signals and forwards the selected input into a single line. A multiplexer of 2 n
inputs has n select lines, which are used to select which input line to be sent to the output.
TRUTH TABLE:
S0 S1 S2 Z
0 0 0 A
0 0 1 B
0 1 0 C
0 1 1 D
1 0 0 E
1 0 1 F
1 1 0 G
1 1 1 H
SCHEMATIC DIAGRAM:
WAVEFORM:
THEORY: An n-bit shift circuit has a single n-bit data input A, and a single n-bit output R and a
number of control inputs to determine the shift amount ( 0 to n-1).
In this case the possible shift operations are SHIFT LEFT and SHIFT RIGHT. This shifting
depends on selection line input S. If S = 0 then SHIFT RIGHT operation takes place , else
SHIFT LEFT operation takes place.
SCHEMATIC:
WAVEFORM:
RESULT: The circuit of 4-bit combinational shifter is designed and output is verified.
EXPERIMENT NO.7
AIM: To design a BCD adder.
THEORY:
It is possible to perform addition in BCD by first adding in binary, and then converting to BCD afterwards.
Conversion of the simple sum of two digits can be done by adding 6 (that is, 16 – 10) when the result has
a value greater than 9.
For example:
9 + 8 = 17 = 1 1
In BCD, there cannot exist a value greater than 9 (1001) per nibble. To correct this, 6 (0110) is added to
that sum to get the correct first two digits:
This gives two nibbles, 0001 and 0111, which correspond to the digits "1" and "7". This yields "17" in
BCD, which is the correct result. This technique can be extended to adding multiple digits, by adding in
groups from right to left, propagating the second digit as a carry, always comparing the 5-bit result of
each digit-pair sum to 9.
SCHEMATIC:
WAVEFORM:
RESULT: BCD adder is designed and output is verified.
EXPERIMENT NO.8
AIM: To design a 4-bit adder subtractor.
THEORY:
It is a combinational circuit which can act as both a binary adder and a binary subtractor. It is
constructed using 4 full adders.Block diagram of the circuit is shown below:
In this case if sub is 0, then the circuit acts as an adder,else subtractor. Subtraction is done by
adding two’s compliment of B to A, which effectively results in A - B.
SCHEMATIC:
WAVEFORM:
THEORY: In computing, an arithmetic logic unit (ALU) is a digital circuit that performs
arithmetic and logical operations. The ALU is a fundamental building block of the central
processing unit (CPU) of a computer, and even the simplest microprocessors contain one for
purposes such as maintaining timers. The processors found inside modern CPUs and graphics
processing units (GPUs) accommodate very powerful and very complex ALUs; a single
component may contain a number of ALUs.
WAVEFORM:
THEORY: A decoder is a device which does the reverse of an encoder, undoing the encoding so
that the original information can be retrieved. The same method used to encode is usually just
reversed in order to decode.
In digital electronics, a decoder can take the form of a multiple-input, multiple-output logic
circuit that converts coded inputs into coded outputs, where the input and output codes are
different.
Decoders have 2 inputs and 4 outputs. The binary input fed at input will be decoded to provide
either logical high or low on one of the 4 outputs, which is termed as octal equivalent for that
binary input. For a binary input 100, which is 4 in octal number system, the output pin called
O4 will go either high or low.
SCHEMATIC:
d1A
O F F T IM E = .3 u S D S T M 1 1
O N T I M E = . 3 u S CLK 3
D ELAY = 2
V
S TA R TV A L = 0
0 V
O PPVAL = 1 7408
0
0
U 2B d2B
3 4 4
6
O F F T IM E = .4 u S D S T M 2 7404 5
O N T I M E = . 4 u S CLK V
D ELAY = 7408
0
S TA R TV A L = 0
O PPVAL = 1
d3C
9
U 2A 8
1 2 10
1 V
V 7404 7408
0
d4D
12
11
13
V
7408
1
1
WAVEFORM: