Tag Archives: simple_initiator_socket

Ejemplo de Loosely-timed example

First of all, I should remember you what means loosely-timed: we use the blocking function b_transport and therefore we have two synchronization points per transaction, that corresponds to the beginning and the end of the transaction. These two points  can be in the same simulation time or in different simulation time. In case we have the two synchronization points in the same simulation time, we are using untimed).

Continue reading Ejemplo de Loosely-timed example

Untimed example

Let’s start with the first example…


We shall start with the include’s


using namespace sc_core;

#include "tlm.h"
#include "tlm_utils/simple_initiator_socket.h"

Firstly we include systemc and then tlm.h
Then we include the easiest socket for that example.
Now it’s time to declare the Initiator class

class Initiator: sc_module
  tlm_utils::simple_initiator_socket initiator_socket;
  Initiator(sc_module_name name_);

  void initiator_thread();

Continue reading Untimed example