simple-timing-mp-ruby.py (13618:47a709f53226) simple-timing-mp-ruby.py (13718:89e8bcc7253b)
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

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

54options.l2_size="512B"
55options.l3_size="1kB"
56options.l1d_assoc=2
57options.l1i_assoc=2
58options.l2_assoc=2
59options.l3_assoc=2
60
61nb_cores = 4
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

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

54options.l2_size="512B"
55options.l3_size="1kB"
56options.l1d_assoc=2
57options.l1i_assoc=2
58options.l2_assoc=2
59options.l3_assoc=2
60
61nb_cores = 4
62cpus = [ TimingSimpleCPU(cpu_id=i) for i in xrange(nb_cores) ]
62cpus = [ TimingSimpleCPU(cpu_id=i) for i in range(nb_cores) ]
63
64# overwrite the num_cpus to equal nb_cores
65options.num_cpus = nb_cores
66
67# system simulated
68system = System(cpu = cpus, clk_domain = SrcClockDomain(clock = '1GHz'))
69
70# Create a seperate clock domain for components that should run at

--- 25 unchanged lines hidden ---
63
64# overwrite the num_cpus to equal nb_cores
65options.num_cpus = nb_cores
66
67# system simulated
68system = System(cpu = cpus, clk_domain = SrcClockDomain(clock = '1GHz'))
69
70# Create a seperate clock domain for components that should run at

--- 25 unchanged lines hidden ---