[78] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Register_translation_unit_Glue_genMealy_insert.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/include/Register_translation_unit_Glue.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_ooo_engine { |
---|
| 15 | namespace ooo_engine { |
---|
| 16 | namespace rename_unit { |
---|
| 17 | namespace register_translation_unit { |
---|
| 18 | namespace register_translation_unit_glue { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Register_translation_unit_Glue::genMealy_insert" |
---|
| 23 | void Register_translation_unit_Glue::genMealy_insert (void) |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"Begin"); |
---|
| 26 | |
---|
| 27 | for (uint32_t i=0; i<_param->_nb_inst_insert; i++) |
---|
| 28 | { |
---|
| 29 | Tcontrol_t rename_val = PORT_READ(in_INSERT_RENAME_VAL [i]); |
---|
| 30 | Tcontrol_t insert_ack = PORT_READ(in_INSERT_INSERT_ACK [i]); |
---|
| 31 | Tcontrol_t rat_rename_ack = PORT_READ(in_INSERT_RAT_RENAME_ACK [i]); |
---|
| 32 | Tcontrol_t rat_insert_ack = PORT_READ(in_INSERT_RAT_INSERT_ACK [i]); |
---|
| 33 | Tcontrol_t free_list_ack = PORT_READ(in_INSERT_FREE_LIST_ACK [i]); |
---|
| 34 | Tcontrol_t stat_list_ack = PORT_READ(in_INSERT_STAT_LIST_ACK [i]); |
---|
| 35 | |
---|
| 36 | PORT_WRITE(out_INSERT_RENAME_ACK [i], (insert_ack and |
---|
| 37 | rat_rename_ack and |
---|
| 38 | rat_insert_ack and |
---|
| 39 | free_list_ack and |
---|
| 40 | stat_list_ack )); |
---|
| 41 | PORT_WRITE(out_INSERT_INSERT_VAL [i], (rename_val and |
---|
| 42 | rat_rename_ack and |
---|
| 43 | rat_insert_ack and |
---|
| 44 | free_list_ack and |
---|
| 45 | stat_list_ack )); |
---|
| 46 | PORT_WRITE(out_INSERT_RAT_INSERT_VAL [i], (rename_val and |
---|
| 47 | insert_ack and |
---|
| 48 | rat_rename_ack and |
---|
| 49 | free_list_ack and |
---|
| 50 | stat_list_ack )); |
---|
| 51 | PORT_WRITE(out_INSERT_FREE_LIST_VAL [i], (rename_val and |
---|
| 52 | insert_ack and |
---|
| 53 | rat_rename_ack and |
---|
| 54 | rat_insert_ack and |
---|
| 55 | stat_list_ack )); |
---|
| 56 | PORT_WRITE(out_INSERT_STAT_LIST_VAL [i], (rename_val and |
---|
| 57 | insert_ack and |
---|
| 58 | rat_rename_ack and |
---|
| 59 | rat_insert_ack and |
---|
| 60 | free_list_ack )); |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"End"); |
---|
| 64 | }; |
---|
| 65 | |
---|
| 66 | }; // end namespace register_translation_unit_glue |
---|
| 67 | }; // end namespace register_translation_unit |
---|
| 68 | }; // end namespace rename_unit |
---|
| 69 | }; // end namespace ooo_engine |
---|
| 70 | }; // end namespace multi_ooo_engine |
---|
| 71 | }; // end namespace core |
---|
| 72 | |
---|
| 73 | }; // end namespace behavioural |
---|
| 74 | }; // end namespace morpheo |
---|
| 75 | #endif |
---|