Updating Traffic Generators (#1416)
Added documentation for `strided_generator.py` and `strided_generator_core.py.` Updated clarity of documentation for `linear_generator.py`, `linear_generator_core.py`, `random_generator.py`, and `random_generator_core.py`. Made `max_addr` exclusive instead of inclusive for strided and linear traffic generation in `strided_gen.cc` and `linear_gen.cc`.
This commit is contained in:
@@ -78,7 +78,7 @@ LinearGen::getNextPacket()
|
||||
|
||||
// If we have reached the end of the address space, reset the
|
||||
// address to the start of the range
|
||||
if (nextAddr > endAddr) {
|
||||
if (nextAddr >= endAddr) {
|
||||
DPRINTF(TrafficGen, "Wrapping address to the start of "
|
||||
"the range\n");
|
||||
nextAddr = startAddr;
|
||||
|
||||
@@ -101,7 +101,7 @@ StridedGen::getNextPacket()
|
||||
|
||||
// If we have reached the end of the address space, reset the
|
||||
// address to the start of the range
|
||||
if (nextAddr > endAddr) {
|
||||
if (nextAddr >= endAddr) {
|
||||
DPRINTF(TrafficGen, "Wrapping address to the start of "
|
||||
"the range\n");
|
||||
nextAddr = startAddr + offset;
|
||||
|
||||
Reference in New Issue
Block a user