A gs_memory component that can add memory to a virtual platform project.
More...
#include <gs_memory.h>
|
|
| gs_memory (sc_core::sc_module_name name, uint64_t _size=0) |
|
void | before_end_of_elaboration () |
|
| gs_memory (const gs_memory &)=delete |
| uint64_t | size () |
| | this function returns the size of the memory
|
| uint64_t | base () |
| | this function returns the base address of the memory
|
|
|
static size_t | get_page_size () |
|
|
tlm_utils::multi_passthrough_target_socket< gs_memory< BUSWIDTH >, BUSWIDTH > | socket |
|
TargetSignalSocket< bool > | reset |
|
cci::cci_param< bool > | p_rom |
|
cci::cci_param< bool > | p_dmi |
|
cci::cci_param< sc_core::sc_time > | p_latency |
|
cci::cci_param< std::string > | p_mapfile |
|
cci::cci_param< uint64_t > | p_max_block_size |
|
cci::cci_param< uint64_t > | p_min_block_size |
|
cci::cci_param< bool > | p_shmem |
|
cci::cci_param< std::string > | p_shmem_prefix |
|
cci::cci_param< bool > | p_init_mem |
|
cci::cci_param< int > | p_init_mem_val |
|
gs::loader | load |
|
|
virtual bool | get_direct_mem_ptr (int id, tlm::tlm_generic_payload &txn, tlm::tlm_dmi &dmi_data) |
|
virtual void | b_transport (int id, tlm::tlm_generic_payload &txn, sc_core::sc_time &delay) |
|
const char * | get_txn_command_str (const tlm::tlm_generic_payload &trans) |
|
virtual unsigned int | transport_dbg (int id, tlm::tlm_generic_payload &txn) |
|
bool | read (uint8_t *data, uint64_t offset, uint64_t len) |
|
bool | write (const uint8_t *data, uint64_t offset, uint64_t len) |
template<unsigned int BUSWIDTH = DEFAULT_TLM_BUSWIDTH>
class gs::gs_memory< BUSWIDTH >
A gs_memory component that can add memory to a virtual platform project.
This component models a memory. It has a simple target socket so any other component with an initiator socket can connect to this component. It behaves as follows:
- The gs_memory does not manage time in any way
- It is only an LT model, and does not handle AT transactions
- It does not manage exclusive accesses
- You can manage the size of the memory during the initialization of the component
- gs_memory does not allocate individual "pages" but a single large block
- It supports DMI requests with the method get_direct_mem_ptr
- DMI invalidates are not issued.
◆ base()
template<unsigned int BUSWIDTH = DEFAULT_TLM_BUSWIDTH>
this function returns the base address of the memory
- Returns
- the address of the memory of type uint64_t
◆ size()
template<unsigned int BUSWIDTH = DEFAULT_TLM_BUSWIDTH>
this function returns the size of the memory
- Returns
- the size of the memory of type uint64_t
The documentation for this class was generated from the following file: