SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
simics::systemc::GasketTagInterface Class Referenceabstract

This interface provides the means to create gaskets encapsulated in Simics objects. More...

#include <gasket_tag.h>

Inheritance diagram for simics::systemc::GasketTagInterface:
simics::systemc::GasketTag

Public Member Functions

virtual ~GasketTagInterface ()
 
virtual void addGasket (std::string id, std::string type)=0
 Add a new gasket to the simulation.
 
virtual void setGasketTag (std::string id, std::string name, attr_value_t value)=0
 Set tags for the gasket.
 

Detailed Description

This interface provides the means to create gaskets encapsulated in Simics objects.

Two methods are provided. One for adding the gasket and the second one to add tags to the newly added gasket.

Constructor & Destructor Documentation

◆ ~GasketTagInterface()

virtual simics::systemc::GasketTagInterface::~GasketTagInterface ( )
inlinevirtual

Member Function Documentation

◆ addGasket()

virtual void simics::systemc::GasketTagInterface::addGasket ( std::string  id,
std::string  type 
)
pure virtual

Add a new gasket to the simulation.

Id has to be unique and is the same as for setGasketTag. Type is one of the following gaskets:

  • composite-Pci
  • simics2tlm-EthernetCommon
  • simics2tlm-I2cSlaveV2
  • simics2tlm-IoMemory
  • simics2tlm-PciDevice
  • simics2tlm-PciExpress
  • simics2tlm-SerialDevice
  • tlm2simics-EthernetCommon
  • tlm2simics-I2cMasterV2
  • tlm2simics-MemorySpace
  • tlm2simics-PciBus
  • tlm2simics-SerialDevice

Implemented in simics::systemc::GasketTag.

◆ setGasketTag()

virtual void simics::systemc::GasketTagInterface::setGasketTag ( std::string  id,
std::string  name,
attr_value_t  value 
)
pure virtual

Set tags for the gasket.

Id has to be unique and is the same as for addGasket. For simics2tlm gaskets, name has to be "target" and value is the name of the SystemC socket object. For instance:

  • setGasketTag("id_1", "target", SIM_make_attr_string("socket_name")); For tlm2simics gaskets, name has to be "initiator". For the composite-Pci gasket, name has to be "device".

Implemented in simics::systemc::GasketTag.


The documentation for this class was generated from the following file: