Math2mat
Public Member Functions | Protected Attributes | Package Functions

m2m.backend.buildingblocks.BuildingBlockIntUInt Class Reference

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

List of all members.

Public Member Functions

NumType numType ()
boolean useGenericSize ()
boolean setSize (int size)

Protected Attributes

int m_size

Package Functions

 BuildingBlockIntUInt ()

Detailed Description

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.


Constructor & Destructor Documentation

m2m.backend.buildingblocks.BuildingBlockIntUInt.BuildingBlockIntUInt ( ) [package]

Default constructor setting the size of the data to 16.

Definition at line 15 of file BuildingBlockIntUInt.java.


Member Function Documentation

NumType m2m.backend.buildingblocks.BuildingBlockIntUInt.numType ( ) [virtual]

Returns the numbers type (NumType.INTUINT).

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

Parameters:
sizeSize of the numbers
Returns:
false if size is negative, true else

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.

Returns:
true

Reimplemented from m2m.backend.buildingblocks.BuildingBlock.

Definition at line 35 of file BuildingBlockIntUInt.java.


Member Data Documentation

Size of the numbers

Definition at line 55 of file BuildingBlockIntUInt.java.


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