The most abstract level in the SystemC TLM methodology is called PV. It implements the channel communication based on events that determine the beginning and the end of the request phase, mstr_requestStartEvent and
mstr_requestEndEvent, as well as the protocol functionality using three methods, sendRequest, getRequest, and requestInProgress. The first method is used by the traffic generator and the second by the message receiver; the purpose of the third one is to check the status of the transfer:
Adding more details, such as time and detailed transfer information (data and address), we move to a more concrete level called PV+T. The class constructor now takes an additional parameter: the clock period. New methods extend the bus functionality (e.g., they now consider the reset aspects). In the following, we provide an example of the implementation of the request phase. Although the behavior remains the same, the transfer information has been detailed to include data and address:
Further changes relate to the implementation of the acceptRequest method, which now takes timing information, either in explicit time form:
or in a form correlated to clock cycles:
The next version, which is even more concrete, is a cycle-accurate implementation that uses clock cycle timing and bit true variable information. As can be seen from the bus implementation shown here, the detailed data information is packaged in the newRequest structure:
The actual timing is implemented on the bus interface, both in the bus master and the slave interface methods, as demonstrated here for the request method of the master interface:
The process is synchronized by a clock, but also offers the opportunity to run with a fixed delay using wait_for. The delay is also used in case of a handshaking mechanism or response check offered by the bus slave.