URL
https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk
Subversion Repositories riscv_vhdl
[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [libdbg64g/] [services/] [mem/] [memsim.h] - Rev 4
Compare with Previous | Blame | View Log
/** * @file * @copyright Copyright 2016 GNSS Sensor Ltd. All right reserved. * @author Sergey Khabarov - sergeykhbr@gmail.com * @brief ROM functional model declaration. */ #ifndef __DEBUGGER_SOCSIM_PLUGIN_ROM_H__ #define __DEBUGGER_SOCSIM_PLUGIN_ROM_H__ #include "iclass.h" #include "iservice.h" #include "coreservices/imemop.h" namespace debugger { class MemorySim : public IService, public IMemoryOperation { public: MemorySim(const char *name); ~MemorySim(); /** IService interface */ virtual void postinitService(); /** IMemoryOperation */ virtual ETransStatus b_transport(Axi4TransactionType *trans); private: static const int SYMB_IN_LINE = 16/2; bool chishex(int s); uint8_t chtohex(int s); private: AttributeType initFile_; AttributeType readOnly_; AttributeType binaryFile_; uint8_t *mem_; }; DECLARE_CLASS(MemorySim) } // namespace debugger #endif // __DEBUGGER_SOCSIM_PLUGIN_ROM_H__