source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/src/Stat_List_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.3 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Stat_List_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/Stat_List_unit/include/Stat_List_unit.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace rename_unit {
17namespace register_translation_unit {
18namespace stat_list_unit {
19
20
21#undef  FUNCTION
22#define FUNCTION "Stat_List_unit::constant"
23  void Stat_List_unit::constant (void)
24  {
25    log_begin(Stat_List_unit,FUNCTION);
26    log_function(Stat_List_unit,FUNCTION,_name.c_str());
27
28    for (uint32_t i=0; i<_param->_nb_inst_insert; i++)
29      {
30        internal_INSERT_ACK[i] = 1;
31        PORT_WRITE(out_INSERT_ACK[i], internal_INSERT_ACK[i]);
32      }
33    for (uint32_t i=0; i<_param->_nb_inst_retire; i++)
34      {
35        internal_RETIRE_ACK[i] = 1;
36        PORT_WRITE(out_RETIRE_ACK[i], internal_RETIRE_ACK[i]);
37      }
38
39    log_end(Stat_List_unit,FUNCTION);
40  };
41
42}; // end namespace stat_list_unit
43}; // end namespace register_translation_unit
44}; // end namespace rename_unit
45}; // end namespace ooo_engine
46}; // end namespace multi_ooo_engine
47}; // end namespace core
48
49}; // end namespace behavioural
50}; // end namespace morpheo             
51#endif
Note: See TracBrowser for help on using the repository browser.