source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/src/old/Register_Address_Translation_unit_function_depth_save_constant.cpp @ 145

Last change on this file since 145 was 145, checked in by rosiere, 14 years ago

1) add test with SPECINT2K
2) new config of Selftest
3) modif RAT to support multiple depth_save ... but not finish (need fix Update Prediction Table)
4) add Function_pointer but need fix

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Register_Address_Translation_unit_function_depth_save_constant.cpp 145 2010-10-13 18:15:51Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/include/Register_Address_Translation_unit.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace rename_unit {
17namespace register_translation_unit {
18namespace register_address_translation_unit {
19
20
21#undef  FUNCTION
22#define FUNCTION "Register_Address_Translation_unit::function_depth_save_constant"
23  void Register_Address_Translation_unit::function_depth_save_constant (void)
24  {
25    log_begin(Register_Address_Translation_unit,FUNCTION);
26    log_function(Register_Address_Translation_unit,FUNCTION,_name.c_str());
27
28    // Constant : accepted already transaction
29    for (uint32_t i=0; i<_param->_nb_inst_insert; i++)
30      {
31        internal_INSERT_ACK [i] = 1;
32       
33        PORT_WRITE(out_INSERT_ACK[i],internal_INSERT_ACK [i]);
34      }
35   
36    for (uint32_t i=0; i<_param->_nb_inst_retire; i++)
37      {
38        internal_RETIRE_ACK [i] = 1;
39       
40        PORT_WRITE(out_RETIRE_ACK[i],internal_RETIRE_ACK [i]);
41      }
42   
43    for (uint32_t i=0; i<_param->_nb_front_end; ++i)
44      for (uint32_t j=0; j<_param->_nb_context[i]; ++j)
45        {
46          internal_RETIRE_EVENT_ACK [i][j] = 1;
47         
48          PORT_WRITE(out_RETIRE_EVENT_ACK[i][j],internal_RETIRE_EVENT_ACK [i][j]);
49        }
50   
51    log_end(Register_Address_Translation_unit,FUNCTION);
52  };
53
54}; // end namespace register_address_translation_unit
55}; // end namespace register_translation_unit
56}; // end namespace rename_unit
57}; // end namespace ooo_engine
58}; // end namespace multi_ooo_engine
59}; // end namespace core
60
61}; // end namespace behavioural
62}; // end namespace morpheo             
63#endif
Note: See TracBrowser for help on using the repository browser.