[78] | 1 | /* |
---|
| 2 | * $Id: Prediction_unit_allocation.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/include/Prediction_unit.h" |
---|
| 9 | #include "Behavioural/include/Allocation.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 | |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Prediction_unit::allocation" |
---|
| 22 | void Prediction_unit::allocation ( |
---|
| 23 | #ifdef STATISTICS |
---|
| 24 | morpheo::behavioural::Parameters_Statistics * param_statistics |
---|
| 25 | #else |
---|
| 26 | void |
---|
| 27 | #endif |
---|
| 28 | ) |
---|
| 29 | { |
---|
| 30 | log_printf(FUNC,Prediction_unit,FUNCTION,"Begin"); |
---|
| 31 | |
---|
| 32 | _component = new Component (_usage); |
---|
| 33 | |
---|
| 34 | Entity * entity = _component->set_entity (_name |
---|
| 35 | ,"Prediction_unit" |
---|
| 36 | #ifdef POSITION |
---|
| 37 | ,COMBINATORY |
---|
| 38 | #endif |
---|
| 39 | ); |
---|
| 40 | |
---|
| 41 | _interfaces = entity->set_interfaces(); |
---|
| 42 | |
---|
| 43 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 44 | { |
---|
| 45 | Interface * interface = _interfaces->set_interface("" |
---|
| 46 | #ifdef POSITION |
---|
| 47 | ,IN |
---|
| 48 | ,SOUTH, |
---|
| 49 | "Generalist interface" |
---|
| 50 | #endif |
---|
| 51 | ); |
---|
| 52 | |
---|
| 53 | in_CLOCK = interface->set_signal_clk ("clock" ,1, CLOCK_VHDL_YES); |
---|
| 54 | in_NRESET = interface->set_signal_in <Tcontrol_t> ("nreset",1, RESET_VHDL_YES); |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 58 | |
---|
| 59 | // ~~~~~[ Instanciation ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 60 | std::string src,dest; |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | // ~~~~~[ Others ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 64 | _component->test_map(); |
---|
| 65 | |
---|
| 66 | #ifdef POSITION |
---|
| 67 | _component->generate_file(); |
---|
| 68 | #endif |
---|
| 69 | |
---|
| 70 | log_printf(FUNC,Prediction_unit,FUNCTION,"End"); |
---|
| 71 | }; |
---|
| 72 | |
---|
| 73 | }; // end namespace prediction_unit |
---|
| 74 | }; // end namespace front_end |
---|
| 75 | }; // end namespace multi_front_end |
---|
| 76 | }; // end namespace core |
---|
| 77 | |
---|
| 78 | }; // end namespace behavioural |
---|
| 79 | }; // end namespace morpheo |
---|