Ignore:
Timestamp:
Nov 12, 2010, 12:21:16 PM (13 years ago)
Author:
alain
Message:

Introducing a print_trace() method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_mem_cache_v4/caba/source/include/vci_mem_cache_v4.h

    r82 r116  
    5858#include "update_tab_v4.h"
    5959
    60 #define TRANSACTION_TAB_LINES 4     // Number of lines in the transaction tab
    61 #define UPDATE_TAB_LINES 4          // Number of lines in the update tab
    62 #define BROADCAST_ADDR 0x0000000003 // Address to send the broadcast invalidate
     60#define TRANSACTION_TAB_LINES   4               // Number of lines in the transaction tab
     61#define UPDATE_TAB_LINES        4               // Number of lines in the update tab
    6362
    6463namespace soclib {  namespace caba {
     
    328327      void print_stats();
    329328
     329      void print_trace();
     330
    330331      private:
    331332
    332333      // Component attributes
    333       const size_t              m_initiators;           // Number of initiators
    334       const size_t              m_heap_size;            // Size of the heap
    335       const size_t              m_ways;                 // Number of ways in a set
    336       const size_t              m_sets;                 // Number of cache sets
    337       const size_t              m_words;                        // Number of words in a line
    338       const size_t              m_srcid_ixr;                // Srcid for requests to XRAM
    339       const size_t              m_srcid_ini;                // Srcid for requests to processors
    340       std::list<soclib::common::Segment>  m_seglist;    // memory cached into the cache
    341       std::list<soclib::common::Segment>  m_cseglist;   // coherence segment for the cache
     334      const size_t                      m_initiators;           // Number of initiators
     335      const size_t                      m_heap_size;            // Size of the heap
     336      const size_t                      m_ways;                 // Number of ways in a set
     337      const size_t                      m_sets;                 // Number of cache sets
     338      const size_t                      m_words;                // Number of words in a line
     339      const size_t                      m_srcid_ixr;            // Srcid for requests to XRAM
     340      const size_t                      m_srcid_ini;            // Srcid for requests to processors
     341      std::list<soclib::common::Segment>  m_seglist;            // memory cached into the cache
     342      std::list<soclib::common::Segment>  m_cseglist;           // coherence segment for the cache
    342343      vci_addr_t                        *m_coherence_table;     // address(srcid)
    343       TransactionTab                    m_transaction_tab;          // xram transaction table
    344       UpdateTab                 m_update_tab;               // pending update & invalidate
    345       CacheDirectory                    m_cache_directory;          // data cache directory
    346       HeapDirectory             m_heap_directory;       // heap directory
     344      TransactionTab                    m_transaction_tab;      // xram transaction table
     345      UpdateTab                         m_update_tab;           // pending update & invalidate
     346      CacheDirectory                    m_cache_directory;      // data cache directory
     347      HeapDirectory                     m_heap_directory;       // heap directory
    347348
    348349      data_t                           ***m_cache_data;         // data array[set][way][word]
     
    355356
    356357      // broadcast address
    357       vci_addr_t broadcast_addr;
     358      vci_addr_t                        m_broadcast_address;
    358359
    359360      //////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.