0% found this document useful (0 votes)
22 views13 pages

SD Lec 7

The document provides information about code converters that convert between Binary Coded Decimal (BCD) and Excess-3 codes. It includes the truth table showing the input and output values. Expressions for the output bits Y, I, and W are given in terms of the input bits C and D after simplification using a K-map method. Implementing the code converter circuit uses the given expressions and logic gates.

Uploaded by

Harsh Agarwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views13 pages

SD Lec 7

The document provides information about code converters that convert between Binary Coded Decimal (BCD) and Excess-3 codes. It includes the truth table showing the input and output values. Expressions for the output bits Y, I, and W are given in terms of the input bits C and D after simplification using a K-map method. Implementing the code converter circuit uses the given expressions and logic gates.

Uploaded by

Harsh Agarwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Code Converter

From the previous table, the expressions relating the various input and output bits
can now be written, after suitable simplification via K-Map method.
CD

CO 2 = D
AR

y= CD + C'D' = CD + (C+ D'


I= B'C - B'D - BC'D' = 8'(C + D) - BC'D'
- B'(C D) + B(C + D)'
w=A t BC +BD = A B(C +D)

--A-IC BD

15/11/2020 Dr S. Dalapati. Digtal Electronics


Code Converters
BCD and Excess-3 Codes: The following table shows the two codes
Truth Table for Code-Converslon Example
tnput BCD Outout Excess-3 Code

C D W Z

0 0

0
0
1
0 1

What is a Code'?

1S11/2020 Dr S Oalagat Dgtai Elcctronics


Code Converter
D'

CD

(C - DY

C-D

Fig. Implementation of the 'code-converter-circuit' from BCD to Excess

15/11/2020 Dr. 5 Dalapati.Digtai Electronics


Decoder

A
decoder' is a combinationalcireuit that converts binary information from 'n'
input lines to amaximum of 20 unique output lines. If then-bit decoded
informationhas unused or don't care' states, then the decoder output willhave
fewer than 2^ lines.

Here, 'n-to-m line decoders' are presented (where mns2").

15/112020 Or S Dalapati Oigital Electronics


Truth Table ofa3-to-3-LUne Decoder
Inputs Outputs
Do D, D D, D, Ds Ds D
0 0 1 0
0 0

1 0
1 1
1 0
1 1 1 0 1

Truth table for 3to 8 line decoder (note that there is no


unused state)
3 to 8Line Decoder
Boolean logic gate
based implementation
of a 3to 8 line decoder
121

15/11/2020
Encoder

An 'encoder' is a comnbinational circuit that performs the inverse operation of that


of adecoder. An encoder is thus an m-to-n line converter (where ms2").
Tne Table of OcateNnry Encoder
Inpus Outputs
D,

0
1

Fig. Truth table for octal to binary encoder

15 11/2020 Or S Dulapati: Dgtal Electronics


Encoder

Do
D, D, D, -D -D,
D,
D,
DA
y-D-0, D, t D,
D
De
D..

Fig. Digital logicgate based implementation of octal tobinary


encoder

15/11/2020 Dr S. Dalapati Oal Eiectronics SI


Priority Function and Priority Encoder
1. Inthis example, four input bits DO, DI, D2 and D3 are considered.
2. DOhas the least priority, while D3 has the highest priority.
3. If D3 is 1,irrespective of the states of D0, DI and D2, output will be 11 (binary
equivalent of 3).
4. If D2 is I. provided D3 is O,the output willbe l0 (irrespective of the state of the
other variables).
5. IfDI is l. provided that D2 and D3are both 0, output will be 0I (irrespective of the
state of DO).
6. If D0 =1 & Dl D2 = D3 0, output will be 00.
7. Thus, the output has two bits.
8. Apart from the above two bits (say x and y). the output has a third bit V. which is
called (the 'valid' output), which is I ifat least onc of D0, DI, D2 and D3 is I.
9. Thus, the truth table for the priority function can be constructed as follows.

5/1/2026
Priority Function and Priority Encoder

TruthTable of a Priority Encoder


Inputs Outputs

D, O, D. Xy V
D,

0 0 0 0 XX 0
|0 0 0 001
X1
X 0 0 011
X X 1 0 I01
X X X I

Fig. Truth table for the priority encoder

15/11,2020 Dr S Dalapau Dgital Electronics 53


Priority Function and Priority Encoder

D,

Do

Fig. Logic gate based implementation of the priority encoder

15/11/2020 D. S Dapati Digtal Electronics


Multiplexer
transmit them
A multiplexer is a circuit which selects data from multiple lines and
through a fewer no of lines.

A4-(0-1 line multiplexer is shown as an exam

1S/11/2020 De. S. Dalaputi: Dgtsl Elcctronics 56


Multiplexer

Fig. A 4 -to -1
line multiplexer
IbFuctn tstk (2].

1
Inpats MUY

Sek.t

ic BlA Jugm

15/11/2020 Dr S Doiapst Dtal Electron cs


$7

You might also like