1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Rename_unit_Glue_genMealy_retire_valack.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_unit_Glue/include/Rename_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 rename_unit_glue { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Rename_unit_Glue::genMealy_retire_valack" |
---|
22 | void Rename_unit_Glue::genMealy_retire_valack (void) |
---|
23 | { |
---|
24 | log_begin(Rename_unit_Glue,FUNCTION); |
---|
25 | log_function(Rename_unit_Glue,FUNCTION,_name.c_str()); |
---|
26 | |
---|
27 | // Transaction must be in-order |
---|
28 | Tcontrol_t previous_transaction = true; |
---|
29 | |
---|
30 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++) |
---|
31 | { |
---|
32 | Tcontrol_t VAL = PORT_READ(in_RETIRE_VAL [i]); |
---|
33 | Tcontrol_t LOAD_STORE_QUEUE_POINTER_ACK = PORT_READ(in_RETIRE_LOAD_STORE_QUEUE_POINTER_ACK [i]); |
---|
34 | Tcontrol_t REGISTER_TRANSLATION_ACK = PORT_READ(in_RETIRE_REGISTER_TRANSLATION_ACK [i]); |
---|
35 | |
---|
36 | Tcontrol_t ACK = (previous_transaction and |
---|
37 | LOAD_STORE_QUEUE_POINTER_ACK and |
---|
38 | REGISTER_TRANSLATION_ACK ); |
---|
39 | Tcontrol_t LOAD_STORE_QUEUE_POINTER_VAL = (previous_transaction and |
---|
40 | VAL and |
---|
41 | REGISTER_TRANSLATION_ACK ); |
---|
42 | Tcontrol_t REGISTER_TRANSLATION_VAL = (previous_transaction and |
---|
43 | VAL and |
---|
44 | LOAD_STORE_QUEUE_POINTER_ACK ); |
---|
45 | |
---|
46 | PORT_WRITE(out_RETIRE_ACK [i], ACK ); |
---|
47 | PORT_WRITE(out_RETIRE_LOAD_STORE_QUEUE_POINTER_VAL [i], LOAD_STORE_QUEUE_POINTER_VAL); |
---|
48 | PORT_WRITE(out_RETIRE_REGISTER_TRANSLATION_VAL [i], REGISTER_TRANSLATION_VAL ); |
---|
49 | |
---|
50 | previous_transaction = VAL and ACK; |
---|
51 | } |
---|
52 | |
---|
53 | log_end(Rename_unit_Glue,FUNCTION); |
---|
54 | }; |
---|
55 | |
---|
56 | }; // end namespace rename_unit_glue |
---|
57 | }; // end namespace rename_unit |
---|
58 | }; // end namespace ooo_engine |
---|
59 | }; // end namespace multi_ooo_engine |
---|
60 | }; // end namespace core |
---|
61 | |
---|
62 | }; // end namespace behavioural |
---|
63 | }; // end namespace morpheo |
---|
64 | #endif |
---|