hi all,
i want to make my new sram be recognized by the m5 system, but i am newbie
in python, i know some thing ought to be add in configs/example/se.py, my
sram is of the same level with L1 cache .
then what should be done?
#this is relative part in se.py i think...
system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)], physmem =
PhysicalMemory(range=AddrRange("512MB")),
membus = Bus(), mem_mode = test_mem_mode)
system.physmem.port = system.membus.port
if options.l2cache: system.l2 = L2Cache(size='2MB')
system.tol2bus = Bus()
system.l2.cpu_side = system.tol2bus.port
system.l2.mem_side = system.membus.port
for i in xrange(np): if options.caches:
system.cpu[i].addPrivateSplitL1Caches(L1Cache(size = '32kB'), L1Cache(size =
'64kB')) if options.spm: system.cpu[i].
if options.l2cache: system.cpu[i].connectMemPorts(system.tol2bus) else:
system.cpu[i].connectMemPorts(system.membus) system.cpu[i].workload =
process
if options.fastmem: system.cpu[0].physmem_port = system.physmem.port
--
Regards
Dengning
School Of Computer Science and Technology
Beijng Institute of Technology, China, 100081
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users