source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/src/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.9 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        internal_RENAME_ACK [i] = 1;
33       
34        PORT_WRITE(out_INSERT_ACK[i],internal_INSERT_ACK [i]);
35        PORT_WRITE(out_RENAME_ACK[i],internal_RENAME_ACK [i]);
36      }
37   
38    for (uint32_t i=0; i<_param->_nb_inst_retire; i++)
39      {
40        internal_RETIRE_ACK [i] = 1;
41       
42        PORT_WRITE(out_RETIRE_ACK[i],internal_RETIRE_ACK [i]);
43      }
44   
45    for (uint32_t i=0; i<_param->_nb_front_end; ++i)
46      for (uint32_t j=0; j<_param->_nb_context[i]; ++j)
47        {
48          internal_RETIRE_EVENT_ACK [i][j] = 1;
49         
50          PORT_WRITE(out_RETIRE_EVENT_ACK[i][j],internal_RETIRE_EVENT_ACK [i][j]);
51        }
52   
53    log_end(Register_Address_Translation_unit,FUNCTION);
54  };
55
56}; // end namespace register_address_translation_unit
57}; // end namespace register_translation_unit
58}; // end namespace rename_unit
59}; // end namespace ooo_engine
60}; // end namespace multi_ooo_engine
61}; // end namespace core
62
63}; // end namespace behavioural
64}; // end namespace morpheo             
65#endif
Note: See TracBrowser for help on using the repository browser.