DIGITAL TECHNIQUE HANDOUT#10

7
Digital Technique Mrs. Sunita M Dol, CSE Dept Walchand Institute of Technology, Solapur Page 1 HANDOUT#10 AIM: Implementation of full adder and full subtractor using 8:1 mux LEARNING OBJECTIVES: - Implement full adder and full subtractor using 8:1 multiplexer. COMPONENT REQUIRED: - Logic gates (IC) trainer kit. - Connecting patch chords. - IC 74151 Sr. No. Component Specification 1 8:1 mux IC74151 THEORY: Mutiplexer or data selector is the combinational circuit that gets one out of several inputs to a single output. In multiplexer, the input selected is controlled by a set of select lines. For selecting one out of n inputs for connection to the output, a set of m select lines is required where 2 m =n. Depending upon the digital code applied at select lines, one out of n data sources is selected and transmitted to a single output channel. A strobe or enable input G is incorporated which helps in cascading and it is generally active low which means it perform its intended operation when it is low. IC 74151 Description o IC 74151 is used as 8:1 mux. It is a 16 pin IC. o Pin number 4, 3, 2, 1, 15, 14, 13, 12 acts as input signal from 0 to 7 respectively. o Pin number 9, 10, 11 are the select inputs used to set an input. o We get the output of this circuit at pin number 5. And its complement on pin number 6.

Transcript of DIGITAL TECHNIQUE HANDOUT#10

Page 1: DIGITAL TECHNIQUE HANDOUT#10

Digital Technique Mrs. Sunita M Dol, CSE Dept

Walchand Institute of Technology, Solapur Page 1

HANDOUT#10

AIM:

Implementation of full adder and full subtractor using 8:1 mux

LEARNING OBJECTIVES:

- Implement full adder and full subtractor using 8:1 multiplexer.

COMPONENT REQUIRED:

- Logic gates (IC) trainer kit.

- Connecting patch chords.

- IC 74151

Sr. No. Component Specification

1 8:1 mux IC74151

THEORY:

� Mutiplexer or data selector is the combinational circuit that gets one out of

several inputs to a single output.

� In multiplexer, the input selected is controlled by a set of select lines. For

selecting one out of n inputs for connection to the output, a set of m select

lines is required where 2m=n.

� Depending upon the digital code applied at select lines, one out of n data

sources is selected and transmitted to a single output channel.

� A strobe or enable input G is incorporated which helps in cascading and it is

generally active low which means it perform its intended operation when it

is low.

� IC 74151 Description

o IC 74151 is used as 8:1 mux. It is a 16 pin IC.

o Pin number 4, 3, 2, 1, 15, 14, 13, 12 acts as input signal from 0 to 7

respectively.

o Pin number 9, 10, 11 are the select inputs used to set an input.

o We get the output of this circuit at pin number 5. And its complement

on pin number 6.

Page 2: DIGITAL TECHNIQUE HANDOUT#10

Digital Technique Mrs. Sunita M Dol, CSE Dept

Walchand Institute of Technology, Solapur Page 2

o Pin number 7 acts as a strobe which is used for cascading purpose

otherwise it is connected to the ground.

o Pin number 16 is the power supply that is Vcc.

o The block diagram of IC 74151 is given in figure a and pin diagram of

IC 74151 is given in figure b.

Figure a: Block diagram

Page 3: DIGITAL TECHNIQUE HANDOUT#10

Digital Technique Mrs. Sunita M Dol, CSE Dept

Walchand Institute of Technology, Solapur Page 3

Figure b: Pin diagram

Truth table:

Select Input Output

Y S2 S1 S0

I0 0 0 0 0

I1 0 0 1 1

I2 0 1 0 2

I3 0 1 1 3

I4 1 0 0 4

I5 1 0 1 5

I6 1 1 0 6

I7 1 1 1 7

� The design procedure is given below:

o Identify the decimal number corresponding to the each minterm in the

expression. The input lines corresponding to these numbers are to be

connected to logic 0 level.

o All other input lines are to be connected to logic 0 level.

o The inputs are to be applied to the select lines.

Page 4: DIGITAL TECHNIQUE HANDOUT#10

Digital Technique Mrs. Sunita M Dol, CSE Dept

Walchand Institute of Technology, Solapur Page 4

� Full Adder: A half adder has only two inputs and there is no provision to add

a carry coming from the lower bits when multibit addition is performed. For

this purpose, a 3rd

input terminal is added and this circuit is used to add An,

Bn and Cn-1 where An & Bn are the nth

order bit of the numbers A and B

respectively and Cn-1 is the carry generated from the addition of (n-1)th order

bit. This circuit is referred to as Full Adder.

Truth table:

An Bn Cn-1 Sn(sum) Cn(carry)

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

Figure a: Full Adder-Sum

Page 5: DIGITAL TECHNIQUE HANDOUT#10

Digital Technique Mrs. Sunita M Dol, CSE Dept

Walchand Institute of Technology, Solapur Page 5

Figure b: Full Adder-Carry

� Full Subtractor: Just like Full Adder, we require full subtractor circuit for

performing multibit subtraction wherein a borrow from the previous bit

position may also there. A full subtractor will have three inputs An

(minuend), Bn(subtrahend) and Cn-1 (borrow from previous stage) and two

outputs Dn (difference) & Cn(borrow)

Truth table:

An Bn Cn-1 Sn(sum) Cn(carry)

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

Page 6: DIGITAL TECHNIQUE HANDOUT#10

Digital Technique Mrs. Sunita M Dol, CSE Dept

Walchand Institute of Technology, Solapur Page 6

Figure c: Full Subtractor-Difference

Page 7: DIGITAL TECHNIQUE HANDOUT#10

Digital Technique Mrs. Sunita M Dol, CSE Dept

Walchand Institute of Technology, Solapur Page 7

Figure d: Full Subtractor-Borrow

PROCEDURE:

1. Check the components for their working.

2. Insert the appropriate IC into the IC base.

3. Make connections as shown in the circuit diagram.

4. Provide the input data via the input switches and observe the output on

output LEDs

5. Give various combinations of inputs and note down the output with help of

LED for all gate ICs one by one.

RESULT:

Thus we have designed full adder and full subtractor using 8:1 mux