Ignore:
Timestamp:
Mar 16, 2011, 2:23:15 PM (13 years ago)
Author:
guthmull
Message:

Improve activity counters. Table sizes are now instance parameters.

File:
1 edited

Legend:

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

    r140 r141  
    287287      uint32_t     m_cpt_write_dirty;       // Cumulated length for WRITE transactions
    288288      uint32_t     m_cpt_update;            // Number of UPDATE transactions
     289      uint32_t     m_cpt_trt_rb;            // Read blocked by a hit in trt
     290      uint32_t     m_cpt_trt_full;          // Transaction blocked due to a full trt
    289291      uint32_t     m_cpt_update_mult;       // Number of targets for UPDATE
    290292      uint32_t     m_cpt_inval;             // Number of INVAL  transactions
     
    319321          size_t nsets,                                     // Number of sets
    320322          size_t nwords,                                    // Number of words per line
    321           size_t heap_size=1024);                           // Size of the heap
     323          size_t heap_size=1024,                            // Size of the heap
     324          size_t transaction_tab_lines=TRANSACTION_TAB_LINES,// Size of the TRT
     325          size_t update_tab_lines=UPDATE_TAB_LINES          // Size of the UPT
     326          );
    322327
    323328      ~VciMemCacheV4();
     
    343348      std::list<soclib::common::Segment>  m_seglist;            // memory cached into the cache
    344349      std::list<soclib::common::Segment>  m_cseglist;           // coherence segment for the cache
    345       vci_addr_t                        *m_coherence_table;     // address(srcid)
    346       TransactionTab                    m_transaction_tab;      // xram transaction table
     350      vci_addr_t                             *m_coherence_table;        // address(srcid)
     351      TransactionTab                        m_transaction_tab;  // xram transaction table
     352      uint32_t                    m_transaction_tab_lines;
    347353      UpdateTab                         m_update_tab;           // pending update & invalidate
    348       CacheDirectory                    m_cache_directory;      // data cache directory
     354      uint32_t                    m_update_tab_lines;
     355      CacheDirectory                            m_cache_directory;      // data cache directory
    349356      HeapDirectory                     m_heap_directory;       // heap directory
    350357
     
    713720
    714721// Local Variables:
    715 // tab-width: 4
    716 // c-basic-offset: 4
     722// tab-width: 2
     723// c-basic-offset: 2
    717724// c-file-offsets:((innamespace . 0)(inline-open . 0))
    718725// indent-tabs-mode: nil
Note: See TracChangeset for help on using the changeset viewer.