Changes between Version 26 and Version 27 of Writing Rules/Tlmt


Ignore:
Timestamp:
Dec 28, 2007, 4:09:21 PM (16 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Writing Rules/Tlmt

    v26 v27  
    182182To receive a VCI command packet, a call-back function must be defined as a member function of the class '''my_target'''. This call-back function (named '''cmdReceived()''' in the example), will be executed each time a VCI command packet is received on the '''p_vci''' port. The function name is not constrained, but the arguments must respect the following prototype:
    183183{{{
    184 void  cmdReceived(vci_cmd_t  *cmd,
     184uint32_t  cmdReceived(vci_cmd_t  *cmd,
    185185               uint32_t  time)
    186186}}} 
     
    230230
    231231    /////////////// call-back function
    232     sc_time  cmdReceived(vci_cmd_t *cmd,
     232    uint32_t  cmdReceived(vci_cmd_t *cmd,
    233233                uint32_t cmd_time)
    234234    {
     
    276276As described in Figure 4, when a VCI command packet - sent by the corresponding arbitration thread - is received by a VCI target, two synchronization mechanisms are activated :
    277277 * The '''cmdReceived()''' function sends a VCI response packet with a date to the source initiator, through the '''!VciVgmn''' response network. The corresponding date can be used to update the initiator local clock.
    278  * The '''cmdReceived()''' function returns a date to the arbitration thread. This date is used to update the arbitration thread local time
     278 * The '''cmdReceived()''' function returns a date to the arbitration thread. This date is used to update the arbitration thread local clock
    279279
    280280[[Image(tlmt_figure_4.png, nolink)]]