MOESI_CMP_token.py (9695:df1d9fee32a5) | MOESI_CMP_token.py (9793:6e6cefc1db1f) |
---|---|
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; --- 146 unchanged lines hidden (view full) --- 155 l2_cntrl_nodes.append(l2_cntrl) 156 157 cntrl_count += 1 158 159 phys_mem_size = sum(map(lambda mem: mem.range.size(), 160 system.memories.unproxy(system))) 161 mem_module_size = phys_mem_size / options.num_dirs 162 | 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; --- 146 unchanged lines hidden (view full) --- 155 l2_cntrl_nodes.append(l2_cntrl) 156 157 cntrl_count += 1 158 159 phys_mem_size = sum(map(lambda mem: mem.range.size(), 160 system.memories.unproxy(system))) 161 mem_module_size = phys_mem_size / options.num_dirs 162 |
163 # Run each of the ruby memory controllers at a ratio of the frequency of 164 # the ruby system 165 # clk_divider value is a fix to pass regression. 166 ruby_system.memctrl_clk_domain = DerivedClockDomain( 167 clk_domain=ruby_system.clk_domain, 168 clk_divider=3) 169 |
|
163 for i in xrange(options.num_dirs): 164 # 165 # Create the Ruby objects associated with the directory controller 166 # 167 | 170 for i in xrange(options.num_dirs): 171 # 172 # Create the Ruby objects associated with the directory controller 173 # 174 |
168 mem_cntrl = RubyMemoryControl(version = i, 169 ruby_system = ruby_system) | 175 mem_cntrl = RubyMemoryControl( 176 clk_domain = ruby_system.memctrl_clk_domain, 177 version = i, 178 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, --- 36 unchanged lines hidden --- | 179 180 dir_size = MemorySize('0B') 181 dir_size.value = mem_module_size 182 183 dir_cntrl = Directory_Controller(version = i, 184 cntrl_id = cntrl_count, 185 directory = \ 186 RubyDirectoryMemory(version = i, --- 36 unchanged lines hidden --- |