1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: OOO_Engine_Glue_transition.cpp 110 2009-02-19 16:31:47Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/OOO_Engine_Glue/include/OOO_Engine_Glue.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_ooo_engine { |
---|
15 | namespace ooo_engine { |
---|
16 | namespace ooo_engine_glue { |
---|
17 | |
---|
18 | |
---|
19 | #undef FUNCTION |
---|
20 | #define FUNCTION "OOO_Engine_Glue::transition" |
---|
21 | void OOO_Engine_Glue::transition (void) |
---|
22 | { |
---|
23 | log_begin(OOO_Engine_Glue,FUNCTION); |
---|
24 | |
---|
25 | #ifdef STATISTICS |
---|
26 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
27 | { |
---|
28 | uint32_t x=0; |
---|
29 | for (uint32_t i=0; i<_param->_nb_rename_unit; ++i) |
---|
30 | for (uint32_t j=0; j<_param->_nb_inst_insert[i]; ++j) |
---|
31 | { |
---|
32 | if (PORT_READ(in_INSERT_RENAME_UNIT_VAL [i][j])) |
---|
33 | { |
---|
34 | if (PORT_READ(in_INSERT_ACK [x]) == 0) |
---|
35 | (*_stat_nb_inst_issue_stall_by_registerfile) ++; |
---|
36 | if (PORT_READ(in_INSERT_COMMIT_UNIT_ACK [i][j]) == 0) |
---|
37 | (*_stat_nb_inst_issue_stall_by_commit_unit ) ++; |
---|
38 | if (PORT_READ(in_INSERT_ISSUE_QUEUE_ACK [i][j]) == 0) |
---|
39 | (*_stat_nb_inst_issue_stall_by_issue_queue ) ++; |
---|
40 | } |
---|
41 | x++; |
---|
42 | } |
---|
43 | } |
---|
44 | #endif |
---|
45 | |
---|
46 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
47 | end_cycle (); |
---|
48 | #endif |
---|
49 | |
---|
50 | log_end(OOO_Engine_Glue,FUNCTION); |
---|
51 | }; |
---|
52 | |
---|
53 | }; // end namespace ooo_engine_glue |
---|
54 | }; // end namespace ooo_engine |
---|
55 | }; // end namespace multi_ooo_engine |
---|
56 | }; // end namespace core |
---|
57 | |
---|
58 | }; // end namespace behavioural |
---|
59 | }; // end namespace morpheo |
---|
60 | #endif |
---|