Math2mat
Public Member Functions | Package Functions

m2m.backend.buildingblocks.BuildingBlockFloat Class Reference

Inheritance diagram for m2m.backend.buildingblocks.BuildingBlockFloat:
Inheritance graph
[legend]
Collaboration diagram for m2m.backend.buildingblocks.BuildingBlockFloat:
Collaboration graph
[legend]

List of all members.

Public Member Functions

final NumType numType ()
boolean useGenericSize ()
boolean setSize (int significandSize, int exponentSize)

Package Functions

 BuildingBlockFloat ()

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

final NumType m2m.backend.buildingblocks.BuildingBlockFloat.numType ( ) [virtual]

Returns the numbers type (NumType.FLOAT).

Returns:
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.

Parameters:
significandSizeTotal size of the significant
exponentSizeTotal size of the significant
Returns:
false if the number of decimal bits is greater than the total number of bits, or if one of these numbers is negative, true else.

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.

Returns:
true

Reimplemented from m2m.backend.buildingblocks.BuildingBlock.

Definition at line 36 of file BuildingBlockFloat.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations