MOESI_hammer.py (8929:4148f9af0b70) | MOESI_hammer.py (8931:7a1dfb191e3f) |
---|---|
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; --- 116 unchanged lines hidden (view full) --- 125 # 126 # Add controllers and sequencers to the appropriate lists 127 # 128 cpu_sequencers.append(cpu_seq) 129 l1_cntrl_nodes.append(l1_cntrl) 130 131 cntrl_count += 1 132 | 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; --- 116 unchanged lines hidden (view full) --- 125 # 126 # Add controllers and sequencers to the appropriate lists 127 # 128 cpu_sequencers.append(cpu_seq) 129 l1_cntrl_nodes.append(l1_cntrl) 130 131 cntrl_count += 1 132 |
133 phys_mem_size = long(system.physmem.range.second) - \ 134 long(system.physmem.range.first) + 1 | 133 phys_mem_size = 0 134 for mem in system.memories.unproxy(system): 135 phys_mem_size += long(mem.range.second) - long(mem.range.first) + 1 |
135 mem_module_size = phys_mem_size / options.num_dirs 136 137 # 138 # determine size and index bits for probe filter 139 # By default, the probe filter size is configured to be twice the 140 # size of the L2 cache. 141 # 142 pf_size = MemorySize(options.l2_size) --- 79 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) --- 79 unchanged lines hidden --- |