Math2mat
|
Public Member Functions | |
NumType | numType () |
boolean | useGenericSize () |
boolean | setSize (int size) |
Protected Attributes | |
int | m_size |
Package Functions | |
BuildingBlockIntUInt () |
This class represents the base class for a building block performing calculation on signed or unsigned integers. It allows to set the size of the date, something useful for resource and period calculation. By default, such a data is on 16 bits, and the VHDL components are generic.
Definition at line 10 of file BuildingBlockIntUInt.java.
m2m.backend.buildingblocks.BuildingBlockIntUInt.BuildingBlockIntUInt | ( | ) | [package] |
Default constructor setting the size of the data to 16.
Definition at line 15 of file BuildingBlockIntUInt.java.
NumType m2m.backend.buildingblocks.BuildingBlockIntUInt.numType | ( | ) | [virtual] |
Returns the numbers type (NumType.INTUINT).
Implements m2m.backend.buildingblocks.BuildingBlock.
Reimplemented in m2m.backend.buildingblocks.BuildingBlockInt, and m2m.backend.buildingblocks.BuildingBlockUInt.
Definition at line 23 of file BuildingBlockIntUInt.java.
boolean m2m.backend.buildingblocks.BuildingBlockIntUInt.setSize | ( | int | size | ) |
Sets the size of the numbers. It can then be used to evaluate the resources usage as well as the minimum period.
size | Size of the numbers |
Definition at line 45 of file BuildingBlockIntUInt.java.
boolean m2m.backend.buildingblocks.BuildingBlockIntUInt.useGenericSize | ( | ) |
Indicates if the operands have a generic size or not. For integers, the default is yes, as generic building blocks should be quite easy to describe.
Reimplemented from m2m.backend.buildingblocks.BuildingBlock.
Definition at line 35 of file BuildingBlockIntUInt.java.
int m2m.backend.buildingblocks.BuildingBlockIntUInt.m_size [protected] |
Size of the numbers
Definition at line 55 of file BuildingBlockIntUInt.java.