Question

In: Computer Science

7-bit float to fraction Consider a 7-bit float representation with 3 exponent bits. that k is...

7-bit float to fraction

Consider a 7-bit float representation with 3 exponent bits. that k is the number of exponent bits, and the bias is computed as 2k-1-1.

For each problem, convert the given float value (provided as a series of bits) into the equivalent base 10 fraction. Simplify each fraction as much as possible. If there is a whole number part and a fractional part, put a space between them.

Here are some example values in the correct format:

  • 12 1/2
  • 13/16
  • -7

Need help with these

1.Convert 0 000 101 to a base 10 fraction.

2.Convert 0 011 010 to a base 10 fraction.

3.Convert 1 011 001 to a base 10 fraction

4.Convert 0 010 000 to a base 10 fraction

5.Convert 1 000 010 to a base 10 fraction.

6.Convert 1 011 000 to a base 10 fraction.

7.Convert 1 110 111 to a base 10 fraction.

8.Convert 1 101 001 to a base 10 fraction.

9.Convert 0 000 010 to a base 10 fraction.

10.Convert 0 001 111 to a base 10 fraction.

Solutions

Expert Solution

Solution:

The Conversion Procedure as follows:

  1. If the original number is in hex, convert it to binary.
  2. Separate into the sign, exponent, and mantissa fields.
  3. Extract the mantissa from the mantissa field, and restore the leading one. You may also omit the trailing zeros.
  4. Extract the exponent from the exponent field, and subtract the bias to recover the actual exponent of two. As before, the bias is 2k−1 − 1, where k is the number of bits in the exponent field, giving 3 for the 8-bit format and 127 for the 32-bit.
  5. De-normalize the number: move the binary point so the exponent is 0, and the value of the number remains unchanged.
  6. Convert the binary value to decimal. This is done just as with binary integers, but the place values right of the binary point are fractions.
  7. Set the sign of the decimal number according to the sign bit of the original floating point number: make it negative for 1; leave positive for 0.

Related Solutions

Consider a binary channel transmitting bits independently. Each bit is demodulated with a 0 corresponding to...
Consider a binary channel transmitting bits independently. Each bit is demodulated with a 0 corresponding to 0 volts and a 1 corresponding to 5 volts. Thus, the received random variable v is normally distributed with variance σ2 = 1 and mean μ = 0 or μ = 5. The demodulated voltage v is compared to a threshold τ to decide whether a bit is a 0 or 1, i.e., decide that a 1 was sent if v > τ and...
Simplify into one fraction: 3/x + 1/7
Simplify into one fraction: 3/x + 1/7
Consider the following 32-bit floating point representation based on the IEEE floating point standard: There is...
Consider the following 32-bit floating point representation based on the IEEE floating point standard: There is a sign bit in the most significant bit. The next eight bits are the exponent, and the exponent bias is 28-1-1 = 127. The last 23 bits are the fraction bits. The representation encodes number of the form V = (-1)S x M x 2E, where S is the sign, M is the significand, and E is the biased exponent. The rules for the...
Find the 3-bit mantissa floating point representation of the following numbers, both by chopping and rounding,...
Find the 3-bit mantissa floating point representation of the following numbers, both by chopping and rounding, and then calculate the associated respective absolute error and relative error: (a) 11/16 (b) 2.75
Consider the series X∞ k=3 √ k/ (k − 1)^3/2 . (a) Determine whether or not...
Consider the series X∞ k=3 √ k/ (k − 1)^3/2 . (a) Determine whether or not the series converges or diverges. Show all your work! (b) Essay part. Which tests can be applied to determine the convergence or divergence of the above series. For each test explain in your own words why and how it can be applied, or why it cannot be applied. (i) (2 points) Divergence Test (ii) Limit Comparison test to X∞ k=2 1/k . (iii) Direct...
Design a state diagram that detects the 7-bit ASCII code of the last alphabet of your full name from a sequence of incoming bits
Design a state diagram that detects the 7-bit ASCII code of the last alphabet of your full name from a sequence of incoming bits. Derive the truth table and draw the circuit diagram of this system using D-Flip Flops. Note: “Muhammad Ali” than you have to detect ASCII code for “i”. Note : Do this for "i"
Consider the following hourly production function: Y = 5 K.3 L.7  for an economy. Furthermore, the country...
Consider the following hourly production function: Y = 5 K.3 L.7  for an economy. Furthermore, the country in question has a labor supply of 10 million, and a capital stock of 1 billion. What is the equilibrium hourly wage for this country (rounded to 2 decimals)? Show your work!
4. Consider bit strings with length l and weight k (so strings of l 0’s and...
4. Consider bit strings with length l and weight k (so strings of l 0’s and 1’s, including k 1’s). We know how to count the number of these for a fixed l and k. Now, we will count the number of strings for which the sum of the length and the weight is fixed. For example, let’s count all the bit strings for which l + k = 11. (a) Find examples of these strings of different lengths. What...
Convert 3/7 to IEEE 754. Convert 171.375 to IEEE754 Convert the float number 0x4024 0080 0000...
Convert 3/7 to IEEE 754. Convert 171.375 to IEEE754 Convert the float number 0x4024 0080 0000 0000 to decimal. What is the true exponent? Circle the true exponent. 0x3FAF 9000 0000 is an IEEE float number. Convert it to base 10. While doing the conversion answer two questions: What is the true exponent? What is the mantissa? Make these two values obvious by circling them.
Consider a 12-bit ADC with an analog input voltage range of 0 to 3 volts. a)...
Consider a 12-bit ADC with an analog input voltage range of 0 to 3 volts. a) Compute the ADC precision, ADC ranges for input and output, and ADC resolution. b) What is the binary value computed by the ADC for an analog input voltage of 1.0 volt? c) Write an ADC0_In function in C that uses busy-wait synchronization to sample the ADC. The function reads the ADC output, and returns the 12-bit binary number. Assume the ADC has already been...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT