Ruby.py (6916:a421f60f0e87) Ruby.py (6918:9b57f0108bc8)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

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

85 elif options.topology == "mesh":
86 #
87 # The uniform mesh topology assumes one router per cpu
88 #
89 net_topology = makeMesh(all_cntrls,
90 len(cpu_sequencers),
91 options.mesh_rows)
92
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

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

85 elif options.topology == "mesh":
86 #
87 # The uniform mesh topology assumes one router per cpu
88 #
89 net_topology = makeMesh(all_cntrls,
90 len(cpu_sequencers),
91 options.mesh_rows)
92
93 network = SimpleNetwork(topology = net_topology)
93 if options.garnet_network == "fixed":
94 network = GarnetNetwork_d(topology = net_topology)
95 elif options.garnet_network == "flexible":
96 network = GarnetNetwork(topology = net_topology)
97 else:
98 network = SimpleNetwork(topology = net_topology)
94
95 #
96 # determine the total memory size of the ruby system and verify it is equal
97 # to physmem
98 #
99 total_mem_size = MemorySize('0B')
100 for dir_cntrl in dir_cntrls:
101 total_mem_size.value += dir_cntrl.directory.size.value

--- 17 unchanged lines hidden ---
99
100 #
101 # determine the total memory size of the ruby system and verify it is equal
102 # to physmem
103 #
104 total_mem_size = MemorySize('0B')
105 for dir_cntrl in dir_cntrls:
106 total_mem_size.value += dir_cntrl.directory.size.value

--- 17 unchanged lines hidden ---