Deleted Added
sdiff udiff text old ( 8933:2727a5a0aadc ) new ( 8940:a48540069b8d )
full compact
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;

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

69check_flush = False
70if buildEnv['PROTOCOL'] == 'MOESI_hammer':
71 check_flush = True
72
73#
74# create the tester and system, including ruby
75#
76tester = RubyTester(check_flush = check_flush, checks_to_complete = 100,
77 wakeup_frequency = 10)
78
79system = System(tester = tester, physmem = SimpleMemory())
80
81Ruby.create_system(options, system)
82
83assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
84
85#
86# The tester is most effective when randomization is turned on and
87# artifical delay is randomly inserted on messages
88#
89system.ruby.randomization = True
90
91for ruby_port in system.ruby._cpu_ruby_ports:
92 #
93 # Tie the ruby tester ports to the ruby cpu ports
94 #
95 tester.cpuPort = ruby_port.slave
96
97 #
98 # Tell the sequencer this is the ruby tester so that it
99 # copies the subblock back to the checker
100 #
101 ruby_port.using_ruby_tester = True
102
103 #

--- 14 unchanged lines hidden ---