MOESI_hammer.py (7632:acf43d6bbc18) MOESI_hammer.py (7662:b4d3a30575a1)
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;

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

147 # Create the Ruby objects associated with the directory controller
148 #
149
150 mem_cntrl = RubyMemoryControl(version = i)
151
152 dir_size = MemorySize('0B')
153 dir_size.value = mem_module_size
154
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;

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

147 # Create the Ruby objects associated with the directory controller
148 #
149
150 mem_cntrl = RubyMemoryControl(version = i)
151
152 dir_size = MemorySize('0B')
153 dir_size.value = mem_module_size
154
155 pf = ProbeFilter(size = pf_size, assoc = 4)
155 pf = ProbeFilter(size = pf_size, assoc = 4,
156 start_index_bit = pf_start_bit)
156
157 dir_cntrl = Directory_Controller(version = i,
158 directory = \
159 RubyDirectoryMemory( \
160 version = i,
161 size = dir_size,
162 use_map = options.use_map,
163 map_levels = \
164 options.map_levels),
165 probeFilter = pf,
166 memBuffer = mem_cntrl,
157
158 dir_cntrl = Directory_Controller(version = i,
159 directory = \
160 RubyDirectoryMemory( \
161 version = i,
162 size = dir_size,
163 use_map = options.use_map,
164 map_levels = \
165 options.map_levels),
166 probeFilter = pf,
167 memBuffer = mem_cntrl,
167 probe_filter_enabled = \
168 options.pf_on)
168 probe_filter_enabled = options.pf_on)
169
170 if options.recycle_latency:
171 dir_cntrl.recycle_latency = options.recycle_latency
172
173 exec("system.dir_cntrl%d = dir_cntrl" % i)
174 dir_cntrl_nodes.append(dir_cntrl)
175
176 for i, dma_device in enumerate(dma_devices):

--- 23 unchanged lines hidden ---
169
170 if options.recycle_latency:
171 dir_cntrl.recycle_latency = options.recycle_latency
172
173 exec("system.dir_cntrl%d = dir_cntrl" % i)
174 dir_cntrl_nodes.append(dir_cntrl)
175
176 for i, dma_device in enumerate(dma_devices):

--- 23 unchanged lines hidden ---