From 8f1131e8b83c7296a7d1edc336f5a81b14bc6b84 Mon Sep 17 00:00:00 2001 From: Lukas Steiner Date: Wed, 3 Jun 2020 14:57:41 +0200 Subject: [PATCH] Fixed json parsing in metrics and wrong mapping. --- DRAMSys/library/resources/simulations/ddr3-example.json | 4 ++-- DRAMSys/traceAnalyzer/scripts/memUtil.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DRAMSys/library/resources/simulations/ddr3-example.json b/DRAMSys/library/resources/simulations/ddr3-example.json index 41565198..7a5d7c16 100644 --- a/DRAMSys/library/resources/simulations/ddr3-example.json +++ b/DRAMSys/library/resources/simulations/ddr3-example.json @@ -1,10 +1,10 @@ { "simulation": { - "addressmapping": "congen_extended_solution.json", + "addressmapping": "am_ddr3_8x1Gbx8_dimm_p1KB_rbc.json", "mcconfig": "fifoStrict.json", "memspec": "MICRON_1Gb_DDR3-1600_8bit_G.json", "simconfig": "ddr3.json", - "simulationid": "ddr3-example-all-json", + "simulationid": "ddr3-example", "thermalconfig": "config.json", "tracesetup": [ { diff --git a/DRAMSys/traceAnalyzer/scripts/memUtil.py b/DRAMSys/traceAnalyzer/scripts/memUtil.py index 26048686..b7136faa 100755 --- a/DRAMSys/traceAnalyzer/scripts/memUtil.py +++ b/DRAMSys/traceAnalyzer/scripts/memUtil.py @@ -71,8 +71,8 @@ def maximum_data_rate(connection): else: if (memoryType.find("WIDEIO") != -1): width = memspec.getValue("width") - clk = memspec.getValue("clkMhz") - rate = memspec.getValue("dataRate") + clk = memspec.getIntValue("memtimingspec", "clkMhz") + rate = memspec.getIntValue("memarchitecturespec", "dataRate") maxDataRate = float(clk)*float(width)*float(rate) return maxDataRate