summaryrefslogtreecommitdiff
path: root/src/cpu/testers/networktest/NetworkTest.py
diff options
context:
space:
mode:
authorTushar Krishna <tushar@csail.mit.edu>2011-05-07 17:43:30 -0400
committerTushar Krishna <tushar@csail.mit.edu>2011-05-07 17:43:30 -0400
commit1267ff59499e1d3a0de9b05b84f58d65db684c1e (patch)
treeb6e4628abc815c428ee6eda44e0bbc5b24781483 /src/cpu/testers/networktest/NetworkTest.py
parent770f2ce3307d336f2f804dd035a58da2503adadb (diff)
downloadgem5-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 'src/cpu/testers/networktest/NetworkTest.py')
-rw-r--r--src/cpu/testers/networktest/NetworkTest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/testers/networktest/NetworkTest.py b/src/cpu/testers/networktest/NetworkTest.py
index d4eef09c5..0a18ca938 100644
--- a/src/cpu/testers/networktest/NetworkTest.py
+++ b/src/cpu/testers/networktest/NetworkTest.py
@@ -34,6 +34,7 @@ class NetworkTest(MemObject):
block_offset = Param.Int(6, "block offset in bits")
num_memories = Param.Int(1, "Num Memories")
memory_size = Param.Int(65536, "memory size")
+ sim_cycles = Param.Int(1000, "Number of simulation cycles")
fixed_pkts = Param.Bool(False, "Send fixed number of packets")
max_packets = Param.Counter(0, "Number of packets to send when in fixed_pkts mode")
traffic_type = Param.Counter(0, "Traffic type: uniform random, tornado, bit complement")