User Tools

Site Tools


2014:floating_point_unit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
2014:floating_point_unit [2014/12/17 17:57]
kyflores [Multiplication]
2014:floating_point_unit [2014/12/17 17:59] (current)
kyflores [Complete FPU]
Line 21: Line 21:
 All modules are designed, simulated, and tested in Modelsim PE and are written in Verilog. All modules are designed, simulated, and tested in Modelsim PE and are written in Verilog.
 ==== Complete FPU ==== ==== Complete FPU ====
- +This is the top level module. It just hooks up the adder/​subtractor and multiplier, plus deals with bus size discrepancies and flow control. 
 +{{:​2014:​top_level.png|}}
 ==== Addition/​Subtraction ==== ==== Addition/​Subtraction ====
 Addition would be as simple as it sounds if there was no exponent to deal with. Before operands enter our adder, they must first be normalized to the larger of the two exponents. We do this by finding the difference of exponents, and shifting the smaller operand by the difference. This process is vulnerable to losing precision, especially if one exponent is much larger than the other. The larger exponent is passed out to the result, and the shifted operands are then added as usual. Subtraction is identical as negatives are dealt with nicely in two's complement notation. Normalizing to the exponent in subtraction is the same as in addition.{{ :​2014:​scan01.png |}} Addition would be as simple as it sounds if there was no exponent to deal with. Before operands enter our adder, they must first be normalized to the larger of the two exponents. We do this by finding the difference of exponents, and shifting the smaller operand by the difference. This process is vulnerable to losing precision, especially if one exponent is much larger than the other. The larger exponent is passed out to the result, and the shifted operands are then added as usual. Subtraction is identical as negatives are dealt with nicely in two's complement notation. Normalizing to the exponent in subtraction is the same as in addition.{{ :​2014:​scan01.png |}}
2014/floating_point_unit.1418857038.txt.gz · Last modified: 2014/12/17 17:57 by kyflores