memtest-ruby.py (9841:69c158420c51) | memtest-ruby.py (10120:f5ceb3c3edb6) |
---|---|
1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2010 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; --- 90 unchanged lines hidden (view full) --- 99system.mem_ranges = AddrRange('256MB') 100 101Ruby.create_system(options, system) 102 103# Create a separate clock domain for Ruby 104system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock, 105 voltage_domain = system.voltage_domain) 106 | 1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2010 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; --- 90 unchanged lines hidden (view full) --- 99system.mem_ranges = AddrRange('256MB') 100 101Ruby.create_system(options, system) 102 103# Create a separate clock domain for Ruby 104system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock, 105 voltage_domain = system.voltage_domain) 106 |
107assert(len(cpus) == len(system.ruby._cpu_ruby_ports)) | 107assert(len(cpus) == len(system.ruby._cpu_ports)) |
108 | 108 |
109for (i, ruby_port) in enumerate(system.ruby._cpu_ruby_ports): | 109for (i, ruby_port) in enumerate(system.ruby._cpu_ports): |
110 # 111 # Tie the cpu test and functional ports to the ruby cpu ports and 112 # physmem, respectively 113 # 114 cpus[i].test = ruby_port.slave 115 cpus[i].functional = system.funcbus.slave 116 117 # --- 17 unchanged lines hidden --- | 110 # 111 # Tie the cpu test and functional ports to the ruby cpu ports and 112 # physmem, respectively 113 # 114 cpus[i].test = ruby_port.slave 115 cpus[i].functional = system.funcbus.slave 116 117 # --- 17 unchanged lines hidden --- |