Changeset 684 for branches/fault_tolerance/module/internal_component
- Timestamp:
- May 12, 2014, 9:22:51 AM (11 years ago)
- Location:
- branches/fault_tolerance/module/internal_component/vci_cc_vcache_wrapper/caba/source
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fault_tolerance/module/internal_component/vci_cc_vcache_wrapper/caba/source
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/trunk/modules/vci_cc_vcache_wrapper/caba/source merged eligible /branches/v5/modules/vci_cc_vcache_wrapper/caba/source 444-467
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/fault_tolerance/module/internal_component/vci_cc_vcache_wrapper/caba/source/include/vci_cc_vcache_wrapper.h
r656 r684 339 339 bool m_debug_previous_i_hit; 340 340 bool m_debug_previous_d_hit; 341 bool m_debug_activated; 341 bool m_debug_icache_fsm; 342 bool m_debug_dcache_fsm; 343 bool m_debug_cmd_fsm; 342 344 343 345 /////////////////////////////// -
branches/fault_tolerance/module/internal_component/vci_cc_vcache_wrapper/caba/source/src/vci_cc_vcache_wrapper.cpp
r661 r684 815 815 m_debug_previous_i_hit = false; 816 816 m_debug_previous_d_hit = false; 817 m_debug_activated = false; 817 m_debug_icache_fsm = false; 818 m_debug_dcache_fsm = false; 819 m_debug_cmd_fsm = false; 818 820 819 821 // activity counters … … 956 958 m_cpt_total_cycles++; 957 959 958 m_debug_activated = (m_cpt_total_cycles > m_debug_start_cycle) and m_debug_ok; 960 m_debug_icache_fsm = m_debug_icache_fsm || 961 ((m_cpt_total_cycles > m_debug_start_cycle) and m_debug_ok); 962 m_debug_dcache_fsm = m_debug_dcache_fsm || 963 ((m_cpt_total_cycles > m_debug_start_cycle) and m_debug_ok); 964 m_debug_cmd_fsm = m_debug_cmd_fsm || 965 ((m_cpt_total_cycles > m_debug_start_cycle) and m_debug_ok); 959 966 960 967 ///////////////////////////////////////////////////////////////////// … … 1228 1235 r_icache_fsm = ICACHE_MISS_SELECT; 1229 1236 #if DEBUG_ICACHE 1230 if ( m_debug_ activated)1237 if ( m_debug_icache_fsm ) 1231 1238 std::cout << " <PROC " << name() << " ICACHE_IDLE> READ MISS in icache" 1232 1239 << " : PADDR = " << std::hex << paddr << std::endl; … … 1250 1257 r_icache_fsm = ICACHE_IDLE; 1251 1258 #if DEBUG_ICACHE 1252 if ( m_debug_ activated)1259 if ( m_debug_icache_fsm ) 1253 1260 std::cout << " <PROC " << name() << " ICACHE_IDLE> READ HIT in icache" 1254 1261 << " : PADDR = " << std::hex << paddr << std::endl; … … 1262 1269 1263 1270 #if DEBUG_ICACHE 1264 if ( m_debug_ activated)1271 if ( m_debug_icache_fsm ) 1265 1272 { 1266 1273 std::cout << " <PROC " << name() … … 1608 1615 1609 1616 #if DEBUG_ICACHE 1610 if ( m_debug_ activated)1617 if ( m_debug_icache_fsm ) 1611 1618 { 1612 1619 std::cout << " <PROC " << name() … … 1633 1640 CACHE_SLOT_STATE_ZOMBI); 1634 1641 #if DEBUG_ICACHE 1635 if ( m_debug_ activated)1642 if ( m_debug_icache_fsm ) 1636 1643 { 1637 1644 std::cout << " <PROC " << name() … … 1708 1715 r_vci_rsp_fifo_icache.read() ); 1709 1716 #if DEBUG_ICACHE 1710 if ( m_debug_ activated)1717 if ( m_debug_icache_fsm ) 1711 1718 { 1712 1719 std::cout << " <PROC " << name() … … 1786 1793 CACHE_SLOT_STATE_ZOMBI ); 1787 1794 #if DEBUG_ICACHE 1788 if ( m_debug_ activated)1795 if ( m_debug_icache_fsm ) 1789 1796 { 1790 1797 std::cout << " <PROC " << name() … … 1810 1817 CACHE_SLOT_STATE_VALID ); 1811 1818 #if DEBUG_ICACHE 1812 if ( m_debug_ activated)1819 if ( m_debug_icache_fsm ) 1813 1820 { 1814 1821 std::cout << " <PROC " << name() … … 1905 1912 1906 1913 #if DEBUG_ICACHE 1907 if ( m_debug_ activated)1914 if ( m_debug_icache_fsm ) 1908 1915 { 1909 1916 std::cout << " <PROC " << name() … … 1946 1953 } 1947 1954 #if DEBUG_ICACHE 1948 if ( m_debug_ activated)1955 if ( m_debug_icache_fsm ) 1949 1956 { 1950 1957 std::cout << " <PROC " << name() … … 2032 2039 2033 2040 #if DEBUG_ICACHE 2034 if ( m_debug_ activated)2041 if ( m_debug_icache_fsm ) 2035 2042 { 2036 2043 std::cout << " <PROC " << name() … … 2072 2079 2073 2080 #if DEBUG_ICACHE 2074 if ( m_debug_ activated)2081 if ( m_debug_icache_fsm ) 2075 2082 { 2076 2083 std::cout << " <PROC " << name() … … 2333 2340 2334 2341 #if DEBUG_DCACHE 2335 if ( m_debug_ activated)2342 if ( m_debug_dcache_fsm ) 2336 2343 std::cout << " <PROC " << name() << " DCACHE_IDLE>" 2337 2344 << " Cache update in P1 stage" << std::dec … … 2631 2638 break; 2632 2639 2640 case iss_t::XTN_DEBUG_MASK: // debug mask 2641 m_debug_dcache_fsm = ((m_dreq.wdata & 0x1) != 0); 2642 m_debug_icache_fsm = ((m_dreq.wdata & 0x2) != 0); 2643 m_debug_cmd_fsm = ((m_dreq.wdata & 0x4) != 0); 2644 m_drsp.valid = true; 2645 r_dcache_fsm = DCACHE_IDLE; 2646 break; 2647 2633 2648 default: 2634 2649 r_mmu_detr = MMU_WRITE_UNDEFINED_XTN; … … 2688 2703 m_drsp.rdata = 0; 2689 2704 #if DEBUG_DCACHE 2690 if ( m_debug_ activated)2705 if ( m_debug_dcache_fsm ) 2691 2706 std::cout << " <PROC " << name() << " DCACHE_IDLE>" 2692 2707 << " HIT in dtlb, but privilege violation" << std::endl; … … 2704 2719 m_drsp.rdata = 0; 2705 2720 #if DEBUG_DCACHE 2706 if ( m_debug_ activated)2721 if ( m_debug_dcache_fsm ) 2707 2722 std::cout << " <PROC " << name() << " DCACHE_IDLE>" 2708 2723 << " HIT in dtlb, but writable violation" << std::endl; … … 2745 2760 r_dcache_fsm = DCACHE_MISS_SELECT; 2746 2761 #if DEBUG_DCACHE 2747 if ( m_debug_ activated)2762 if ( m_debug_dcache_fsm ) 2748 2763 std::cout << " <PROC " << name() << " DCACHE_IDLE>" 2749 2764 << " READ MISS in dcache" … … 2756 2771 r_dcache_fsm = DCACHE_IDLE; 2757 2772 #if DEBUG_DCACHE 2758 if ( m_debug_ activated)2773 if ( m_debug_dcache_fsm ) 2759 2774 std::cout << " <PROC " << name() << " DCACHE_IDLE>" 2760 2775 << " Pending cleanup, stalled until cleanup acknowledge" … … 2772 2787 m_drsp.rdata = cache_rdata; 2773 2788 #if DEBUG_DCACHE 2774 if ( m_debug_ activated)2789 if ( m_debug_dcache_fsm ) 2775 2790 std::cout << " <PROC " << name() << " DCACHE_IDLE>" 2776 2791 << " READ HIT in dcache" … … 2787 2802 r_dcache_fsm = DCACHE_UNC_WAIT; 2788 2803 #if DEBUG_DCACHE 2789 if ( m_debug_ activated)2804 if ( m_debug_dcache_fsm ) 2790 2805 std::cout << " <PROC " << name() << " DCACHE_IDLE>" 2791 2806 << " READ UNCACHEABLE in dcache" … … 2985 3000 2986 3001 #if DEBUG_DCACHE 2987 if ( m_debug_ activated)3002 if ( m_debug_dcache_fsm ) 2988 3003 { 2989 3004 if ( r_dcache_tlb_ins.read() ) … … 3055 3070 3056 3071 #if DEBUG_DCACHE 3057 if ( m_debug_ activated)3072 if ( m_debug_dcache_fsm ) 3058 3073 { 3059 3074 std::cout << " <PROC " << name() … … 3092 3107 3093 3108 #if DEBUG_DCACHE 3094 if ( m_debug_ activated)3109 if ( m_debug_dcache_fsm ) 3095 3110 { 3096 3111 std::cout << " <PROC " << name() … … 3114 3129 3115 3130 #if DEBUG_DCACHE 3116 if ( m_debug_ activated)3131 if ( m_debug_dcache_fsm ) 3117 3132 { 3118 3133 std::cout << " <PROC " << name() … … 3141 3156 3142 3157 #if DEBUG_DCACHE 3143 if ( m_debug_ activated)3158 if ( m_debug_dcache_fsm ) 3144 3159 { 3145 3160 std::cout << " <PROC " << name() … … 3182 3197 3183 3198 #if DEBUG_DCACHE 3184 if ( m_debug_ activated)3199 if ( m_debug_dcache_fsm ) 3185 3200 { 3186 3201 if ( r_dcache_tlb_ins.read() ) … … 3254 3269 3255 3270 #if DEBUG_DCACHE 3256 if ( m_debug_ activated)3271 if ( m_debug_dcache_fsm ) 3257 3272 { 3258 3273 std::cout << " <PROC " << name() … … 3278 3293 3279 3294 #if DEBUG_DCACHE 3280 if ( m_debug_ activated)3295 if ( m_debug_dcache_fsm ) 3281 3296 { 3282 3297 std::cout << " <PROC " << name() … … 3295 3310 3296 3311 #if DEBUG_DCACHE 3297 if ( m_debug_ activated)3312 if ( m_debug_dcache_fsm ) 3298 3313 { 3299 3314 std::cout << " <PROC " << name() … … 3363 3378 3364 3379 #if DEBUG_DCACHE 3365 if ( m_debug_ activated)3380 if ( m_debug_dcache_fsm ) 3366 3381 { 3367 3382 std::cout << " <PROC " << name() … … 3383 3398 3384 3399 #if DEBUG_DCACHE 3385 if ( m_debug_ activated)3400 if ( m_debug_dcache_fsm ) 3386 3401 { 3387 3402 std::cout << " <PROC " << name() … … 3399 3414 3400 3415 #if DEBUG_DCACHE 3401 if ( m_debug_ activated)3416 if ( m_debug_dcache_fsm ) 3402 3417 { 3403 3418 std::cout << " <PROC " << name() … … 3416 3431 3417 3432 #if DEBUG_DCACHE 3418 if ( m_debug_ activated)3433 if ( m_debug_dcache_fsm ) 3419 3434 { 3420 3435 std::cout << " <PROC " << name() … … 3454 3469 3455 3470 #if DEBUG_DCACHE 3456 if ( m_debug_ activated)3471 if ( m_debug_dcache_fsm ) 3457 3472 { 3458 3473 if ( r_dcache_tlb_ins.read() ) … … 3530 3545 3531 3546 #if DEBUG_DCACHE 3532 if ( m_debug_ activated)3547 if ( m_debug_dcache_fsm ) 3533 3548 { 3534 3549 std::cout << " <PROC " << name() … … 3554 3569 3555 3570 #if DEBUG_DCACHE 3556 if ( m_debug_ activated)3571 if ( m_debug_dcache_fsm ) 3557 3572 { 3558 3573 std::cout << " <PROC " << name() … … 3572 3587 3573 3588 #if DEBUG_DCACHE 3574 if ( m_debug_ activated)3589 if ( m_debug_dcache_fsm ) 3575 3590 { 3576 3591 std::cout << " <PROC " << name() … … 3585 3600 { 3586 3601 #if DEBUG_DCACHE 3587 if ( m_debug_ activated)3602 if ( m_debug_dcache_fsm ) 3588 3603 { 3589 3604 std::cout << " <PROC " << name() … … 3638 3653 { 3639 3654 #if DEBUG_DCACHE 3640 if ( m_debug_ activated)3655 if ( m_debug_dcache_fsm ) 3641 3656 { 3642 3657 std::cout << " <PROC " << name() … … 3653 3668 { 3654 3669 #if DEBUG_DCACHE 3655 if ( m_debug_ activated)3670 if ( m_debug_dcache_fsm ) 3656 3671 { 3657 3672 std::cout << " <PROC " << name() … … 3925 3940 3926 3941 #if DEBUG_DCACHE 3927 if ( m_debug_ activated)3942 if ( m_debug_dcache_fsm ) 3928 3943 { 3929 3944 std::cout << " <PROC " << name() … … 3968 3983 3969 3984 #if DEBUG_DCACHE 3970 if ( m_debug_ activated)3985 if ( m_debug_dcache_fsm ) 3971 3986 { 3972 3987 std::cout << " <PROC " << name() … … 4028 4043 4029 4044 #if DEBUG_DCACHE 4030 if ( m_debug_ activated)4045 if ( m_debug_dcache_fsm ) 4031 4046 { 4032 4047 std::cout << " <PROC " << name() … … 4124 4139 4125 4140 #if DEBUG_DCACHE 4126 if ( m_debug_ activated)4141 if ( m_debug_dcache_fsm ) 4127 4142 { 4128 4143 std::cout << " <PROC " << name() … … 4154 4169 CACHE_SLOT_STATE_ZOMBI ); 4155 4170 #if DEBUG_DCACHE 4156 if ( m_debug_ activated)4171 if ( m_debug_dcache_fsm ) 4157 4172 { 4158 4173 std::cout << " <PROC " << name() … … 4299 4314 r_vci_rsp_fifo_dcache.read() ); 4300 4315 #if DEBUG_DCACHE 4301 if ( m_debug_ activated)4316 if ( m_debug_dcache_fsm ) 4302 4317 { 4303 4318 std::cout << " <PROC " << name() … … 4377 4392 CACHE_SLOT_STATE_ZOMBI ); 4378 4393 #if DEBUG_DCACHE 4379 if ( m_debug_ activated)4394 if ( m_debug_dcache_fsm ) 4380 4395 std::cout << " <PROC " << name() 4381 4396 << " DCACHE_MISS_DIR_UPDT> Switch slot to ZOMBI state" … … 4400 4415 4401 4416 #if DEBUG_DCACHE 4402 if ( m_debug_ activated)4417 if ( m_debug_dcache_fsm ) 4403 4418 std::cout << " <PROC " << name() 4404 4419 << " DCACHE_MISS_DIR_UPDT> Switch slot to VALID state" … … 4605 4620 4606 4621 #if DEBUG_DCACHE 4607 if ( m_debug_ activated)4622 if ( m_debug_dcache_fsm ) 4608 4623 { 4609 4624 std::cout << " <PROC " << name() … … 4653 4668 4654 4669 #if DEBUG_DCACHE 4655 if ( m_debug_ activated)4670 if ( m_debug_dcache_fsm ) 4656 4671 { 4657 4672 std::cout << " <PROC " << name() … … 4701 4716 4702 4717 #if DEBUG_DCACHE 4703 if ( m_debug_ activated)4718 if ( m_debug_dcache_fsm ) 4704 4719 { 4705 4720 std::cout << " <PROC " << name() … … 4744 4759 4745 4760 #if DEBUG_DCACHE 4746 if ( m_debug_ activated)4761 if ( m_debug_dcache_fsm ) 4747 4762 { 4748 4763 std::cout << " <PROC " << name() … … 4805 4820 4806 4821 #if DEBUG_DCACHE 4807 if ( m_debug_ activated)4822 if ( m_debug_dcache_fsm ) 4808 4823 { 4809 4824 std::cout << " <PROC " << name() … … 4842 4857 4843 4858 #if DEBUG_DCACHE 4844 if ( m_debug_ activated)4859 if ( m_debug_dcache_fsm ) 4845 4860 { 4846 4861 std::cout << " <PROC " << name() … … 4868 4883 4869 4884 #if DEBUG_DCACHE 4870 if ( m_debug_ activated)4885 if ( m_debug_dcache_fsm ) 4871 4886 { 4872 4887 std::cout << " <PROC " << name() … … 4904 4919 4905 4920 #if DEBUG_DCACHE 4906 if ( m_debug_ activated)4921 if ( m_debug_dcache_fsm ) 4907 4922 { 4908 4923 std::cout << " <PROC " << name() … … 4933 4948 4934 4949 #if DEBUG_DCACHE 4935 if ( m_debug_ activated)4950 if ( m_debug_dcache_fsm ) 4936 4951 { 4937 4952 std::cout << " <PROC " << name() … … 4994 5009 4995 5010 #if DEBUG_DCACHE 4996 if ( m_debug_ activatedand ok )5011 if ( m_debug_dcache_fsm and ok ) 4997 5012 { 4998 5013 std::cout << " <PROC " << name() … … 5010 5025 5011 5026 #if DEBUG_DCACHE 5012 if ( m_debug_ activatedand ok )5027 if ( m_debug_dcache_fsm and ok ) 5013 5028 std::cout << " <PROC " << name() << " DCACHE_INVAL_TLB_SCAN>" 5014 5029 << " Invalidate DTLB entry" << std::hex … … 5215 5230 5216 5231 #if DEBUG_CMD 5217 if ( m_debug_ activated)5232 if ( m_debug_cmd_fsm ) 5218 5233 { 5219 5234 std::cout << " <PROC " << name() << " CMD_IDLE>"
Note: See TracChangeset
for help on using the changeset viewer.