Changes between Version 77 and Version 78 of Writing Rules/Tlmt
- Timestamp:
- Nov 16, 2008, 2:20:14 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Rules/Tlmt
v77 v78 30 30 Figure 1 presents a minimal system containing one single VCI initiator, '''my_initiator''' , and one single 31 31 VCI target, '''my_target''' . The initiator behavior is modeled by the SC_THREAD '''execLoop()''', that contains an infinite loop. 32 The call-backfunction '''vci_rsp_received()''' is executed when a VCI response packet is received by the initiator module.32 The interface function '''vci_rsp_received()''' is executed when a VCI response packet is received by the initiator module. 33 33 34 34 [[Image(tlmt_figure_1.png, nolink)]] 35 35 36 Unlike the initiator, the target module has a purely reactive behaviour and is therefore modeled as a simple call-backfunction.37 In other words, there is no need to use a SC_THREAD for this simple target component: the target behaviour is entirely described by the call-back36 Unlike the initiator, the target module has a purely reactive behaviour and is therefore modeled as a simple interface function. 37 In other words, there is no need to use a SC_THREAD for a target component: the target behaviour is entirely described by the interface 38 38 function '''vci_cmd_received()''', that is executed when a VCI command packet is received by the target module. 39 39 … … 58 58 // TLM2.0 related fields and common structure 59 59 60 sc_dt::uint64 m_address;61 unsigned char* m_data;62 unsigned int m_length;63 tlm_response_status m_response_status;64 unsigned char* m_byte_enable;65 unsigned int m_streaming_width;60 sc_dt::uint64 address; 61 unsigned char* data; 62 unsigned int length; 63 tlm_response_status response_status; 64 unsigned char* byte_enable; 65 unsigned int streaming_width; 66 66 67 67 // TLM-T related fields 68 68 69 bool* m_activity_ptr;70 sc_core::sc_time* m_local_time_ptr;69 bool* activity_status_ptr; 70 sc_core::sc_time* local_time_ptr; 71 71 72 72 // VCI related fields 73 73 74 vci_param::cmd_t m_cmd;75 vci_param::srcid_t m_srcid;76 vci_param::trdid_t m_trdid;77 vci_param::pktid_t m_pktid;74 vci_param::cmd_t cmd; 75 vci_param::srcid_t srcid; 76 vci_param::trdid_t trdid; 77 vci_param::pktid_t pktid; 78 78 79 79 }}}