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:
MMysore2
2024-08-08 12:46:10 -07:00
committed by GitHub
parent 85c48a36ec
commit 33e3bc4ff1
8 changed files with 81 additions and 14 deletions

View File

@@ -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;

View File

@@ -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;