Commit 239ae86b authored by lr119628's avatar lr119628
Browse files

[update]: LayerNameCreator function name, checks if the passed...

[update]: LayerNameCreator function name, checks if the passed ArchtectureELementSymbol is artifical (defined by a dev in the arch lang), then adds all the sub layers and then adds also the name of the dev
parent e923d9dc
...@@ -46,11 +46,15 @@ public class LayerNameCreator { ...@@ -46,11 +46,15 @@ public class LayerNameCreator {
} else { } else {
return stage; return stage;
} }
}else if (architectureElement.isArtificial()) {
return add(architectureElement,stage,streamIndices);
}else{ }else{
ArchitectureElementSymbol resolvedElement = (ArchitectureElementSymbol) architectureElement.getResolvedThis().get(); ArchitectureElementSymbol resolvedElement = (ArchitectureElementSymbol) architectureElement.getResolvedThis().get();
return name(resolvedElement, stage, streamIndices); int final_stage = name(resolvedElement, stage, streamIndices);
if (architectureElement.isArtificial()){
// if the element is artificial the name needs to be added
final_stage = add(architectureElement,final_stage,streamIndices);
}
return final_stage;
} }
} }
} }
......
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