[55] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Parameters.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::Parameters" |
---|
| 22 | Parameters::Parameters (uint32_t size_queue , |
---|
| 23 | uint32_t nb_context , |
---|
| 24 | uint32_t nb_packet , |
---|
| 25 | uint32_t size_general_data , |
---|
| 26 | uint32_t size_special_data , |
---|
| 27 | uint32_t nb_general_register, |
---|
| 28 | uint32_t nb_special_register, |
---|
| 29 | uint32_t nb_operation , |
---|
| 30 | uint32_t nb_type , |
---|
| 31 | uint32_t nb_gpr_write , |
---|
| 32 | uint32_t nb_spr_write , |
---|
| 33 | uint32_t nb_bypass_write , |
---|
| 34 | uint32_t nb_bypass_memory ): |
---|
| 35 | _size_queue (size_queue ), |
---|
| 36 | _nb_context (nb_context ), |
---|
| 37 | _nb_packet (nb_packet ), |
---|
| 38 | _size_general_data (size_general_data ), |
---|
| 39 | _size_special_data (size_special_data ), |
---|
| 40 | _nb_general_register (nb_general_register ), |
---|
| 41 | _nb_special_register (nb_special_register ), |
---|
| 42 | _nb_operation (nb_operation ), |
---|
| 43 | _nb_type (nb_type ), |
---|
| 44 | _nb_gpr_write (nb_gpr_write ), |
---|
| 45 | _nb_spr_write (nb_spr_write ), |
---|
| 46 | _nb_bypass_write (nb_bypass_write ), |
---|
| 47 | _nb_bypass_memory (nb_bypass_memory ), |
---|
| 48 | |
---|
| 49 | _size_context_id (static_cast<uint32_t>(log2(_nb_context ))), |
---|
| 50 | _size_packet_id (static_cast<uint32_t>(log2(_nb_packet ))), |
---|
| 51 | _size_general_register (static_cast<uint32_t>(log2(_nb_general_register))), |
---|
| 52 | _size_special_register (static_cast<uint32_t>(log2(_nb_special_register))), |
---|
| 53 | _size_operation (static_cast<uint32_t>(log2(_nb_operation ))), |
---|
| 54 | _size_type (static_cast<uint32_t>(log2(_nb_type ))) |
---|
| 55 | { |
---|
| 56 | log_printf(FUNC,Reservation_station,FUNCTION,"Begin"); |
---|
| 57 | test(); |
---|
| 58 | log_printf(FUNC,Reservation_station,FUNCTION,"End"); |
---|
| 59 | }; |
---|
| 60 | |
---|
| 61 | #undef FUNCTION |
---|
| 62 | #define FUNCTION "Reservation_station::Parameters (copy)" |
---|
| 63 | Parameters::Parameters (Parameters & param): |
---|
| 64 | _size_queue (param._size_queue ), |
---|
| 65 | _nb_context (param._nb_context ), |
---|
| 66 | _nb_packet (param._nb_packet ), |
---|
| 67 | _size_general_data (param._size_general_data ), |
---|
| 68 | _size_special_data (param._size_special_data ), |
---|
| 69 | _nb_general_register (param._nb_general_register ), |
---|
| 70 | _nb_special_register (param._nb_special_register ), |
---|
| 71 | _nb_operation (param._nb_operation ), |
---|
| 72 | _nb_type (param._nb_type ), |
---|
| 73 | _nb_gpr_write (param._nb_gpr_write ), |
---|
| 74 | _nb_spr_write (param._nb_spr_write ), |
---|
| 75 | _nb_bypass_write (param._nb_bypass_write ), |
---|
| 76 | _nb_bypass_memory (param._nb_bypass_memory ), |
---|
| 77 | |
---|
| 78 | _size_context_id (param._size_context_id ), |
---|
| 79 | _size_packet_id (param._size_packet_id ), |
---|
| 80 | _size_general_register (param._size_general_register ), |
---|
| 81 | _size_special_register (param._size_special_register ), |
---|
| 82 | _size_operation (param._size_operation ), |
---|
| 83 | _size_type (param._size_type ) |
---|
| 84 | { |
---|
| 85 | log_printf(FUNC,Reservation_station,FUNCTION,"Begin"); |
---|
| 86 | test(); |
---|
| 87 | log_printf(FUNC,Reservation_station,FUNCTION,"End"); |
---|
| 88 | }; |
---|
| 89 | |
---|
| 90 | #undef FUNCTION |
---|
| 91 | #define FUNCTION "Reservation_station::~Parameters" |
---|
| 92 | Parameters::~Parameters () |
---|
| 93 | { |
---|
| 94 | log_printf(FUNC,Reservation_station,FUNCTION,"Begin"); |
---|
| 95 | log_printf(FUNC,Reservation_station,FUNCTION,"End"); |
---|
| 96 | }; |
---|
| 97 | |
---|
| 98 | }; // end namespace reservation_station |
---|
| 99 | }; // end namespace read_unit |
---|
| 100 | }; // end namespace multi_read_unit |
---|
| 101 | }; // end namespace execute_loop |
---|
| 102 | }; // end namespace multi_execute_loop |
---|
| 103 | }; // end namespace core |
---|
| 104 | |
---|
| 105 | }; // end namespace behavioural |
---|
| 106 | }; // end namespace morpheo |
---|