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

#include <gasket_tag.h>

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

Public Member Functions

 GasketTag (ConfObjectRef adapter)
 
virtual ~GasketTag ()
 
virtual void addGasket (std::string id, std::string type)
 Add a new gasket to the simulation.
 
virtual void setGasketTag (std::string id, std::string name, attr_value_t value)
 Set tags for the gasket.
 
std::vector< ConfObjectRef > createGasketObjects ()
 
- Public Member Functions inherited from simics::systemc::GasketTagInterface
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.
 

Constructor & Destructor Documentation

◆ GasketTag()

simics::systemc::GasketTag::GasketTag ( ConfObjectRef  adapter)
explicit

◆ ~GasketTag()

virtual simics::systemc::GasketTag::~GasketTag ( )
virtual

Member Function Documentation

◆ addGasket()

virtual void simics::systemc::GasketTag::addGasket ( std::string  id,
std::string  type 
)
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

Implements simics::systemc::GasketTagInterface.

◆ createGasketObjects()

std::vector< ConfObjectRef > simics::systemc::GasketTag::createGasketObjects ( )

◆ setGasketTag()

virtual void simics::systemc::GasketTag::setGasketTag ( std::string  id,
std::string  name,
attr_value_t  value 
)
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".

Implements simics::systemc::GasketTagInterface.


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