2. a) What decimal number does the bit pattern 0×0C000000 represent if it is a two’s complement integer? An unsigned integer? b) What decimal number does the bit pattern 0×0C000000 represent if it is a floating point number? Use the IEEE 754 standard. c) If the bit pattern 0×0C000000 is placed into the Instruction Register, what MIPS instruction will be executed?
2)
a)
Hexadecimal Binary
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
A 1010
B 1011
C 1100
D 1101
E 1110
F 1111
Use this table to convert from hexadecimal to binary
Converting 0C000000 to binary
0 => 0000
C => 1100
0 => 0000
0 => 0000
0 => 0000
0 => 0000
0 => 0000
0 => 0000
So, in binary 0C000000 is 00001100000000000000000000000000
since left most bit is 0, this number is positive
so, we can directly convert this into a decimal value
=> 1100000000000000000000000000
=> 1x2^27+1x2^26+0x2^25+0x2^24+0x2^23+0x2^22+0x2^21+0x2^20+0x2^19+0x2^18+0x2^17+0x2^16+0x2^15+0x2^14+0x2^13+0x2^12+0x2^11+0x2^10+0x2^9+0x2^8+0x2^7+0x2^6+0x2^5+0x2^4+0x2^3+0x2^2+0x2^1+0x2^0
=> 1x134217728+1x67108864+0x33554432+0x16777216+0x8388608+0x4194304+0x2097152+0x1048576+0x524288+0x262144+0x131072+0x65536+0x32768+0x16384+0x8192+0x4096+0x2048+0x1024+0x512+0x256+0x128+0x64+0x32+0x16+0x8+0x4+0x2+0x1
=> 134217728+67108864+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0
=> 201326592
Answer in two's complement is 201326592
Answer in unsigned is also 201326592
b)
Hexadecimal Binary
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
A 1010
B 1011
C 1100
D 1101
E 1110
F 1111
Use this table to convert from hexadecimal to binary
Converting 0C000000 to binary
0 => 0000
C => 1100
0 => 0000
0 => 0000
0 => 0000
0 => 0000
0 => 0000
0 => 0000
So, in binary 0C000000 is 00001100000000000000000000000000
00001100000000000000000000000000
0 00011000 00000000000000000000000
sign bit is 0(+ve)
exp bits are 00011000
=> 00011000
=> 0x2^7+0x2^6+0x2^5+1x2^4+1x2^3+0x2^2+0x2^1+0x2^0
=> 0x128+0x64+0x32+1x16+1x8+0x4+0x2+0x1
=> 0+0+0+16+8+0+0+0
=> 24
in decimal it is 24
so, exponent/bias is 24-127 = -103
frac bits are
IEEE-754 Decimal value is 1.frac * 2^exponent
IEEE-754 Decimal value is 1. * 2^-103
1. in decimal is 1
=> 1.
=> 1x2^0
=> 1x1
=> 1
=> 1
so, 1 * 2^-103 in decimal is 9.860761315262648e-32
so, 00001100000000000000000000000000 in IEEE-754 single precision format is 9.860761315262648e-32
Answer: 9.860761315262648e-32
c)
000011 00000000000000000000000000
opcode is 000011 (3). so, this is a jal instruction
MIPS instruction is jal 0
Answer: jal 0
2. a) What decimal number does the bit pattern 0×0C000000 represent if it is a two’s...
In a von Neumann architecture, groups of bits have no intrinsic meanings by themselves. What a bit pattern represents depends entirely on how it is used. Consider the following bit patterns expressed in hexadecimal notation. 8D28000C16 1) What decimal number does the bit pattern represent if it is an integer? 2) What decimal number does the bit pattern represent if it is an unsigned integer? 3) If the bit pattern is in an instruction register, what MIPS instruction will be...
Please show and explain all work for each questions What decimal number does the bit pattern 11001100 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 4 - What decimal number does the bit pattern 00110011 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 5 - [2 pts] What is the binary representation of the...
What decimal number does the following bit pattern represent if it is a single precision floating-point number using the IEEE 754 standard? 0x0D000000 0xC4650000
6 - What decimal number does the bit pattern 0xC0B00000 represent if it is: • [2 pts] A two's complement integer? • [2 pts] An unsigned integer? • [2 pts] A floating point number assuming the IEE 754 single precision format 7 - Perform the following calculations assuming that the values are 8-bit decimal integers stored in two's complement format. Be sure to consider the possibility of overflow. • [2 pts] 10101010 + 00110011 • [2 pts] 10101010 – 00110011...
3 - What decimal number does the bit pattern 11001100 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 4 - What decimal number does the bit pattern 00110011 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? If you could show work that would be helpful as I have to do that to get credit....
What decimal number does the bit pattern 10101100 represent if it is a: [1 pts] unsigned integer? [1 pts] sign-magnitude integer? [1 pts] two's complement integer? What decimal number does the bit pattern 01010011 represent if it is a: [1 pts] unsigned integer? [1 pts] sign-magnitude integer? [1 pts] two's complement integer?
5. (10 pts) Given the 32-bit pattern: 1000 1111 0001 0110 0000 0000 0110 1000 hat does it represent respectively, assuming that it is a signed (2's complement) integer? (convert them to decimal) b. an unsigned integer? (convert them to decimal) c. a MIPS instruction?
5. (10 pts) Given the 32-bit pattern: 1000 1111 0001 0110 0000 0000 0110 1000 hat does it represent respectively, assuming that it is a signed (2's complement) integer? (convert them to decimal) b. an...
Assuming IEEE 754 single-precision floating-point number
representation, calculate the floating point number the following
bit pattern represent. Show your work to get credit.
1 1 0 0 0 0 0
0 1 1 0 1 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0
Question 18 Assuming IEEE 754 single-precision floating-point number representation, calculate the floating point number the following bit pattern represent. Show your work to get credit. 1 100 0000 1101 0000 0000 0000...
What decimal value does the 8-bit binary number 10110111 have if: a) it is interpreted as an unsigned number? b) it is on a computer using signed-magnitude representation? c) it is on a computer using one’s complement representation? d) it is on a computer using two’s complement representation? e) it is on a computer using excess-127 representation?
Assuming IEEE 754 single-precision floating-point number representation, calculate the floating point number the following bit pattern represent. Show your work to get credit. 1100 0000 0011 0000 0000 0000 0000 0000