Commit 52359f58 authored by Sebastian Nickels's avatar Sebastian Nickels

Updated LayerNameCreator for array access in states

parent 1b05f682
......@@ -115,23 +115,21 @@ public class LayerNameCreator {
if (architectureElement instanceof VariableSymbol) {
VariableSymbol element = (VariableSymbol) architectureElement;
String name = createBaseName(architectureElement);
String name = createBaseName(architectureElement) + "_";
if (element.getType() == VariableSymbol.Type.IO) {
if (element.getArrayAccess().isPresent()){
int arrayAccess = element.getArrayAccess().get().getIntValue().get();
name = name + "_" + arrayAccess + "_";
} else {
name = name + "_";
}
} else if (element.getType() == VariableSymbol.Type.LAYER) {
if (element.getType() == VariableSymbol.Type.LAYER) {
if (element.getMember() == VariableSymbol.Member.STATE) {
name = name + "_state_";
name = name + "state_";
} else {
name = name + "_output_";
name = name + "output_";
}
}
if (element.getArrayAccess().isPresent()){
int arrayAccess = element.getArrayAccess().get().getIntValue().get();
name = name + arrayAccess + "_";
}
return name;
} else {
return createBaseName(architectureElement) + stage + createStreamPostfix(streamIndices) + "_";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment