Changes between Version 119 and Version 120 of Writing Rules/Tlmt


Ignore:
Timestamp:
Mar 3, 2009, 10:16:42 AM (15 years ago)
Author:
alinevieiramello@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Writing Rules/Tlmt

    v119 v120  
    99
    1010= A) Introduction =
    11 
     11/ add an increment to the local time
    1212This document is still under development.
    1313
     
    149149This class inherits from the standard SystemC '''sc_core::sc_module''' class, that acts as the root class for all TLM-T modules.
    150150
    151 The initiator uses the methods of '''pdes_local_time''' classe for managing and interacting his local time and the interval between two consecutive null messages.
    152 
    153 The initiator local time is managed contained in a member variable named '''m_local_time''', of type '''sc_core::sc_time'''. The
    154 local time can be accessed with the following accessors: '''addLocalTime()''', '''setLocalTime()'''
    155 and '''getLocalTime()'''.
     151The initiator uses the '''pdes_local_time''' classe for managing and interacting with his local time and with the interval between two consecutive null messages.
     152The '''pdes_local_time''' has the following access functions:
    156153{{{
    157154  sc_core::sc_time m_local_time;                     // the initiator local time
     155  sc_core::sc_time m_next_sync_point;                // the next synchronization point
     156  sc_core::sc_time m_time_quantum;                   // the time quantum
    158157  ...
    159   void addLocalTime(sc_core::sc_time t);            // add an increment to the local time
    160   void setLocalTime(sc_core::sc_time& t);           // set the local time
    161   sc_core::sc_time getLocalTime(void);              // get the local time
     158
     159  pdes_local_time( sc_core::sc_time time_quantum );  //constructor
     160  void add(const sc_core::sc_time& t);               // add an increment to the local time
     161  void set(sc_core::sc_time t);                      // set the local time
     162  sc_core::sc_time get();                            // get the local time
     163  bool need_sync();                                  // Checks if a synchronization is required
    162164}}}
    163165