config: Fix the cache class naming in regression scripts

This patch unifies the naming of the default L1 and L2 caches in the
regression configs to be in line with what is used in the se and fs
scripts.
This commit is contained in:
Andreas Hansson 2012-10-26 06:42:42 -04:00
parent b387d8e213
commit 651de2d9af
19 changed files with 56 additions and 57 deletions

View file

@ -46,7 +46,7 @@ from m5.objects import *
# starting point, and specific parameters can be overridden in the # starting point, and specific parameters can be overridden in the
# specific instantiations. # specific instantiations.
class L1(BaseCache): class L1Cache(BaseCache):
assoc = 2 assoc = 2
hit_latency = 2 hit_latency = 2
response_latency = 2 response_latency = 2
@ -55,7 +55,7 @@ class L1(BaseCache):
tgts_per_mshr = 20 tgts_per_mshr = 20
is_top_level = True is_top_level = True
class L2(BaseCache): class L2Cache(BaseCache):
assoc = 8 assoc = 8
block_size = 64 block_size = 64
hit_latency = 20 hit_latency = 20
@ -84,4 +84,3 @@ class PageTableWalkerCache(BaseCache):
size = '1kB' size = '1kB'
tgts_per_mshr = 12 tgts_per_mshr = 12
is_top_level = True is_top_level = True

View file

@ -39,7 +39,7 @@ system = System(cpu = cpus, physmem = SimpleDRAM(), membus = CoherentBus())
# l2cache & bus # l2cache & bus
system.toL2Bus = CoherentBus(clock = '2GHz') system.toL2Bus = CoherentBus(clock = '2GHz')
system.l2c = L2(clock = '2GHz', size='4MB', assoc=8) system.l2c = L2Cache(clock = '2GHz', size='4MB', assoc=8)
system.l2c.cpu_side = system.toL2Bus.master system.l2c.cpu_side = system.toL2Bus.master
# connect l2c to membus # connect l2c to membus
@ -47,8 +47,8 @@ system.l2c.mem_side = system.membus.slave
# add L1 caches # add L1 caches
for cpu in cpus: for cpu in cpus:
cpu.addPrivateSplitL1Caches(L1(size = '32kB', assoc = 1), cpu.addPrivateSplitL1Caches(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4)) L1Cache(size = '32kB', assoc = 4))
# create the interrupt controller # create the interrupt controller
cpu.createInterruptController() cpu.createInterruptController()
# connect cpu level-1 caches to shared level-2 cache # connect cpu level-1 caches to shared level-2 cache

View file

@ -50,9 +50,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8), L2Cache(size = '4MB', assoc = 8),
PageTableWalkerCache(), PageTableWalkerCache(),
PageTableWalkerCache()) PageTableWalkerCache())
# create the interrupt controller # create the interrupt controller

View file

@ -50,9 +50,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8), L2Cache(size = '4MB', assoc = 8),
PageTableWalkerCache(), PageTableWalkerCache(),
PageTableWalkerCache()) PageTableWalkerCache())
# create the interrupt controller # create the interrupt controller

View file

@ -50,9 +50,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8), L2Cache(size = '4MB', assoc = 8),
PageTableWalkerCache(), PageTableWalkerCache(),
PageTableWalkerCache()) PageTableWalkerCache())
# create the interrupt controller # create the interrupt controller

View file

@ -56,9 +56,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8)) L2Cache(size = '4MB', assoc = 8))
# create the interrupt controller # create the interrupt controller
cpu.createInterruptController() cpu.createInterruptController()
# connect cpu and caches to the rest of the system # connect cpu and caches to the rest of the system

View file

@ -46,14 +46,14 @@ system.cpu = cpus
system.toL2Bus = CoherentBus(clock = '2GHz') system.toL2Bus = CoherentBus(clock = '2GHz')
#connect up the l2 cache #connect up the l2 cache
system.l2c = L2(clock = '2GHz', size='4MB', assoc=8) system.l2c = L2Cache(clock = '2GHz', size='4MB', assoc=8)
system.l2c.cpu_side = system.toL2Bus.master system.l2c.cpu_side = system.toL2Bus.master
system.l2c.mem_side = system.membus.slave system.l2c.mem_side = system.membus.slave
#connect up the cpu and l1s #connect up the cpu and l1s
for c in cpus: for c in cpus:
c.addPrivateSplitL1Caches(L1(size = '32kB', assoc = 1), c.addPrivateSplitL1Caches(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4)) L1Cache(size = '32kB', assoc = 4))
# create the interrupt controller # create the interrupt controller
c.createInterruptController() c.createInterruptController()
# connect cpu level-1 caches to shared level-2 cache # connect cpu level-1 caches to shared level-2 cache

View file

@ -45,9 +45,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8)) L2Cache(size = '4MB', assoc = 8))
# create the interrupt controller # create the interrupt controller
cpu.createInterruptController() cpu.createInterruptController()
# connect cpu and caches to the rest of the system # connect cpu and caches to the rest of the system

View file

@ -46,14 +46,14 @@ system.cpu = cpus
system.toL2Bus = CoherentBus(clock = '2GHz') system.toL2Bus = CoherentBus(clock = '2GHz')
#connect up the l2 cache #connect up the l2 cache
system.l2c = L2(clock = '2GHz', size='4MB', assoc=8) system.l2c = L2Cache(clock = '2GHz', size='4MB', assoc=8)
system.l2c.cpu_side = system.toL2Bus.master system.l2c.cpu_side = system.toL2Bus.master
system.l2c.mem_side = system.membus.slave system.l2c.mem_side = system.membus.slave
#connect up the cpu and l1s #connect up the cpu and l1s
for c in cpus: for c in cpus:
c.addPrivateSplitL1Caches(L1(size = '32kB', assoc = 1), c.addPrivateSplitL1Caches(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4)) L1Cache(size = '32kB', assoc = 4))
# create the interrupt controller # create the interrupt controller
c.createInterruptController() c.createInterruptController()
# connect cpu level-1 caches to shared level-2 cache # connect cpu level-1 caches to shared level-2 cache

View file

@ -45,9 +45,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8)) L2Cache(size = '4MB', assoc = 8))
# create the interrupt controller # create the interrupt controller
cpu.createInterruptController() cpu.createInterruptController()
# connect cpu and caches to the rest of the system # connect cpu and caches to the rest of the system

View file

@ -46,14 +46,14 @@ system.cpu = cpus
system.toL2Bus = CoherentBus(clock = '2GHz') system.toL2Bus = CoherentBus(clock = '2GHz')
#connect up the l2 cache #connect up the l2 cache
system.l2c = L2(clock = '2GHz', size='4MB', assoc=8) system.l2c = L2Cache(clock = '2GHz', size='4MB', assoc=8)
system.l2c.cpu_side = system.toL2Bus.master system.l2c.cpu_side = system.toL2Bus.master
system.l2c.mem_side = system.membus.slave system.l2c.mem_side = system.membus.slave
#connect up the cpu and l1s #connect up the cpu and l1s
for c in cpus: for c in cpus:
c.addPrivateSplitL1Caches(L1(size = '32kB', assoc = 1), c.addPrivateSplitL1Caches(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4)) L1Cache(size = '32kB', assoc = 4))
# create the interrupt controller # create the interrupt controller
c.createInterruptController() c.createInterruptController()
# connect cpu level-1 caches to shared level-2 cache # connect cpu level-1 caches to shared level-2 cache

View file

@ -45,9 +45,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8)) L2Cache(size = '4MB', assoc = 8))
# create the interrupt controller # create the interrupt controller
cpu.createInterruptController() cpu.createInterruptController()
# connect cpu and caches to the rest of the system # connect cpu and caches to the rest of the system

View file

@ -48,9 +48,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8)) L2Cache(size = '4MB', assoc = 8))
# create the interrupt controller # create the interrupt controller
cpu.createInterruptController() cpu.createInterruptController()
# connect cpu and caches to the rest of the system # connect cpu and caches to the rest of the system

View file

@ -46,14 +46,14 @@ system.iocache.mem_side = system.membus.slave
#connect up the l2 cache #connect up the l2 cache
system.l2c = L2(clock = '2GHz', size='4MB', assoc=8) system.l2c = L2Cache(clock = '2GHz', size='4MB', assoc=8)
system.l2c.cpu_side = system.toL2Bus.master system.l2c.cpu_side = system.toL2Bus.master
system.l2c.mem_side = system.membus.slave system.l2c.mem_side = system.membus.slave
#connect up the cpu and l1s #connect up the cpu and l1s
for c in cpus: for c in cpus:
c.addPrivateSplitL1Caches(L1(size = '32kB', assoc = 1), c.addPrivateSplitL1Caches(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4)) L1Cache(size = '32kB', assoc = 4))
# create the interrupt controller # create the interrupt controller
c.createInterruptController() c.createInterruptController()
# connect cpu level-1 caches to shared level-2 cache # connect cpu level-1 caches to shared level-2 cache

View file

@ -45,9 +45,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8)) L2Cache(size = '4MB', assoc = 8))
# create the interrupt controller # create the interrupt controller
cpu.createInterruptController() cpu.createInterruptController()
# connect cpu and caches to the rest of the system # connect cpu and caches to the rest of the system

View file

@ -45,14 +45,14 @@ system.cpu = cpus
system.toL2Bus = CoherentBus(clock = '2GHz') system.toL2Bus = CoherentBus(clock = '2GHz')
#connect up the l2 cache #connect up the l2 cache
system.l2c = L2(clock = '2GHz', size='4MB', assoc=8) system.l2c = L2Cache(clock = '2GHz', size='4MB', assoc=8)
system.l2c.cpu_side = system.toL2Bus.master system.l2c.cpu_side = system.toL2Bus.master
system.l2c.mem_side = system.membus.slave system.l2c.mem_side = system.membus.slave
#connect up the cpu and l1s #connect up the cpu and l1s
for c in cpus: for c in cpus:
c.addPrivateSplitL1Caches(L1(size = '32kB', assoc = 1), c.addPrivateSplitL1Caches(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4)) L1Cache(size = '32kB', assoc = 4))
# create the interrupt controller # create the interrupt controller
c.createInterruptController() c.createInterruptController()
# connect cpu level-1 caches to shared level-2 cache # connect cpu level-1 caches to shared level-2 cache

View file

@ -45,9 +45,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8)) L2Cache(size = '4MB', assoc = 8))
# create the interrupt controller # create the interrupt controller
cpu.createInterruptController() cpu.createInterruptController()
# connect cpu and caches to the rest of the system # connect cpu and caches to the rest of the system

View file

@ -45,14 +45,14 @@ system.cpu = cpus
system.toL2Bus = CoherentBus(clock = '2GHz') system.toL2Bus = CoherentBus(clock = '2GHz')
#connect up the l2 cache #connect up the l2 cache
system.l2c = L2(clock = '2GHz', size='4MB', assoc=8) system.l2c = L2Cache(clock = '2GHz', size='4MB', assoc=8)
system.l2c.cpu_side = system.toL2Bus.master system.l2c.cpu_side = system.toL2Bus.master
system.l2c.mem_side = system.membus.slave system.l2c.mem_side = system.membus.slave
#connect up the cpu and l1s #connect up the cpu and l1s
for c in cpus: for c in cpus:
c.addPrivateSplitL1Caches(L1(size = '32kB', assoc = 1), c.addPrivateSplitL1Caches(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4)) L1Cache(size = '32kB', assoc = 4))
# create the interrupt controller # create the interrupt controller
c.createInterruptController() c.createInterruptController()
# connect cpu level-1 caches to shared level-2 cache # connect cpu level-1 caches to shared level-2 cache

View file

@ -45,9 +45,9 @@ system.iocache.cpu_side = system.iobus.master
system.iocache.mem_side = system.membus.slave system.iocache.mem_side = system.membus.slave
#connect up the cpu and caches #connect up the cpu and caches
cpu.addTwoLevelCacheHierarchy(L1(size = '32kB', assoc = 1), cpu.addTwoLevelCacheHierarchy(L1Cache(size = '32kB', assoc = 1),
L1(size = '32kB', assoc = 4), L1Cache(size = '32kB', assoc = 4),
L2(size = '4MB', assoc = 8)) L2Cache(size = '4MB', assoc = 8))
# create the interrupt controller # create the interrupt controller
cpu.createInterruptController() cpu.createInterruptController()
# connect cpu and caches to the rest of the system # connect cpu and caches to the rest of the system