MOESI_hammer.py (6903:27f47cf65ab7) MOESI_hammer.py (6905:12390db623b4)
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;

--- 82 unchanged lines hidden (view full) ---

91 L1DcacheMemory = l1d_cache,
92 L2cacheMemory = l2_cache)
93 #
94 # Add controllers and sequencers to the appropriate lists
95 #
96 cpu_sequencers.append(cpu_seq)
97 l1_cntrl_nodes.append(l1_cntrl)
98
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;

--- 82 unchanged lines hidden (view full) ---

91 L1DcacheMemory = l1d_cache,
92 L2cacheMemory = l2_cache)
93 #
94 # Add controllers and sequencers to the appropriate lists
95 #
96 cpu_sequencers.append(cpu_seq)
97 l1_cntrl_nodes.append(l1_cntrl)
98
99 phys_mem_size = long(phys_mem.range.second) - long(phys_mem.range.first) + 1
100 mem_module_size = phys_mem_size / options.num_dirs
101
99 for i in xrange(options.num_dirs):
100 #
101 # Create the Ruby objects associated with the directory controller
102 #
103
104 mem_cntrl = RubyMemoryControl(version = i)
105
102 for i in xrange(options.num_dirs):
103 #
104 # Create the Ruby objects associated with the directory controller
105 #
106
107 mem_cntrl = RubyMemoryControl(version = i)
108
109 dir_size = MemorySize('0B')
110 dir_size.value = mem_module_size
111
106 dir_cntrl = Directory_Controller(version = i,
107 directory = \
112 dir_cntrl = Directory_Controller(version = i,
113 directory = \
108 RubyDirectoryMemory(version = i),
114 RubyDirectoryMemory(version = i,
115 size = dir_size),
109 memBuffer = mem_cntrl)
110
111 dir_cntrl_nodes.append(dir_cntrl)
112
113 for i, dma_device in enumerate(dma_devices):
114 #
115 # Create the Ruby objects associated with the dma controller
116 #

--- 13 unchanged lines hidden ---
116 memBuffer = mem_cntrl)
117
118 dir_cntrl_nodes.append(dir_cntrl)
119
120 for i, dma_device in enumerate(dma_devices):
121 #
122 # Create the Ruby objects associated with the dma controller
123 #

--- 13 unchanged lines hidden ---