diff options
author | Tushar Krishna <tushar@csail.mit.edu> | 2011-05-07 17:43:30 -0400 |
---|---|---|
committer | Tushar Krishna <tushar@csail.mit.edu> | 2011-05-07 17:43:30 -0400 |
commit | 1267ff59499e1d3a0de9b05b84f58d65db684c1e (patch) | |
tree | b6e4628abc815c428ee6eda44e0bbc5b24781483 /configs/example | |
parent | 770f2ce3307d336f2f804dd035a58da2503adadb (diff) | |
download | gem5-1267ff59499e1d3a0de9b05b84f58d65db684c1e.tar.xz |
NetworkTest: added sim_cycles parameter to the network tester.
The network tester terminates after injecting for sim_cycles
(default=1000), instead of having to explicitly pass --maxticks from the
command line as before. If fixed_pkts is enabled, the tester only
injects maxpackets number of packets, else it keeps injecting till sim_cycles.
The tester also works with zero command line arguments now.
Diffstat (limited to 'configs/example')
-rw-r--r-- | configs/example/ruby_network_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/example/ruby_network_test.py b/configs/example/ruby_network_test.py index 6abf50561..ebc271208 100644 --- a/configs/example/ruby_network_test.py +++ b/configs/example/ruby_network_test.py @@ -61,6 +61,9 @@ parser.add_option("--precision", type="int", default=3, help="Number of digits of precision after decimal point\ for injection rate") +parser.add_option("--sim-cycles", type="int", default=1000, + help="Number of simulation cycles") + parser.add_option("--fixed-pkts", action="store_true", help="Network_test: send only -p number of packets") @@ -88,8 +91,10 @@ if options.num_cpus > block_size: % (options.num_cpus, block_size) sys.exit(1) + cpus = [ NetworkTest(fixed_pkts=options.fixed_pkts, \ max_packets=options.maxpackets, \ + sim_cycles=options.sim_cycles, \ traffic_type=options.synthetic, \ inj_rate=options.injectionrate, \ precision=options.precision, \ |