MemTest.py revision 3187
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 memory_size = Param.Int(65536, "memory size") 10 percent_dest_unaligned = Param.Percent(50, 11 "percent of copy dest address that are unaligned") 12 percent_reads = Param.Percent(65, "target read percentage") 13 percent_source_unaligned = Param.Percent(50, 14 "percent of copy source address that are unaligned") 15 percent_uncacheable = Param.Percent(10, 16 "target uncacheable percentage") 17 progress_interval = Param.Counter(1000000, 18 "progress report interval (in accesses)") 19 trace_addr = Param.Addr(0, "address to trace") 20 21 test = Port("Port to the memory system to test") 22 functional = Port("Port to the functional memory used for verification") 23