source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_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: Register_unit_Glue_constant.cpp 131 2009-07-08 18:40:08Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Register_unit_Glue.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_execute_loop {
15namespace execute_loop {
16namespace register_unit {
17namespace register_unit_glue {
18
19
20#undef  FUNCTION
21#define FUNCTION "Register_unit_Glue::constant"
22  void Register_unit_Glue::constant (void)
23  {
24    log_begin(Register_unit_Glue,FUNCTION);
25
26//  PORT_WRITE(out_CONST_0 ,0);
27//  PORT_WRITE(out_CONST_1 ,1);
28    for (uint32_t i=0; i<_param->_nb_ooo_engine; ++i)
29      {
30        for (uint32_t j=0; j<_param->_nb_gpr_write; ++j)
31          PORT_WRITE(out_GPR_WRITE_STATUS_DATA [i][j],1);
32        for (uint32_t j=0; j<_param->_nb_spr_write; ++j)
33          PORT_WRITE(out_SPR_WRITE_STATUS_DATA [i][j],1);
34       
35        for (uint32_t j=0; j<_param->_nb_inst_insert_rob[i]; ++j)
36          {
37            PORT_WRITE(out_INSERT_ROB_GPR_STATUS_DATA [i][j],0);
38            PORT_WRITE(out_INSERT_ROB_SPR_STATUS_DATA [i][j],0);
39          }
40      }
41
42    log_end(Register_unit_Glue,FUNCTION);
43  };
44
45}; // end namespace register_unit_glue
46}; // end namespace register_unit
47}; // end namespace execute_loop
48}; // end namespace multi_execute_loop
49}; // end namespace core
50
51}; // end namespace behavioural
52}; // end namespace morpheo             
53#endif
Note: See TracBrowser for help on using the repository browser.