1 | #ifdef SYSTEMC |
---|
2 | # if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
3 | /* |
---|
4 | * $Id: Register_translation_unit_Glue_transition.cpp 110 2009-02-19 16:31:47Z rosiere $ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/include/Register_translation_unit_Glue.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace core { |
---|
15 | namespace multi_ooo_engine { |
---|
16 | namespace ooo_engine { |
---|
17 | namespace rename_unit { |
---|
18 | namespace register_translation_unit { |
---|
19 | namespace register_translation_unit_glue { |
---|
20 | |
---|
21 | |
---|
22 | #undef FUNCTION |
---|
23 | #define FUNCTION "Register_translation_unit_Glue::transition" |
---|
24 | void Register_translation_unit_Glue::transition (void) |
---|
25 | { |
---|
26 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"Begin"); |
---|
27 | |
---|
28 | #ifdef STATISTICS |
---|
29 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
30 | { |
---|
31 | for (uint32_t i=0; i<_param->_nb_inst_insert; ++i) |
---|
32 | // Test request |
---|
33 | if (PORT_READ(in_INSERT_RENAME_VAL [i])) |
---|
34 | { |
---|
35 | (* _stat_nb_inst_issue_rename_select_req) ++; |
---|
36 | |
---|
37 | if (internal_INSERT_RENAME_ACK [i]) |
---|
38 | (* _stat_nb_inst_issue_rename_select)++; |
---|
39 | if (PORT_READ(in_INSERT_INSERT_ACK [i]) == 0) |
---|
40 | (*_stat_nb_inst_issue_stall_by_commit ) ++; |
---|
41 | if (PORT_READ(in_INSERT_RAT_RENAME_ACK [i]) == 0) |
---|
42 | (*_stat_nb_inst_issue_stall_by_rat_rename) ++; |
---|
43 | if (PORT_READ(in_INSERT_RAT_INSERT_ACK [i]) == 0) |
---|
44 | (*_stat_nb_inst_issue_stall_by_rat_insert) ++; |
---|
45 | if (PORT_READ(in_INSERT_FREE_LIST_ACK [i]) == 0) |
---|
46 | (*_stat_nb_inst_issue_stall_by_free_list ) ++; |
---|
47 | if (PORT_READ(in_INSERT_STAT_LIST_ACK [i]) == 0) |
---|
48 | (*_stat_nb_inst_issue_stall_by_stat_list ) ++; |
---|
49 | } |
---|
50 | } |
---|
51 | #endif |
---|
52 | |
---|
53 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
54 | end_cycle (); |
---|
55 | #endif |
---|
56 | |
---|
57 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"End"); |
---|
58 | }; |
---|
59 | |
---|
60 | }; // end namespace register_translation_unit_glue |
---|
61 | }; // end namespace register_translation_unit |
---|
62 | }; // end namespace rename_unit |
---|
63 | }; // end namespace ooo_engine |
---|
64 | }; // end namespace multi_ooo_engine |
---|
65 | }; // end namespace core |
---|
66 | |
---|
67 | }; // end namespace behavioural |
---|
68 | }; // end namespace morpheo |
---|
69 | # endif |
---|
70 | #endif |
---|