simple-timing-ruby.py (10519:7a3ad4b09ce4) | simple-timing-ruby.py (10524:fff17530cef6) |
---|---|
1# Copyright (c) 2006-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 --- 51 unchanged lines hidden (view full) --- 60options.l3_size="1kB" 61options.l1d_assoc=2 62options.l1i_assoc=2 63options.l2_assoc=2 64options.l3_assoc=2 65 66# this is a uniprocessor only test 67options.num_cpus = 1 | 1# Copyright (c) 2006-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 --- 51 unchanged lines hidden (view full) --- 60options.l3_size="1kB" 61options.l1d_assoc=2 62options.l1i_assoc=2 63options.l2_assoc=2 64options.l3_assoc=2 65 66# this is a uniprocessor only test 67options.num_cpus = 1 |
68 | |
69cpu = TimingSimpleCPU(cpu_id=0) | 68cpu = TimingSimpleCPU(cpu_id=0) |
70system = System(cpu = cpu, physmem = SimpleMemory(null = True)) | 69system = System(cpu = cpu) 70 |
71# Dummy voltage domain for all our clock domains 72system.voltage_domain = VoltageDomain(voltage = options.sys_voltage) 73system.clk_domain = SrcClockDomain(clock = '1GHz', 74 voltage_domain = system.voltage_domain) 75 76# Create a seperate clock domain for components that should run at 77# CPUs frequency 78system.cpu.clk_domain = SrcClockDomain(clock = '2GHz', --- 29 unchanged lines hidden --- | 71# Dummy voltage domain for all our clock domains 72system.voltage_domain = VoltageDomain(voltage = options.sys_voltage) 73system.clk_domain = SrcClockDomain(clock = '1GHz', 74 voltage_domain = system.voltage_domain) 75 76# Create a seperate clock domain for components that should run at 77# CPUs frequency 78system.cpu.clk_domain = SrcClockDomain(clock = '2GHz', --- 29 unchanged lines hidden --- |