Changes between Version 81 and Version 82 of Writing Rules/Tlmt
- Timestamp:
- Nov 17, 2008, 10:18:01 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Rules/Tlmt
v81 v82 134 134 135 135 tlm::tlm_sync_enum nb_transport_fw 136 ( soclib_vci_types::tlm_payload_type &payload, // VCI payload pointer136 ( soclib_vci_types::tlm_payload_type &payload, // payload 137 137 soclib_vci_types::tlm_phase_type &phase, // transaction phase (TLMT_CMD) 138 138 sc_core::sc_time &time); // local time … … 217 217 {{{ 218 218 tlm::tlm_sync_enum vci_cmd_received 219 ( soclib_vci_types::tlm_payload_type &payload, // VCI payload pointer220 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) 221 221 sc_core::sc_time &time); // time 222 222 }}} … … 229 229 Respecting 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, 230 230 and the associated interface functions. Only two values are used for the '''response_status''' field in this TLM-T implementation: 231 * TLM T_OK_RESPONSE232 * TLM T_ERROR_RESPONSE231 * TLM_OK_RESPONSE 232 * TLM_GENERIC_ERROR_RESPONSE 233 233 For a reactive target, the response packet time is computed as the command packet time plus the target intrinsic latency. 234 234 235 235 {{{ 236 236 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, 239 239 sc_core::sc_time &time) 240 240 { 241 241 ... 242 payload.set_response_status(soclib::tlmt::TLM T_OK_RESPONSE);242 payload.set_response_status(soclib::tlmt::TLM_OK_RESPONSE); 243 243 phase = soclib::tlmt::TLMT_RSP; 244 244 time = time + (nwords * UNIT_TIME); … … 246 246 } 247 247 }}} 248 249 248 == E.4) Target Constructor == 250 249