Skip to content

Commit

Permalink
renamed namespace DRAMUtils::Config to DRAMUtils::MemSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomoerz committed Jul 15, 2024
1 parent 3465199 commit e4443d4
Show file tree
Hide file tree
Showing 99 changed files with 126 additions and 126 deletions.
2 changes: 1 addition & 1 deletion src/DRAMPower/DRAMPower/memspec/MemSpec.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace DRAMPower {

struct MemSpecContainer
{
DRAMUtils::Config::MemSpecVariant memspec;
DRAMUtils::MemSpec::MemSpecVariant memspec;
};
NLOHMANN_JSONIFY_ALL_THINGS(MemSpecContainer, memspec)

Expand Down
6 changes: 3 additions & 3 deletions src/DRAMPower/DRAMPower/memspec/MemSpecDDR4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ using namespace DRAMPower;
using json = nlohmann::json;


MemSpecDDR4::MemSpecDDR4(const DRAMUtils::Config::MemSpecDDR4 &memspec)
MemSpecDDR4::MemSpecDDR4(const DRAMUtils::MemSpec::MemSpecDDR4 &memspec)
: MemSpec(memspec)
{

Expand Down Expand Up @@ -120,7 +120,7 @@ MemSpecDDR4::MemSpecDDR4(const DRAMUtils::Config::MemSpecDDR4 &memspec)
parsePrePostamble(memspec);
}

void MemSpecDDR4::parseImpedanceSpec(const DRAMUtils::Config::MemSpecDDR4 &memspec) {
void MemSpecDDR4::parseImpedanceSpec(const DRAMUtils::MemSpec::MemSpecDDR4 &memspec) {
memImpedanceSpec.C_total_cb = memspec.memimpedancespec.C_total_cb;
memImpedanceSpec.C_total_ck = memspec.memimpedancespec.C_total_ck;
memImpedanceSpec.C_total_dqs = memspec.memimpedancespec.C_total_dqs;
Expand All @@ -134,7 +134,7 @@ void MemSpecDDR4::parseImpedanceSpec(const DRAMUtils::Config::MemSpecDDR4 &memsp
memImpedanceSpec.R_eq_wb = memspec.memimpedancespec.R_eq_wb;
}

void MemSpecDDR4::parsePrePostamble(const DRAMUtils::Config::MemSpecDDR4 &memspec)
void MemSpecDDR4::parsePrePostamble(const DRAMUtils::MemSpec::MemSpecDDR4 &memspec)
{
prePostamble.read_zeroes = memspec.prepostamble.read_zeroes;
prePostamble.write_zeroes = memspec.prepostamble.write_zeroes;
Expand Down
8 changes: 4 additions & 4 deletions src/DRAMPower/DRAMPower/memspec/MemSpecDDR4.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
using json = nlohmann::json;
namespace DRAMPower {

class MemSpecDDR4 final : public MemSpec<DRAMUtils::Config::MemSpecDDR4>
class MemSpecDDR4 final : public MemSpec<DRAMUtils::MemSpec::MemSpecDDR4>
{
public:

Expand All @@ -57,7 +57,7 @@ class MemSpecDDR4 final : public MemSpec<DRAMUtils::Config::MemSpecDDR4>
public:
MemSpecDDR4() = delete;

MemSpecDDR4(const DRAMUtils::Config::MemSpecDDR4 &memspec);
MemSpecDDR4(const DRAMUtils::MemSpec::MemSpecDDR4 &memspec);

MemSpecDDR4(json &data) = delete;
MemSpecDDR4(const json &data) = delete;
Expand Down Expand Up @@ -156,8 +156,8 @@ class MemSpecDDR4 final : public MemSpec<DRAMUtils::Config::MemSpecDDR4>
PrePostamble prePostamble;
BankWiseParams bwParams;
private:
void parseImpedanceSpec(const DRAMUtils::Config::MemSpecDDR4 &memspec);
void parsePrePostamble(const DRAMUtils::Config::MemSpecDDR4 &memspec);
void parseImpedanceSpec(const DRAMUtils::MemSpec::MemSpecDDR4 &memspec);
void parsePrePostamble(const DRAMUtils::MemSpec::MemSpecDDR4 &memspec);
};

}
Expand Down
6 changes: 3 additions & 3 deletions src/DRAMPower/DRAMPower/memspec/MemSpecDDR5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using namespace DRAMPower;
using json = nlohmann::json;


MemSpecDDR5::MemSpecDDR5(const DRAMUtils::Config::MemSpecDDR5 &memspec)
MemSpecDDR5::MemSpecDDR5(const DRAMUtils::MemSpec::MemSpecDDR5 &memspec)
: MemSpec(memspec)
{
numberOfBankGroups = memspec.memarchitecturespec.nbrOfBankGroups;
Expand Down Expand Up @@ -99,7 +99,7 @@ uint64_t MemSpecDDR5::timeToCompletion(DRAMPower::CmdType type)
return offset;
}

void MemSpecDDR5::parseImpedanceSpec(const DRAMUtils::Config::MemSpecDDR5 &memspec) {
void MemSpecDDR5::parseImpedanceSpec(const DRAMUtils::MemSpec::MemSpecDDR5 &memspec) {
memImpedanceSpec.C_total_cb = memspec.memimpedancespec.C_total_cb;
memImpedanceSpec.C_total_ck = memspec.memimpedancespec.C_total_ck;
memImpedanceSpec.C_total_dqs = memspec.memimpedancespec.C_total_dqs;
Expand All @@ -113,7 +113,7 @@ void MemSpecDDR5::parseImpedanceSpec(const DRAMUtils::Config::MemSpecDDR5 &memsp
memImpedanceSpec.R_eq_wb = memspec.memimpedancespec.R_eq_wb;
}

void MemSpecDDR5::parseDataRateSpec(const DRAMUtils::Config::MemSpecDDR5 &memspec) {
void MemSpecDDR5::parseDataRateSpec(const DRAMUtils::MemSpec::MemSpecDDR5 &memspec) {
if (!memspec.dataratespec.has_value()) {
dataRateSpec = {2, 2, 2};
return;
Expand Down
8 changes: 4 additions & 4 deletions src/DRAMPower/DRAMPower/memspec/MemSpecDDR5.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace DRAMPower {

class MemSpecDDR5 final : public MemSpec<DRAMUtils::Config::MemSpecDDR5> {
class MemSpecDDR5 final : public MemSpec<DRAMUtils::MemSpec::MemSpecDDR5> {
public:

enum VoltageDomain {
Expand All @@ -18,7 +18,7 @@ namespace DRAMPower {
public:
MemSpecDDR5() = delete;

MemSpecDDR5(const DRAMUtils::Config::MemSpecDDR5 &memspec);
MemSpecDDR5(const DRAMUtils::MemSpec::MemSpecDDR5 &memspec);

MemSpecDDR5(json &data) = delete;
MemSpecDDR5(const json &data) = delete;
Expand Down Expand Up @@ -102,8 +102,8 @@ namespace DRAMPower {
BankWiseParams bwParams;

private:
void parseImpedanceSpec(const DRAMUtils::Config::MemSpecDDR5 &memspec);
void parseDataRateSpec(const DRAMUtils::Config::MemSpecDDR5 &memspec);
void parseImpedanceSpec(const DRAMUtils::MemSpec::MemSpecDDR5 &memspec);
void parseDataRateSpec(const DRAMUtils::MemSpec::MemSpecDDR5 &memspec);
};

}
Expand Down
6 changes: 3 additions & 3 deletions src/DRAMPower/DRAMPower/memspec/MemSpecLPDDR4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using namespace DRAMPower;
using json = nlohmann::json;


MemSpecLPDDR4::MemSpecLPDDR4(const DRAMUtils::Config::MemSpecLPDDR4 &memspec)
MemSpecLPDDR4::MemSpecLPDDR4(const DRAMUtils::MemSpec::MemSpecLPDDR4 &memspec)
: MemSpec(memspec), memImpedanceSpec{}
{
numberOfBankGroups = memspec.memarchitecturespec.nbrOfBankGroups;
Expand Down Expand Up @@ -65,7 +65,7 @@ MemSpecLPDDR4::MemSpecLPDDR4(const DRAMUtils::Config::MemSpecLPDDR4 &memspec)
bwParams.flgPASR = memspec.bankwisespec.value().hasPASR.value_or(false);
if (memspec.bankwisespec.value().pasrMode.has_value())
{
if(memspec.bankwisespec.value().pasrMode.value() == DRAMUtils::Config::pasrModesType::Invalid)
if(memspec.bankwisespec.value().pasrMode.value() == DRAMUtils::MemSpec::pasrModesType::Invalid)
{
// pasrMode invalid
bwParams.pasrMode = 0;
Expand Down Expand Up @@ -217,7 +217,7 @@ uint64_t MemSpecLPDDR4::timeToCompletion(DRAMPower::CmdType type)
return offset;
} // MemSpecLPDDR4::timeToCompletion

void MemSpecLPDDR4::parseImpedanceSpec(const DRAMUtils::Config::MemSpecLPDDR4 &memspec) {
void MemSpecLPDDR4::parseImpedanceSpec(const DRAMUtils::MemSpec::MemSpecLPDDR4 &memspec) {
memImpedanceSpec.C_total_cb = memspec.memimpedancespec.C_total_cb;
memImpedanceSpec.C_total_ck = memspec.memimpedancespec.C_total_ck;
memImpedanceSpec.C_total_dqs = memspec.memimpedancespec.C_total_dqs;
Expand Down
6 changes: 3 additions & 3 deletions src/DRAMPower/DRAMPower/memspec/MemSpecLPDDR4.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace DRAMPower {

class MemSpecLPDDR4 final : public MemSpec<DRAMUtils::Config::MemSpecLPDDR4>
class MemSpecLPDDR4 final : public MemSpec<DRAMUtils::MemSpec::MemSpecLPDDR4>
{
public:

Expand All @@ -19,7 +19,7 @@ class MemSpecLPDDR4 final : public MemSpec<DRAMUtils::Config::MemSpecLPDDR4>
public:
MemSpecLPDDR4() = delete;

MemSpecLPDDR4(const DRAMUtils::Config::MemSpecLPDDR4 &memspec);
MemSpecLPDDR4(const DRAMUtils::MemSpec::MemSpecLPDDR4 &memspec);

MemSpecLPDDR4(json &data) = delete;
MemSpecLPDDR4(const json &data) = delete;
Expand Down Expand Up @@ -116,7 +116,7 @@ class MemSpecLPDDR4 final : public MemSpec<DRAMUtils::Config::MemSpecLPDDR4>
BankWiseParams bwParams;

private:
void parseImpedanceSpec(const DRAMUtils::Config::MemSpecLPDDR4 &memspec);
void parseImpedanceSpec(const DRAMUtils::MemSpec::MemSpecLPDDR4 &memspec);
};

}
Expand Down
4 changes: 2 additions & 2 deletions src/DRAMPower/DRAMPower/memspec/MemSpecLPDDR5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using namespace DRAMPower;
using json = nlohmann::json;

MemSpecLPDDR5::MemSpecLPDDR5(const DRAMUtils::Config::MemSpecLPDDR5 &memspec)
MemSpecLPDDR5::MemSpecLPDDR5(const DRAMUtils::MemSpec::MemSpecLPDDR5 &memspec)
: MemSpec(memspec)
{
numberOfBankGroups = memspec.memarchitecturespec.nbrOfBankGroups;
Expand Down Expand Up @@ -147,7 +147,7 @@ uint64_t MemSpecLPDDR5::timeToCompletion(DRAMPower::CmdType type)
return offset;
}

void MemSpecLPDDR5::parseImpedanceSpec(const DRAMUtils::Config::MemSpecLPDDR5 &memspec) {
void MemSpecLPDDR5::parseImpedanceSpec(const DRAMUtils::MemSpec::MemSpecLPDDR5 &memspec) {

memImpedanceSpec.C_total_cb = memspec.memimpedancespec.C_total_cb;
memImpedanceSpec.C_total_ck = memspec.memimpedancespec.C_total_ck;
Expand Down
6 changes: 3 additions & 3 deletions src/DRAMPower/DRAMPower/memspec/MemSpecLPDDR5.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace DRAMPower {

class MemSpecLPDDR5 final : public MemSpec<DRAMUtils::Config::MemSpecLPDDR5> {
class MemSpecLPDDR5 final : public MemSpec<DRAMUtils::MemSpec::MemSpecLPDDR5> {
public:
enum VoltageDomain {
VDD1 = 0,
Expand All @@ -23,7 +23,7 @@ namespace DRAMPower {
public:
MemSpecLPDDR5() = delete;

MemSpecLPDDR5(const DRAMUtils::Config::MemSpecLPDDR5 &memspec);
MemSpecLPDDR5(const DRAMUtils::MemSpec::MemSpecLPDDR5 &memspec);

MemSpecLPDDR5(json &data) = delete;
MemSpecLPDDR5(const json &data) = delete;
Expand Down Expand Up @@ -107,7 +107,7 @@ namespace DRAMPower {
BankWiseParams bwParams;

private:
void parseImpedanceSpec(const DRAMUtils::Config::MemSpecLPDDR5 &memspec);
void parseImpedanceSpec(const DRAMUtils::MemSpec::MemSpecLPDDR5 &memspec);
};

} // namespace DRAMPower
Expand Down
16 changes: 8 additions & 8 deletions src/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,24 @@ std::unique_ptr<dram_base<CmdType>> getMemory(const json &data)
std::unique_ptr<dram_base<CmdType>> result = nullptr;
std::visit( [&result] (auto&& arg) {
using T = std::decay_t<decltype(arg)>;
if constexpr (std::is_same_v<T, DRAMUtils::Config::MemSpecDDR4>)
if constexpr (std::is_same_v<T, DRAMUtils::MemSpec::MemSpecDDR4>)
{
MemSpecDDR4 ddr (static_cast<DRAMUtils::Config::MemSpecDDR4>(arg));
MemSpecDDR4 ddr (static_cast<DRAMUtils::MemSpec::MemSpecDDR4>(arg));
result = std::make_unique<DDR4>(ddr);
}
else if constexpr (std::is_same_v<T, DRAMUtils::Config::MemSpecDDR5>)
else if constexpr (std::is_same_v<T, DRAMUtils::MemSpec::MemSpecDDR5>)
{
MemSpecDDR5 ddr (static_cast<DRAMUtils::Config::MemSpecDDR5>(arg));
MemSpecDDR5 ddr (static_cast<DRAMUtils::MemSpec::MemSpecDDR5>(arg));
result = std::make_unique<DDR5>(ddr);
}
else if constexpr (std::is_same_v<T, DRAMUtils::Config::MemSpecLPDDR4>)
else if constexpr (std::is_same_v<T, DRAMUtils::MemSpec::MemSpecLPDDR4>)
{
MemSpecLPDDR4 ddr (static_cast<DRAMUtils::Config::MemSpecLPDDR4>(arg));
MemSpecLPDDR4 ddr (static_cast<DRAMUtils::MemSpec::MemSpecLPDDR4>(arg));
result = std::make_unique<LPDDR4>(ddr);
}
else if constexpr (std::is_same_v<T, DRAMUtils::Config::MemSpecLPDDR5>)
else if constexpr (std::is_same_v<T, DRAMUtils::MemSpec::MemSpecLPDDR5>)
{
MemSpecLPDDR5 ddr (static_cast<DRAMUtils::Config::MemSpecLPDDR5>(arg));
MemSpecLPDDR5 ddr (static_cast<DRAMUtils::MemSpec::MemSpecLPDDR5>(arg));
result = std::make_unique<LPDDR5>(ddr);
}
}, memspec.memspec.getVariant());
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/base/test_pattern_pre_cycles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DramPowerTest_Pre_Cycles : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
memSpec.numberOfRanks = 1;
memSpec.numberOfBanks = 2;
memSpec.numberOfBankGroups = 2;
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_multidevice_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class DramPowerTest_DDR4_MultiDevice : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
memSpec.numberOfDevices = 5;

numberOfDevices = memSpec.numberOfDevices;
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_multirank_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DDR4_MultirankTests : public ::testing::Test {
}
json data = json::parse(f);
DRAMPower::MemSpecContainer memspeccontainer = data;
spec = std::make_unique<MemSpecDDR4>(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
spec = std::make_unique<MemSpecDDR4>(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
spec->numberOfRanks = 2;
ddr = std::make_unique<DDR4>(*spec);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DramPowerTest_DDR4_0 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));

ddr = std::make_unique<DDR4>(memSpec);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DramPowerTest_DDR4_1 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));

ddr = std::make_unique<DDR4>(memSpec);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class DramPowerTest_DDR4_10 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
memSpec.numberOfRanks = 1;
memSpec.numberOfDevices = 1;
memSpec.numberOfBanks = 8;
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class DramPowerTest_DDR4_11 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
memSpec.numberOfRanks = 1;
memSpec.numberOfDevices = 1;
memSpec.numberOfBanks = 8;
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class DramPowerTest_DDR4_12 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));

memSpec.bitWidth = 16;

Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_13.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DramPowerTest_DDR4_13 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
memSpec.numberOfRanks = 1;
memSpec.numberOfDevices = 1;
memSpec.numberOfBanks = 8;
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_14.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DramPowerTest_DDR4_14 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
memSpec.numberOfRanks = 1;
memSpec.numberOfDevices = 1;
memSpec.numberOfBanks = 8;
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_15.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class DramPowerTest_DDR4_15 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));

memSpec.bitWidth = 16;

Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class DramPowerTest_DDR4_2 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));

ddr = std::make_unique<DDR4>(memSpec);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class DramPowerTest_DDR4_3 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));

ddr = std::make_unique<DDR4>(memSpec);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DramPowerTest_DDR4_4 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));

ddr = std::make_unique<DDR4>(memSpec);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DramPowerTest_DDR4_5 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));

ddr = std::make_unique<DDR4>(memSpec);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_drampower/core/DDR4/ddr4_test_pattern_6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DramPowerTest_DDR4_6 : public ::testing::Test {
}
json data = json::parse(f);
MemSpecContainer memspeccontainer = data;
MemSpecDDR4 memSpec(std::get<DRAMUtils::Config::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));
MemSpecDDR4 memSpec(std::get<DRAMUtils::MemSpec::MemSpecDDR4>(memspeccontainer.memspec.getVariant()));

ddr = std::make_unique<DDR4>(memSpec);
}
Expand Down
Loading

0 comments on commit e4443d4

Please sign in to comment.