[131] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Branch_Target_Buffer_Register_constant.cpp 131 2009-07-08 18:40:08Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register/include/Branch_Target_Buffer_Register.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace prediction_unit { |
---|
| 17 | namespace branch_target_buffer { |
---|
| 18 | namespace branch_target_buffer_register { |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Branch_Target_Buffer_Register::constant" |
---|
| 22 | void Branch_Target_Buffer_Register::constant (void) |
---|
| 23 | { |
---|
| 24 | log_begin(Branch_Target_Buffer_Register,FUNCTION); |
---|
| 25 | log_function(Branch_Target_Buffer_Register,FUNCTION,_name.c_str()); |
---|
| 26 | |
---|
| 27 | for (uint32_t i=0; i<_param->_nb_inst_predict; i++) |
---|
| 28 | { |
---|
| 29 | PORT_WRITE(out_PREDICT_ACK [i],1); |
---|
| 30 | } |
---|
| 31 | for (uint32_t i=0; i<_param->_nb_inst_decod; i++) |
---|
| 32 | { |
---|
| 33 | internal_DECOD_ACK [i] = 1; |
---|
| 34 | PORT_WRITE(out_DECOD_ACK [i], internal_DECOD_ACK [i]); |
---|
| 35 | } |
---|
| 36 | for (uint32_t i=0; i<_param->_nb_inst_update; i++) |
---|
| 37 | { |
---|
| 38 | internal_UPDATE_ACK [i] = 1; |
---|
| 39 | PORT_WRITE(out_UPDATE_ACK [i], internal_UPDATE_ACK [i]); |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | log_end(Branch_Target_Buffer_Register,FUNCTION); |
---|
| 43 | }; |
---|
| 44 | |
---|
| 45 | }; // end namespace branch_target_buffer_register |
---|
| 46 | }; // end namespace branch_target_buffer |
---|
| 47 | }; // end namespace prediction_unit |
---|
| 48 | }; // end namespace front_end |
---|
| 49 | }; // end namespace multi_front_end |
---|
| 50 | }; // end namespace core |
---|
| 51 | |
---|
| 52 | }; // end namespace behavioural |
---|
| 53 | }; // end namespace morpheo |
---|
| 54 | #endif |
---|