RecoSim  1.0
 All Classes Files Functions Variables Enumerations
Public Member Functions | List of all members
Testbench_in_interface< Ni > Class Template Referenceabstract
Inheritance diagram for Testbench_in_interface< Ni >:
TestbenchIn< Ni >

Public Member Functions

virtual const char * TB_IF_name (void) const =0
 Get testbench full name. More...
 
virtual string TB_IF_get_instance_name (void) const =0
 Get testbench instance name. More...
 
virtual const sc_event & TB_IF_transaction_received_event (void) const =0
 Get the event launched when a transaction has been received. More...
 
virtual const int TB_IF_get_nb_transactions_received_per_socket (int socketID) const =0
 Get the number of transactions processed per socket. More...
 
virtual const int TB_IF_get_nb_transactions_received_per_socket (string channelName) const =0
 Get the number of transactions processed per socket. More...
 
virtual const int TB_IF_get_nb_transactions_received (void) const =0
 Get the number of transactions processed by every socket. More...
 
virtual int * TB_IF_get_data_in_ptr (int socketID) const =0
 Get incoming data pointer. More...
 
virtual int * TB_IF_get_data_in_ptr (string connectionName) const =0
 Get incoming data pointer. More...
 
virtual void TB_IF_notify_simulation_controller (bool success)=0
 Notifies simulation controller about success/failure of the simulation (e.g. data corruption). More...
 
virtual int TB_IF_get_packet_size (int ID) const =0
 Get socket packet size. More...
 
virtual int TB_IF_get_input_socket_id (string name) const =0
 Get input socket id by the name of the connection. More...
 
virtual string TB_IF_get_connection_name (int id) const =0
 Get the name of the connection bound to a particular socket. More...
 
virtual vector< int > TB_IF_get_sockets_with_new_transactions (void)=0
 Get a list of the sockets that received a new transaction since last function call. WARNING: Calling this function will reset the vector stored within the testbench and hence should be stored in a new vector within the algorithm thread. More...
 

Member Function Documentation

template<int Ni>
virtual string Testbench_in_interface< Ni >::TB_IF_get_connection_name ( int  id) const
pure virtual

Get the name of the connection bound to a particular socket.

Parameters
idSocket ID
Returns
Connection name

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual int* Testbench_in_interface< Ni >::TB_IF_get_data_in_ptr ( int  socketID) const
pure virtual

Get incoming data pointer.

Parameters
socketIDSocket ID
Returns
2D pointer to the incoming data structure

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual int* Testbench_in_interface< Ni >::TB_IF_get_data_in_ptr ( string  connectionName) const
pure virtual

Get incoming data pointer.

Parameters
connectionNameName of the connection bound to the socket
Returns
2D pointer to the incoming data structure

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual int Testbench_in_interface< Ni >::TB_IF_get_input_socket_id ( string  name) const
pure virtual

Get input socket id by the name of the connection.

Parameters
nameConnection name
Returns
Socket ID

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual string Testbench_in_interface< Ni >::TB_IF_get_instance_name ( void  ) const
pure virtual

Get testbench instance name.

Returns
string representation of testbench instance name

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual const int Testbench_in_interface< Ni >::TB_IF_get_nb_transactions_received ( void  ) const
pure virtual

Get the number of transactions processed by every socket.

Returns
number of transactions

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual const int Testbench_in_interface< Ni >::TB_IF_get_nb_transactions_received_per_socket ( int  socketID) const
pure virtual

Get the number of transactions processed per socket.

Parameters
socketIDSocket ID
Returns
number of transactions

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual const int Testbench_in_interface< Ni >::TB_IF_get_nb_transactions_received_per_socket ( string  channelName) const
pure virtual

Get the number of transactions processed per socket.

Parameters
channelNameName of the connection linked to the socket
Returns
number of transactions

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual int Testbench_in_interface< Ni >::TB_IF_get_packet_size ( int  ID) const
pure virtual

Get socket packet size.

Parameters
idSocket ID
Returns
Packet size (in 32-bit words)

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual vector<int> Testbench_in_interface< Ni >::TB_IF_get_sockets_with_new_transactions ( void  )
pure virtual

Get a list of the sockets that received a new transaction since last function call. WARNING: Calling this function will reset the vector stored within the testbench and hence should be stored in a new vector within the algorithm thread.

Returns
Vector of sockets IDs

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual const char* Testbench_in_interface< Ni >::TB_IF_name ( void  ) const
pure virtual

Get testbench full name.

Returns
Constant char* representation of testbench full name

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual void Testbench_in_interface< Ni >::TB_IF_notify_simulation_controller ( bool  success)
pure virtual

Notifies simulation controller about success/failure of the simulation (e.g. data corruption).

Parameters
successwhether the simulation is successfull or not

Implemented in TestbenchIn< Ni >.

template<int Ni>
virtual const sc_event& Testbench_in_interface< Ni >::TB_IF_transaction_received_event ( void  ) const
pure virtual

Get the event launched when a transaction has been received.

Returns
constant reference to the event launched

Implemented in TestbenchIn< Ni >.


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