Math2mat
|
Public Member Functions | |
final NumType | numType () |
boolean | useGenericSize () |
boolean | setSize (int significandSize, int exponentSize) |
Package Functions | |
BuildingBlockFloat () |
This class represents the base class for a building block performing calculation on floating point numbers. It allows to set the number of bits for the exponent and the significand, in order to generate correct VHDL. By default, the VHDL components are considered to be generic.
Definition at line 10 of file BuildingBlockFloat.java.
m2m.backend.buildingblocks.BuildingBlockFloat.BuildingBlockFloat | ( | ) | [package] |
Default constructor. It sets the significand size to 24 and the exponent size to 7.
Definition at line 16 of file BuildingBlockFloat.java.
final NumType m2m.backend.buildingblocks.BuildingBlockFloat.numType | ( | ) | [virtual] |
Returns the numbers type (NumType.FLOAT).
Implements m2m.backend.buildingblocks.BuildingBlock.
Definition at line 24 of file BuildingBlockFloat.java.
boolean m2m.backend.buildingblocks.BuildingBlockFloat.setSize | ( | int | significandSize, |
int | exponentSize | ||
) |
Sets the size of the exponent and the significand, in bits.
significandSize | Total size of the significant |
exponentSize | Total size of the significant |
Definition at line 48 of file BuildingBlockFloat.java.
boolean m2m.backend.buildingblocks.BuildingBlockFloat.useGenericSize | ( | ) |
Indicates if the operands have a generic size or not. For fixed point data, the default is yes, as generic building blocks should be quite easy to describe.
Reimplemented from m2m.backend.buildingblocks.BuildingBlock.
Definition at line 36 of file BuildingBlockFloat.java.