- Timestamp:
- Sep 15, 2014, 11:43:32 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RWT/modules/vci_cc_vcache_wrapper/caba/source/include/vci_cc_vcache_wrapper.h
r771 r805 114 114 DCACHE_XTN_IC_FLUSH, 115 115 DCACHE_XTN_IC_INVAL_PA, 116 DCACHE_XTN_IC_PADDR_EXT, 116 117 DCACHE_XTN_IT_INVAL, 117 118 DCACHE_XTN_DC_FLUSH, … … 329 330 bool m_debug_ok; 330 331 332 uint32_t m_dcache_paddr_ext_reset; 333 uint32_t m_icache_paddr_ext_reset; 334 331 335 //////////////////////////////////////// 332 336 // Communication with processor ISS … … 396 400 sc_signal<bool> r_icache_tlb_rsp_error; // tlb miss response error 397 401 402 // Flip-Flop in ICACHE FSM for saving the cleanup victim request 403 sc_signal<bool> r_icache_cleanup_victim_req; 404 sc_signal<paddr_t> r_icache_cleanup_victim_nline; 398 405 399 406 // communication between ICACHE FSM and CC_SEND FSM … … 403 410 sc_signal<size_t> r_icache_cc_send_way; // ICACHE cc_send way 404 411 sc_signal<size_t> r_icache_cc_send_updt_tab_idx; // ICACHE cc_send update table index 405 406 // Filp-Flop in ICACHE FSM for saving the cleanup victim request 407 sc_signal<bool> r_icache_cleanup_victim_req; 408 sc_signal<paddr_t> r_icache_cleanup_victim_nline; 412 413 // Physical address extension for data access 414 sc_signal<uint32_t> r_icache_paddr_ext; // CP2 register (if vci_address > 32) 409 415 410 416 /////////////////////////////// … … 468 474 sc_signal<bool> r_dcache_cc_need_write; // activate the cache for writing 469 475 sc_signal<paddr_t> r_dcache_cc_inval_addr; // address for a cleanup transaction 470 sc_signal<uint32_t> r_dcache_cc_inval_data_cpt; 476 sc_signal<uint32_t> r_dcache_cc_inval_data_cpt; 471 477 472 478 // coherence clack handling … … 503 509 // Filp-Flop in DCACHE FSM for saving the cleanup victim request 504 510 sc_signal<bool> r_dcache_cleanup_victim_req; 505 sc_signal<bool> r_dcache_cleanup_victim_line_ncc; 506 sc_signal<bool> r_dcache_cleanup_victim_updt_data; 511 sc_signal<bool> r_dcache_cleanup_victim_line_ncc; 512 sc_signal<bool> r_dcache_cleanup_victim_updt_data; 507 513 sc_signal<paddr_t> r_dcache_cleanup_victim_nline; 508 514 … … 513 519 sc_signal<size_t> r_dcache_cc_send_way; // DCACHE cc_send way 514 520 sc_signal<size_t> r_dcache_cc_send_updt_tab_idx; // DCACHE cc_send update table index 515 521 516 522 // special registers for RWT 517 523 sc_signal<bool> r_dcache_cc_cleanup_updt_data; // Register for cleanup with data (wb updt) … … 519 525 sc_signal<bool> r_dcache_miss_victim_no_coherence; // Register for victim in no coherence mode 520 526 sc_signal<bool> r_dcache_line_no_coherence; // Register for line current in no coherence mode 521 sc_signal<bool> r_dcache_dirty_save; 527 sc_signal<bool> r_dcache_dirty_save; 522 528 sc_signal<uint32_t> r_cc_send_cpt_word; 523 529 sc_signal<uint32_t> r_dcache_miss_data_cpt; … … 559 565 GenericFifo<uint32_t> r_vci_rsp_fifo_icache; // response FIFO to ICACHE FSM 560 566 GenericFifo<uint32_t> r_vci_rsp_fifo_dcache; // response FIFO to DCACHE FSM 561 567 562 568 563 569 //RWT 564 570 GenericFifo<bool> r_vci_rsp_fifo_rpktid; 565 GenericFifo<uint32_t> r_cc_send_data_fifo; 571 GenericFifo<uint32_t> r_cc_send_data_fifo; 566 572 567 573 /////////////////////////////////// … … 626 632 sc_signal<bool> r_dcache_llsc_valid; 627 633 628 634 629 635 sc_signal<bool> r_cache_frozen; 630 636 … … 806 812 } 807 813 814 ///////////////////////////////////////////////////////////// 815 // Set the m_dcache_paddr_ext_reset attribute 816 // 817 // The r_dcache_paddr_ext register will be initialized after 818 // reset with the m_dcache_paddr_ext_reset value 819 ///////////////////////////////////////////////////////////// 820 inline void set_dcache_paddr_ext_reset(uint32_t v) 821 { 822 m_dcache_paddr_ext_reset = v; 823 } 824 825 ///////////////////////////////////////////////////////////// 826 // Set the m_icache_paddr_ext_reset attribute 827 // 828 // The r_icache_paddr_ext register will be initialized after 829 // reset with the m_icache_paddr_ext_reset value 830 ///////////////////////////////////////////////////////////// 831 inline void set_icache_paddr_ext_reset(uint32_t v) 832 { 833 m_icache_paddr_ext_reset = v; 834 } 835 808 836 private: 809 837 void transition();
Note: See TracChangeset
for help on using the changeset viewer.