Changeset 439 for trunk/modules/vci_mem_cache/caba/source/include
- Timestamp:
- Jul 16, 2013, 6:58:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_mem_cache/caba/source/include/vci_mem_cache.h
r434 r439 90 90 enum tgt_rsp_fsm_state_e 91 91 { 92 TGT_RSP_CONFIG_IDLE, 92 93 TGT_RSP_TGT_CMD_IDLE, 93 94 TGT_RSP_READ_IDLE, … … 97 98 TGT_RSP_MULTI_ACK_IDLE, 98 99 TGT_RSP_CLEANUP_IDLE, 100 TGT_RSP_CONFIG, 99 101 TGT_RSP_TGT_CMD, 100 102 TGT_RSP_READ, … … 118 120 enum cc_send_fsm_state_e 119 121 { 122 CC_SEND_CONFIG_IDLE, 120 123 CC_SEND_XRAM_RSP_IDLE, 121 124 CC_SEND_WRITE_IDLE, 122 125 CC_SEND_CAS_IDLE, 123 126 CC_SEND_CLEANUP_IDLE, 127 CC_SEND_CONFIG_INVAL_HEADER, 128 CC_SEND_CONFIG_INVAL_NLINE, 129 CC_SEND_CONFIG_BRDCAST_HEADER, 130 CC_SEND_CONFIG_BRDCAST_NLINE, 124 131 CC_SEND_CLEANUP_ACK, 125 132 CC_SEND_XRAM_RSP_BRDCAST_HEADER, … … 158 165 CONFIG_DIR_REQ, 159 166 CONFIG_DIR_ACCESS, 160 CONFIG_DIR_INVAL, 161 CONFIG_BC_UPT_LOCK, 167 CONFIG_DIR_UPT_LOCK, 162 168 CONFIG_BC_SEND, 163 169 CONFIG_BC_WAIT, 164 165 CONFIG_UPT_WAIT, 166 167 CONFIG_UPT_LOCK, 168 169 CONFIG_HEAP_REQ 170 CONFIG_INV_SEND, 171 CONFIG_HEAP_REQ, 172 CONFIG_HEAP_SCAN, 173 CONFIG_HEAP_LAST, 174 CONFIG_INV_WAIT 170 175 }; 171 176 … … 345 350 ALLOC_HEAP_CAS, 346 351 ALLOC_HEAP_CLEANUP, 347 ALLOC_HEAP_XRAM_RSP 352 ALLOC_HEAP_XRAM_RSP, 353 ALLOC_HEAP_CONFIG 348 354 }; 349 355 … … 568 574 /////////////////////////////////////////////////////// 569 575 570 sc_signal<int> r_config_fsm; // FSM state 571 sc_signal<bool> r_config_lock; // lock protecting exclusive access 572 sc_signal<int> r_config_cmd; // config request status 573 sc_signal<addr_t> r_config_address; // target buffer physical address 574 sc_signal<size_t> r_config_srcid; // config request srcid 575 sc_signal<size_t> r_config_trdid; // config request trdid 576 sc_signal<size_t> r_config_pktid; // config request pktid 577 sc_signal<size_t> r_config_nlines; // number of lines covering the buffer 578 sc_signal<size_t> r_config_way; // selected way 579 sc_signal<size_t> r_config_count; // number of copies 576 sc_signal<int> r_config_fsm; // FSM state 577 sc_signal<bool> r_config_lock; // lock protecting exclusive access 578 sc_signal<int> r_config_cmd; // config request status 579 sc_signal<addr_t> r_config_address; // target buffer physical address 580 sc_signal<size_t> r_config_srcid; // config request srcid 581 sc_signal<size_t> r_config_trdid; // config request trdid 582 sc_signal<size_t> r_config_pktid; // config request pktid 583 sc_signal<size_t> r_config_nlines; // number of lines covering the buffer 584 sc_signal<size_t> r_config_dir_way; // DIR: selected way 585 sc_signal<size_t> r_config_dir_count; // DIR: number of copies 586 sc_signal<bool> r_config_dir_is_cnt; // DIR: counter mode (broadcast required) 587 sc_signal<size_t> r_config_dir_copy_srcid; // DIR: first copy SRCID 588 sc_signal<bool> r_config_dir_copy_inst; // DIR: first copy L1 type 589 sc_signal<size_t> r_config_dir_next_ptr; // DIR: index of next copy in HEAP 590 sc_signal<size_t> r_config_heap_next; // current pointer to scan HEAP 591 580 592 sc_signal<size_t> r_config_upt_index; // UPT index 581 sc_signal<bool> r_config_is_cnt; // counter mode (broadcast required)582 593 583 594 // Buffer between CONFIG fsm and TGT_RSP fsm (send a done response to L1 cache) … … 591 602 sc_signal<bool> r_config_to_cc_send_multi_req; // multi-inval request 592 603 sc_signal<bool> r_config_to_cc_send_brdcast_req; // broadcast-inval request 593 sc_signal< size_t> r_config_to_cc_send_nline; // line index604 sc_signal<addr_t> r_config_to_cc_send_nline; // line index 594 605 sc_signal<size_t> r_config_to_cc_send_trdid; // UPT index 606 GenericFifo<bool> m_config_to_cc_send_inst_fifo; // fifo for the L1 type 607 GenericFifo<size_t> m_config_to_cc_send_srcid_fifo; // fifo for owners srcid 608 609 #if L1_MULTI_CACHE 610 GenericFifo<size_t> m_config_to_cc_send_cache_id_fifo; // fifo for cache_id 611 #endif 595 612 596 613 ///////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.