ruby_mem_test.py (13408:f586d7fb4623) | ruby_mem_test.py (13731:67cd980cb20f) |
---|---|
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; --- 51 unchanged lines hidden (view full) --- 60parser.add_option("--suppress-func-warnings", action="store_true", 61 help="suppress warnings when functional accesses fail") 62 63# 64# Add the ruby specific and protocol specific options 65# 66Ruby.define_options(parser) 67 | 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; --- 51 unchanged lines hidden (view full) --- 60parser.add_option("--suppress-func-warnings", action="store_true", 61 help="suppress warnings when functional accesses fail") 62 63# 64# Add the ruby specific and protocol specific options 65# 66Ruby.define_options(parser) 67 |
68execfile(os.path.join(config_root, "common", "Options.py")) | 68exec(compile( \ 69 open(os.path.join(config_root, "common", "Options.py")).read(), \ 70 os.path.join(config_root, "common", "Options.py"), 'exec')) |
69 70(options, args) = parser.parse_args() 71 72# 73# Set the default cache size and associativity to be very small to encourage 74# races between requests and writebacks. 75# 76options.l1d_size="256B" --- 19 unchanged lines hidden (view full) --- 96# 97# Currently ruby does not support atomic or uncacheable accesses 98# 99cpus = [ MemTest(max_loads = options.maxloads, 100 percent_functional = options.functional, 101 percent_uncacheable = 0, 102 progress_interval = options.progress, 103 suppress_func_warnings = options.suppress_func_warnings) \ | 71 72(options, args) = parser.parse_args() 73 74# 75# Set the default cache size and associativity to be very small to encourage 76# races between requests and writebacks. 77# 78options.l1d_size="256B" --- 19 unchanged lines hidden (view full) --- 98# 99# Currently ruby does not support atomic or uncacheable accesses 100# 101cpus = [ MemTest(max_loads = options.maxloads, 102 percent_functional = options.functional, 103 percent_uncacheable = 0, 104 progress_interval = options.progress, 105 suppress_func_warnings = options.suppress_func_warnings) \ |
104 for i in xrange(options.num_cpus) ] | 106 for i in range(options.num_cpus) ] |
105 106system = System(cpu = cpus, 107 clk_domain = SrcClockDomain(clock = options.sys_clock), 108 mem_ranges = [AddrRange(options.mem_size)]) 109 110if options.num_dmas > 0: 111 dmas = [ MemTest(max_loads = options.maxloads, 112 percent_functional = 0, 113 percent_uncacheable = 0, 114 progress_interval = options.progress, 115 suppress_func_warnings = 116 not options.suppress_func_warnings) \ | 107 108system = System(cpu = cpus, 109 clk_domain = SrcClockDomain(clock = options.sys_clock), 110 mem_ranges = [AddrRange(options.mem_size)]) 111 112if options.num_dmas > 0: 113 dmas = [ MemTest(max_loads = options.maxloads, 114 percent_functional = 0, 115 percent_uncacheable = 0, 116 progress_interval = options.progress, 117 suppress_func_warnings = 118 not options.suppress_func_warnings) \ |
117 for i in xrange(options.num_dmas) ] | 119 for i in range(options.num_dmas) ] |
118 system.dma_devices = dmas 119else: 120 dmas = [] 121 122dma_ports = [] 123for (i, dma) in enumerate(dmas): 124 dma_ports.append(dma.test) 125Ruby.create_system(options, False, system, dma_ports = dma_ports) --- 46 unchanged lines hidden --- | 120 system.dma_devices = dmas 121else: 122 dmas = [] 123 124dma_ports = [] 125for (i, dma) in enumerate(dmas): 126 dma_ports.append(dma.test) 127Ruby.create_system(options, False, system, dma_ports = dma_ports) --- 46 unchanged lines hidden --- |