Changeset 444


Ignore:
Timestamp:
Jul 17, 2013, 2:46:46 PM (11 years ago)
Author:
cfuguet
Message:

Modifications in branches/v5/modules/vci_cc_vcache_wrapper:

  • Renaming FROM_MC DSPIN flits fields in M2P
  • Renaming FROM_L1 DSPIN flits fields in P2M
  • Renaming CLEANUP_ACK DSPIN flits fields in CLACK
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/v5/modules/vci_cc_vcache_wrapper/caba/source/src/vci_cc_vcache_wrapper.cpp

    r443 r444  
    54515451                // initialize coherence packet type
    54525452                uint64_t receive_type = DspinDhccpParam::dspin_get(receive_data,
    5453                                             DspinDhccpParam::FROM_MC_TYPE);
     5453                                            DspinDhccpParam::M2P_TYPE);
    54545454                // initialize data/ins flip_flop (0 data / 1 ins)
    54555455                r_cc_receive_data_ins = (bool)(receive_type & 0x1);
    54565456                // test for a broadcast
    5457                 if (DspinDhccpParam::dspin_get(receive_data,DspinDhccpParam::FROM_MC_BC))
     5457                if (DspinDhccpParam::dspin_get(receive_data,DspinDhccpParam::M2P_BC))
    54585458                {
    54595459                    r_cc_receive_fsm = CC_RECEIVE_BRDCAST_HEADER;
    54605460                }
    54615461                // test for a CLACK
    5462                 else if ((receive_type == DspinDhccpParam::TYPE_CLEANUP_ACK_DATA) or
    5463                          (receive_type == DspinDhccpParam::TYPE_CLEANUP_ACK_INST))
     5462                else if ((receive_type == DspinDhccpParam::TYPE_CLACK_DATA) or
     5463                         (receive_type == DspinDhccpParam::TYPE_CLACK_INST))
    54645464                {
    54655465                    r_cc_receive_fsm = CC_RECEIVE_CLACK;
     
    54925492                r_cc_receive_dcache_req  = true;
    54935493                r_cc_receive_dcache_set  = DspinDhccpParam::dspin_get(receive_data,
    5494                                            DspinDhccpParam::CLEANUP_ACK_SET) &
     5494                                           DspinDhccpParam::CLACK_SET) &
    54955495                                           ((1ULL<<(uint32_log2(m_dcache_sets)))-1);
    54965496                r_cc_receive_dcache_way  = DspinDhccpParam::dspin_get(receive_data,
    5497                                            DspinDhccpParam::CLEANUP_ACK_WAY) &
     5497                                           DspinDhccpParam::CLACK_WAY) &
    54985498                                           ((1ULL<<(uint32_log2(m_dcache_ways)))-1);
    54995499                r_cc_receive_dcache_type = CC_TYPE_CLACK;
     
    55095509                r_cc_receive_icache_req  = true;
    55105510                r_cc_receive_icache_set  = DspinDhccpParam::dspin_get(receive_data,
    5511                                            DspinDhccpParam::CLEANUP_ACK_SET) &
     5511                                           DspinDhccpParam::CLACK_SET) &
    55125512                                           ((1ULL<<(uint32_log2(m_icache_sets)))-1);
    55135513                r_cc_receive_icache_way  = DspinDhccpParam::dspin_get(receive_data,
    5514                                            DspinDhccpParam::CLEANUP_ACK_WAY) &
     5514                                           DspinDhccpParam::CLACK_WAY) &
    55155515                                           ((1ULL<<(uint32_log2(m_icache_ways)))-1);
    55165516                r_cc_receive_icache_type = CC_TYPE_CLACK;
     
    59065906//            DspinDhccpParam::dspin_set(dspin_send_data,
    59075907//                                       0,
    5908 //                                       DspinDhccpParam::FROM_L1_EOP);
     5908//                                       DspinDhccpParam::P2M_EOP);
    59095909            DspinDhccpParam::dspin_set(dspin_send_data,
    59105910                                       m_cc_global_id,
     
    59125912            DspinDhccpParam::dspin_set(dspin_send_data,
    59135913                                       0,
    5914                                        DspinDhccpParam::FROM_L1_BC);
     5914                                       DspinDhccpParam::P2M_BC);
    59155915
    59165916            if(r_cc_send_last_client.read() == 0) // dcache active request
     
    59345934                DspinDhccpParam::dspin_set(dspin_send_data,
    59355935                                           DspinDhccpParam::TYPE_CLEANUP_DATA,
    5936                                            DspinDhccpParam::FROM_L1_TYPE);
     5936                                           DspinDhccpParam::P2M_TYPE);
    59375937            }
    59385938            else                                // icache active request
     
    59565956                DspinDhccpParam::dspin_set(dspin_send_data,
    59575957                                           DspinDhccpParam::TYPE_CLEANUP_INST,
    5958                                            DspinDhccpParam::FROM_L1_TYPE);
     5958                                           DspinDhccpParam::P2M_TYPE);
    59595959            }
    59605960            // send flit
     
    59705970//            DspinDhccpParam::dspin_set(dspin_send_data,
    59715971//                                       1,
    5972 //                                       DspinDhccpParam::FROM_L1_EOP);
     5972//                                       DspinDhccpParam::P2M_EOP);
    59735973
    59745974            if(r_cc_send_last_client.read() == 0) // dcache active request
     
    59965996//            DspinDhccpParam::dspin_set(dspin_send_data,
    59975997//                                       1,
    5998 //                                       DspinDhccpParam::FROM_L1_EOP);
     5998//                                       DspinDhccpParam::P2M_EOP);
    59995999            DspinDhccpParam::dspin_set(dspin_send_data,
    60006000                                       0,
    6001                                        DspinDhccpParam::FROM_L1_BC);
     6001                                       DspinDhccpParam::P2M_BC);
    60026002            DspinDhccpParam::dspin_set(dspin_send_data,
    60036003                                       DspinDhccpParam::TYPE_MULTI_ACK,
    6004                                        DspinDhccpParam::FROM_L1_TYPE);
     6004                                       DspinDhccpParam::P2M_TYPE);
    60056005
    60066006            if(r_cc_send_last_client.read() == 0) // dcache active request
Note: See TracChangeset for help on using the changeset viewer.