ruby_random_test.py (11688:725fef71f376) | ruby_random_test.py (12564:2778478ca882) |
---|---|
1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2009 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 14 unchanged lines hidden (view full) --- 23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27# 28# Authors: Ron Dreslinski 29# Brad Beckmann 30 | 1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2009 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 14 unchanged lines hidden (view full) --- 23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27# 28# Authors: Ron Dreslinski 29# Brad Beckmann 30 |
31from __future__ import print_function 32 |
|
31import m5 32from m5.objects import * 33from m5.defines import buildEnv 34from m5.util import addToPath 35import os, optparse, sys 36 37addToPath('../') 38 --- 31 unchanged lines hidden (view full) --- 70options.l2_size="512B" 71options.l3_size="1kB" 72options.l1d_assoc=2 73options.l1i_assoc=2 74options.l2_assoc=2 75options.l3_assoc=2 76 77if args: | 33import m5 34from m5.objects import * 35from m5.defines import buildEnv 36from m5.util import addToPath 37import os, optparse, sys 38 39addToPath('../') 40 --- 31 unchanged lines hidden (view full) --- 72options.l2_size="512B" 73options.l3_size="1kB" 74options.l1d_assoc=2 75options.l1i_assoc=2 76options.l2_assoc=2 77options.l3_assoc=2 78 79if args: |
78 print "Error: script doesn't take any positional arguments" | 80 print("Error: script doesn't take any positional arguments") |
79 sys.exit(1) 80 81# 82# Create the ruby random tester 83# 84 85# Check the protocol 86check_flush = False --- 64 unchanged lines hidden (view full) --- 151m5.ticks.setGlobalFrequency('1ns') 152 153# instantiate configuration 154m5.instantiate() 155 156# simulate until program terminates 157exit_event = m5.simulate(options.abs_max_tick) 158 | 81 sys.exit(1) 82 83# 84# Create the ruby random tester 85# 86 87# Check the protocol 88check_flush = False --- 64 unchanged lines hidden (view full) --- 153m5.ticks.setGlobalFrequency('1ns') 154 155# instantiate configuration 156m5.instantiate() 157 158# simulate until program terminates 159exit_event = m5.simulate(options.abs_max_tick) 160 |
159print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause() | 161print('Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()) |