MemTest.py revision 3102
1from m5.SimObject import SimObject 2from m5.params import * 3class MemTest(SimObject): 4 type = 'MemTest' 5 cache = Param.BaseCache("L1 cache") 6 check_mem = Param.FunctionalMemory("check memory") 7 main_mem = Param.FunctionalMemory("hierarchical memory") 8 max_loads = Param.Counter("number of loads to execute") 9 memory_size = Param.Int(65536, "memory size") 10 percent_copies = Param.Percent(0, "target copy percentage") 11 percent_dest_unaligned = Param.Percent(50, 12 "percent of copy dest address that are unaligned") 13 percent_reads = Param.Percent(65, "target read percentage") 14 percent_source_unaligned = Param.Percent(50, 15 "percent of copy source address that are unaligned") 16 percent_uncacheable = Param.Percent(10, 17 "target uncacheable percentage") 18 progress_interval = Param.Counter(1000000, 19 "progress report interval (in accesses)") 20 trace_addr = Param.Addr(0, "address to trace") 21