Ruby.py (7011:8b38d35e8ffc) | Ruby.py (7025:9adf5b0ccc79) |
---|---|
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; --- 64 unchanged lines hidden (view full) --- 73 if options.garnet_network == "fixed": 74 network = GarnetNetwork_d(topology = net_topology) 75 elif options.garnet_network == "flexible": 76 network = GarnetNetwork(topology = net_topology) 77 else: 78 network = SimpleNetwork(topology = net_topology) 79 80 # | 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; --- 64 unchanged lines hidden (view full) --- 73 if options.garnet_network == "fixed": 74 network = GarnetNetwork_d(topology = net_topology) 75 elif options.garnet_network == "flexible": 76 network = GarnetNetwork(topology = net_topology) 77 else: 78 network = SimpleNetwork(topology = net_topology) 79 80 # |
81 # determine the total memory size of the ruby system and verify it is equal 82 # to physmem | 81 # Determine the total memory size of the ruby system and verify it is equal 82 # to physmem. However, if Ruby memory is using sparse memory in SE 83 # mode, then the system should not back-up the memory state with 84 # the Memory Vector and thus the memory size bytes should stay at 0. |
83 # 84 total_mem_size = MemorySize('0B') 85 for dir_cntrl in dir_cntrls: 86 total_mem_size.value += dir_cntrl.directory.size.value 87 physmem_size = long(physmem.range.second) - long(physmem.range.first) + 1 88 assert(total_mem_size.value == physmem_size) 89 90 ruby_profiler = RubyProfiler(num_of_sequencers = len(cpu_sequencers)) --- 13 unchanged lines hidden --- | 85 # 86 total_mem_size = MemorySize('0B') 87 for dir_cntrl in dir_cntrls: 88 total_mem_size.value += dir_cntrl.directory.size.value 89 physmem_size = long(physmem.range.second) - long(physmem.range.first) + 1 90 assert(total_mem_size.value == physmem_size) 91 92 ruby_profiler = RubyProfiler(num_of_sequencers = len(cpu_sequencers)) --- 13 unchanged lines hidden --- |