Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

6.4.4.  SystemC Processes

A SystemC thread, busThread, is provided to handle transactions arriving on the bus. A SystemC method, statically sensitive to writes to the Rx buffer is used to handle bytes arriving in the Rx buffer.

[Note]Note

Unlike threads, SystemC methods may not yield by calling wait. A SystemC method is started when one of its static sensitivities is triggered and runs to completion. It is suitable here, where it runs when a character is received, copying that character to the UART RXBUF register and then exiting.

it is worth using SystemC methods whenever possible, because they can potentially be implemented more efficiently than threads.

Embecosm divider strip