Changeset 675 for branches/MESI


Ignore:
Timestamp:
Apr 11, 2014, 3:09:22 PM (10 years ago)
Author:
haoliu
Message:

MESI bug fixed

Location:
branches/MESI/modules
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/MESI/modules/vci_cc_vcache_wrapper/caba/source/include/vci_cc_vcache_wrapper.h

    r670 r675  
    133133        DCACHE_MISS_DATA_UPDT,
    134134        DCACHE_MISS_DIR_UPDT,
     135        DCACHE_MISS_BACKOFF,
    135136        // handling processor unc, ll and sc requests
    136137        DCACHE_UNC_WAIT,
     
    470471    sc_signal<bool>         r_dcache_miss_updt;         //  cc updt request matching a miss
    471472    sc_signal<bool>         r_dcache_miss_clack;        // waiting for a cleanup acknowledge
     473
     474
     475    sc_signal<size_t>       r_dcache_count_backoff;             // selected set for cache update
     476    sc_signal<size_t>       r_dcache_count_begin;               // selected set for cache update
    472477
    473478    // handling coherence requests
     
    620625    sc_signal<size_t>       r_cc_receive_dcache_srcid;            // cc_receive to dcache set
    621626    sc_signal<size_t>       r_cc_receive_brdcast;                 // is brdcast
     627    sc_signal<bool>         r_cc_receive_dcache_is_shared;        // the line state in memcache
    622628
    623629    ///////////////////////////////////
  • branches/MESI/modules/vci_cc_vcache_wrapper/caba/source/src/vci_cc_vcache_wrapper.cpp

    r674 r675  
    106106        "DCACHE_MISS_DATA_UPDT",
    107107        "DCACHE_MISS_DIR_UPDT",
     108        "DCACHE_MISS_BACKOFF",
    108109
    109110        "DCACHE_UNC_WAIT",
     
    385386      r_vci_rsp_data_error("r_vci_rsp_data_error"),
    386387      r_vci_rsp_fifo_icache("r_vci_rsp_fifo_icache", 2),        // 2 words depth
    387       r_vci_rsp_fifo_dcache("r_vci_rsp_fifo_dcache", 2),        // 2 words depth
     388      r_vci_rsp_fifo_dcache("r_vci_rsp_fifo_dcache", 16),       // 2 words depth
    388389//      r_vci_rsp_fifo_rpktid("r_vci_rsp_fifo_rpktid", 2),    // 2 words depth
    389390      r_cc_send_data_fifo("r_cc_send_data_fifo", 16),
     
    872873        r_dcache_xtn_flush_data_cpt = 0;
    873874        r_dcache_cc_inval_data_cpt = 0;
     875        r_dcache_count_backoff = 0;
     876        r_dcache_count_begin = 0;
    874877
    875878        r_dcache_cleanup_victim_req = false;
     
    22952298        {
    22962299
     2300//#if 1
     2301//            // @@@ DO NOT COMMIT: ALMOS KILLING SIMU PURPOSE
     2302//            if (m_dreq.addr == 0x0 && m_dreq.wdata == 0xDEADDEAD) {
     2303//                std::cout << "*** Ecriture à l'adresse 0 pour fin de simulation ***" << std::endl;
     2304//                raise(SIGINT);
     2305//            }
     2306//#endif
     2307
    22972308            if ( r_mmu_mode.read() & DATA_TLB_MASK )  // DTLB activated
    22982309            {
     
    24392450        }
    24402451        // coherence request (from CC_RECEIVE FSM)
    2441         else if ( r_cc_receive_dcache_req.read() and not r_dcache_cc_send_req.read() and not r_dcache_miss_updt.read())
     2452        else if ( r_cc_receive_dcache_req.read() and not r_dcache_cc_send_req.read())
    24422453        {
    24432454            r_dcache_fsm = DCACHE_CC_CHECK;
     
    24492460        else if ( m_dreq.valid )
    24502461        {
    2451             r_dcache_miss_updt = false;
    24522462            // register processor request and DCACHE response
    24532463            r_dcache_save_vaddr      = m_dreq.addr;
     
    31213131
    31223132        // coherence request (from CC_RECEIVE FSM)
    3123         if ( r_cc_receive_dcache_req.read() and not r_dcache_cc_send_req.read() and not r_dcache_miss_updt.read())
     3133        if ( r_cc_receive_dcache_req.read() and not r_dcache_cc_send_req.read())
    31243134        {
    31253135            r_dcache_fsm = DCACHE_CC_CHECK;
     
    31283138        }
    31293139
    3130         r_dcache_miss_updt = false;
    31313140        uint32_t        entry;
    31323141        size_t          way;
     
    34373446
    34383447        // coherence request (from CC_RECEIVE FSM)
    3439         if ( r_cc_receive_dcache_req.read() and not r_dcache_cc_send_req.read() and not r_dcache_miss_updt.read())
     3448        if ( r_cc_receive_dcache_req.read() and not r_dcache_cc_send_req.read())
    34403449        {
    34413450            r_dcache_fsm = DCACHE_CC_CHECK;
     
    34443453        }
    34453454       
    3446         r_dcache_miss_updt = false;
    34473455        uint32_t        pte_flags     = 0;
    34483456        uint32_t        pte_ppn       = 0;
     
    47474755
    47484756        // coherence request (from CC_RECEIVE FSM)
    4749         if ( r_cc_receive_dcache_req.read() and not r_dcache_cc_send_req.read() and not r_dcache_cleanup_victim_req.read() and not r_dcache_miss_updt.read())
     4757        if ( r_cc_receive_dcache_req.read() and not r_dcache_cc_send_req.read() and not r_dcache_cleanup_victim_req.read() and not r_dcache_miss_inval.read() and not r_dcache_miss_updt.read())
    47504758        {
    47514759            r_dcache_fsm = DCACHE_CC_CHECK;
     
    47544762        }
    47554763
    4756         if ( not r_dcache_miss_clack.read() )  // waiting cleanup acknowledge
     4764        if ( not r_dcache_miss_clack.read() and not r_dcache_cc_send_req.read())  // waiting cleanup acknowledge
    47574765        {
    47584766            if ( r_dcache_miss_inval.read() ) // switch slot to ZOMBI state, and new cleanup
    47594767            {
    4760                 if ( not r_dcache_cc_send_req.read() ) // blocked until previous request sent
    4761                 {
    4762                     r_dcache_miss_inval         = false;
    4763                     // request cleanup
    4764                     r_dcache_cc_send_req        = true;
    4765                     r_dcache_cc_send_nline      = r_dcache_save_paddr.read()/(m_dcache_words<<2);
    4766                     r_dcache_cc_send_way        = r_dcache_miss_way.read();
    4767                     r_dcache_cc_send_type       = CC_TYPE_CLEANUP;
    4768                     r_dcache_cc_line_dirty      = false;   // in case of miss inval, the cleanup is not with data.
    4769                     r_dcache_cc_line_no_shared  = r_dcache_rsp_state.read(); // the miss read rsp contents the state of this line
     4768                r_dcache_miss_inval         = false;
     4769                // request cleanup
     4770                r_dcache_cc_send_req        = true;
     4771                r_dcache_cc_send_nline      = r_dcache_save_paddr.read()/(m_dcache_words<<2);
     4772                r_dcache_cc_send_way        = r_dcache_miss_way.read();
     4773                r_dcache_cc_send_type       = CC_TYPE_CLEANUP;
     4774                r_dcache_cc_line_dirty      = false;   // in case of miss inval, the cleanup is not with data.
     4775                r_dcache_cc_line_no_shared  = r_dcache_rsp_state.read(); // the miss read rsp contents the state of this line
    47704776
    47714777#ifdef INSTRUMENTATION
    47724778m_cpt_dcache_dir_write++;
    47734779#endif
    4774                     r_dcache.write_dir( r_dcache_save_paddr.read(),
    4775                                         r_dcache_miss_way.read(),
    4776                                         r_dcache_miss_set.read(),
    4777                                         CACHE_SLOT_STATE_ZOMBI );
     4780                r_dcache.write_dir( r_dcache_save_paddr.read(),
     4781                                    r_dcache_miss_way.read(),
     4782                                    r_dcache_miss_set.read(),
     4783                                    CACHE_SLOT_STATE_ZOMBI );
     4784
    47784785#if DEBUG_DCACHE
    47794786if ( m_debug_activated )
     
    47844791          << " / SET = "   << r_dcache_miss_set.read() << std::endl;
    47854792#endif
     4793
     4794                if( not r_dcache_miss_updt.read())
     4795                {
     4796                    r_dcache_fsm                = DCACHE_MISS_BACKOFF;
     4797                    r_dcache_count_backoff      = r_dcache_count_backoff.read() + 1;
     4798                    r_dcache_count_begin        = 0;                   
    47864799                }
    4787                 else
    4788                     break;
     4800                break;
     4801            }
     4802            else if( r_dcache_miss_updt.read())
     4803            {
     4804                r_dcache_miss_updt              = false;
     4805                r_cc_receive_dcache_req         = false;
     4806                r_dcache_cc_send_req            = true;
     4807                r_dcache_cc_send_multi_ack_miss = true;
     4808                r_dcache_cc_send_nline          = r_cc_receive_dcache_nline.read();
     4809                r_dcache_cc_send_updt_tab_idx   = r_cc_receive_dcache_updt_tab_idx.read();
     4810                r_dcache_cc_send_type           = CC_TYPE_MULTI_ACK;
     4811
     4812                r_dcache_fsm                    = DCACHE_MISS_BACKOFF;
     4813                r_dcache_count_backoff          = r_dcache_count_backoff.read() + 1;
     4814                r_dcache_count_begin            = 0;   
    47894815            }
    47904816            else                              // switch slot to VALID state
     
    47944820m_cpt_dcache_dir_write++;
    47954821#endif
    4796 
     4822                r_dcache_count_backoff  = 0;
    47974823                size_t way = r_dcache_miss_way.read();
    47984824                size_t set = r_dcache_miss_set.read();
     
    48224848#endif
    48234849                // reset directory extension
    4824 
    4825             }
     4850               if      (r_dcache_miss_type.read()==PTE1_MISS) r_dcache_fsm = DCACHE_TLB_PTE1_GET;
     4851               else if (r_dcache_miss_type.read()==PTE2_MISS) r_dcache_fsm = DCACHE_TLB_PTE2_GET;
     4852               else                                           r_dcache_fsm = DCACHE_IDLE;
     4853            }
     4854        }
     4855        break;
     4856    }
     4857    /////////////////////
     4858    case DCACHE_MISS_BACKOFF:
     4859    {
     4860        size_t count_max = r_dcache_count_backoff.read() << 4;
     4861        r_dcache_count_begin = r_dcache_count_begin.read() + 1;
     4862        if(r_dcache_count_begin.read() == count_max)
     4863        {
    48264864            if      (r_dcache_miss_type.read()==PTE1_MISS) r_dcache_fsm = DCACHE_TLB_PTE1_GET;
    48274865            else if (r_dcache_miss_type.read()==PTE2_MISS) r_dcache_fsm = DCACHE_TLB_PTE2_GET;
    48284866            else                                           r_dcache_fsm = DCACHE_IDLE;
    48294867        }
    4830         break;
    4831     }
     4868        break;
     4869#if DEBUG_DCACHE
     4870if ( m_debug_activated )
     4871std::cout << "  <PROC " << name()
     4872          << " DCACHE_MISS_BACKOFF> operation back off"
     4873          << std::endl;
     4874#endif
     4875 
     4876    }
     4877
    48324878    /////////////////////
    48334879    case DCACHE_UNC_WAIT:  // waiting a response to an uncacheable read
     
    52455291        {
    52465292
    5247             if(r_cc_receive_dcache_type.read() == CC_TYPE_BRDCAST and r_dcache_read_for_modify.read() and
    5248                r_cc_receive_dcache_srcid.read() == m_srcid and (r_dcache_miss_type.read() == PROC_MISS))
    5249             {
     5293            if(r_dcache_read_for_modify.read() and(r_dcache_miss_type.read() == PROC_MISS) and (r_cc_receive_dcache_type.read() != CC_TYPE_UPDT) and (state == CACHE_SLOT_STATE_SHARED))
     5294            {
     5295                r_dcache_fsm = DCACHE_CC_INVAL;
     5296            }
     5297            else if(r_cc_receive_dcache_type.read() == CC_TYPE_UPDT)
     5298            {
     5299                r_dcache_fsm                    = r_dcache_fsm_cc_save.read();
     5300                r_dcache_miss_updt              = true;
     5301                r_dcache_miss_inval             = true;
     5302            }
     5303            else
     5304            {
     5305                r_dcache_miss_inval     = true;
    52505306                r_cc_receive_dcache_req = false;
    52515307                r_dcache_fsm            = r_dcache_fsm_cc_save.read();
    5252             }
    5253             else if(r_cc_receive_dcache_type.read() == CC_TYPE_BRDCAST and
    5254                     r_dcache_read_for_modify.read() and
    5255                     r_cc_receive_dcache_srcid.read() != m_srcid and
    5256                     (r_dcache_miss_type.read() == PROC_MISS) and
    5257                     (state == CACHE_SLOT_STATE_SHARED))
    5258             {
    5259                 r_dcache_fsm        = DCACHE_CC_INVAL;
    5260             }
    5261             else if(r_cc_receive_dcache_type.read() == CC_TYPE_INVAL and r_dcache_read_for_modify.read() and
    5262                     (r_dcache_miss_type.read() == PROC_MISS) and
    5263                     (state == CACHE_SLOT_STATE_SHARED))
    5264             {
    5265                 r_dcache_fsm        = DCACHE_CC_INVAL;
    5266             }
    5267             else
    5268             {
    5269                 r_dcache_miss_inval = false;
    5270                 r_dcache_miss_updt  = true;
    5271                 r_dcache_fsm        = r_dcache_fsm_cc_save.read();
    52725308            }
    52735309            // signaling matching
     
    56225658    } // end switch r_dcache_fsm
    56235659
    5624 //if(r_dcache_miss_updt.read())
    5625 //std::cout << "  <PROC " << name()
    5626 //          << " miss updt " << r_dcache_miss_updt.read() << std::endl;
    5627 
    5628 //std::cout << "  <PROC " << name()
    5629 //          << " get cache state " << r_dcache.get_cache_state(2,0) << std::endl;
    5630 
    56315660    ///////////////// llsc update ///////////////////////////////////////////////////////
    56325661    if (r_dcache_llsc_valid.read()) r_dcache_llsc_count = r_dcache_llsc_count.read() - 1;
     
    62676296                r_cc_receive_dcache_srcid = DspinDhccpParam::dspin_get(receive_data,
    62686297                                            DspinDhccpParam::BROADCAST_SRCID);
     6298
     6299                r_cc_receive_dcache_inval_is_config = DspinDhccpParam::dspin_get(receive_data,
     6300                                                      DspinDhccpParam::BRDCAST_IS_CONFIG);
     6301
     6302                r_cc_receive_dcache_is_shared = DspinDhccpParam::dspin_get(receive_data,
     6303                                            DspinDhccpParam::BRDCAST_IS_SHARED);
     6304
    62696305                r_cc_receive_fsm          = CC_RECEIVE_BRDCAST_NLINE;
    62706306            }
     
    63166352                r_cc_receive_dcache_inval_is_config = DspinDhccpParam::dspin_get(receive_data,
    63176353                                                      DspinDhccpParam::MULTI_INVAL_IS_CONFIG);
     6354
     6355                r_cc_receive_dcache_is_shared = DspinDhccpParam::dspin_get(receive_data,
     6356                                            DspinDhccpParam::MULTI_INVAL_IS_SHARED);
    63186357            }
    63196358            break;
  • branches/MESI/modules/vci_mem_cache/caba/source/include/vci_mem_cache.h

    r670 r675  
    850850      sc_signal<bool>     r_read_to_cc_send_brdcast_req;    // bd inval
    851851      sc_signal<bool>     r_read_to_cc_send_type;    //cc inval or cc updt     
     852      sc_signal<bool>     r_read_to_cc_send_is_shared;    //line is or not shared     
    852853
    853854      //RWT: Buffer between READ fsm and CLEANUP fsm (wait for the data coming from L1 cache)
     
    10391040      sc_signal<size_t>   r_cleanup_to_tgt_rsp_pktid; // transaction pktid
    10401041      sc_signal<addr_t>   r_cleanup_to_tgt_rsp_ll_key;
     1042      sc_signal<addr_t>   r_cleanup_to_tgt_rsp_nline;
    10411043
    10421044      sc_signal<bool>     r_cleanup_to_tgt_rsp_type;
  • branches/MESI/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp

    r674 r675  
    31953195                        bool last_multi_req     = multi_req and (r_read_count.read() == 1);
    31963196                        bool not_last_multi_req = multi_req and (r_read_count.read() != 1);
    3197                         bool match_send         = (r_read_copy.read() == m_cmd_read_srcid_fifo.read()) and
    3198                                                   (r_read_copy_inst.read() == 0);
    3199 
    3200                         if(last_multi_req and match_send)
    3201                         {
    3202                             std::cout << "last_multi_req and match srcid are true" << std::endl;
    3203                             exit(0);
    3204                         }
     3197                        //bool match_send         = (r_read_copy.read() == m_cmd_read_srcid_fifo.read()) and
     3198                        //                          (r_read_copy_inst.read() == 0);
     3199
    32053200                        size_t ivt_send_count   = 0;
    32063201
     
    32403235                            r_read_to_cc_send_nline         = nline;
    32413236                            r_read_to_cc_send_srcid         = m_cmd_read_srcid_fifo.read();
     3237                            r_read_to_cc_send_is_shared     = r_read_state.read() == ENTRY_SHARED;
     3238
    32423239                            if(r_read_need_block.read())
    32433240                            {
     
    32483245                                r_read_to_cleanup_req           = true;
    32493246                            }
    3250                             r_read_to_cc_send_type          = true;
    3251 
    3252                             if(not match_send)
    3253                             {
    3254                                 read_to_cc_send_fifo_srcid      = r_read_copy.read();
    3255                                 read_to_cc_send_fifo_inst       = r_read_copy_inst.read();
    3256                                 read_to_cc_send_fifo_put        = multi_req;
    3257                             }   
     3247                            r_read_to_cc_send_type              = true; //CC_INVAL
     3248
     3249                         //   if(not match_send)
     3250                         //   {
     3251                            read_to_cc_send_fifo_srcid      = r_read_copy.read();
     3252                            read_to_cc_send_fifo_inst       = r_read_copy_inst.read();
     3253                            read_to_cc_send_fifo_put        = multi_req;
     3254                         //   }   
    32583255                            r_read_next_ptr                 = r_read_ptr.read();
    32593256
    3260                             if(((m_cmd_read_pktid_fifo.read() & 0x8) == 0x8) and (r_read_state.read() == ENTRY_SHARED)) 
    3261                                 ivt_send_count = r_read_count.read() - 1;
    3262                             else
    3263                                 ivt_send_count = r_read_count.read();
     3257                          //  if(((m_cmd_read_pktid_fifo.read() & 0x8) == 0x8) and (r_read_state.read() == ENTRY_SHARED)) 
     3258                          //      ivt_send_count = r_read_count.read() - 1;
     3259                          //  else
     3260                          //      ivt_send_count = r_read_count.read();
     3261                         
    32643262                            m_ivt.set(false,            // it's an inval transaction
    32653263                                      not multi_req,    // multi_inval or brdcast 
     
    32703268                                      m_cmd_read_pktid_fifo.read() & 0x7,
    32713269                                      nline,
    3272                                       ivt_send_count,
     3270                                      r_read_count.read(),
    32733271                                      index);
    32743272                               
     
    33183316                        HeapEntry entry = m_heap.read(r_read_next_ptr.read());
    33193317
    3320                         bool match_send         = ( entry.owner.srcid == m_cmd_read_srcid_fifo.read()) and
    3321                                                   ( entry.owner.inst  == 0);
    3322                         if(not match_send)
    3323                         {
    3324                             read_to_cc_send_fifo_srcid    = entry.owner.srcid;
    3325                             read_to_cc_send_fifo_inst     = entry.owner.inst;
    3326                             read_to_cc_send_fifo_put      = true;
    3327                         }
     3318                       // bool match_send         = ( entry.owner.srcid == m_cmd_read_srcid_fifo.read()) and
     3319                       //                           ( entry.owner.inst  == 0);
     3320                       // if(not match_send)
     3321                       // {
     3322                        read_to_cc_send_fifo_srcid    = entry.owner.srcid;
     3323                        read_to_cc_send_fifo_inst     = entry.owner.inst;
     3324                        read_to_cc_send_fifo_put      = true;
     3325                       // }
    33283326                     //   if(read_to_cc_send_inst_fifo.wok()) always not full
    33293327                        r_read_next_ptr = entry.next;
     
    34353433                            r_read_to_cc_send_brdcast_req   = false;
    34363434                            r_read_to_cc_send_nline         = nline;
    3437                             r_read_to_cc_send_type          = false;
     3435                            r_read_to_cc_send_type          = false;  //CC_UPDT
    34383436           
    34393437                            read_to_cc_send_fifo_srcid      = r_read_copy.read();
     
    67816779                    r_cleanup_to_tgt_rsp_srcid   = r_cleanup_locked_srcid.read();
    67826780                    r_cleanup_to_tgt_rsp_trdid   = r_cleanup_locked_trdid.read();
     6781                    r_cleanup_to_tgt_rsp_nline   = r_cleanup_nline.read();
    67836782                   
    67846783                    r_cleanup_to_tgt_rsp_pktid   = 0x8 + r_cleanup_locked_pktid.read(); // there is not a brdcast for cas operation. in cache L1, the line can be in M state
     
    82798278            case CC_SEND_CONFIG_IDLE:    // XRAM_RSP FSM has highest priority
    82808279                {
     8280                    bool cc_send_updt_delay = not r_read_to_cc_send_type.read() and r_tgt_rsp_fsm.read() == TGT_RSP_CLEANUP and
     8281                                              r_read_to_cc_send_nline.read() == r_cleanup_to_tgt_rsp_nline.read() and
     8282                                              m_read_to_cc_send_srcid_fifo.read() == r_cleanup_to_tgt_rsp_srcid.read();
    82818283                    // XRAM_RSP
    82828284                    if(m_xram_rsp_to_cc_send_inst_fifo.rok() or
     
    83058307
    83068308                    // READ
    8307                     if(m_read_to_cc_send_inst_fifo.rok() or
    8308                             r_read_to_cc_send_multi_req.read())
     8309                    if((m_read_to_cc_send_inst_fifo.rok() or
     8310                            r_read_to_cc_send_multi_req.read()) and not cc_send_updt_delay)
    83098311                    {
    83108312                        r_cc_send_fsm = CC_SEND_READ_MULTI_HEADER;
     
    83518353            case CC_SEND_WRITE_IDLE:     // CONFIG FSM has highest priority
    83528354                {
     8355                    bool cc_send_updt_delay = not r_read_to_cc_send_type.read() and r_tgt_rsp_fsm.read() == TGT_RSP_CLEANUP and
     8356                                              r_read_to_cc_send_nline.read() == r_cleanup_to_tgt_rsp_nline.read() and
     8357                                              m_read_to_cc_send_srcid_fifo.read() == r_cleanup_to_tgt_rsp_srcid.read();
    83538358                    // CONFIG
    83548359                    if(r_config_to_cc_send_multi_req.read())
     
    83878392                    }
    83888393                    // READ
    8389                     if(m_read_to_cc_send_inst_fifo.rok() or
    8390                             r_read_to_cc_send_multi_req.read())
     8394                    if((m_read_to_cc_send_inst_fifo.rok() or
     8395                            r_read_to_cc_send_multi_req.read()) and not cc_send_updt_delay)
    83918396                    {
    83928397                        r_cc_send_fsm = CC_SEND_READ_MULTI_HEADER;
     
    84208425            case CC_SEND_XRAM_RSP_IDLE:   // CAS FSM has highest priority
    84218426                {
     8427                    bool cc_send_updt_delay = not r_read_to_cc_send_type.read() and r_tgt_rsp_fsm.read() == TGT_RSP_CLEANUP and
     8428                                              r_read_to_cc_send_nline.read() == r_cleanup_to_tgt_rsp_nline.read() and
     8429                                              m_read_to_cc_send_srcid_fifo.read() == r_cleanup_to_tgt_rsp_srcid.read();
    84228430                    // CAS
    84238431                    if(m_cas_to_cc_send_inst_fifo.rok() or
     
    84338441                    }
    84348442                    // READ
    8435                     if(m_read_to_cc_send_inst_fifo.rok() or
    8436                             r_read_to_cc_send_multi_req.read())
     8443                    if((m_read_to_cc_send_inst_fifo.rok() or
     8444                            r_read_to_cc_send_multi_req.read()) and not cc_send_updt_delay)
    84378445                    {
    84388446                        r_cc_send_fsm = CC_SEND_READ_MULTI_HEADER;
     
    84848492            case CC_SEND_CAS_IDLE:   // CLEANUP FSM has highest priority
    84858493                {
     8494                    bool cc_send_updt_delay = not r_read_to_cc_send_type.read() and r_tgt_rsp_fsm.read() == TGT_RSP_CLEANUP and
     8495                                              r_read_to_cc_send_nline.read() == r_cleanup_to_tgt_rsp_nline.read() and
     8496                                              m_read_to_cc_send_srcid_fifo.read() == r_cleanup_to_tgt_rsp_srcid.read();
    84868497                    // READ
    8487                     if(m_read_to_cc_send_inst_fifo.rok() or
    8488                             r_read_to_cc_send_multi_req.read())
     8498                    if((m_read_to_cc_send_inst_fifo.rok() or
     8499                            r_read_to_cc_send_multi_req.read()) and not cc_send_updt_delay)
    84898500                    {
    84908501                        r_cc_send_fsm = CC_SEND_READ_MULTI_HEADER;
     
    85488559            case CC_SEND_READ_IDLE:    // WRITE FSM has highest priority 
    85498560                {
     8561                    bool cc_send_updt_delay = not r_read_to_cc_send_type.read() and r_tgt_rsp_fsm.read() == TGT_RSP_CLEANUP and
     8562                                              r_read_to_cc_send_nline.read() == r_cleanup_to_tgt_rsp_nline.read() and
     8563                                              m_read_to_cc_send_srcid_fifo.read() == r_cleanup_to_tgt_rsp_srcid.read();
    85508564                    //WRITE
    85518565                    if(m_write_to_cc_send_inst_fifo.rok() or
     
    85968610                    }
    85978611                    // READ
    8598                     if(m_read_to_cc_send_inst_fifo.rok() or
    8599                             r_read_to_cc_send_multi_req.read())
     8612                    if((m_read_to_cc_send_inst_fifo.rok() or
     8613                            r_read_to_cc_send_multi_req.read()) and not cc_send_updt_delay)
    86008614                    {
    86018615                        r_cc_send_fsm = CC_SEND_READ_MULTI_HEADER;
     
    86138627            case CC_SEND_CONFIG_INVAL_HEADER:   // send first flit multi-inval (from CONFIG FSM)
    86148628                {
     8629
    86158630                    if(m_config_to_cc_send_inst_fifo.rok())
    86168631                    {
     
    1149911514                    DspinDhccpParam::dspin_set( flit,
    1150011515                            1,
    11501                             DspinDhccpParam::MULTI_INVAL_IS_CONFIG);
     11516                            DspinDhccpParam::BRDCAST_IS_CONFIG);
    1150211517
    1150311518                    DspinDhccpParam::dspin_set( flit,
     
    1154611561                            r_read_to_cc_send_srcid.read(),    // send the srcid itself which demands the request getM
    1154711562                            DspinDhccpParam::BROADCAST_SRCID);
     11563
     11564                    DspinDhccpParam::dspin_set( flit,
     11565                            r_read_to_cc_send_is_shared.read(),    // send the actuel line state in memcache
     11566                            DspinDhccpParam::BRDCAST_IS_SHARED);
    1154811567
    1154911568                    DspinDhccpParam::dspin_set( flit,
     
    1161811637                    DspinDhccpParam::dspin_set(
    1161911638                            flit,
    11620                             r_read_to_cc_send_srcid.read(),
    11621                             DspinDhccpParam::MULTI_INVAL_SRCID);
     11639                            r_read_to_cc_send_is_shared.read(),
     11640                            DspinDhccpParam::MULTI_INVAL_IS_SHARED);
    1162211641
    1162311642                    if(r_read_to_cc_send_type.read())
Note: See TracChangeset for help on using the changeset viewer.