Merge branch 'push-txsoykooloyo' into 'develop'

fix(generator): honor minAddress and maxAddress

See merge request ems/astdm/modeling.dram/dram.sys.5!153
This commit is contained in:
2025-12-02 16:03:15 +01:00

View File

@@ -54,13 +54,13 @@ SequentialState::SequentialState(uint64_t numRequests,
dataLength(dataLength),
randomGenerator(this->seed)
{
if (minAddress > memorySize - 1)
if (this->minAddress > memorySize - 1)
SC_REPORT_FATAL("TrafficGenerator", "minAddress is out of range.");
if (maxAddress > memorySize - 1)
if (this->maxAddress > memorySize - 1)
SC_REPORT_FATAL("TrafficGenerator", "maxAddress is out of range.");
if (maxAddress < minAddress)
if (this->maxAddress < this->minAddress)
SC_REPORT_FATAL("TrafficGenerator", "maxAddress is smaller than minAddress.");
rwRatio = std::clamp(rwRatio, 0.0, 1.0);