memtest.py (7656:dd4d229b716d) memtest.py (8801:1a84c6a81299)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 158 unchanged lines hidden (view full) ---

167 t.functional = system.funcmem.port
168
169make_level(treespec, prototypes, system.physmem, "port")
170
171# -----------------------
172# run simulation
173# -----------------------
174
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 158 unchanged lines hidden (view full) ---

167 t.functional = system.funcmem.port
168
169make_level(treespec, prototypes, system.physmem, "port")
170
171# -----------------------
172# run simulation
173# -----------------------
174
175root = Root( system = system )
175root = Root( full_system = False, system = system )
176if options.atomic:
177 root.system.mem_mode = 'atomic'
178else:
179 root.system.mem_mode = 'timing'
180
181# Not much point in this being higher than the L1 latency
182m5.ticks.setGlobalFrequency('1ns')
183
184# instantiate configuration
185m5.instantiate()
186
187# simulate until program terminates
188exit_event = m5.simulate(options.maxtick)
189
190print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()
176if options.atomic:
177 root.system.mem_mode = 'atomic'
178else:
179 root.system.mem_mode = 'timing'
180
181# Not much point in this being higher than the L1 latency
182m5.ticks.setGlobalFrequency('1ns')
183
184# instantiate configuration
185m5.instantiate()
186
187# simulate until program terminates
188exit_event = m5.simulate(options.maxtick)
189
190print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()