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

(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) {...
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
Create the Decoder module in System Verilog to decode the 4-bit Binary Coded Decimal digit into...
Create the Decoder module in System Verilog to decode the 4-bit Binary Coded Decimal digit into seven-segment code. You can also include and instantiate your decoder schematic from Section 3 instead of writing a new System Verilog module.
1.convert the following numbers from decimal to binary assuming seven-bit twe's complement binary representation: a)49 b)...
1.convert the following numbers from decimal to binary assuming seven-bit twe's complement binary representation: a)49 b) -27 c)0 d) -64 e) -1 f) -2 g) what is the range for this computer as written in binary and in decimal? 2.convert the following numbers from decimal to binary assuming nine-bit twe's complement binary representation: a)51 b) -29 c) -2 d)0 e) -256 f) -1 g ) what is the range for this computer as written in binary and in decimal?
Show decimal values below in two complement binary notation with 6 bits. a) 18 b) -12
Show decimal values below in two complement binary notation with 6 bits. a) 18 b) -12
The standard method of representing negative numbers in the binary system is with 2's complement notation....
The standard method of representing negative numbers in the binary system is with 2's complement notation. What are the advantages and disadvantages of using this method to represent negative numbers?
Convert each of the following 5-digit 6’s complement base 7 numbers to 9-digit 4’s complement base...
Convert each of the following 5-digit 6’s complement base 7 numbers to 9-digit 4’s complement base 4. Be careful, show all your reasoning/arithmetic, and make no unwarranted assumptions! (a) 50135 (b) 11402
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT