diff --git a/libpimeval/src/pimParamsDDRDram.h b/libpimeval/src/pimParamsDDRDram.h index e6cc832b..5b597d97 100644 --- a/libpimeval/src/pimParamsDDRDram.h +++ b/libpimeval/src/pimParamsDDRDram.h @@ -23,8 +23,8 @@ class pimParamsDDRDram : public pimParamsDram int getDeviceWidth() const override { return m_deviceWidth;} int getBurstLength() const override { return m_BL;} int getNumChipsPerRank() const override {return m_busWidth / m_deviceWidth; } - double getNsRowRead() const override { return m_tCK * (m_tRCD + m_tRP); } - double getNsRowWrite() const override { return m_tCK * (m_tWR + m_tRP + m_tRCD); } + double getNsRowRead() const override { return m_tCK * (m_tRAS + m_tRP); } + double getNsRowWrite() const override { return m_tCK * (m_tRAS + m_tRP); } double getNsTCCD_S() const override { return m_tCK * m_tCCD_S; } double getNsTCAS() const override { return m_tCK * m_CL; } double getNsAAP() const override { return m_tCK * (m_tRAS + m_tRP); } diff --git a/libpimeval/src/pimParamsLPDDRDram.h b/libpimeval/src/pimParamsLPDDRDram.h index 0aeba4a3..d7612ad7 100644 --- a/libpimeval/src/pimParamsLPDDRDram.h +++ b/libpimeval/src/pimParamsLPDDRDram.h @@ -23,8 +23,8 @@ class pimParamsLPDDRDram : public pimParamsDram int getDeviceWidth() const override { return m_deviceWidth;} int getBurstLength() const override { return m_BL;} int getNumChipsPerRank() const override {return m_busWidth / m_deviceWidth; } - double getNsRowRead() const override { return m_tCK * (m_tRCD + m_tRP); } - double getNsRowWrite() const override { return m_tCK * (m_tWR + m_tRP + m_tRCD); } + double getNsRowRead() const override { return m_tCK * (m_tRAS + m_tRP); } + double getNsRowWrite() const override { return m_tCK * (m_tRAS + m_tRP); } double getNsTCCD_S() const override { return m_tCK * m_tCCD_S; } double getNsTCAS() const override { return m_tCK * m_CL; } double getNsAAP() const override { return m_tCK * (m_tRAS + m_tRP); }