[SOLVED] COL216-Assignment 11 Floating Point Addition

24.99 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

Rate this product

In this assignment you will do a software implementation of the Floating Point Adder whose algorithm was covered in class, and is outlined in Figure 3.14 (Page 205 of the textbook). Assume that each of the boxes numbered 1, 2, 3, and 4 require one clock cycle, and the condition checks require zero time.

Inputs to the program will be:

  1. A text file with each line containing a pair of floating point numbers to be added, in binary representation (a string of ‘0’ and ‘1’ characters in the file). See sample below.

Outputs from the program will be:

  1. A sequence of addition results, each line containing one result (a string of ‘0’ and ‘1’ characters) and the number of clock cycles required for performing the addition.

Deliverables:

  1. Software implementation of the floating point adder referred to above.
  2. Test files used to verify your program. Remember to test for special cases such as Overflow, Underflow, Normalised result, etc.
  3. A document explaining the different test cases.

Sample Input File (each line contains the representation for 2 floating point numbers, both 32 bits wide):

11001100110011001111110011001100 11001100110011001111110011001100 01001110110011001111110011001101 11001100110111001101110011001110

Sample Output File (just examples. These are not be the computed outputs for the above input file):

11001110110011001111110011001101 01001110110011001111110011001101 4

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.