Add caches in, fix cpu.mem param

--HG--
extra : convert_revision : 486283d83786807c72bb4601e4b9613b55d8802c
This commit is contained in:
Steve Reinhardt 2006-08-18 00:16:23 -04:00
parent 2b70b74c9b
commit 4e3164617a
6 changed files with 8 additions and 2 deletions

View file

@ -34,5 +34,6 @@ system = System(cpu = AtomicSimpleCPU(),
membus = Bus())
system.physmem.port = system.membus.port
system.cpu.connectMemPorts(system.membus)
system.cpu.mem = system.physmem
root = Root(system = system)

View file

@ -37,8 +37,9 @@ class MyCache(BaseCache):
tgts_per_mshr = 5
cpu = TimingSimpleCPU()
#cpu.addTwoLevelCacheHierarchy(MyCache(size = '128kB'), MyCache(size = '256kB'),
# MyCache(size = '2MB'))
cpu.addTwoLevelCacheHierarchy(MyCache(size = '128kB'), MyCache(size = '256kB'),
MyCache(size = '2MB'))
cpu.mem = cpu.dcache
system = System(cpu = cpu,
physmem = PhysicalMemory(),

View file

@ -39,5 +39,6 @@ system = FSConfig.makeLinuxAlphaSystem('atomic')
system.cpu = cpus
for c in cpus:
c.connectMemPorts(system.membus)
c.mem = system.physmem
root = Root(clock = '2GHz', system = system)

View file

@ -35,5 +35,6 @@ cpu = AtomicSimpleCPU()
system = FSConfig.makeLinuxAlphaSystem('atomic')
system.cpu = cpu
cpu.connectMemPorts(system.membus)
cpu.mem = system.physmem
root = Root(clock = '2GHz', system = system)

View file

@ -39,5 +39,6 @@ system = FSConfig.makeLinuxAlphaSystem('timing')
system.cpu = cpus
for c in cpus:
c.connectMemPorts(system.membus)
c.mem = system.physmem
root = Root(clock = '2GHz', system = system)

View file

@ -35,5 +35,6 @@ cpu = TimingSimpleCPU()
system = FSConfig.makeLinuxAlphaSystem('timing')
system.cpu = cpu
cpu.connectMemPorts(system.membus)
cpu.mem = system.physmem
root = Root(clock = '2GHz', system = system)