MOESI_CMP_directory.py (8845:a230379caf65) MOESI_CMP_directory.py (8923:820111f58fbb)
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 l2_select_num_bits = l2_bits,
92 send_evictions = (
93 options.cpu_type == "detailed"),
94 ruby_system = ruby_system)
95
96 cpu_seq = RubySequencer(version = i,
97 icache = l1i_cache,
98 dcache = l1d_cache,
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 l2_select_num_bits = l2_bits,
92 send_evictions = (
93 options.cpu_type == "detailed"),
94 ruby_system = ruby_system)
95
96 cpu_seq = RubySequencer(version = i,
97 icache = l1i_cache,
98 dcache = l1d_cache,
99 physMemPort = system.physmem.port,
100 physmem = system.physmem,
101 ruby_system = ruby_system)
102
103 l1_cntrl.sequencer = cpu_seq
104
105 if piobus != None:
106 cpu_seq.pio_port = piobus.slave
107
108 exec("system.l1_cntrl%d = l1_cntrl" % i)

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

161
162 cntrl_count += 1
163
164 for i, dma_device in enumerate(dma_devices):
165 #
166 # Create the Ruby objects associated with the dma controller
167 #
168 dma_seq = DMASequencer(version = i,
99 ruby_system = ruby_system)
100
101 l1_cntrl.sequencer = cpu_seq
102
103 if piobus != None:
104 cpu_seq.pio_port = piobus.slave
105
106 exec("system.l1_cntrl%d = l1_cntrl" % i)

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

159
160 cntrl_count += 1
161
162 for i, dma_device in enumerate(dma_devices):
163 #
164 # Create the Ruby objects associated with the dma controller
165 #
166 dma_seq = DMASequencer(version = i,
169 physMemPort = system.physmem.port,
170 physmem = system.physmem,
171 ruby_system = ruby_system)
172
173 dma_cntrl = DMA_Controller(version = i,
174 cntrl_id = cntrl_count,
175 dma_sequencer = dma_seq,
176 ruby_system = ruby_system)
177
178 exec("system.dma_cntrl%d = dma_cntrl" % i)

--- 14 unchanged lines hidden ---
167 ruby_system = ruby_system)
168
169 dma_cntrl = DMA_Controller(version = i,
170 cntrl_id = cntrl_count,
171 dma_sequencer = dma_seq,
172 ruby_system = ruby_system)
173
174 exec("system.dma_cntrl%d = dma_cntrl" % i)

--- 14 unchanged lines hidden ---