Added using namespace std to dependency source file.

This commit is contained in:
Iron Prando da Silva
2022-01-24 10:41:34 +01:00
parent 06d083752e
commit 9ec3e323f6

View File

@@ -35,6 +35,8 @@
#include "DDR3TimeDependencies.h"
using namespace std;
DDR3TimeDependencies::DDR3TimeDependencies(const QJsonObject& memspec, const uint tCK) : DRAMTimeDependenciesIF(memspec, tCK) {
mInitializeValues();
}
@@ -85,7 +87,7 @@ void DDR3TimeDependencies::mInitializeValues() {
}
const std::vector<QString> DDR3TimeDependencies::getPossiblePhases() {
const vector<QString> DDR3TimeDependencies::getPossiblePhases() {
return {"ACT",
"RD",
"RDA",
@@ -107,10 +109,10 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
DependencyMap dmap;
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("ACT"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("ACT"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tRC, "ACT", DependencyType::IntraBank, "tRC"},
{tAL + tRTP + tRP, "RDA", DependencyType::IntraBank, "tAL + tRTP + tRP"},
{tWRPRE + tRP, "WRA", DependencyType::IntraBank, "tWRPRE + tRP"},
@@ -127,10 +129,10 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("RD"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("RD"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tRCD - tAL, "ACT", DependencyType::IntraBank, "tRCD - tAL"},
{tCCD, "RD", DependencyType::IntraRank, "tCCD"},
{tCCD, "RDA", DependencyType::IntraRank, "tCCD"},
@@ -147,10 +149,10 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("RDA"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("RDA"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tRCD - tAL, "ACT", DependencyType::IntraBank, "tRCD - tAL"},
{tWRPRE - tRTP, "WR", DependencyType::IntraBank, "tWRPRE - tRTP"},
{tCCD, "RD", DependencyType::IntraRank, "tCCD"},
@@ -168,10 +170,10 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("WR"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("WR"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tRCD - tAL, "ACT", DependencyType::IntraBank, "tRCD - tAL"},
{tRDWR, "RD", DependencyType::IntraRank, "tRDWR"},
{tRDWR, "RDA", DependencyType::IntraRank, "tRDWR"},
@@ -188,10 +190,10 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("WRA"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("WRA"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tRCD - tAL, "ACT", DependencyType::IntraBank, "tRCD - tAL"},
{tRDWR, "RD", DependencyType::IntraRank, "tRDWR"},
{tRDWR, "RDA", DependencyType::IntraRank, "tRDWR"},
@@ -208,10 +210,10 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("PREPB"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("PREPB"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tRAS, "ACT", DependencyType::IntraBank, "tRAS"},
{tAL + tRTP, "RD", DependencyType::IntraBank, "tAL + tRTP"},
{tWRPRE, "WR", DependencyType::IntraBank, "tWRPRE"},
@@ -221,10 +223,10 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("PREAB"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("PREAB"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tRAS, "ACT", DependencyType::IntraRank, "tRAS"},
{tAL + tRTP, "RD", DependencyType::IntraRank, "tAL + tRTP"},
{tAL + tRTP, "RDA", DependencyType::IntraRank, "tAL + tRTP"},
@@ -236,10 +238,10 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("REFAB"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("REFAB"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tRC, "ACT", DependencyType::IntraRank, "tRC"},
{tAL + tRTP + tRP, "RDA", DependencyType::IntraRank, "tAL + tRTP + tRP"},
{tWRPRE + tRP, "WRA", DependencyType::IntraRank, "tWRPRE + tRP"},
@@ -253,10 +255,10 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("PDEA"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("PDEA"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tACTPDEN, "ACT", DependencyType::IntraRank, "tACTPDEN"},
{tRDPDEN, "RD", DependencyType::IntraRank, "tRDPDEN"},
{tRDPDEN, "RDA", DependencyType::IntraRank, "tRDPDEN"},
@@ -269,20 +271,20 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("PDXA"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("PDXA"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tPD, "PDEA", DependencyType::IntraRank, "tPD"}
}
)
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("PDEP"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("PDEP"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tRDPDEN, "RD", DependencyType::IntraRank, "tRDPDEN"},
{tRDPDEN, "RDA", DependencyType::IntraRank, "tRDPDEN"},
{tWRAPDEN, "WRA", DependencyType::IntraRank, "tWRAPDEN"},
@@ -296,23 +298,23 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("PDXP"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("PDXP"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tPD, "PDEP", DependencyType::IntraRank, "tPD"}
}
)
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("SREFEN"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("SREFEN"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tRC, "ACT", DependencyType::IntraRank, "tRC"},
{std::max({tRDPDEN, tAL + tRTP + tRP}), "RDA", DependencyType::IntraRank, "max(tRDPDEN, tAL + tRTP + tRP)"},
{std::max({tWRAPDEN, tWRPRE + tRP}), "WRA", DependencyType::IntraRank, "max(tWRAPDEN, tWRPRE + tRP)"},
{max({tRDPDEN, tAL + tRTP + tRP}), "RDA", DependencyType::IntraRank, "max(tRDPDEN, tAL + tRTP + tRP)"},
{max({tWRAPDEN, tWRPRE + tRP}), "WRA", DependencyType::IntraRank, "max(tWRAPDEN, tWRPRE + tRP)"},
{tRP, "PREPB", DependencyType::IntraRank, "tRP"},
{tRP, "PREAB", DependencyType::IntraRank, "tRP"},
{tXP, "PDXP", DependencyType::IntraRank, "tXP"},
@@ -323,10 +325,10 @@ DependencyMap DDR3TimeDependencies::mSpecializedGetDependencies() const {
);
dmap.emplace(
std::piecewise_construct,
std::forward_as_tuple("SREFEX"),
std::forward_as_tuple(
std::initializer_list<TimeDependency>{
piecewise_construct,
forward_as_tuple("SREFEX"),
forward_as_tuple(
initializer_list<TimeDependency>{
{tCKESR, "SREFEN", DependencyType::IntraRank, "tCKESR"}
}
)