Changeset 318 for branches/v5


Ignore:
Timestamp:
Mar 13, 2013, 3:12:46 PM (12 years ago)
Author:
joannou
Message:

vci_cc_vcache_wrapper_dspin_coherence now use DspinDhccpParam::* types for coherence requests type checking

File:
1 edited

Legend:

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

    r315 r318  
    53485348                uint64_t receive_data = p_dspin_in.data.read();
    53495349                // initialize coherence packet type
    5350                 uint64_t receive_type = (DspinDhccpParam::dspin_get(receive_data,DspinDhccpParam::FROM_MC_TYPE) & 0x7);
    5351                 // initialize data/ins flip_flop
     5350                uint64_t receive_type = DspinDhccpParam::dspin_get(receive_data,DspinDhccpParam::FROM_MC_TYPE);
     5351                // initialize data/ins flip_flop (0 data / 1 ins)
    53525352                r_cc_receive_data_ins = (bool)(receive_type & 0x1);
    53535353                // test for a broadcast
     
    53555355                    r_cc_receive_fsm = CC_RECEIVE_BRDCAST_HEADER;
    53565356                // test for a CLACK
    5357                 else if(receive_type & 0x4)
     5357                else if(receive_type == DspinDhccpParam::TYPE_CLEANUP_ACK)
    53585358                    r_cc_receive_fsm = CC_RECEIVE_CLACK;
    53595359                // test for a multi updt
    5360                 else if(receive_type & 0x2)
     5360                else if(receive_type == DspinDhccpParam::TYPE_MULTI_UPDT)
    53615361                    r_cc_receive_fsm = CC_RECEIVE_UPDT_HEADER;
    53625362                // test for a multi inval
     
    58335833            DspinDhccpParam::dspin_set(dspin_send_data,1,DspinDhccpParam::FROM_L1_EOP);
    58345834            DspinDhccpParam::dspin_set(dspin_send_data,0,DspinDhccpParam::FROM_L1_BC);
     5835            DspinDhccpParam::dspin_set(dspin_send_data,
     5836                DspinDhccpParam::TYPE_MULTI_ACK,
     5837                DspinDhccpParam::FROM_L1_TYPE);
    58355838            // dcache active request
    58365839            if(r_cc_send_last_client.read() == 0)
Note: See TracChangeset for help on using the changeset viewer.