ruby_random_test.py (10083:2beea2a439b4) ruby_random_test.py (10120:f5ceb3c3edb6)
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;

--- 98 unchanged lines hidden (view full) ---

107 voltage_domain = system.voltage_domain)
108
109Ruby.create_system(options, system)
110
111# Create a seperate clock domain for Ruby
112system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
113 voltage_domain = system.voltage_domain)
114
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;

--- 98 unchanged lines hidden (view full) ---

107 voltage_domain = system.voltage_domain)
108
109Ruby.create_system(options, system)
110
111# Create a seperate clock domain for Ruby
112system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
113 voltage_domain = system.voltage_domain)
114
115assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
115assert(options.num_cpus == len(system.ruby._cpu_ports))
116
116
117tester.num_cpus = len(system.ruby._cpu_ruby_ports)
117tester.num_cpus = len(system.ruby._cpu_ports)
118
119#
120# The tester is most effective when randomization is turned on and
121# artifical delay is randomly inserted on messages
122#
123system.ruby.randomization = True
124
118
119#
120# The tester is most effective when randomization is turned on and
121# artifical delay is randomly inserted on messages
122#
123system.ruby.randomization = True
124
125for ruby_port in system.ruby._cpu_ruby_ports:
125for ruby_port in system.ruby._cpu_ports:
126 #
127 # Tie the ruby tester ports to the ruby cpu read and write ports
128 #
129 if ruby_port.support_data_reqs:
130 tester.cpuDataPort = ruby_port.slave
131 if ruby_port.support_inst_reqs:
132 tester.cpuInstPort = ruby_port.slave
133

--- 29 unchanged lines hidden ---
126 #
127 # Tie the ruby tester ports to the ruby cpu read and write ports
128 #
129 if ruby_port.support_data_reqs:
130 tester.cpuDataPort = ruby_port.slave
131 if ruby_port.support_inst_reqs:
132 tester.cpuInstPort = ruby_port.slave
133

--- 29 unchanged lines hidden ---