Digital design code converter help

Click For Summary
SUMMARY

The discussion centers on designing a code converter that translates decimal digits from the 8-4-2-1 code to Binary-Coded Decimal (BCD). The user attempted to create a mapping between the 8-4-2-1 code and BCD but arrived at incorrect expressions for the variables W, X, Y, and Z. The correct expression for W is identified as W=AB=AC'D', while the user's expressions differ significantly. The conversation highlights the importance of understanding the conversion methods used in binary to BCD mapping.

PREREQUISITES
  • Understanding of 8-4-2-1 code and its application in digital design.
  • Familiarity with Binary-Coded Decimal (BCD) representation.
  • Knowledge of Karnaugh maps for simplifying Boolean expressions.
  • Basic principles of digital logic design and binary arithmetic.
NEXT STEPS
  • Study the principles of Binary-Coded Decimal (BCD) conversion techniques.
  • Learn how to effectively use Karnaugh maps for Boolean expression simplification.
  • Research common pitfalls in digital design related to code conversion.
  • Explore the differences between various binary encoding schemes, including 1's complement and 2's complement.
USEFUL FOR

Students and professionals in digital design, particularly those working on code conversion projects, as well as educators teaching concepts related to binary encoding and BCD representation.

benEE2018
Messages
27
Reaction score
1

Homework Statement


design a code converter that converts a decimal digit from the 8 4 -2 -1 code to BCD.

Homework Equations

The Attempt at a Solution


so i listed out the BCD order from 0 to 9 and listed the weighted 8 4 -2 -1 code so that the weights would equal to the BCD equivalent.
8 4 -2 -1--->BCD
ABCD---> WXYZ
0000---> 0000
0111---> 0001
0110---> 0010
0101---> 0011

0100---> 0100
1011---> 0101
1010---> 0110
1001---> 0111

1000---> 1000
1111----> 1001
I then drew 4 K maps for each variable and arrived at an answer that is completely different from the correct answer, W=AB=AC'D'

the answer i got
Z= A'BD+BCD+AB'D
Y=A'BC'D+ A'BCD'+ AB'C'D+ AB'CD'
X= A'BC'D'+ AB'D+ AB'C
W= AB'C'D'+ AB'CD

i don't know what i am doing wrong and any guidance would be greatly appreciated
 
Physics news on Phys.org
What converion method have you used to map binary to BCD?

You seem to have written as 1s complement of the BCD, why?
 
Last edited:

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
10K
Replies
3
Views
4K
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K