rubytest-ruby.py (9826:014ff1fbff6d) | rubytest-ruby.py (9827:f47274776aa0) |
---|---|
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; --- 63 unchanged lines hidden (view full) --- 72 check_flush = True 73 74# 75# create the tester and system, including ruby 76# 77tester = RubyTester(check_flush = check_flush, checks_to_complete = 100, 78 wakeup_frequency = 10, num_cpus = options.num_cpus) 79 | 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; --- 63 unchanged lines hidden (view full) --- 72 check_flush = True 73 74# 75# create the tester and system, including ruby 76# 77tester = RubyTester(check_flush = check_flush, checks_to_complete = 100, 78 wakeup_frequency = 10, num_cpus = options.num_cpus) 79 |
80system = System(tester = tester, physmem = SimpleMemory(null = True), 81 clk_domain = SrcClockDomain(clock = options.sys_clock)) | 80system = System(tester = tester, physmem = SimpleMemory(null = True)) 81# Dummy voltage domain for all our clock domains 82system.voltage_domain = VoltageDomain(voltage = options.sys_voltage) 83system.clk_domain = SrcClockDomain(clock = '1GHz', 84 voltage_domain = system.voltage_domain) |
82 83system.mem_ranges = AddrRange('256MB') 84 85Ruby.create_system(options, system) 86 87# Create a separate clock domain for Ruby | 85 86system.mem_ranges = AddrRange('256MB') 87 88Ruby.create_system(options, system) 89 90# Create a separate clock domain for Ruby |
88system.ruby.clk_domain = SrcClockDomain(clock = '1GHz') | 91system.ruby.clk_domain = SrcClockDomain(clock = '1GHz', 92 voltage_domain = system.voltage_domain) |
89 90assert(options.num_cpus == len(system.ruby._cpu_ruby_ports)) 91 92# 93# The tester is most effective when randomization is turned on and 94# artifical delay is randomly inserted on messages 95# 96system.ruby.randomization = True --- 25 unchanged lines hidden --- | 93 94assert(options.num_cpus == len(system.ruby._cpu_ruby_ports)) 95 96# 97# The tester is most effective when randomization is turned on and 98# artifical delay is randomly inserted on messages 99# 100system.ruby.randomization = True --- 25 unchanged lines hidden --- |