X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=tests%2Fconfigs%2Fsimple-timing.py;h=bc9d016c5b07e917badd2fe2ea9c47b8182c25e9;hb=06c39a154c4dc8fedcf9fbf77bbcf26f176c469c;hp=0ed985a17dbcbdf8b13189282f7509bb159ad832;hpb=634d2e9d83054d2ddae4333d4e28e9a04cfbfd84;p=gem5.git diff --git a/tests/configs/simple-timing.py b/tests/configs/simple-timing.py index 0ed985a17..bc9d016c5 100644 --- a/tests/configs/simple-timing.py +++ b/tests/configs/simple-timing.py @@ -36,14 +36,18 @@ class MyCache(BaseCache): mshrs = 10 tgts_per_mshr = 5 +class MyL1Cache(MyCache): + is_top_level = True + cpu = TimingSimpleCPU(cpu_id=0) -cpu.addTwoLevelCacheHierarchy(MyCache(size = '128kB'), MyCache(size = '256kB'), +cpu.addTwoLevelCacheHierarchy(MyL1Cache(size = '128kB'), + MyL1Cache(size = '256kB'), MyCache(size = '2MB', latency='10ns')) system = System(cpu = cpu, physmem = PhysicalMemory(), membus = Bus()) system.physmem.port = system.membus.port -cpu.connectMemPorts(system.membus) +cpu.connectAllPorts(system.membus) cpu.clock = '2GHz' root = Root(system = system)