20 SRAM(
const std::string& name,
22 bool* loaded =
nullptr);
25 bool* loaded =
nullptr);
28 [[nodiscard]]
const byte&
operator[](
size_t addr)
const {
29 assert(addr <
size());
33 void write(
size_t addr,
byte value);
35 [[nodiscard]]
size_t size()
const {
39 return loadedFilename;
42 template<
typename Archive>
43 void serialize(Archive& ar,
unsigned version);
49 void executeRT()
override;
53 std::optional<SRAMSchedulable> schedulable;
55 void load(
bool* loaded);
58 const DeviceConfig config;
60 const char*
const header;
62 std::string loadedFilename;
const std::string & getLoadedFilename() const
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: