MOESI_CMP_directory.py (9154:198352d722e4) MOESI_CMP_directory.py (9232:3bb99fab80d4)
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;

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

127 cntrl_id = cntrl_count,
128 L2cacheMemory = l2_cache,
129 ruby_system = ruby_system)
130
131 exec("system.l2_cntrl%d = l2_cntrl" % i)
132 l2_cntrl_nodes.append(l2_cntrl)
133
134 cntrl_count += 1
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;

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

127 cntrl_id = cntrl_count,
128 L2cacheMemory = l2_cache,
129 ruby_system = ruby_system)
130
131 exec("system.l2_cntrl%d = l2_cntrl" % i)
132 l2_cntrl_nodes.append(l2_cntrl)
133
134 cntrl_count += 1
135
136 phys_mem_size = 0
137 for mem in system.memories.unproxy(system):
138 phys_mem_size += long(mem.range.second) - long(mem.range.first) + 1
135
136 phys_mem_size = sum(map(lambda mem: mem.range.size(),
137 system.memories.unproxy(system)))
139 mem_module_size = phys_mem_size / options.num_dirs
140
141 for i in xrange(options.num_dirs):
142 #
143 # Create the Ruby objects associated with the directory controller
144 #
145
146 mem_cntrl = RubyMemoryControl(version = i,

--- 43 unchanged lines hidden ---
138 mem_module_size = phys_mem_size / options.num_dirs
139
140 for i in xrange(options.num_dirs):
141 #
142 # Create the Ruby objects associated with the directory controller
143 #
144
145 mem_cntrl = RubyMemoryControl(version = i,

--- 43 unchanged lines hidden ---