mem_ranges = [AddrRange(options.mem_size)],
cache_line_size = options.cacheline_size,
mem_mode = mem_mode,
- workload = SEWorkload())
+ workload = SEWorkload.init_compatible(executable))
if fast_forward:
system.future_cpu = future_cpu_list
system.voltage_domain = VoltageDomain(voltage = options.sys_voltage)
(len(processes), args.num_cores))
sys.exit(1)
- system.workload = SEWorkload()
+ system.workload = SEWorkload.init_compatible(processes[0].executable)
# Assign one workload to each CPU
for cpu, workload in zip(system.cpu_cluster.cpus, processes):
options = parser.parse_args()
# create the system we are going to simulate
system = System()
-system.workload = SEWorkload()
# use timing mode for the interaction between master-slave ports
system.mem_mode = 'timing'
# set the clock fequency of the system
process = Process()
# cmd is a list which begins with the executable (like argv)
process.cmd = [binary]
+# set the system workload
+system.workload = SEWorkload.init_compatible(binary)
# set the cpu workload
system.cpu.workload = process
# create thread contexts
fatal("You cannot use SMT with multiple CPUs!")
np = options.num_cpus
+mp0_path = multiprocesses[0].executable
system = System(cpu = [CPUClass(cpu_id=i) for i in range(np)],
mem_mode = test_mem_mode,
mem_ranges = [AddrRange(options.mem_size)],
cache_line_size = options.cacheline_size,
- workload = SEWorkload())
+ workload = SEWorkload.init_compatible(mp0_path))
if numThreads > 1:
system.multi_thread = True
binary = os.path.join(thispath, '../../../',
'tests/test-progs/hello/bin/', isa, 'linux/hello')
-system.workload = SEWorkload()
+system.workload = SEWorkload.init_compatible(binary)
# Create a process for a simple "Hello World" application
process = Process()
system.mem_ctrl.dram.range = system.mem_ranges[0]
system.mem_ctrl.port = system.membus.master
-system.workload = SEWorkload()
+system.workload = SEWorkload.init_compatible(binary)
# Create a process for a simple "Hello World" application
process = Process()
# Connect the system up to the membus
system.system_port = system.membus.slave
-system.workload = SEWorkload()
-
# Create a process for a simple "Hello World" application
process = Process()
# Set the command
system.cpu.workload = process
system.cpu.createThreads()
+system.workload = SEWorkload.init_compatible(binpath)
+
# set up the root SimObject and start the simulation
root = Root(full_system = False, system = system)
# instantiate all of the objects we've created above
# Connect the system up to the membus
system.system_port = system.membus.slave
-system.workload = SEWorkload()
-
# Create a process for a simple "Hello World" application
process = Process()
# Set the command
system.cpu.workload = process
system.cpu.createThreads()
+system.workload = SEWorkload.init_compatible(binpath)
+
# set up the root SimObject and start the simulation
root = Root(full_system = False, system = system)
# instantiate all of the objects we've created above
binary = os.path.join(thispath, '../../../', 'tests/test-progs/threads/bin/',
isa, 'linux/threads')
-system.workload = SEWorkload()
-
# Create a process for a simple "multi-threaded" application
process = Process()
# Set the command
cpu.workload = process
cpu.createThreads()
+system.workload = SEWorkload.init_compatible(binary)
+
# Set up the pseudo file system for the threads function above
config_filesystem(system)
system.toL2bus = L2XBar(clock = busFrequency)
system.l2 = L2(size = options.l2size, assoc = 8)
-system.workload = SEWorkload()
-
# ----------------------
# Connect the L2 cache and memory together
# ----------------------
for cpu in cluster.cpus:
cpu.workload = root.workload
+system.workload = SEWorkload.init_compatible(root.workload.executable)
+
# ----------------------
# Run the simulation
# ----------------------
# Create a system, and add system wide objects
# ----------------------
system = System(cpu = cpus, physmem = SimpleMemory(),
- membus = SystemXBar(clock = busFrequency),
- workload = SEWorkload())
+ membus = SystemXBar(clock = busFrequency))
system.clock = '1GHz'
system.toL2bus = L2XBar(clock = busFrequency)
for cpu in cpus:
cpu.workload = root.workload
+system.workload = SEWorkload.init_compatible(root.workload.executable)
+
# ----------------------
# Run the simulation
# ----------------------
system = System()
-system.workload = SEWorkload()
+system.workload = SEWorkload.init_compatible(args.binary)
system.clk_domain = SrcClockDomain()
system.clk_domain.clock = '1GHz'
root = Root(full_system = False)
root.system = System()
-root.system.workload = SEWorkload()
+root.system.workload = SEWorkload.init_compatible(args.cmd)
root.system.clk_domain = SrcClockDomain()
root.system.clk_domain.clock = '3GHz'