Sunteți pe pagina 1din 32

DIGITAL ELECTRONICS AND MICROPROCESSOR

BITS Pilani
Pilani Campus

Rekha.A Faculty

Full Subtractor

Block diagram of full subtractor

Truth table of full subtractor

BITS Pilani, Pilani Campus

K-Map for Full Subtractor yz x 0 1 1 1 00 1 01 11 1 10

D= xyz + xyz + xyz+ xyz

BITS Pilani, Pilani Campus

K-Map for Borrow of full subtractor yz x 0 1

00

01

11

10

1 1

B = xz+xy+yz

BITS Pilani, Pilani Campus

Implementation of full subtractor

BITS Pilani, Pilani Campus

Four bit binary Adder-Subtractor

BITS Pilani, Pilani Campus

Comparators
Comparators are designed to compare the magnitude of two binary numbers and indicate whether one is greater than, less than or equal to the other. One bit comparator

BITS Pilani, Pilani Campus

Implementation of one bit comparator

BITS Pilani, Pilani Campus

Two bit comparator

BITS Pilani, Pilani Campus

Truth table of 2 bit comparator

BITS Pilani, Pilani Campus

Decoders

Discrete quantities of information are represented in digital systems by binary codes A decoder is a combinational circuit that converts the binary information from n input lines to a maximum of 2n output lines. A decoder is a device which when activated , selects one of its possible 2n outputs based on its n bit digit.

BITS Pilani, Pilani Campus

General representation of a decoder

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

12

2 to 4 Decoder

Y0
Y1

Y2

Y3

ESZC61:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

13

Dual 2 to 4 line Decoder

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

14

Implement with a suitable decoder with active low enable input for the function f(w,x,y,z) = (3,7,9)

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

15

Implement the function with a suitable decoder F = (0,1,3,5,6 )

BITS Pilani, Pilani Campus

4 to 16 decoder constructed as 3 to 8 decoder


W 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 X 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 Y 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 Z 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
BITS Pilani, Pilani Campus

ESZC261:Digital Electronics and Microprocessor

17

BITS Pilani, Pilani Campus

Implementation of a Full adder with a decoder S= (1,2,4,7) C=(3,5,6,7)

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

19

ENCODERS Decoders accept an input code and produce a HIGH(or LOW) at one output line.Decoder identifies, recognise or detects a particular code An encoder has a number of input lines , only one of which is activated at a given time and produces an n-bit output code, depending on which input is activated. An Encoder has 2n(or fewer) input lines and n output lines. The output lines as an aggregate, generate the binary code corresponding to the input value.

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

20

A General Block Diagram of an Encoder

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

21

Truth Table of a 8 to 3 line Encoder( Decimal to BCD)

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

22

Priority Encoder A priority encoder is an encoder circuit that includes the priority function. When more than one inputs are equal to 1 at the same time, the input having the highest priority will take precedence. In addition to the outputs, the circuit has the output designated as V which is the valid bit. Valid bit indicator is set to 1 when one or more inputs are equal to 1.

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

23

Truth Table of 8 to 3 line priority Encoder

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

24

K Map for the outputs


X2X3 X2X3

00 00
X0 X1

01

11

10

00 00

01

11

10

1 1 1

1 1 1 1

1 1 1

1 1 1 1 1 1

1 1 1 1

01

01

11

11

1
10

10

y1 = x2 + x3

y0 = x3+ x1x2

BITS Pilani, Pilani Campus

MULTIPLEXER

A multiplexer is a combinational circuit that selects binary information from one of the many input lines and directs it to a single output line. The selection of a particular input line is controlled by a set of selection lines. 2n input lines , n select lines whose bit combinations determine which input is selected.

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

26

Block Diagram of a two to one line multiplexer

When S=0, Io is selected When S=1, I1 is selected


27

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

Logic Diagram of a Two-to-One line multiplexer

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

28

Four to one line multiplexer

Function Table Implementation of 4 to 1 Mux


29

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

16 to 1 MUX configured using 4 to 1 MUX

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

30

Boolean Function Implementation

Implement the following function using a 8 to 1 MUX f(a,b,c) = (0,4,5,6)

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

31

Implement the following Boolean function using 4 to 1 MUX F(x,y,z) = (1,2,6,7)

ESZC261:Digital Electronics and Microprocessor

BITS Pilani, Pilani Campus

32

S-ar putea să vă placă și