From fdcd6dbc2da93da2f860b77346bd805d6e3b28b0 Mon Sep 17 00:00:00 2001 From: marcomoerz Date: Thu, 22 Aug 2024 15:15:18 +0200 Subject: [PATCH 1/2] minor changes --- include/DRAMUtils/memspec/standards/MemSpecLPDDR4.h | 3 +-- tests/tests_memspec/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/DRAMUtils/memspec/standards/MemSpecLPDDR4.h b/include/DRAMUtils/memspec/standards/MemSpecLPDDR4.h index b9ff929..f3de1ea 100644 --- a/include/DRAMUtils/memspec/standards/MemSpecLPDDR4.h +++ b/include/DRAMUtils/memspec/standards/MemSpecLPDDR4.h @@ -85,7 +85,6 @@ struct MemTimingSpecTypeLPDDR4 uint64_t RAS; uint64_t RCD; uint64_t RL; - uint64_t REFM; uint64_t REFI; uint64_t REFIpb; uint64_t RFCpb; @@ -113,7 +112,7 @@ struct MemTimingSpecTypeLPDDR4 uint64_t XSR; uint64_t RTRS; }; -NLOHMANN_JSONIFY_ALL_THINGS(MemTimingSpecTypeLPDDR4, tCK, CKE, ESCKE, CMDCKE, RAS, RCD, RL, REFM, REFI, REFIpb, RFCpb, RFCab, RPpb, RPab, RCpb, RCab, PPD, FAW, RRD, CCD, CCDMW, RPST, DQSCK, RTP, WL, DQSS, DQS2DQ, WR, WPRE, WTR, XP, SR, XSR, RTRS) +NLOHMANN_JSONIFY_ALL_THINGS(MemTimingSpecTypeLPDDR4, tCK, CKE, ESCKE, CMDCKE, RAS, RCD, RL, REFI, REFIpb, RFCpb, RFCab, RPpb, RPab, RCpb, RCab, PPD, FAW, RRD, CCD, CCDMW, RPST, DQSCK, RTP, WL, DQSS, DQS2DQ, WR, WPRE, WTR, XP, SR, XSR, RTRS) enum class pasrModesType { PASR_0, diff --git a/tests/tests_memspec/CMakeLists.txt b/tests/tests_memspec/CMakeLists.txt index 39b32ce..be209a5 100644 --- a/tests/tests_memspec/CMakeLists.txt +++ b/tests/tests_memspec/CMakeLists.txt @@ -2,7 +2,7 @@ ### tests_memspec ### ############################################### -cmake_minimum_required(VERSION 3.1.0) +cmake_minimum_required(VERSION 3.5.0) project(tests_memspec) From 95512eb1f6af0b0ae622e1695498f39fcf2260af Mon Sep 17 00:00:00 2001 From: marcomoerz Date: Tue, 3 Sep 2024 14:55:33 +0200 Subject: [PATCH 2/2] added toggling rate config --- include/DRAMUtils/config/toggling_rate.h | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 include/DRAMUtils/config/toggling_rate.h diff --git a/include/DRAMUtils/config/toggling_rate.h b/include/DRAMUtils/config/toggling_rate.h new file mode 100644 index 0000000..b6af5fa --- /dev/null +++ b/include/DRAMUtils/config/toggling_rate.h @@ -0,0 +1,34 @@ +#ifndef DRAMUTILS_CONFIG_TOGGLING_RATE_H +#define DRAMUTILS_CONFIG_TOGGLING_RATE_H + +#include + +namespace DRAMUtils::Config { + +enum class TogglingRateIdlePattern +{ + L = 0, + H = 1, + Z = 2, + Invalid = -1 +}; +NLOHMANN_JSON_SERIALIZE_ENUM(TogglingRateIdlePattern, + {{TogglingRateIdlePattern::Invalid, nullptr}, + {TogglingRateIdlePattern::L, "L"}, + {TogglingRateIdlePattern::H, "H"}, + {TogglingRateIdlePattern::Z, "Z"}}) + +struct ToggleRateDefinition +{ + double togglingRateRead; + double togglingRateWrite; + double dutyCycleRead; + double dutyCycleWrite; + TogglingRateIdlePattern idlePatternRead; + TogglingRateIdlePattern idlePatternWrite; +}; +NLOHMANN_JSONIFY_ALL_THINGS(ToggleRateDefinition, togglingRateRead, togglingRateWrite, dutyCycleRead, dutyCycleWrite, idlePatternRead, idlePatternWrite) + +} // namespace DRAMUtils::Config + +#endif /* DRAMUTILS_CONFIG_TOGGLING_RATE_H */