source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/src/Register_translation_unit_Glue_transition.cpp @ 146

Last change on this file since 146 was 146, checked in by rosiere, 13 years ago

1) Integration of RegisterFile_Internal_Banked in RegisterFile?
2) Erase "read_write" interface in RegisterFile_Monolithic component
3) Add smith predictor parameters in Load_store_pointer_unit.
4) Fix not statistics flags

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1#ifdef SYSTEMC
2# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
3/*
4 * $Id: Register_translation_unit_Glue_transition.cpp 146 2011-02-01 20:57:54Z 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
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_ooo_engine {
16namespace ooo_engine {
17namespace rename_unit {
18namespace register_translation_unit {
19namespace 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    end_cycle ();
54
55    log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"End");
56  };
57
58}; // end namespace register_translation_unit_glue
59}; // end namespace register_translation_unit
60}; // end namespace rename_unit
61}; // end namespace ooo_engine
62}; // end namespace multi_ooo_engine
63}; // end namespace core
64
65}; // end namespace behavioural
66}; // end namespace morpheo             
67# endif
68#endif
Note: See TracBrowser for help on using the repository browser.