Hi Yuhang, There is no way to identify the directions of the ports since the current setup allows you to potentially declare any topology, not just a mesh. The way I typically do this is the following: In GarnetNetwork_d.cc, when the router ports are being added (makeInternalLink etc), you can set some "direction" field in each port by inferring it from the source and destination router ids. And then later you can use these port directions to implement odd-even routing.
cheers, Tushar On Jul 30, 2013, at 10:20 AM, yuhang wrote: > Hello all, > > I was wondering is that possible to implement odd even turn model in garnet > network? The router id is accessible which can determine the odd and even > column. But I cannot find a clear distribution of input/output ports and the > links to the five ports (west, east, north, south, core). So I cannot control > the turns based on the directions. Does anyone has ideas how to implement odd > even routing? > > Thanks, > Yuhang > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users