run.py (12564:2778478ca882) run.py (13731:67cd980cb20f)
1# Copyright (c) 2005-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

177# Define the cpus
178# ----------------------
179
180busFrequency = Frequency(options.frequency)
181
182if options.timing:
183 cpus = [TimingSimpleCPU(cpu_id = i,
184 clock=options.frequency)
1# Copyright (c) 2005-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

177# Define the cpus
178# ----------------------
179
180busFrequency = Frequency(options.frequency)
181
182if options.timing:
183 cpus = [TimingSimpleCPU(cpu_id = i,
184 clock=options.frequency)
185 for i in xrange(options.numcpus)]
185 for i in range(options.numcpus)]
186elif options.detailed:
187 cpus = [DerivO3CPU(cpu_id = i,
188 clock=options.frequency)
186elif options.detailed:
187 cpus = [DerivO3CPU(cpu_id = i,
188 clock=options.frequency)
189 for i in xrange(options.numcpus)]
189 for i in range(options.numcpus)]
190else:
191 cpus = [AtomicSimpleCPU(cpu_id = i,
192 clock=options.frequency)
190else:
191 cpus = [AtomicSimpleCPU(cpu_id = i,
192 clock=options.frequency)
193 for i in xrange(options.numcpus)]
193 for i in range(options.numcpus)]
194
195# ----------------------
196# Create a system, and add system wide objects
197# ----------------------
198system = System(cpu = cpus, physmem = SimpleMemory(),
199 membus = SystemXBar(clock = busFrequency))
200system.clock = '1GHz'
201

--- 87 unchanged lines hidden ---
194
195# ----------------------
196# Create a system, and add system wide objects
197# ----------------------
198system = System(cpu = cpus, physmem = SimpleMemory(),
199 membus = SystemXBar(clock = busFrequency))
200system.clock = '1GHz'
201

--- 87 unchanged lines hidden ---