@EyckThanks for your input, the main issue for me was the sensitivity list, I just removed it from the sc_main and it works.
And about defining the stimuli in a separated file, how can i achieve this if the stimuli make call to sc_start() periodically?
The code is as follow, it works well, just want to know how to move the stimuli apart in a separated file
int sc_main(int argc, char* argv[])
{
// stimuli
sc_signal<bool> START, TIMEOUT;
sc_time clkPrd(10, SC_NS);// period
sc_clock CLOCK("clock", clkPrd); // timer
// Binding
timer tm("timer");
tm