Ignore:
Timestamp:
Mar 8, 2012, 8:48:53 AM (12 years ago)
Author:
alain
Message:

bugs fix

File:
1 edited

Legend:

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

    r203 r204  
    3535#include "generic_fifo.h"
    3636#include "generic_tlb.h"
     37#include "generic_cache.h"
    3738#include "generic_cam.h"
    38 #include "generic_cache.h"
    3939#include "vci_initiator.h"
    4040#include "vci_target.h"
     
    113113        DCACHE_XTN_DC_INVAL_VA,       
    114114        DCACHE_XTN_DC_INVAL_PA,     
    115         DCACHE_XTN_DC_INVAL_WAIT,
     115        DCACHE_XTN_DC_INVAL_END,
    116116        DCACHE_XTN_DC_INVAL_GO,         
    117117        DCACHE_XTN_DT_INVAL,         
     
    121121        DCACHE_WRITE_SC_WAIT,           
    122122        DCACHE_WRITE_UNC_WAIT,
    123         // handling processor miss requests
     123            // handling processor miss requests
    124124        DCACHE_MISS_VICTIM,
    125125        DCACHE_MISS_INVAL,
     
    133133        DCACHE_CC_INVAL,           
    134134        DCACHE_CC_UPDT,             
    135         DCACHE_CC_WAIT,             
     135        // handling TLB inval (after a coherence or XTN request)
     136        DCACHE_INVAL_TLB_SCAN,             
    136137    };
    137138
     
    173174        TGT_RSP_ICACHE,
    174175        TGT_RSP_DCACHE,
    175     };
    176 
    177     enum inval_itlb_fsm_state_e {
    178         INVAL_ITLB_IDLE,
    179         INVAL_ITLB_SCAN,
    180     };
    181 
    182     enum inval_dtlb_fsm_state_e {
    183         INVAL_DTLB_IDLE,
    184         INVAL_DTLB_SCAN,
    185176    };
    186177
     
    386377    sc_signal<size_t>       r_dcache_p1_tlb_set;            // selected set (from dtlb)
    387378    sc_signal<paddr_t>      r_dcache_p1_tlb_nline;          // nline value (from dtlb)
    388     // registers written in P2 stage (used in P3 stage)
     379    sc_signal<bool>         r_dcache_p1_tlb_big;        // big page bit (from dtlb)
     380    // registers written in P2 stage (used in long write)
    389381    sc_signal<uint32_t>     r_dcache_p2_vaddr;          // virtual address (from proc)
    390382    sc_signal<size_t>       r_dcache_p2_tlb_way;            // selected way in dtlb
     
    395387    sc_signal<size_t>       r_dcache_p2_pte_set;            // selected set in dcache
    396388    sc_signal<size_t>       r_dcache_p2_pte_word;           // selected word in dcache
    397     sc_signal<size_t>       r_dcache_p2_pte_flags;          // pte value read in dcache
     389    sc_signal<size_t>       r_dcache_p2_pte;            // pte value read in dcache
    398390   
    399391    // communication between DCACHE FSM and VCI_CMD FSM
     
    445437    sc_signal<paddr_t>      r_dcache_ll_vaddr;              // LL reserved address
    446438                           
    447     // communication between DCACHE FSM and INVAL_ITLB/INVAL_DTLB FSMs
    448     sc_signal<bool>         r_dcache_itlb_inval_req;    // inval request of one or several TLB entries
    449     sc_signal<bool>         r_dcache_dtlb_inval_req;    // inval request of one or several TLB entries;
     439    // ITLB and DTLB invalidation
     440    sc_signal<bool>         r_dcache_itlb_inval_req;    // inval request for itlb
     441    sc_signal<bool>         r_dcache_dtlb_inval_req;    // inval request for dtlb
    450442    sc_signal<paddr_t>      r_dcache_tlb_inval_line;    // line index
     443    sc_signal<size_t>       r_dcache_tlb_inval_count;   // tlb entry counter
    451444
    452445    // communication between DCACHE FSM and ICACHE FSM
     
    510503    uint32_t                *r_tgt_buf;                         // cache line word buffer
    511504    vci_be_t                *r_tgt_be;                          // cache line be buffer
    512 
    513     ///////////////////////////////////
    514     // INVAL_ITLB FSM REGISTERS
    515     ///////////////////////////////////
    516     sc_signal<int>          r_inval_itlb_fsm;               // state register
    517     sc_signal<size_t>       r_inval_itlb_count;             // counter to scan all itlb entries
    518 
    519     ///////////////////////////////////
    520     // INVAL_DTLB FSM REGISTERS
    521     ///////////////////////////////////
    522     sc_signal<int>          r_inval_dtlb_fsm;               //state register
    523     sc_signal<size_t>       r_inval_dtlb_count;             // counter to scan all dtlb entries
    524505
    525506    //////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.