MI_example.py (10519:7a3ad4b09ce4) | MI_example.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; --- 103 unchanged lines hidden (view full) --- 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 119 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; --- 103 unchanged lines hidden (view full) --- 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 119 for i in xrange(options.num_dirs): |
120 # 121 # Create the Ruby objects associated with the directory controller 122 # 123 124 mem_cntrl = RubyMemoryControl( 125 clk_domain = ruby_system.memctrl_clk_domain, 126 version = i, 127 ruby_system = ruby_system) 128 | |
129 dir_size = MemorySize('0B') 130 dir_size.value = mem_module_size | 120 dir_size = MemorySize('0B') 121 dir_size.value = mem_module_size |
131 | |
132 dir_cntrl = Directory_Controller(version = i, | 122 dir_cntrl = Directory_Controller(version = i, |
133 directory = \ 134 RubyDirectoryMemory( \ 135 version = i, 136 size = dir_size, 137 use_map = options.use_map, 138 map_levels = \ 139 options.map_levels), 140 memBuffer = mem_cntrl, | 123 directory = RubyDirectoryMemory( 124 version = i, size = dir_size), |
141 transitions_per_cycle = options.ports, 142 ruby_system = ruby_system) 143 144 exec("ruby_system.dir_cntrl%d = dir_cntrl" % i) 145 dir_cntrl_nodes.append(dir_cntrl) 146 147 # Connect the directory controllers and the network 148 dir_cntrl.requestToDir = ruby_system.network.master --- 46 unchanged lines hidden --- | 125 transitions_per_cycle = options.ports, 126 ruby_system = ruby_system) 127 128 exec("ruby_system.dir_cntrl%d = dir_cntrl" % i) 129 dir_cntrl_nodes.append(dir_cntrl) 130 131 # Connect the directory controllers and the network 132 dir_cntrl.requestToDir = ruby_system.network.master --- 46 unchanged lines hidden --- |