Changeset 3 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src
- Timestamp:
- Mar 6, 2007, 3:34:04 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src/Two_Level_Branch_Predictor_Glue.cpp
r2 r3 47 47 _vhdl_testbench = new Vhdl_Testbench (_name); 48 48 vhdl_testbench_port (); 49 _vhdl_testbench->set_clock ("in_CLOCK", true);49 _vhdl_testbench->set_clock ("in_CLOCK",false); 50 50 #endif 51 51 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src/Two_Level_Branch_Predictor_Glue_genMealy_branch_complete_pht_address.cpp
r2 r3 26 26 { 27 27 // Address 28 Taddress_t address = PORT_READ(in_BRANCH_COMPLETE_ADDRESS [i]);28 Taddress_t address = PORT_READ(in_BRANCH_COMPLETE_ADDRESS [i]); 29 29 Tbht_history_t history = 0; 30 30 … … 34 34 address = address << _param._pht_size_address_shift; 35 35 } 36 37 Taddress_t pht_address = (history ^ address) & gen_mask<Taddress_t>(_param._pht_size_address); 38 39 log_printf(TRACE,Two_Level_Branch_Predictor_Glue,"genMealy_branch_complete_address","out_BRANCH_COMPLETE_PHT_ADDRESS [%d]= %.8x xor %.8x<<%d = %.8x",i,history,PORT_READ(in_BRANCH_COMPLETE_ADDRESS [i]),_param._pht_size_address_shift, pht_address); 36 40 37 PORT_WRITE (out_BRANCH_COMPLETE_PHT_ADDRESS [i], (history xor address) & gen_mask<Taddress_t>(_param._pht_size_address));41 PORT_WRITE (out_BRANCH_COMPLETE_PHT_ADDRESS [i], pht_address); 38 42 } 39 43 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src/Two_Level_Branch_Predictor_Glue_genMealy_predict_bht_address.cpp
r2 r3 26 26 { 27 27 // Address 28 Taddress_t address = PORT_READ(in_PREDICT_ADDRESS [i]); 28 Taddress_t address = PORT_READ(in_PREDICT_ADDRESS [i]); 29 Taddress_t bht_address = range<Taddress_t>(_param._size_address, address, _param._bht_size_address); 29 30 30 PORT_WRITE (out_PREDICT_BHT_ADDRESS [i], range<Taddress_t>(_param._size_address, address, _param._bht_size_address));31 PORT_WRITE (out_PREDICT_BHT_ADDRESS [i], bht_address); 31 32 } 32 33 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src/Two_Level_Branch_Predictor_Glue_vhdl_port.cpp
r2 r3 21 21 { 22 22 log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"vhdl_port","Begin"); 23 24 vhdl.set_port (" in_CLOCK" , IN, 1);25 23 26 24 for (uint32_t i=0; i<_param._nb_prediction; i++)
Note: See TracChangeset
for help on using the changeset viewer.