MOESI_CMP_directory.py (9468:721718c62859) MOESI_CMP_directory.py (9693:647f6624c46a)
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;

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

149
150 dir_size = MemorySize('0B')
151 dir_size.value = mem_module_size
152
153 dir_cntrl = Directory_Controller(version = i,
154 cntrl_id = cntrl_count,
155 directory = \
156 RubyDirectoryMemory(version = i,
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;

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

149
150 dir_size = MemorySize('0B')
151 dir_size.value = mem_module_size
152
153 dir_cntrl = Directory_Controller(version = i,
154 cntrl_id = cntrl_count,
155 directory = \
156 RubyDirectoryMemory(version = i,
157 size = dir_size),
157 size = dir_size,
158 use_map = options.use_map),
158 memBuffer = mem_cntrl,
159 ruby_system = ruby_system)
160
161 exec("ruby_system.dir_cntrl%d = dir_cntrl" % i)
162 dir_cntrl_nodes.append(dir_cntrl)
163
164 cntrl_count += 1
165

--- 25 unchanged lines hidden ---
159 memBuffer = mem_cntrl,
160 ruby_system = ruby_system)
161
162 exec("ruby_system.dir_cntrl%d = dir_cntrl" % i)
163 dir_cntrl_nodes.append(dir_cntrl)
164
165 cntrl_count += 1
166

--- 25 unchanged lines hidden ---