Topology: bug fix in external link initialization

--HG--
extra : rebase_source : c226cd1e5e5ed4d4c64fa9427de4905bd8335e34
This commit is contained in:
Tushar Krishna 2011-11-23 16:34:13 -05:00
parent eff430a972
commit 88e91cafc6

View file

@ -99,7 +99,7 @@ def makeTopology(nodes, options, IntLink, ExtLink, Router):
# Connect the dma nodes to router 0. These should only be DMA nodes.
for (i, node) in enumerate(dma_nodes):
assert(node.type == 'DMA_Controller')
ext_links.append(ExtLink(ext_node=node, int_node=mesh.routers[0]))
ext_links.append(ExtLink(link_id=link_count, ext_node=node, int_node=mesh.routers[0]))
# Create the mesh links. First row (east-west) links then column
# (north-south) links