MOESI_hammer.py (9154:198352d722e4) | MOESI_hammer.py (9232:3bb99fab80d4) |
---|---|
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; --- 117 unchanged lines hidden (view full) --- 126 # 127 # Add controllers and sequencers to the appropriate lists 128 # 129 cpu_sequencers.append(cpu_seq) 130 l1_cntrl_nodes.append(l1_cntrl) 131 132 cntrl_count += 1 133 | 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; --- 117 unchanged lines hidden (view full) --- 126 # 127 # Add controllers and sequencers to the appropriate lists 128 # 129 cpu_sequencers.append(cpu_seq) 130 l1_cntrl_nodes.append(l1_cntrl) 131 132 cntrl_count += 1 133 |
134 phys_mem_size = 0 135 for mem in system.memories.unproxy(system): 136 phys_mem_size += long(mem.range.second) - long(mem.range.first) + 1 | 134 phys_mem_size = sum(map(lambda mem: mem.range.size(), 135 system.memories.unproxy(system))) |
137 mem_module_size = phys_mem_size / options.num_dirs 138 139 # 140 # determine size and index bits for probe filter 141 # By default, the probe filter size is configured to be twice the 142 # size of the L2 cache. 143 # 144 pf_size = MemorySize(options.l2_size) --- 82 unchanged lines hidden --- | 136 mem_module_size = phys_mem_size / options.num_dirs 137 138 # 139 # determine size and index bits for probe filter 140 # By default, the probe filter size is configured to be twice the 141 # size of the L2 cache. 142 # 143 pf_size = MemorySize(options.l2_size) --- 82 unchanged lines hidden --- |