Fix HBM2 assertion in TimingChecker.

This commit is contained in:
2022-08-25 16:49:32 +02:00
parent 5a0da19072
commit 263d28d1be

View File

@@ -135,7 +135,7 @@ sc_time CheckerHBM2::timeToSatisfyConstraints(Command command, const tlm_generic
else if (command == Command::WR || command == Command::WRA)
{
unsigned burstLength = ControllerExtension::getBurstLength(payload);
assert(!(memSpec->ranksPerChannel == 1) || (burstLength == 2)); // Legacy mode
assert(!(memSpec->ranksPerChannel == 1) || (burstLength == 2 || burstLength == 4)); // Legacy mode
assert(!(memSpec->ranksPerChannel == 2) || (burstLength == 4)); // Pseudo-channel mode
lastCommandStart = lastScheduledByCommandAndBank[Command::ACT][bank.ID()];