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

Public Member Functions

 SC_HAS_PROCESS (TestbenchIn)
 
 TestbenchIn (sc_module_name instname, void(*tb_thread)(Testbench_in_interface< Ni > &), ofstream &logfile, sc_trace_file *mtf)
 
void peq_targ_callback (tlm_generic_payload &trans, const tlm_phase &phase)
 
virtual tlm_sync_enum nb_transport_fw (int id, tlm_generic_payload &trans, tlm_phase &phase, sc_time &delay)
 
void send_response (int id, tlm_generic_payload &trans)
 
tlm_sync_enum send_end_req (int socketID, tlm_generic_payload &trans)
 
void decrement_nb_non_priority_channels_requests_in_method (void)
 
void notify_simulation_controller (bool)
 
string getName (void) const
 
void verify_bindings (void)
 
void set_packet_size (string connection_name, int val)
 
void add_preceding_module_connection_name (string name)
 
void add_timing_info (tlm_phase_enum phase, string connection_name, sc_time time)
 
void set_end_req_time (string connection_name, sc_time t)
 
void set_begin_resp_time (string connection_name, sc_time t)
 
void info (void)
 
void init_packet (void)
 
void update_target_packet (int id, tlm_phase phase)
 
void update_target_packet (int id)
 
void set_target_phase_end_req (int id)
 
void set_target_phase_begin_resp (int id)
 
void add_priority_channel (string connection_name)
 
bool is_priority_channel_in (int id)
 
void send_end_req_method (int id)
 
void set_application_name (string n)
 
int get_input_socket_id (string connection_name) const
 
const char * TB_IF_name (void) const
 Get testbench full name. More...
 
string TB_IF_get_instance_name (void) const
 Get testbench instance name. More...
 
const sc_event & TB_IF_transaction_received_event (void) const
 Get the event launched when a transaction has been received. More...
 
const int TB_IF_get_nb_transactions_received_per_socket (int socketID) const
 Get the number of transactions processed per socket. More...
 
const int TB_IF_get_nb_transactions_received_per_socket (string channelName) const
 Get the number of transactions processed per socket. More...
 
const int TB_IF_get_nb_transactions_received (void) const
 Get the number of transactions processed by every socket. More...
 
int * TB_IF_get_data_in_ptr (int) const
 Get incoming data pointer. More...
 
int * TB_IF_get_data_in_ptr (string) const
 Get incoming data pointer. More...
 
void TB_IF_notify_simulation_controller (bool)
 Notifies simulation controller about success/failure of the simulation (e.g. data corruption). More...
 
int TB_IF_get_packet_size (int ID) const
 Get socket packet size. More...
 
int TB_IF_get_packet_size (string name) const
 
int TB_IF_get_input_socket_id (string name) const
 Get input socket id by the name of the connection. More...
 
string TB_IF_get_connection_name (int id) const
 Get the name of the connection bound to a particular socket. More...
 
vector< int > TB_IF_get_sockets_with_new_transactions (void)
 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...
 

Public Attributes

multi_passthrough_target_socket
< TestbenchIn
input_target_socket
 

Member Function Documentation

template<int Ni>
string TestbenchIn< Ni >::getName ( void  ) const

Testbench interface methods

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

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

Parameters
idSocket ID
Returns
Connection name

Implements Testbench_in_interface< Ni >.

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

Get incoming data pointer.

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

Implements Testbench_in_interface< Ni >.

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

Get incoming data pointer.

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

Implements Testbench_in_interface< Ni >.

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

Get input socket id by the name of the connection.

Parameters
nameConnection name
Returns
Socket ID

Implements Testbench_in_interface< Ni >.

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

Get testbench instance name.

Returns
string representation of testbench instance name

Implements Testbench_in_interface< Ni >.

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

Get the number of transactions processed by every socket.

Returns
number of transactions

Implements Testbench_in_interface< Ni >.

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

Get the number of transactions processed per socket.

Parameters
socketIDSocket ID
Returns
number of transactions

Implements Testbench_in_interface< Ni >.

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

Get the number of transactions processed per socket.

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

Implements Testbench_in_interface< Ni >.

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

Get socket packet size.

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

Implements Testbench_in_interface< Ni >.

template<int Ni>
vector< int > TestbenchIn< Ni >::TB_IF_get_sockets_with_new_transactions ( void  )
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

Implements Testbench_in_interface< Ni >.

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

Get testbench full name.

Returns
Constant char* representation of testbench full name

Implements Testbench_in_interface< Ni >.

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

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

Parameters
successwhether the simulation is successfull or not

Implements Testbench_in_interface< Ni >.

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

Get the event launched when a transaction has been received.

Returns
constant reference to the event launched

Implements Testbench_in_interface< Ni >.


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