traffic_gen.cc (9721:dd486672c9d0) traffic_gen.cc (9722:2ddec848b8e8)
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

272 blocksize > port.deviceBlockSize())
273 fatal("TrafficGen %s block size (%d) is larger than "
274 "port block size (%d)\n", name(),
275 blocksize, port.deviceBlockSize());
276
277 if (read_percent > 100)
278 fatal("%s cannot have more than 100% reads", name());
279
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

272 blocksize > port.deviceBlockSize())
273 fatal("TrafficGen %s block size (%d) is larger than "
274 "port block size (%d)\n", name(),
275 blocksize, port.deviceBlockSize());
276
277 if (read_percent > 100)
278 fatal("%s cannot have more than 100% reads", name());
279
280 if (min_period > max_period)
281 fatal("%s cannot have min_period > max_period", name());
282
280 if (mode == "LINEAR") {
281 states[id] = new LinearGen(name(), masterID,
282 duration, start_addr,
283 end_addr, blocksize,
284 min_period, max_period,
285 read_percent, data_limit);
286 DPRINTF(TrafficGen, "State: %d LinearGen\n", id);
287 } else if (mode == "RANDOM") {

--- 152 unchanged lines hidden ---
283 if (mode == "LINEAR") {
284 states[id] = new LinearGen(name(), masterID,
285 duration, start_addr,
286 end_addr, blocksize,
287 min_period, max_period,
288 read_percent, data_limit);
289 DPRINTF(TrafficGen, "State: %d LinearGen\n", id);
290 } else if (mode == "RANDOM") {

--- 152 unchanged lines hidden ---