MOESI_CMP_token.py (9100:3caf131d7a95) MOESI_CMP_token.py (9154:198352d722e4)
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;

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

161 phys_mem_size += long(mem.range.second) - long(mem.range.first) + 1
162 mem_module_size = phys_mem_size / options.num_dirs
163
164 for i in xrange(options.num_dirs):
165 #
166 # Create the Ruby objects associated with the directory controller
167 #
168
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;

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

161 phys_mem_size += long(mem.range.second) - long(mem.range.first) + 1
162 mem_module_size = phys_mem_size / options.num_dirs
163
164 for i in xrange(options.num_dirs):
165 #
166 # Create the Ruby objects associated with the directory controller
167 #
168
169 mem_cntrl = RubyMemoryControl(version = i)
169 mem_cntrl = RubyMemoryControl(version = i,
170 ruby_system = ruby_system)
170
171 dir_size = MemorySize('0B')
172 dir_size.value = mem_module_size
173
174 dir_cntrl = Directory_Controller(version = i,
175 cntrl_id = cntrl_count,
176 directory = \
177 RubyDirectoryMemory(version = i,

--- 35 unchanged lines hidden ---
171
172 dir_size = MemorySize('0B')
173 dir_size.value = mem_module_size
174
175 dir_cntrl = Directory_Controller(version = i,
176 cntrl_id = cntrl_count,
177 directory = \
178 RubyDirectoryMemory(version = i,

--- 35 unchanged lines hidden ---