From 1267ff59499e1d3a0de9b05b84f58d65db684c1e Mon Sep 17 00:00:00 2001 From: Tushar Krishna Date: Sat, 7 May 2011 17:43:30 -0400 Subject: 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. --- src/cpu/testers/networktest/NetworkTest.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cpu/testers/networktest/NetworkTest.py') 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") -- cgit v1.2.3