Binary Arithmetic Flashcards
What symbols does the binary number system use?
It uses 2 symbols: 0 and 1
eg. 19 in binary is 10011
What is the right-most digit called?
Least Significant Bit (LSB)
What is the left-most digit called?
Most Significant Bit (MSB)
What is the highest number that we can represent in binary with N digits?
2N - 1
What does Q3 format mean?
It has 3 bits after the binary point (binary equivalent of decimal point)
How do you convert from decimal to binary?
Do repeated division by 2 until you get 1. The remainders are the bits starting from the LSB
What is a flag?
A binary number only having 1 bit
What is a nibble?
A binary number having 4 bits
What is a byte?
A binary number having 8 bits
What is a word?
A binary number having 16 or more bits
How do you carry out binary addition?
110 + 101 Going from LSB 0+1 = 1, carry out = 0 1+0 = 1, carry out = 0 1+1 = 0, carry out = 1
SUM = A=OB C = A.B
What does the half adder do?
- Generates the sum and carry-out for one column of an addition sum
- BUT it does not allow for a carry-in from a previous column (this can be done with a full adder circuit)
Describe how a full adder works
- The full adder uses 2 half adders; one to form the sum of A and B and another to add any carry in to this intermediate sum.
- If EITHER of the two additions generates a carry-out, we must indicate that by setting the final carry out to 1.
[HALF ADDER then HALF ADDER then OR gate]
How do you built a multi-bit full adder?
- A row of N full adders would be required and the result has to be (N+1 bits in the case of overflow).
(this is catered for by carry out being the MSB
How do you represent negative numbers in binary?
2’s complement
[Half the possibilities for positive numbers and negative numbers, let the MSB have a negative weighting}