Add check to prevent masked writes in HBM3

This commit is contained in:
2023-08-21 10:52:44 +02:00
parent b30df49d67
commit c0f1b2f6a3
2 changed files with 14 additions and 0 deletions

View File

@@ -197,4 +197,16 @@ unsigned MemSpecHBM3::getRAAMMT() const
return RAAMMT;
}
bool MemSpecHBM3::requiresMaskedWrite(const tlm::tlm_generic_payload& payload) const
{
bool maskedWrite = payload.get_byte_enable_ptr() != nullptr;
if (maskedWrite)
{
SC_REPORT_FATAL("MemSpecHBM3", "HBM3 does not support masked writes!");
}
return maskedWrite;
}
} // namespace DRAMSys

View File

@@ -100,6 +100,8 @@ public:
sc_core::sc_time getExecutionTime(Command command, const tlm::tlm_generic_payload &payload) const override;
TimeInterval getIntervalOnDataStrobe(Command command, const tlm::tlm_generic_payload &payload) const override;
bool requiresMaskedWrite(const tlm::tlm_generic_payload& payload) const override;
};
} // namespace DRAMSys