If you want to prioritize a link, give it the lowest weight. Right now all X links have weight = 1 (higher priority) and all Y links have weight 2 (lower priority).
See the configurations (such as num VCs) here: http://www.gem5.org/Garnet2.0 - Tushar On Mar 29, 2017, at 4:33 AM, yen phing <applenyp1...@gmail.com<mailto:applenyp1...@gmail.com>> wrote: Hi, In GEM5 simulator, How to set priority path in the shortest path routing algorithm? How to set the number of virtual channel? I'm very weak in programming. I would like to get suggestion in programming. In mesh topology the link is connected by using following programming. for row in xrange(num_rows): for col in xrange(num_columns): if (col + 1 < num_columns): east_id = col + (row * num_columns) west_id = (col + 1) + (row * num_columns) int_links.append(IntLink(link_id=link_count, node_a=routers[east_id], node_b=routers[west_id], weight=1)) I would like to build a heterogeneous topology. if i would like to specified adding link between node [2] connected to node [4] in mesh topology. how to modified the program? Thank you _______________________________________________ gem5-users mailing list gem5-users@gem5.org<mailto: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