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

Public Member Functions

 SC_HAS_PROCESS (TestbenchOut)
 
 TestbenchOut (sc_module_name instname, void(*tb_thread)(Testbench_out_interface< No > &), ofstream &logfile, sc_trace_file *mtf)
 
void dynamic_transfer_process_method (int channel_id)
 
void initiator_process (int id)
 
void peq_callback (tlm_generic_payload &trans, const tlm_phase &phase)
 
virtual tlm_sync_enum nb_transport_bw (int id, tlm_generic_payload &trans, tlm_phase &phase, sc_time &delay)
 
void b_transport_manager (tlm_generic_payload &trans, sc_time &delay)
 
void notify_simulation_controller (bool)
 
void verify_bindings (void)
 
void set_packet_size (string connection_name, int val)
 
void set_following_modules_list (vector< int > &v)
 
void set_application_offset (int offset)
 
void add_following_module_connection_name (string name)
 
void add_timing_info (tlm_phase_enum phase, string connection_name, sc_time time)
 
void set_begin_req_time (string connection_name, sc_time t)
 
void set_end_resp_time (string connection_name, sc_time t)
 
void info (void)
 
void add_priority_channel (string connection_name)
 
bool is_priority_channel_out (int id)
 
void init_packet (void)
 
void update_initiator_packet (int id, tlm_generic_payload *trans, tlm_phase phase)
 
void update_initiator_packet (int id, tlm_generic_payload *trans)
 
void set_initiator_phase_begin_req (int id)
 
void set_initiator_phase_end_resp (int id)
 
void set_application_name (string s)
 
void set_period (sc_time p)
 
int get_output_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...
 
int * TB_IF_get_data_out_ptr (int) const
 Get pointer to ougoing data structure. More...
 
int * TB_IF_get_data_out_ptr (string) const
 Get pointer to ougoing data structure. More...
 
void TB_IF_nb_send_data (int socketID)
 Non-blocking data send through a given socket. More...
 
void TB_IF_nb_send_data (string connectionName)
 Non-blocking data send through a given socket. More...
 
void TB_IF_nb_send_all_data (void)
 Non-blocking data send through every socket.
 
const sc_event & TB_IF_all_responses_received_event (void) const
 Watch the event issued once all TLM responses have been sent from following modules to testbench. More...
 
void TB_IF_increment_current_transaction_id (void)
 Increments working transaction counter.
 
string TB_IF_getApplicationName (void)
 Get application name (application in which this testbench has been instantiated). More...
 
sc_time TB_IF_get_period (void) const
 Get testbench period. More...
 
void TB_IF_add_execution_mode_command_to_queue (string module_name, string command, sc_time delay)
 Add an algorithm control command to the waiting queue. After the delay passed as parameter, testbench will notify module 'module_name' that its algorithm should go to mode 'command'. More...
 
int TB_IF_get_packet_size (int ID) const
 Get socket packet size. More...
 
int TB_IF_get_packet_size (string connectionName) const
 Get socket packet size. More...
 
int TB_IF_get_output_socket_id (string name) const
 Get input socket id by the name of the connection. More...
 
void launch_algorithm_command (void)
 
void send_algorithm_command_to_manager (AlgorithmModeCommand *)
 
void manager_b_transport (int module_id)
 

Public Attributes

multi_passthrough_initiator_socket
< TestbenchOut
output_initiator_socket
 
simple_initiator_socket
< TestbenchOut
manager_initiator_socket
 
simple_target_socket
< TestbenchOut
manager_target_socket
 

Member Function Documentation

template<int No>
void TestbenchOut< No >::TB_IF_add_execution_mode_command_to_queue ( string  module_name,
string  command,
sc_time  delay 
)
virtual

Add an algorithm control command to the waiting queue. After the delay passed as parameter, testbench will notify module 'module_name' that its algorithm should go to mode 'command'.

Parameters
module_nameName of the targetted module, as displayed in FoRTReSS GUI
commandNew control command
delayTime before the command should be executed

Implements Testbench_out_interface< No >.

template<int No>
const sc_event & TestbenchOut< No >::TB_IF_all_responses_received_event ( void  ) const
virtual

Watch the event issued once all TLM responses have been sent from following modules to testbench.

Returns
constant reference to the SystemC event involved

Implements Testbench_out_interface< No >.

template<int No>
int * TestbenchOut< No >::TB_IF_get_data_out_ptr ( int  socketID) const
virtual

Get pointer to ougoing data structure.

Parameters
socketIDSocket ID
Returns
Pointer to the outgoing transactions data

Implements Testbench_out_interface< No >.

template<int No>
int * TestbenchOut< No >::TB_IF_get_data_out_ptr ( string  connectionName) const
virtual

Get pointer to ougoing data structure.

Parameters
connectionNameName of the connection bound to the socket
Returns
Pointer to the outgoing transactions data

Implements Testbench_out_interface< No >.

template<int No>
string TestbenchOut< No >::TB_IF_get_instance_name ( void  ) const
virtual

Get testbench instance name.

Returns
string representation of testbench instance name

Implements Testbench_out_interface< No >.

template<int No>
int TestbenchOut< No >::TB_IF_get_output_socket_id ( string  name) const
virtual

Get input socket id by the name of the connection.

Parameters
nameConnection name
Returns
Socket ID

Implements Testbench_out_interface< No >.

template<int No>
int TestbenchOut< No >::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_out_interface< No >.

template<int No>
int TestbenchOut< No >::TB_IF_get_packet_size ( string  name) const
virtual

Get socket packet size.

Parameters
nameName of the connection bound to the socket
Returns
Packet size (in 32-bit words)

Implements Testbench_out_interface< No >.

template<int No>
sc_time TestbenchOut< No >::TB_IF_get_period ( void  ) const
virtual

Get testbench period.

Returns
sc_time representation of testbench period

Implements Testbench_out_interface< No >.

template<int No>
string TestbenchOut< No >::TB_IF_getApplicationName ( void  )
virtual

Get application name (application in which this testbench has been instantiated).

Returns
string representation of application name

Implements Testbench_out_interface< No >.

template<int No>
const char * TestbenchOut< No >::TB_IF_name ( void  ) const
virtual

Get testbench full name.

Returns
Constant char* representation of testbench full name

Implements Testbench_out_interface< No >.

template<int No>
void TestbenchOut< No >::TB_IF_nb_send_data ( int  socketID)
virtual

Non-blocking data send through a given socket.

Parameters
socketIDSocket ID

Implements Testbench_out_interface< No >.

template<int No>
void TestbenchOut< No >::TB_IF_nb_send_data ( string  connectionName)
virtual

Non-blocking data send through a given socket.

Parameters
connectionNameName of the connection bound to the socket

Implements Testbench_out_interface< No >.


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