[5] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/include/Meta_Predictor.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace stage_1_ifetch { |
---|
| 14 | namespace predictor { |
---|
| 15 | namespace meta_predictor { |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | void Meta_Predictor::vhdl_port (Vhdl & vhdl) |
---|
| 19 | { |
---|
| 20 | log_printf(FUNC,Meta_Predictor,"vhdl_port","Begin"); |
---|
| 21 | |
---|
[15] | 22 | vhdl.set_port (" in_CLOCK ", IN, 1); |
---|
| 23 | vhdl.set_port (" in_NRESET", IN, 1); |
---|
[5] | 24 | |
---|
| 25 | for (uint32_t i=0; i<_param._nb_prediction; i++) |
---|
| 26 | { |
---|
| 27 | vhdl.set_port (" in_PREDICT_VAL_"+toString(i)+" ", IN, 1); |
---|
| 28 | vhdl.set_port ("out_PREDICT_ACK_"+toString(i)+" ",OUT, 1); |
---|
| 29 | vhdl.set_port (" in_PREDICT_ADDRESS_"+toString(i)+" ", IN,_param._size_address); |
---|
| 30 | vhdl.set_port ("out_PREDICT_HISTORY_"+toString(i)+" ",OUT,_param._size_history); |
---|
| 31 | vhdl.set_port ("out_PREDICT_DIRECTION_"+toString(i)+" ",OUT,1); |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | for (uint32_t i=0; i<_param._nb_branch_complete; i++) |
---|
| 35 | { |
---|
| 36 | vhdl.set_port (" in_BRANCH_COMPLETE_VAL_"+toString(i)+" ", IN, 1); |
---|
| 37 | vhdl.set_port ("out_BRANCH_COMPLETE_ACK_"+toString(i)+" ",OUT, 1); |
---|
| 38 | vhdl.set_port (" in_BRANCH_COMPLETE_ADDRESS_"+toString(i)+" ", IN,_param._size_address); |
---|
| 39 | vhdl.set_port (" in_BRANCH_COMPLETE_HISTORY_"+toString(i)+" ", IN,_param._size_history); |
---|
| 40 | vhdl.set_port (" in_BRANCH_COMPLETE_DIRECTION_"+toString(i)+" ", IN, 1); |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | log_printf(FUNC,Meta_Predictor,"vhdl_port","End"); |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | }; // end namespace meta_predictor |
---|
| 47 | }; // end namespace predictor |
---|
| 48 | }; // end namespace stage_1_ifetch |
---|
| 49 | |
---|
| 50 | }; // end namespace behavioural |
---|
| 51 | }; // end namespace morpheo |
---|
| 52 | #endif |
---|