Changes between Version 120 and Version 121 of Writing Rules/Tlmt
- Timestamp:
- Mar 3, 2009, 10:29:49 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Rules/Tlmt
v120 v121 149 149 This class inherits from the standard SystemC '''sc_core::sc_module''' class, that acts as the root class for all TLM-T modules. 150 150 151 The initiator uses the '''pdes_local_time''' classefor managing and interacting with his local time and with the interval between two consecutive null messages.151 The initiator uses the class '''pdes_local_time''' for managing and interacting with his local time and with the interval between two consecutive null messages. 152 152 The '''pdes_local_time''' has the following access functions: 153 153 {{{ … … 157 157 ... 158 158 159 pdes_local_time( sc_core::sc_time time_quantum ); // constructor159 pdes_local_time( sc_core::sc_time time_quantum ); // constructor 160 160 void add(const sc_core::sc_time& t); // add an increment to the local time 161 161 void set(sc_core::sc_time t); // set the local time 162 162 sc_core::sc_time get(); // get the local time 163 bool need_sync(); // Checks if a synchronization is required 164 }}} 165 166 The boolean member variable '''m_activity_status''' indicates if the initiator is currently active. 167 It is used by the temporal filtering threads contained in the '''vci_vgmn''' interconnect, as described in section F. 168 The corresponding access functions are '''setActivity()''' and '''getActivity()'''. 169 {{{ 170 bool m_activity_status; 163 bool need_sync(); // check if a synchronization is required 164 }}} 165 166 The initiator activity status (used by the temporal filtering, as described in section F) is managed for the class '''pdes_activity_status'''. 167 The corresponding access functions are '''set()''' and '''get()'''. 168 {{{ 169 bool m_activity_status; // the initiator activity status 171 170 ... 172 void set Activity(bool t);// set the activity status (true if the component is active)173 bool get Activity(void);// get the activity state171 void set(bool a); // set the activity status (true if the component is active) 172 bool get(); // get the activity state 174 173 }}} 175 174