Question

In: Electrical Engineering

Design a 9’s complement of a Binary Coded Decimal

Design a 9’s complement of a Binary Coded Decimal

Solutions

Expert Solution

Step 1 : Truth Table for BCD to 9's complement output

BCD NUMBER A B C D 9's COMPLEMENT OF NUMBER W X Y Z
0 0 0 0 0 9 1 0 0 1
1 0 0 0 1 8 1 0 0 0
2 0 0 1 0 7 0 1 1 1
3 0 0 1 1 6 0 1 1 0
4 0 1 0 0 5 0 1 0 1
5 0 1 0 1 4 0 1 0 0
6 0 1 1 0 3 0 0 1 1
7 0 1 1 1 2 0 0 1 0
8 1 0 0 0 1 0 0 0 1
9 1 0 0 1 0 0 0 0 0

Step 2 : Boolean Expression from the Truth Table

The bit combination assigned to binary code to 9’s complement. Since each code uses four bits to represent a decimal digit. There are four inputs and outputs. The inputs variable is designated as A, B, C, D and the output variables are W, X, Y, Z from the truth table, combinational circuit is designed. The Boolean functions are obtained from K-Map for each output variable.

Binary to 9’s Complement conversion: -

To obtain the 9’s complement of any number we have to subtract the number with (-1) where n=number of digits in a number.

Examples: - Consider the decimal number 8.) = (Binary code: - 1000)

9’s complement: - 0001

Boolean equation from truth table: -

W=A’B’C’D’+A’B’C’D=A’B’C’(D’+D) = A’B’C’

X=BC’+B’C

Y=C

Z=D’

Step 3 : Circuit Diagram for BCD To 9's Complement


Related Solutions

Q2. The 9’s complement of a decimal digit d (0 to 9) is defined to be...
Q2. The 9’s complement of a decimal digit d (0 to 9) is defined to be 9 - d. A logic circuit produces the 9’s complement of an input digit where the input and output digits are represented in BCD. Label the inputs A, B, C, and D, and label the outputs W, X, Y and Z. (a) Determine the minterms and don’t-care minterms for each of the outputs. (b) Determine the maxterms and don’t-care maxterms for each of the...
Please convert decimal value -32760 into 2's complement binary value
Please convert decimal value -32760 into 2's complement binary value
a)The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. b)The decimal...
a)The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. b)The decimal equivalent of the unsigned 8-bit hex number 0B4H is ______________. c)The value of the expression ‘H’ – ‘B’ is less than / equal to / greater than that of the expression ‘L’ – ‘C’. d)If the .data segment contains declarations                         A    BYTE      2 DUP (‘a’), ‘+’ B    BYTE      3 DUP (‘b’), 0 C    BYTE      4 DUP (‘c’), ‘–’ D    BYTE     ...
(a) Convert the decimal numbers, 70 and -26 to binary in the signed 2’s complement system....
(a) Convert the decimal numbers, 70 and -26 to binary in the signed 2’s complement system. Make sure there are enough digits in the results to be able to perform arithmetic operations with these two numbers. (b) Perform in the signed 2’s complement system, (+70) + (-26) (c) Perform in the signed 2’s complement system, (-70) - (-26) (d) Perform in the signed 2’s complement system, (+70) + (+26)
i need to convert decimal to twos complement binary and then add the binary digits but...
i need to convert decimal to twos complement binary and then add the binary digits but I am unable to do it. I am only allowed to use string, can anyone help me out please. i need the code urgently. #include #include #include #include using namespace std; string reverse(string s) { string x = ""; for (long i = s.length() - 1; i >= 0; i--) { x += s[i]; } return x; } string twosComplementStringsAddition(string A, string B) {...
1) Convert negative fractional decimal number to 8-bit binary number: – 16.625 (use 2's complement binary...
1) Convert negative fractional decimal number to 8-bit binary number: – 16.625 (use 2's complement binary format) Hint: –17 + 0.375 Given the hint above, the fractional number will be divided into two parts, - Whole number, - Fractional part, must be positive (2) Proof to check that your calculation above is correct
Convert decimal +47 and +31 to binary, using the signed-2’s-complement representation and enough digits to accommodate...
Convert decimal +47 and +31 to binary, using the signed-2’s-complement representation and enough digits to accommodate the numbers. Then perform the binary equivalent of (+31)+(-47), (-31)+(+47), and (-31)+(-47). Convert the answers back to decimal and verify that they are correct.
(16%) Convert decimal +47 and +38 to binary, using the signed-2’s-complement representation and enough digits to...
(16%) Convert decimal +47 and +38 to binary, using the signed-2’s-complement representation and enough digits to accommodate the numbers, Then, perform the binary equivalent of (+47)+(-38) and (-47)+(-38) using addition. Convert the answers back to decimal and verify that they are correct.
Convert the following decimal numbers to 16-bit 2’s complement binary. Display your result in hexadecimal. a.3030...
Convert the following decimal numbers to 16-bit 2’s complement binary. Display your result in hexadecimal. a.3030 b.404 c.5050 d.-5050 e.-20000 Show work with steps
ASSEMBLY LANGUAGE PROGRAMMING 1. The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B...
ASSEMBLY LANGUAGE PROGRAMMING 1. The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. 2. The decimal equivalent of the unsigned 8-bit hex number 0B4H is ______________. 3. The value of the expression ‘H’ – ‘B’ is less than / equal to / greater than that of the expression ‘L’ – ‘C’. 4. If the .data segment contains declarations A BYTE 2 DUP (‘a’), ‘+’ B BYTE 3 DUP (‘b’), 0 C BYTE 4 DUP (‘c’),...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT