18 SRAM(
const std::string& name,
20 bool* loaded =
nullptr);
23 bool* loaded =
nullptr);
26 [[nodiscard]]
const byte&
operator[](
size_t addr)
const {
27 assert(addr <
size());
31 void write(
size_t addr,
byte value);
33 [[nodiscard]]
size_t size()
const {
37 return loadedFilename;
40 template<
typename Archive>
41 void serialize(Archive& ar,
unsigned version);
47 void executeRT()
override;
51 std::optional<SRAMSchedulable> schedulable;
53 void load(
bool* loaded);
56 const DeviceConfig config;
58 const char*
const header;
60 std::string loadedFilename;
const std::string & getLoadedFilename() const
SRAM(size_t size, const XMLElement &xml, DontLoadTag)
void write(size_t addr, byte value)
void serialize(Archive &ar, unsigned version)
const byte & operator[](size_t addr) const
void memset(size_t addr, byte c, size_t size)
This file implemented 3 utility functions: