Add caches in, fix cpu.mem param
--HG-- extra : convert_revision : 486283d83786807c72bb4601e4b9613b55d8802c
This commit is contained in:
parent
2b70b74c9b
commit
4e3164617a
6 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue