Deleted Added
sdiff udiff text old ( 13774:a1be2a0c55f2 ) new ( 13885:d10ea5e56cb0 )
full compact
1# Copyright (c) 2010 Advanced Micro Devices, Inc.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 18 unchanged lines hidden (view full) ---

27# Authors: Brad Beckmann
28
29from __future__ import print_function
30from __future__ import absolute_import
31
32from m5.params import *
33from m5.objects import *
34
35from .BaseTopology import SimpleTopology
36
37# Creates a Mesh topology with 4 directories, one at each corner.
38# One L1 (and L2, depending on the protocol) are connected to each router.
39# XY routing is enforced (using link weights) to guarantee deadlock freedom.
40
41class MeshDirCorners_XY(SimpleTopology):
42 description='MeshDirCorners_XY'

--- 50 unchanged lines hidden (view full) ---

93 for (i, n) in enumerate(cache_nodes):
94 cntrl_level, router_id = divmod(i, num_routers)
95 assert(cntrl_level < caches_per_router)
96 ext_links.append(ExtLink(link_id=link_count, ext_node=n,
97 int_node=routers[router_id],
98 latency = link_latency))
99 link_count += 1
100
101 # Connect the dir nodes to the corners.
102 ext_links.append(ExtLink(link_id=link_count, ext_node=dir_nodes[0],
103 int_node=routers[0],
104 latency = link_latency))
105 link_count += 1
106 ext_links.append(ExtLink(link_id=link_count, ext_node=dir_nodes[1],
107 int_node=routers[num_columns - 1],
108 latency = link_latency))

--- 76 unchanged lines hidden (view full) ---

185 src_outport="South",
186 dst_inport="North",
187 latency = link_latency,
188 weight=2))
189 link_count += 1
190
191
192 network.int_links = int_links