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_constant.cpp @ 131

Last change on this file since 131 was 131, checked in by rosiere, 15 years ago

1) add constant method
2) test with systemc 2.2.0

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Register_Address_Translation_unit_constant.cpp 131 2009-07-08 18:40:08Z 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::constant"
23  void Register_Address_Translation_unit::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_RENAME_ACK [i] = 1;
32            internal_INSERT_ACK [i] = 1;
33
34            PORT_WRITE(out_RENAME_ACK[i],internal_RENAME_ACK [i]);
35            PORT_WRITE(out_INSERT_ACK[i],internal_INSERT_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.