Commit 5a8020c3 authored by Ludovic Apvrille's avatar Ludovic Apvrille

Solving bug on default architecture and renaming links in the default archi

parent 1a8fa6a5
......@@ -212,14 +212,17 @@ public class TMLMapping<E> {
bus = new HwBus("defaultBus");
mem = new HwMemory("defaultMemory");
tmla.addHwNode(bus);
tmla.addHwNode(mem);
// Connect all possible nodes to that bus
cpt = 0;
for (HwNode node : tmla.getHwNodes()) {
link0 = new HwLink("to_bus_" + cpt);
cpt++;
link0.bus = bus;
link0.hwnode = node;
tmla.addHwLink(link0);
if (node != bus) {
link0 = new HwLink("link_" + node.getName() + "_to_" + bus.getName());
cpt++;
link0.bus = bus;
link0.hwnode = node;
tmla.addHwLink(link0);
}
}
// Add all channels on that bus
......
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