MI_example.py (8845:a230379caf65) MI_example.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;

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

83 cacheMemory = cache,
84 send_evictions = (
85 options.cpu_type == "detailed"),
86 ruby_system = ruby_system)
87
88 cpu_seq = RubySequencer(version = i,
89 icache = cache,
90 dcache = 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;

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

83 cacheMemory = cache,
84 send_evictions = (
85 options.cpu_type == "detailed"),
86 ruby_system = ruby_system)
87
88 cpu_seq = RubySequencer(version = i,
89 icache = cache,
90 dcache = cache,
91 physMemPort = system.physmem.port,
92 physmem = system.physmem,
93 ruby_system = ruby_system)
94
95 l1_cntrl.sequencer = cpu_seq
96
97 if piobus != None:
98 cpu_seq.pio_port = piobus.slave
99
100 exec("system.l1_cntrl%d = l1_cntrl" % i)

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

137
138 cntrl_count += 1
139
140 for i, dma_device in enumerate(dma_devices):
141 #
142 # Create the Ruby objects associated with the dma controller
143 #
144 dma_seq = DMASequencer(version = i,
91 ruby_system = ruby_system)
92
93 l1_cntrl.sequencer = cpu_seq
94
95 if piobus != None:
96 cpu_seq.pio_port = piobus.slave
97
98 exec("system.l1_cntrl%d = l1_cntrl" % i)

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

135
136 cntrl_count += 1
137
138 for i, dma_device in enumerate(dma_devices):
139 #
140 # Create the Ruby objects associated with the dma controller
141 #
142 dma_seq = DMASequencer(version = i,
145 physMemPort = system.physmem.port,
146 physmem = system.physmem,
147 ruby_system = ruby_system)
148
149 dma_cntrl = DMA_Controller(version = i,
150 cntrl_id = cntrl_count,
151 dma_sequencer = dma_seq,
152 ruby_system = ruby_system)
153
154 exec("system.dma_cntrl%d = dma_cntrl" % i)

--- 12 unchanged lines hidden ---
143 ruby_system = ruby_system)
144
145 dma_cntrl = DMA_Controller(version = i,
146 cntrl_id = cntrl_count,
147 dma_sequencer = dma_seq,
148 ruby_system = ruby_system)
149
150 exec("system.dma_cntrl%d = dma_cntrl" % i)

--- 12 unchanged lines hidden ---