MI_example.py (9468:721718c62859) | MI_example.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; --- 95 unchanged lines hidden (view full) --- 104 l1_cntrl_nodes.append(l1_cntrl) 105 106 cntrl_count += 1 107 108 phys_mem_size = sum(map(lambda mem: mem.range.size(), 109 system.memories.unproxy(system))) 110 mem_module_size = phys_mem_size / options.num_dirs 111 | 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; --- 95 unchanged lines hidden (view full) --- 104 l1_cntrl_nodes.append(l1_cntrl) 105 106 cntrl_count += 1 107 108 phys_mem_size = sum(map(lambda mem: mem.range.size(), 109 system.memories.unproxy(system))) 110 mem_module_size = phys_mem_size / options.num_dirs 111 |
112 # Run each of the ruby memory controllers at a ratio of the frequency of 113 # the ruby system. 114 # clk_divider value is a fix to pass regression. 115 ruby_system.memctrl_clk_domain = DerivedClockDomain( 116 clk_domain=ruby_system.clk_domain, 117 clk_divider=3) 118 |
|
112 for i in xrange(options.num_dirs): 113 # 114 # Create the Ruby objects associated with the directory controller 115 # 116 | 119 for i in xrange(options.num_dirs): 120 # 121 # Create the Ruby objects associated with the directory controller 122 # 123 |
117 mem_cntrl = RubyMemoryControl(version = i, 118 ruby_system = ruby_system) | 124 mem_cntrl = RubyMemoryControl( 125 clk_domain = ruby_system.memctrl_clk_domain, 126 version = i, 127 ruby_system = ruby_system) |
119 120 dir_size = MemorySize('0B') 121 dir_size.value = mem_module_size 122 123 dir_cntrl = Directory_Controller(version = i, 124 cntrl_id = cntrl_count, 125 directory = \ 126 RubyDirectoryMemory( \ --- 35 unchanged lines hidden --- | 128 129 dir_size = MemorySize('0B') 130 dir_size.value = mem_module_size 131 132 dir_cntrl = Directory_Controller(version = i, 133 cntrl_id = cntrl_count, 134 directory = \ 135 RubyDirectoryMemory( \ --- 35 unchanged lines hidden --- |