MI_example.py (9100:3caf131d7a95) | MI_example.py (9154:198352d722e4) |
---|---|
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; --- 101 unchanged lines hidden (view full) --- 110 phys_mem_size += long(mem.range.second) - long(mem.range.first) + 1 111 mem_module_size = phys_mem_size / options.num_dirs 112 113 for i in xrange(options.num_dirs): 114 # 115 # Create the Ruby objects associated with the directory controller 116 # 117 | 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; --- 101 unchanged lines hidden (view full) --- 110 phys_mem_size += long(mem.range.second) - long(mem.range.first) + 1 111 mem_module_size = phys_mem_size / options.num_dirs 112 113 for i in xrange(options.num_dirs): 114 # 115 # Create the Ruby objects associated with the directory controller 116 # 117 |
118 mem_cntrl = RubyMemoryControl(version = i) | 118 mem_cntrl = RubyMemoryControl(version = i, 119 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 --- | 120 121 dir_size = MemorySize('0B') 122 dir_size.value = mem_module_size 123 124 dir_cntrl = Directory_Controller(version = i, 125 cntrl_id = cntrl_count, 126 directory = \ 127 RubyDirectoryMemory( \ --- 35 unchanged lines hidden --- |