Reformat all files.

This commit is contained in:
Lukas Steiner
2023-09-21 16:50:59 +02:00
parent 7eea9c54e0
commit 8224e97abe
44 changed files with 1992 additions and 1097 deletions

View File

@@ -37,11 +37,10 @@
#define SOCKETCOUPLER_H
#include <systemc>
#include <tlm_utils/simple_target_socket.h>
#include <tlm_utils/multi_passthrough_initiator_socket.h>
#include <tlm_utils/simple_target_socket.h>
template<unsigned T = 1>
class SocketCoupler : public sc_core::sc_module
template <unsigned T = 1> class SocketCoupler : public sc_core::sc_module
{
public:
SocketCoupler(sc_core::sc_module_name name) : sc_core::sc_module(name)
@@ -58,19 +57,23 @@ public:
tlm_utils::multi_passthrough_initiator_socket<SocketCoupler> iSocket;
private:
tlm::tlm_sync_enum nb_transport_fw(int id, tlm::tlm_generic_payload &payload,
tlm::tlm_phase &phase, sc_core::sc_time &delay)
tlm::tlm_sync_enum nb_transport_fw(int id,
tlm::tlm_generic_payload& payload,
tlm::tlm_phase& phase,
sc_core::sc_time& delay)
{
return iSocket[id]->nb_transport_fw(payload, phase, delay);
}
unsigned transport_dbg(int id, tlm::tlm_generic_payload &trans)
unsigned transport_dbg(int id, tlm::tlm_generic_payload& trans)
{
return iSocket[id]->transport_dbg(trans);
}
tlm::tlm_sync_enum nb_transport_bw(int id, tlm::tlm_generic_payload &payload,
tlm::tlm_phase &phase, sc_core::sc_time &delay)
tlm::tlm_sync_enum nb_transport_bw(int id,
tlm::tlm_generic_payload& payload,
tlm::tlm_phase& phase,
sc_core::sc_time& delay)
{
return tSocket[id]->nb_transport_bw(payload, phase, delay);
}

View File

@@ -43,7 +43,6 @@
#include <tlm_utils/multi_passthrough_target_socket.h>
/**
* This is just a dummy module. Platform Architect is not able to parse the
* real module...
@@ -57,9 +56,7 @@ public:
sc_core::sc_event terminateSimulation;
SC_HAS_PROCESS(DRAMSys);
DRAMSys(sc_core::sc_module_name name,
std::string simulationToRun,
std::string pathToResources);
DRAMSys(sc_core::sc_module_name name, std::string simulationToRun, std::string pathToResources);
};
class DRAMSysRecordable : public DRAMSys
@@ -71,4 +68,3 @@ public:
};
#endif // DUMMY_H