An M-bit thermometer code for the number k consists of k 1s in theleast signific
ID: 1831065 • Letter: A
Question
An M-bit thermometer code for the number k consists of k 1s in theleast significant bitpositions and M-k 0s in the more significant bit positions. Abinary-to-thermometer
code converter has N inputs and 2N-1 outputs. It produces a 2N-1bit thermometer code
for the number specified by the input. For example, if the input is110, then the output
should be 0111111. Design a 3-to-7 binary-to-thermometer codeconverter.
"I am trying to build the truth table for this problem, i tried butnot getting the idea!!" please help me
Explanation / Answer
In order to design the decoder: You must first know that there are 3-inputs and7-outputs. Lets name the inputs A, B and C and Let the outputs be from D0-D6. The problem states for a number k the decoder assigns k 1s in theLSD (Least Significant Digits)and M-k 0s to the remaining ones.From this we can construct our table. For Example for K=5 (or in binary 101) the decoder binary numberwill have 5 1s in the LSD and (7-5) =2 0s in the MSD (MostSignificant Digit). Here is the Decoding Table. A B C D0 D1 D2 D3 D4 D5 D6 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 If you go further and aim to build the Digital ckt, use ShannonTheorem to construct it. Hope this help. Please Rate.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.