Changes between Version 77 and Version 78 of Writing Rules/Tlmt


Ignore:
Timestamp:
Nov 16, 2008, 2:20:14 PM (15 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Writing Rules/Tlmt

    v77 v78  
    3030Figure 1 presents a minimal system containing one single VCI initiator, '''my_initiator''' , and one single
    3131VCI target, '''my_target''' . The initiator behavior is modeled by the SC_THREAD  '''execLoop()''', that contains an infinite loop.
    32 The call-back function '''vci_rsp_received()''' is executed when a VCI response packet is received by the initiator module.
     32The interface function '''vci_rsp_received()''' is executed when a VCI response packet is received by the initiator module.
    3333
    3434[[Image(tlmt_figure_1.png, nolink)]]
    3535
    36 Unlike the initiator, the target module has a purely reactive behaviour and is therefore modeled as a simple call-back function.
    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-back
     36Unlike the initiator, the target module has a purely reactive behaviour and is therefore modeled as a simple interface function.
     37In other words, there is no need to use a SC_THREAD for a target component: the target behaviour is entirely described by the interface
    3838function '''vci_cmd_received()''', that is executed when a VCI command packet is received by the target module.
    3939
     
    5858  // TLM2.0 related fields and common structure
    5959
    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;
    6666
    6767  // TLM-T related fields
    6868 
    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;
    7171
    7272  // VCI related fields
    7373 
    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;
    7878
    7979}}}