Go to the documentation of this file.
28 #ifndef __SYSTEMC_SC_PORT_WRAPPER_HH__
29 #define __SYSTEMC_SC_PORT_WRAPPER_HH__
32 #include <type_traits>
44 template <
typename IF>
46 template <
typename IF>
48 template <
typename IF>
51 template <
typename IF>
72 panic(
"sc_port can't be unbound.");
83 }
else if (
auto* iface =
87 fatal(
"Attempt to bind sc_port %s to incompatible port %s.",
97 template <
typename IF>
114 using namespace gem5;
116 panic(
"sc_interface can't be unbound.");
122 using namespace gem5;
127 "Attempt to bind sc_interface %s to incompatible port %s.",
140 template <
typename IF>
159 using namespace gem5;
161 panic(
"sc_export cannot be unbound.");
167 using namespace gem5;
171 "Attempt to bind sc_export %s to incompatible port %s.",
184 #endif // __SYSTEMC_SC_PORT_WRAPPER_HH__
#define fatal(...)
This implements a cprintf based fatal() function.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
ScInterfaceWrapper(IF &i, const std::string name, gem5::PortID id)
const std::string name() const
Return port name (for DPRINTF).
ScExportWrapper(ScExport &p, const std::string &name, gem5::PortID id)
void bind(gem5::Port &peer) override
virtual void bind(Port &peer)
Attach to a peer port.
void bind(gem5::Port &peer) override
ScPortWrapper(ScPort &p, const std::string &name, gem5::PortID id)
const std::string & name()
sc_core::sc_port_b< IF > ScPort
Ports are used to interface objects to each other.
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
void bind(gem5::Port &peer) override
#define panic(...)
This implements a cprintf based panic() function.
Generated on Sun Jul 30 2023 01:57:02 for gem5 by doxygen 1.8.17