MESI_Three_Level.py (10519:7a3ad4b09ce4) MESI_Three_Level.py (10524:fff17530cef6)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009 Advanced Micro Devices, Inc.
3# Copyright (c) 2013 Mark D. Hill and David A. Wood
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

177 ruby_system.memctrl_clk_domain = DerivedClockDomain(
178 clk_domain=ruby_system.clk_domain,
179 clk_divider=3)
180
181 for i in xrange(options.num_dirs):
182 #
183 # Create the Ruby objects associated with the directory controller
184 #
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009 Advanced Micro Devices, Inc.
3# Copyright (c) 2013 Mark D. Hill and David A. Wood
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

177 ruby_system.memctrl_clk_domain = DerivedClockDomain(
178 clk_domain=ruby_system.clk_domain,
179 clk_divider=3)
180
181 for i in xrange(options.num_dirs):
182 #
183 # Create the Ruby objects associated with the directory controller
184 #
185
186 mem_cntrl = RubyMemoryControl(
187 clk_domain = ruby_system.memctrl_clk_domain,
188 version = i,
189 ruby_system = ruby_system)
190
191 dir_size = MemorySize('0B')
192 dir_size.value = mem_module_size
193
194 dir_cntrl = Directory_Controller(version = i,
185 dir_size = MemorySize('0B')
186 dir_size.value = mem_module_size
187
188 dir_cntrl = Directory_Controller(version = i,
195 directory = \
196 RubyDirectoryMemory(version = i,
197 size = dir_size,
198 use_map =
199 options.use_map),
200 memBuffer = mem_cntrl,
189 directory = RubyDirectoryMemory(
190 version = i, size = dir_size),
201 transitions_per_cycle = options.ports,
202 ruby_system = ruby_system)
203
204 exec("ruby_system.dir_cntrl%d = dir_cntrl" % i)
205 dir_cntrl_nodes.append(dir_cntrl)
206
207 # Connect the directory controllers and the network
208 dir_cntrl.requestToDir = ruby_system.network.master

--- 42 unchanged lines hidden ---
191 transitions_per_cycle = options.ports,
192 ruby_system = ruby_system)
193
194 exec("ruby_system.dir_cntrl%d = dir_cntrl" % i)
195 dir_cntrl_nodes.append(dir_cntrl)
196
197 # Connect the directory controllers and the network
198 dir_cntrl.requestToDir = ruby_system.network.master

--- 42 unchanged lines hidden ---