ruby_random_test.py (9909:0679c3554ba3) | ruby_random_test.py (10083:2beea2a439b4) |
---|---|
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; --- 34 unchanged lines hidden (view full) --- 43# Get paths we might need. It's expected this file is in m5/configs/example. 44config_path = os.path.dirname(os.path.abspath(__file__)) 45config_root = os.path.dirname(config_path) 46m5_root = os.path.dirname(config_root) 47 48parser = optparse.OptionParser() 49Options.addCommonOptions(parser) 50 | 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; --- 34 unchanged lines hidden (view full) --- 43# Get paths we might need. It's expected this file is in m5/configs/example. 44config_path = os.path.dirname(os.path.abspath(__file__)) 45config_root = os.path.dirname(config_path) 46m5_root = os.path.dirname(config_root) 47 48parser = optparse.OptionParser() 49Options.addCommonOptions(parser) 50 |
51parser.add_option("-l", "--checks", metavar="N", default=100, 52 help="Stop after N checks (loads)") | 51parser.add_option("--maxloads", metavar="N", default=100, 52 help="Stop after N loads") |
53parser.add_option("-f", "--wakeup_freq", metavar="N", default=10, 54 help="Wakeup every N cycles") 55 56# 57# Add the ruby specific and protocol specific options 58# 59Ruby.define_options(parser) 60 --- 23 unchanged lines hidden (view full) --- 84# 85 86# Check the protocol 87check_flush = False 88if buildEnv['PROTOCOL'] == 'MOESI_hammer': 89 check_flush = True 90 91tester = RubyTester(check_flush = check_flush, | 53parser.add_option("-f", "--wakeup_freq", metavar="N", default=10, 54 help="Wakeup every N cycles") 55 56# 57# Add the ruby specific and protocol specific options 58# 59Ruby.define_options(parser) 60 --- 23 unchanged lines hidden (view full) --- 84# 85 86# Check the protocol 87check_flush = False 88if buildEnv['PROTOCOL'] == 'MOESI_hammer': 89 check_flush = True 90 91tester = RubyTester(check_flush = check_flush, |
92 checks_to_complete = options.checks, | 92 checks_to_complete = options.maxloads, |
93 wakeup_frequency = options.wakeup_freq) 94 95# 96# Create the M5 system. Note that the Memory Object isn't 97# actually used by the rubytester, but is included to support the 98# M5 memory size == Ruby memory size checks 99# 100system = System(tester = tester, physmem = SimpleMemory(), --- 62 unchanged lines hidden --- | 93 wakeup_frequency = options.wakeup_freq) 94 95# 96# Create the M5 system. Note that the Memory Object isn't 97# actually used by the rubytester, but is included to support the 98# M5 memory size == Ruby memory size checks 99# 100system = System(tester = tester, physmem = SimpleMemory(), --- 62 unchanged lines hidden --- |