MOESI_hammer.py (10519:7a3ad4b09ce4) MOESI_hammer.py (10524:fff17530cef6)
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;

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

165 # Run each of the ruby memory controllers at a ratio of the frequency of
166 # the ruby system
167 # clk_divider value is a fix to pass regression.
168 ruby_system.memctrl_clk_domain = DerivedClockDomain(
169 clk_domain=ruby_system.clk_domain,
170 clk_divider=3)
171
172 for i in xrange(options.num_dirs):
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;

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

165 # Run each of the ruby memory controllers at a ratio of the frequency of
166 # the ruby system
167 # clk_divider value is a fix to pass regression.
168 ruby_system.memctrl_clk_domain = DerivedClockDomain(
169 clk_domain=ruby_system.clk_domain,
170 clk_divider=3)
171
172 for i in xrange(options.num_dirs):
173 #
174 # Create the Ruby objects associated with the directory controller
175 #
176
177 mem_cntrl = RubyMemoryControl(
178 clk_domain = ruby_system.memctrl_clk_domain,
179 version = i,
180 ruby_system = ruby_system)
181
182 dir_size = MemorySize('0B')
183 dir_size.value = mem_module_size
184
185 pf = ProbeFilter(size = pf_size, assoc = 4,
186 start_index_bit = pf_start_bit)
187
188 dir_cntrl = Directory_Controller(version = i,
173 dir_size = MemorySize('0B')
174 dir_size.value = mem_module_size
175
176 pf = ProbeFilter(size = pf_size, assoc = 4,
177 start_index_bit = pf_start_bit)
178
179 dir_cntrl = Directory_Controller(version = i,
189 directory = \
190 RubyDirectoryMemory( \
191 version = i,
192 size = dir_size,
193 use_map = options.use_map,
194 map_levels = \
195 options.map_levels,
196 numa_high_bit = \
197 options.numa_high_bit),
180 directory = RubyDirectoryMemory(
181 version = i, size = dir_size),
198 probeFilter = pf,
182 probeFilter = pf,
199 memBuffer = mem_cntrl,
200 probe_filter_enabled = options.pf_on,
201 full_bit_dir_enabled = options.dir_on,
202 transitions_per_cycle = options.ports,
203 ruby_system = ruby_system)
204
205 if options.recycle_latency:
206 dir_cntrl.recycle_latency = options.recycle_latency
207

--- 56 unchanged lines hidden ---
183 probe_filter_enabled = options.pf_on,
184 full_bit_dir_enabled = options.dir_on,
185 transitions_per_cycle = options.ports,
186 ruby_system = ruby_system)
187
188 if options.recycle_latency:
189 dir_cntrl.recycle_latency = options.recycle_latency
190

--- 56 unchanged lines hidden ---