se.py (9790:ccc428657233) | se.py (9793:6e6cefc1db1f) |
---|---|
1# Copyright (c) 2012 ARM Limited | 1# Copyright (c) 2012-2013 ARM Limited |
2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license 9# terms below provided that you ensure that this notice is replicated --- 132 unchanged lines hidden (view full) --- 142elif options.cmd: 143 multiprocesses, numThreads = get_processes(options) 144else: 145 print >> sys.stderr, "No workload specified. Exiting!\n" 146 sys.exit(1) 147 148 149(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options) | 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license 9# terms below provided that you ensure that this notice is replicated --- 132 unchanged lines hidden (view full) --- 142elif options.cmd: 143 multiprocesses, numThreads = get_processes(options) 144else: 145 print >> sys.stderr, "No workload specified. Exiting!\n" 146 sys.exit(1) 147 148 149(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options) |
150CPUClass.clock = options.cpu_clock | |
151CPUClass.numThreads = numThreads 152 153MemClass = Simulation.setMemClass(options) 154 155# Check -- do not allow SMT with multiple CPUs 156if options.smt and options.num_cpus > 1: 157 fatal("You cannot use SMT with multiple CPUs!") 158 159np = options.num_cpus 160system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)], 161 physmem = MemClass(range=AddrRange("512MB")), | 150CPUClass.numThreads = numThreads 151 152MemClass = Simulation.setMemClass(options) 153 154# Check -- do not allow SMT with multiple CPUs 155if options.smt and options.num_cpus > 1: 156 fatal("You cannot use SMT with multiple CPUs!") 157 158np = options.num_cpus 159system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)], 160 physmem = MemClass(range=AddrRange("512MB")), |
162 mem_mode = test_mem_mode) 163system.clock = options.sys_clock | 161 mem_mode = test_mem_mode, 162 clk_domain = SrcClockDomain(clock = options.sys_clock)) |
164 | 163 |
164# Create a separate clock domain for the CPUs 165system.cpu_clk_domain = SrcClockDomain(clock = options.cpu_clock) 166 167# All cpus belong to a common cpu_clk_domain, therefore running at a common 168# frequency. 169for cpu in system.cpu: 170 cpu.clk_domain = system.cpu_clk_domain 171 |
|
165# Sanity check 166if options.fastmem: 167 if CPUClass != AtomicSimpleCPU: 168 fatal("Fastmem can only be used with atomic CPU!") 169 if (options.caches or options.l2cache): 170 fatal("You cannot use fastmem in combination with caches!") 171 172if options.simpoint_profile: --- 63 unchanged lines hidden --- | 172# Sanity check 173if options.fastmem: 174 if CPUClass != AtomicSimpleCPU: 175 fatal("Fastmem can only be used with atomic CPU!") 176 if (options.caches or options.l2cache): 177 fatal("You cannot use fastmem in combination with caches!") 178 179if options.simpoint_profile: --- 63 unchanged lines hidden --- |