Issue#12 - removal of template parameters from sockets
It is possible to remove the "BUSWIDTH" and "TYPES" parameters from the sockets. What happens is that the default values are used. The default BUSWIDTH is 32, then by removing it we are using 32 instead of the old value 128. It seems that this change does not affect functionality. The default TYPES is tlm::tlm_base_protocol_types, so by removing we do not change anything.
This commit is contained in:
@@ -102,8 +102,8 @@ public:
|
||||
virtual void send(const ScheduledCommand& command, tlm_generic_payload& payload) override;
|
||||
virtual void send(Trigger trigger, sc_time time, tlm_generic_payload& payload) override;
|
||||
|
||||
tlm_utils::simple_initiator_socket<Controller, BUSWIDTH, tlm::tlm_base_protocol_types> iSocket;
|
||||
tlm_utils::simple_target_socket<Controller, BUSWIDTH, tlm::tlm_base_protocol_types> tSocket;
|
||||
tlm_utils::simple_initiator_socket<Controller> iSocket;
|
||||
tlm_utils::simple_target_socket<Controller> tSocket;
|
||||
unsigned int getTotalNumberOfPayloadsInSystem();
|
||||
|
||||
private:
|
||||
|
||||
@@ -57,8 +57,8 @@ using namespace tlm;
|
||||
template<unsigned int BUSWIDTH = 128>
|
||||
struct Arbiter: public sc_module {
|
||||
public:
|
||||
tlm_utils::multi_passthrough_initiator_socket<Arbiter, BUSWIDTH> iSocket;
|
||||
tlm_utils::multi_passthrough_target_socket<Arbiter, BUSWIDTH> tSocket;
|
||||
tlm_utils::multi_passthrough_initiator_socket<Arbiter> iSocket;
|
||||
tlm_utils::multi_passthrough_target_socket<Arbiter> tSocket;
|
||||
|
||||
SC_CTOR(Arbiter) : payloadEventQueue(this, &Arbiter::peqCallback) {
|
||||
// The arbiter communicates with one or more memory unity through one or more sockets (one or more memory channels).
|
||||
|
||||
@@ -65,7 +65,7 @@ template<unsigned int BUSWIDTH = 128>
|
||||
struct Dram : sc_module
|
||||
{
|
||||
// TLM Related:
|
||||
tlm_utils::simple_target_socket<Dram, BUSWIDTH, tlm::tlm_base_protocol_types> tSocket;
|
||||
tlm_utils::simple_target_socket<Dram> tSocket;
|
||||
|
||||
// Power Model related
|
||||
bool powerAnalysis = Configuration::getInstance().PowerAnalysis;
|
||||
|
||||
@@ -49,8 +49,8 @@ template<unsigned int BUSWIDTH = 128>
|
||||
struct ReorderBuffer: public sc_module
|
||||
{
|
||||
public:
|
||||
tlm_utils::simple_initiator_socket<ReorderBuffer,BUSWIDTH, tlm::tlm_base_protocol_types> iSocket;
|
||||
tlm_utils::simple_target_socket<ReorderBuffer, BUSWIDTH, tlm::tlm_base_protocol_types> tSocket;
|
||||
tlm_utils::simple_initiator_socket<ReorderBuffer> iSocket;
|
||||
tlm_utils::simple_target_socket<ReorderBuffer> tSocket;
|
||||
|
||||
SC_CTOR(ReorderBuffer) :
|
||||
payloadEventQueue(this, &ReorderBuffer::peqCallback), responseIsPendingInInitator(false)
|
||||
|
||||
@@ -59,7 +59,7 @@ template<unsigned int BUSWIDTH = 128>
|
||||
struct TracePlayer: public sc_module
|
||||
{
|
||||
public:
|
||||
tlm_utils::simple_initiator_socket<TracePlayer, BUSWIDTH, tlm::tlm_base_protocol_types> iSocket;
|
||||
tlm_utils::simple_initiator_socket<TracePlayer> iSocket;
|
||||
TracePlayer(TracePlayerListener* listener);
|
||||
virtual void nextPayload() = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user