Changes between Version 81 and Version 82 of Writing Rules/Tlmt


Ignore:
Timestamp:
Nov 17, 2008, 10:18:01 AM (15 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Writing Rules/Tlmt

    v81 v82  
    134134
    135135  tlm::tlm_sync_enum nb_transport_fw           
    136   ( soclib_vci_types::tlm_payload_type &payload,      // VCI payload pointer
     136  ( soclib_vci_types::tlm_payload_type &payload,      // payload
    137137    soclib_vci_types::tlm_phase_type   &phase,        // transaction phase (TLMT_CMD)
    138138    sc_core::sc_time                   &time);        // local time
     
    217217{{{
    218218  tlm::tlm_sync_enum vci_cmd_received             
    219   ( soclib_vci_types::tlm_payload_type &payload,      // VCI payload pointer
    220     soclib_vci_types::tlm_phase_type   &phase,       // transaction phase
     219  ( soclib_vci_types::tlm_payload_type &payload,      // payload
     220    soclib_vci_types::tlm_phase_type   &phase,       // transaction phase (TLMT_CMD)
    221221    sc_core::sc_time                   &time);        // time
    222222}}} 
     
    229229Respecting the general TLM2.0 policy, the payload argument refers to the same '''tlmt_vci_transaction''' object for both the '''nb_transport_fw()''' and '''nb_transport_bw()''' functions,
    230230and the associated interface functions. Only two values are used for the '''response_status''' field in this TLM-T implementation:
    231  * TLMT_OK_RESPONSE
    232  * TLMT_ERROR_RESPONSE
     231 * TLM_OK_RESPONSE
     232 * TLM_GENERIC_ERROR_RESPONSE
    233233For a reactive target, the response packet time is computed as the command packet time plus the target intrinsic latency.
    234234
    235235{{{
    236236       tlm::tlm_sync_enum vci_cmd_received (
    237            soclib_vci_types::tlm_payload_type &payload,   
    238            soclib_vci_types::tlm_phase_type   &phase
     237           soclib_vci_types::tlm_payload_type &payload,       
     238           soclib_vci_types::tlm_phase_type   &phase,     
    239239           sc_core::sc_time                   &time)
    240240        {       
    241241       ...
    242         payload.set_response_status(soclib::tlmt::TLMT_OK_RESPONSE);
     242        payload.set_response_status(soclib::tlmt::TLM_OK_RESPONSE);
    243243        phase = soclib::tlmt::TLMT_RSP;
    244244        time = time + (nwords * UNIT_TIME);
     
    246246        }
    247247}}}
    248 
    249248== E.4) Target Constructor ==
    250249