[55] | 1 | /* |
---|
| 2 | * $Id: Reservation_station.cpp 82 2008-05-01 16:48:45Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Reservation_station.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace core { |
---|
| 13 | namespace multi_execute_loop { |
---|
| 14 | namespace execute_loop { |
---|
| 15 | namespace multi_read_unit { |
---|
| 16 | namespace read_unit { |
---|
| 17 | namespace reservation_station { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Reservation_station::Reservation_station" |
---|
[82] | 22 | |
---|
| 23 | Reservation_station::Reservation_station |
---|
| 24 | ( |
---|
[55] | 25 | #ifdef SYSTEMC |
---|
[82] | 26 | sc_module_name name, |
---|
[55] | 27 | #else |
---|
[82] | 28 | std::string name, |
---|
[55] | 29 | #endif |
---|
| 30 | #ifdef STATISTICS |
---|
[82] | 31 | morpheo::behavioural::Parameters_Statistics * param_statistics, |
---|
[55] | 32 | #endif |
---|
[82] | 33 | morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters * param, |
---|
| 34 | morpheo::behavioural::Tusage_t usage ): |
---|
| 35 | _name (name) |
---|
| 36 | ,_param (param) |
---|
| 37 | ,_usage (usage) |
---|
[55] | 38 | { |
---|
| 39 | log_printf(FUNC,Reservation_station,FUNCTION,"Begin"); |
---|
| 40 | |
---|
| 41 | #ifdef SYSTEMC |
---|
| 42 | log_printf(INFO,Reservation_station,FUNCTION,"Allocation"); |
---|
| 43 | |
---|
| 44 | allocation (); |
---|
| 45 | #endif |
---|
| 46 | |
---|
| 47 | #ifdef STATISTICS |
---|
| 48 | log_printf(INFO,Reservation_station,FUNCTION,"Allocation of statistics"); |
---|
| 49 | |
---|
[75] | 50 | statistics_declaration(param_statistics); |
---|
[55] | 51 | #endif |
---|
| 52 | |
---|
| 53 | #ifdef VHDL |
---|
| 54 | // generate the vhdl |
---|
| 55 | log_printf(INFO,Reservation_station,FUNCTION,"Generate the vhdl"); |
---|
| 56 | |
---|
| 57 | vhdl(); |
---|
| 58 | #endif |
---|
| 59 | |
---|
| 60 | #ifdef SYSTEMC |
---|
| 61 | //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
| 62 | log_printf(INFO,Reservation_station,FUNCTION,"Method - transition"); |
---|
| 63 | |
---|
| 64 | SC_METHOD (transition); |
---|
| 65 | dont_initialize (); |
---|
| 66 | sensitive_pos << *(in_CLOCK); |
---|
| 67 | //#endif |
---|
| 68 | |
---|
| 69 | #ifdef SYSTEMCASS_SPECIFIC |
---|
| 70 | // List dependency information |
---|
| 71 | #endif |
---|
| 72 | |
---|
| 73 | log_printf(INFO,Reservation_station,FUNCTION,"Method - genMoore"); |
---|
| 74 | |
---|
| 75 | SC_METHOD (genMoore); |
---|
| 76 | dont_initialize (); |
---|
| 77 | sensitive_neg << *(in_CLOCK); |
---|
| 78 | |
---|
| 79 | #ifdef SYSTEMCASS_SPECIFIC |
---|
| 80 | // List dependency information |
---|
| 81 | #endif |
---|
| 82 | |
---|
| 83 | #endif |
---|
| 84 | log_printf(FUNC,Reservation_station,FUNCTION,"End"); |
---|
| 85 | }; |
---|
| 86 | |
---|
| 87 | #undef FUNCTION |
---|
| 88 | #define FUNCTION "Reservation_station::~Reservation_station" |
---|
| 89 | Reservation_station::~Reservation_station (void) |
---|
| 90 | { |
---|
| 91 | log_printf(FUNC,Reservation_station,FUNCTION,"Begin"); |
---|
| 92 | |
---|
| 93 | #ifdef STATISTICS |
---|
| 94 | log_printf(INFO,Reservation_station,FUNCTION,"Generate Statistics file"); |
---|
| 95 | |
---|
| 96 | delete _stat; |
---|
| 97 | #endif |
---|
| 98 | |
---|
| 99 | #ifdef SYSTEMC |
---|
| 100 | log_printf(INFO,Reservation_station,FUNCTION,"Deallocation"); |
---|
| 101 | |
---|
| 102 | deallocation (); |
---|
| 103 | #endif |
---|
| 104 | |
---|
| 105 | log_printf(FUNC,Reservation_station,FUNCTION,"End"); |
---|
| 106 | }; |
---|
| 107 | |
---|
| 108 | }; // end namespace reservation_station |
---|
| 109 | }; // end namespace read_unit |
---|
| 110 | }; // end namespace multi_read_unit |
---|
| 111 | }; // end namespace execute_loop |
---|
| 112 | }; // end namespace multi_execute_loop |
---|
| 113 | }; // end namespace core |
---|
| 114 | |
---|
| 115 | }; // end namespace behavioural |
---|
| 116 | }; // end namespace morpheo |
---|