1 from m5
.SimObject
import SimObject
2 from m5
.params
import *
4 from m5
import build_env
6 class MemTest(SimObject
):
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_functional
= Param
.Percent(50, "percent of access that are functional")
17 percent_uncacheable
= Param
.Percent(10,
18 "target uncacheable percentage")
19 progress_interval
= Param
.Counter(1000000,
20 "progress report interval (in accesses)")
21 trace_addr
= Param
.Addr(0, "address to trace")
23 test
= Port("Port to the memory system to test")
24 functional
= Port("Port to the functional memory used for verification")