Ruby.py (6915:13e4df0df905) Ruby.py (6916:a421f60f0e87)
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;

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

75 else:
76 print "Error: unsupported ruby protocol"
77 sys.exit(1)
78
79 #
80 # Important: the topology constructor must be called before the network
81 # constructor.
82 #
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;

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

75 else:
76 print "Error: unsupported ruby protocol"
77 sys.exit(1)
78
79 #
80 # Important: the topology constructor must be called before the network
81 # constructor.
82 #
83 network = SimpleNetwork(topology = makeCrossbar(all_cntrls))
83 if options.topology == "crossbar":
84 net_topology = makeCrossbar(all_cntrls)
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)
84
92
93 network = SimpleNetwork(topology = net_topology)
94
85 #
86 # determine the total memory size of the ruby system and verify it is equal
87 # to physmem
88 #
89 total_mem_size = MemorySize('0B')
90 for dir_cntrl in dir_cntrls:
91 total_mem_size.value += dir_cntrl.directory.size.value
92 physmem_size = long(physmem.range.second) - long(physmem.range.first) + 1

--- 16 unchanged lines hidden ---
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
102 physmem_size = long(physmem.range.second) - long(physmem.range.first) + 1

--- 16 unchanged lines hidden ---