source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit/src/Special_Register_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.4 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Special_Register_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/Special_Register_unit/include/Special_Register_unit.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace special_register_unit {
17
18
19#undef  FUNCTION
20#define FUNCTION "Special_Register_unit::constant"
21  void Special_Register_unit::constant (void)
22  {
23    log_begin(Special_Register_unit,FUNCTION);
24    log_function(Special_Register_unit,FUNCTION,_name.c_str());
25
26    for (uint32_t i=0; i<_param->_nb_inst_reexecute; i++)
27      {
28        internal_SPR_ACCESS_ACK [i] = 1;
29        PORT_WRITE(out_SPR_ACCESS_ACK [i], internal_SPR_ACCESS_ACK [i]);
30      }
31   
32    for (uint32_t i=0; i<_param->_nb_front_end; i++)
33      for (uint32_t j=0; j<_param->_nb_context[i]; j++)
34        {
35          internal_SPR_COMMIT_ACK [i][j] = 1;
36          internal_SPR_EVENT_ACK  [i][j] = 1;
37          PORT_WRITE(out_SPR_COMMIT_ACK [i][j], internal_SPR_COMMIT_ACK [i][j]);
38          PORT_WRITE(out_SPR_EVENT_ACK  [i][j], internal_SPR_EVENT_ACK  [i][j]);
39        }
40   
41    log_end(Special_Register_unit,FUNCTION);
42  };
43
44}; // end namespace special_register_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.