Math2mat
|
Classes | |
class | MapVHDLSimpleVariable |
Public Member Functions | |
boolean | insideFromXml (org.w3c.dom.Element el, Function newFunc) |
String | getXmlTagName () |
void | insideToXml (org.w3c.dom.Element el, Document dom, boolean shortRef) |
Element | copy (Function newFunc) |
SimpleVariable () | |
SimpleVariable (String n) | |
SimpleVariable (double v) | |
SimpleVariable (ArrayList< Double > v) | |
SimpleVariable (String n, double v) | |
SimpleVariable (SimpleVariable var) | |
SimpleVariable (String n, double v, String t) | |
SimpleVariable (String n, ArrayList< Double > v, String t) | |
void | setVal (double v) |
void | setVal (ArrayList< Double > v) |
double | getVal () |
double | getVal (int pos) |
ArrayList< Double > | getValues () |
void | addVal (double v) |
void | setType (String t) |
String | getType () |
void | setSize (int n) |
int | getSize () |
String | toString (int level) |
String | toSchematic (int level, String prefix, String boxFormat, String color) |
void | setCost (int cost) |
int | getCost () |
Vector< Integer > | getMultiCost () |
HashMap< Function, MapVHDLSimpleVariable > | getVariableMap () |
Vector< Element > | getVariableDependencies () |
void | setSimpleFifo (boolean value) |
boolean | getSimpleFifo () |
int | getSimpleFifoCost () |
void | setSimpleFifoCost (int value) |
void | setOutputLoopVariable (SimpleVariable var) |
SimpleVariable | getOutputLoopVariable () |
void | setInputLoopVariable (SimpleVariable var) |
SimpleVariable | getInputLoopVariable () |
Describe a VHDL variable Contains 3 parametres, the value, the type and the name (inherits from Element)
Definition at line 27 of file SimpleVariable.java.
m2m.backend.structure.SimpleVariable.SimpleVariable | ( | ) |
Empty constructor. Set an empty name, the value to 0 and the type to "none"
Definition at line 175 of file SimpleVariable.java.
m2m.backend.structure.SimpleVariable.SimpleVariable | ( | String | n | ) |
Constructor, set the name of the object
n | Name |
Definition at line 186 of file SimpleVariable.java.
m2m.backend.structure.SimpleVariable.SimpleVariable | ( | double | v | ) |
Constructor, set the value of the object and an empty name
v | Value |
Definition at line 197 of file SimpleVariable.java.
m2m.backend.structure.SimpleVariable.SimpleVariable | ( | ArrayList< Double > | v | ) |
Definition at line 205 of file SimpleVariable.java.
m2m.backend.structure.SimpleVariable.SimpleVariable | ( | String | n, |
double | v | ||
) |
Constructor, set the name and the value.
n | Name |
v | Value |
Definition at line 217 of file SimpleVariable.java.
m2m.backend.structure.SimpleVariable.SimpleVariable | ( | SimpleVariable | var | ) |
Constructor, the new object contains values of the parametre variable
var | SimpleVariable to copy |
Definition at line 228 of file SimpleVariable.java.
m2m.backend.structure.SimpleVariable.SimpleVariable | ( | String | n, |
double | v, | ||
String | t | ||
) |
Construct a complete variable
n | Name |
v | Value |
t | Type |
Definition at line 241 of file SimpleVariable.java.
m2m.backend.structure.SimpleVariable.SimpleVariable | ( | String | n, |
ArrayList< Double > | v, | ||
String | t | ||
) |
Definition at line 253 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.addVal | ( | double | v | ) |
Definition at line 298 of file SimpleVariable.java.
Implements m2m.backend.structure.Element.
Definition at line 157 of file SimpleVariable.java.
int m2m.backend.structure.SimpleVariable.getCost | ( | ) |
Get the latency cost of the variable.
Definition at line 369 of file SimpleVariable.java.
SimpleVariable m2m.backend.structure.SimpleVariable.getInputLoopVariable | ( | ) |
Get the input loop variable of the simple variable
Definition at line 465 of file SimpleVariable.java.
Vector<Integer> m2m.backend.structure.SimpleVariable.getMultiCost | ( | ) |
Get the multiCostBeforeOp vector of the variable.
Definition at line 378 of file SimpleVariable.java.
SimpleVariable m2m.backend.structure.SimpleVariable.getOutputLoopVariable | ( | ) |
Get the output loop variable of the simple variable
Definition at line 449 of file SimpleVariable.java.
boolean m2m.backend.structure.SimpleVariable.getSimpleFifo | ( | ) |
Get the simpleFifo attribut of the variable.
Definition at line 414 of file SimpleVariable.java.
int m2m.backend.structure.SimpleVariable.getSimpleFifoCost | ( | ) |
Get the simpleFifoCost attribut of the variable.
Definition at line 423 of file SimpleVariable.java.
int m2m.backend.structure.SimpleVariable.getSize | ( | ) | [virtual] |
Implements m2m.backend.structure.Variable.
Definition at line 324 of file SimpleVariable.java.
String m2m.backend.structure.SimpleVariable.getType | ( | ) | [virtual] |
Getter of type
Implements m2m.backend.structure.Variable.
Definition at line 316 of file SimpleVariable.java.
double m2m.backend.structure.SimpleVariable.getVal | ( | int | pos | ) |
Definition at line 287 of file SimpleVariable.java.
double m2m.backend.structure.SimpleVariable.getVal | ( | ) | [virtual] |
Getter of value
Implements m2m.backend.structure.Variable.
Definition at line 280 of file SimpleVariable.java.
ArrayList<Double> m2m.backend.structure.SimpleVariable.getValues | ( | ) |
Definition at line 294 of file SimpleVariable.java.
Vector<Element> m2m.backend.structure.SimpleVariable.getVariableDependencies | ( | ) |
Get the variablesDependencies of the variable.
Definition at line 396 of file SimpleVariable.java.
HashMap<Function, MapVHDLSimpleVariable> m2m.backend.structure.SimpleVariable.getVariableMap | ( | ) |
Get the varaibleMap of the variable.
Definition at line 387 of file SimpleVariable.java.
String m2m.backend.structure.SimpleVariable.getXmlTagName | ( | ) | [virtual] |
Implements m2m.backend.structure.Element.
Definition at line 139 of file SimpleVariable.java.
boolean m2m.backend.structure.SimpleVariable.insideFromXml | ( | org.w3c.dom.Element | el, |
Function | newFunc | ||
) |
Reimplemented from m2m.backend.structure.Element.
Definition at line 118 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.insideToXml | ( | org.w3c.dom.Element | el, |
Document | dom, | ||
boolean | shortRef | ||
) |
Definition at line 142 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.setCost | ( | int | cost | ) |
Set the latency cost of the variable.
cost | the latency cost to set to the variable. |
Definition at line 360 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.setInputLoopVariable | ( | SimpleVariable | var | ) |
Set the input loop variable of the simple variable
var | The variable to set |
Definition at line 457 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.setOutputLoopVariable | ( | SimpleVariable | var | ) |
Set the output loop variable of the simple variable
var | The variable to set |
Definition at line 441 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.setSimpleFifo | ( | boolean | value | ) |
Set the simpleFifo attribut of the variable.
value | the value to set to the attribut |
Definition at line 405 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.setSimpleFifoCost | ( | int | value | ) |
Set the simpleFifoCost attribut of the variable.
value | the value to set to the attribut |
Definition at line 432 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.setSize | ( | int | n | ) |
Definition at line 320 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.setType | ( | String | t | ) | [virtual] |
Setter of type
t | Nouveau type |
Implements m2m.backend.structure.Variable.
Definition at line 308 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.setVal | ( | double | v | ) | [virtual] |
Setter of value
v | New value |
Implements m2m.backend.structure.Variable.
Definition at line 264 of file SimpleVariable.java.
void m2m.backend.structure.SimpleVariable.setVal | ( | ArrayList< Double > | v | ) |
Definition at line 270 of file SimpleVariable.java.
String m2m.backend.structure.SimpleVariable.toSchematic | ( | int | level, |
String | prefix, | ||
String | boxFormat, | ||
String | color | ||
) |
Create the schematic file, use with graphviz to generate schematic
level | Level of tab |
prefix | Prefix for the element name |
boxFormat | Format of box (rectangle, triangle, ...) |
color | Color of the block |
Reimplemented from m2m.backend.structure.Element.
Definition at line 342 of file SimpleVariable.java.
String m2m.backend.structure.SimpleVariable.toString | ( | int | level | ) |
Convert the object to a string that contains all the parametres
level | Indent of the string |
Reimplemented from m2m.backend.structure.Element.
Definition at line 329 of file SimpleVariable.java.