edited by
12,264 views
34 votes
34 votes
The $16\text{-bit}\;2's$ complement representation of an integer is $1111 \quad 1111 \quad 1111 \quad 0101;$ its decimal representation is ____________
edited by

9 Answers

2 votes
2 votes

it can also b computed by booth's algorithm ....

1111 1111 1111 0101

pad with one zero

1111 1111 1111 01010

now booth's recoded code is

00000000000-11-11-1

now expand it 

(-1)*20 +1*21+(-1)*22+1*23+(-1)*2

=-11

edited by
1 votes
1 votes

There is a difference between 2 complement and 2 complement representation

In 4 bit system -

2 complement of 7 is 1001

but 2 complement representation of 7 is 0111.

Here in this question we are talking about 2 complement representation .

Hence -11 is the answer.

refer : Potential ambiguities of terminology at

https://en.wikipedia.org/wiki/Two%27s_complement

 

0 votes
0 votes
there is one simple trick to solve this question as we know in 2's complement representation when there are all 1's  the value of the number is -1 in this question all are 1 apart from 2^1 i.e  place value 2  and 2^3 i.e place value 8 they are 0 and there sum is 10 so subtract 10 from -1 i.e -1-10 =-11 the answer will be -11 it will save you a lot of time
0 votes
0 votes
Check the most significant bit (MSB): The MSB is 1, indicating a negative number in 2's complement representation. Invert all the bits (take the 1's complement): \[1111 \ 1111 \ 1111 \ 0101 \ \text{(2's complement)} \rightarrow 0000 \ 0000 \ 0000 \ 1010 \ \text{(1's complement)}\] Add 1 to the 1's complement: \[0000 \ 0000 \ 0000 \ 1010 + 1 = 0000 \ 0000 \ 0000 \ 1011 \ \text{(binary)}\] Convert the binary to decimal: \[0000 \ 0000 \ 0000 \ 1011 \ \text{(binary)} = 11 \ \text{(decimal)}\] Apply the negative sign: The original 2's complement number was negative, so the final decimal value is \(-11\). Therefore, the decimal representation of \(1111 \ 1111 \ 1111 \ 0101\) in 2's complement is \(-11\).
Answer:

Related questions

113 votes
113 votes
20 answers
1
Sandeep Singh asked Feb 12, 2016
52,081 views
We want to design a synchronous counter that counts the sequence $0-1-0-2-0-3$ and then repeats. The minimum number of $\text{J-K}$ flip-flops required to implement this ...
24 votes
24 votes
7 answers
2
85 votes
85 votes
9 answers
3
Sandeep Singh asked Feb 12, 2016
31,022 views
Consider a carry look ahead adder for adding two $n$-bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is$\Theta (1)$$\...