From fc318aa44eac38e586648c864916261eceb5fecf Mon Sep 17 00:00:00 2001 From: Derek Christ Date: Mon, 16 Aug 2021 10:14:31 +0200 Subject: [PATCH] Fix a bug in vcdExport script Fix a bug that caused groupwise phases to not display in the right locations. --- DRAMSys/traceAnalyzer/scripts/vcdExport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DRAMSys/traceAnalyzer/scripts/vcdExport.py b/DRAMSys/traceAnalyzer/scripts/vcdExport.py index 3cdcf1f1..d7484aa8 100755 --- a/DRAMSys/traceAnalyzer/scripts/vcdExport.py +++ b/DRAMSys/traceAnalyzer/scripts/vcdExport.py @@ -195,8 +195,8 @@ def getCommandBusEvents(connection, eventDict, transactionDict): currentBanks.append((rank, _bankgroup, _bank)) elif getGranularity(phase) == Granularity.Groupwise: - for _bank in range(banks): - currentBanks.append((rank, bankgroup, _bank)) + for _bankgroup in range(bankgroups): + currentBanks.append((rank, _bankgroup, bank)) else: currentBanks.append((rank, bankgroup, bank))