MemTest.py revision 3262
1from m5.SimObject import SimObject 2from m5.params import * 3from m5.proxy import * 4from m5 import build_env 5 6class MemTest(SimObject): 7 type = 'MemTest' 8 max_loads = Param.Counter("number of loads to execute") 9 atomic = Param.Bool(False, "Execute tester in atomic mode? (or timing)\n") 10 memory_size = Param.Int(65536, "memory size") 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 22 test = Port("Port to the memory system to test") 23 functional = Port("Port to the functional memory used for verification") 24