NetworkTest: added sim_cycles parameter to the network tester.
authorTushar Krishna <tushar@csail.mit.edu>
Sat, 7 May 2011 21:43:30 +0000 (17:43 -0400)
committerTushar Krishna <tushar@csail.mit.edu>
Sat, 7 May 2011 21:43:30 +0000 (17:43 -0400)
commit1267ff59499e1d3a0de9b05b84f58d65db684c1e
treeb6e4628abc815c428ee6eda44e0bbc5b24781483
parent770f2ce3307d336f2f804dd035a58da2503adadb
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.
configs/example/ruby_network_test.py
src/cpu/testers/networktest/NetworkTest.py
src/cpu/testers/networktest/networktest.cc
src/cpu/testers/networktest/networktest.hh