I recently started learning about logic circuits. I'm mainly researching because of my own interest and don't know much yet, so go easy on me
So, the question:
Let's say I have a 10-bit adder and want to Input decimals and also want to get back decimals.
I found some explanations on how to encode/decode to/from binary, but none mentioned what I do with 'carrys' in the decimal numbers.
I know how to encode for example decimal 9 to binary: I'll get a 4digit binary number and make a truth table to get my functions.
But what do I do if I want to encode decimal 10 to binary? Do I just have to make an insanely huge truth table and get huge functions or is there a better way?
The same applies for decoding: I can decode 1001 to 9 easily, but how do I get 10 out of 1010?
For the 10-bit adder, I could have a decoder with 10 bit input and 1024 outputs for each single decimal number, but that can't be it, right? So how do I get the single digits of a decimal out of or into a decimal number?
I think I would get 40 outputs, 4 decimal digits with 10 bits (for 0,1,2,..,9) =?
I hope that was understandable, english is not my main language and I don't know many scientific words =/
So, the question:
Let's say I have a 10-bit adder and want to Input decimals and also want to get back decimals.
I found some explanations on how to encode/decode to/from binary, but none mentioned what I do with 'carrys' in the decimal numbers.
I know how to encode for example decimal 9 to binary: I'll get a 4digit binary number and make a truth table to get my functions.
But what do I do if I want to encode decimal 10 to binary? Do I just have to make an insanely huge truth table and get huge functions or is there a better way?
The same applies for decoding: I can decode 1001 to 9 easily, but how do I get 10 out of 1010?
For the 10-bit adder, I could have a decoder with 10 bit input and 1024 outputs for each single decimal number, but that can't be it, right? So how do I get the single digits of a decimal out of or into a decimal number?
I think I would get 40 outputs, 4 decimal digits with 10 bits (for 0,1,2,..,9) =?
I hope that was understandable, english is not my main language and I don't know many scientific words =/
Last edited: