refactor: remove const from MemSpec.h
It's bad design.
This commit is contained in:
@@ -64,29 +64,29 @@ public:
|
||||
|
||||
static constexpr enum sc_core::sc_time_unit TCK_UNIT = sc_core::SC_SEC;
|
||||
|
||||
const uint64_t numberOfChannels;
|
||||
const uint64_t ranksPerChannel;
|
||||
const uint64_t banksPerRank;
|
||||
const uint64_t groupsPerRank;
|
||||
const uint64_t banksPerGroup;
|
||||
const uint64_t banksPerChannel;
|
||||
const uint64_t bankGroupsPerChannel;
|
||||
const uint64_t devicesPerRank;
|
||||
const uint64_t rowsPerBank;
|
||||
const uint64_t columnsPerRow;
|
||||
const uint64_t defaultBurstLength;
|
||||
const uint64_t maxBurstLength;
|
||||
const uint64_t dataRate;
|
||||
const uint64_t bitWidth;
|
||||
const uint64_t dataBusWidth;
|
||||
const uint64_t defaultBytesPerBurst;
|
||||
const uint64_t maxBytesPerBurst;
|
||||
uint64_t numberOfChannels;
|
||||
uint64_t ranksPerChannel;
|
||||
uint64_t banksPerRank;
|
||||
uint64_t groupsPerRank;
|
||||
uint64_t banksPerGroup;
|
||||
uint64_t banksPerChannel;
|
||||
uint64_t bankGroupsPerChannel;
|
||||
uint64_t devicesPerRank;
|
||||
uint64_t rowsPerBank;
|
||||
uint64_t columnsPerRow;
|
||||
uint64_t defaultBurstLength;
|
||||
uint64_t maxBurstLength;
|
||||
uint64_t dataRate;
|
||||
uint64_t bitWidth;
|
||||
uint64_t dataBusWidth;
|
||||
uint64_t defaultBytesPerBurst;
|
||||
uint64_t maxBytesPerBurst;
|
||||
|
||||
// Clock
|
||||
const sc_core::sc_time tCK;
|
||||
sc_core::sc_time tCK;
|
||||
|
||||
const std::string memoryId;
|
||||
const std::string memoryType;
|
||||
std::string memoryId;
|
||||
std::string memoryType;
|
||||
|
||||
[[nodiscard]] virtual sc_core::sc_time getRefreshIntervalAB() const;
|
||||
[[nodiscard]] virtual sc_core::sc_time getRefreshIntervalPB() const;
|
||||
|
||||
Reference in New Issue
Block a user