Bugfix: Initialize vectors in DDR5 checker properly.
This commit is contained in:
@@ -65,18 +65,18 @@ CheckerDDR5::CheckerDDR5()
|
||||
last4ActivatesPhysical = std::vector<std::queue<sc_time>>(memSpec->numberOfPhysicalRanks);
|
||||
|
||||
lastBurstLengthByCommandAndDimmRank = std::vector<std::vector<uint8_t>>
|
||||
(4, std::vector<uint8_t>(memSpec->numberOfDIMMRanks));
|
||||
(Command::WRA + 1, std::vector<uint8_t>(memSpec->numberOfDIMMRanks));
|
||||
lastBurstLengthByCommandAndPhysicalRank = std::vector<std::vector<uint8_t>>
|
||||
(4, std::vector<uint8_t>(memSpec->numberOfPhysicalRanks));
|
||||
(Command::WRA + 1, std::vector<uint8_t>(memSpec->numberOfPhysicalRanks));
|
||||
lastBurstLengthByCommandAndLogicalRank = std::vector<std::vector<uint8_t>>
|
||||
(4, std::vector<uint8_t>(memSpec->numberOfLogicalRanks));
|
||||
(Command::WRA + 1, std::vector<uint8_t>(memSpec->numberOfLogicalRanks));
|
||||
lastBurstLengthByCommandAndBankGroup = std::vector<std::vector<uint8_t>>
|
||||
(4, std::vector<uint8_t>(memSpec->numberOfBankGroups));
|
||||
(Command::WRA + 1, std::vector<uint8_t>(memSpec->numberOfBankGroups));
|
||||
lastBurstLengthByCommandAndBank = std::vector<std::vector<uint8_t>>
|
||||
(4, std::vector<uint8_t>(memSpec->numberOfBanks));
|
||||
lastBurstLengthByCommand = std::vector<uint8_t>(4);
|
||||
(Command::WRA + 1, std::vector<uint8_t>(memSpec->numberOfBanks));
|
||||
lastBurstLengthByCommand = std::vector<uint8_t>(Command::WRA + 1);
|
||||
lastBurstLengthByCommandAndBankInGroup = std::vector<std::vector<uint8_t>>
|
||||
(4, std::vector<uint8_t>(memSpec->numberOfRanks * memSpec->banksPerGroup));
|
||||
(Command::WRA + 1, std::vector<uint8_t>(memSpec->numberOfRanks * memSpec->banksPerGroup));
|
||||
|
||||
cmdLengthDiff = memSpec->cmdMode * memSpec->tCK;
|
||||
|
||||
@@ -840,7 +840,7 @@ void CheckerDDR5::insert(Command command, tlm_generic_payload *payload)
|
||||
if (command.isCasCommand())
|
||||
{
|
||||
lastBurstLengthByCommandAndDimmRank[command][dimmRank.ID()] = burstLength;
|
||||
lastBurstLengthByCommandAndPhysicalRank[command][physicalRank.ID()] = burstLength;
|
||||
lastBurstLengthByCommandAndPhysicalRank[command ][physicalRank.ID()] = burstLength;
|
||||
lastBurstLengthByCommandAndLogicalRank[command][logicalRank.ID()] = burstLength;
|
||||
lastBurstLengthByCommandAndBankGroup[command][bankGroup.ID()] = burstLength;
|
||||
lastBurstLengthByCommandAndBank[command][bank.ID()] = burstLength;
|
||||
|
||||
Reference in New Issue
Block a user