source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_constant.cpp @ 136

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

1) Add new algo in ifetch queue
2) Add Cancel bit
3) new config

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Register_unit_Glue_constant.cpp 136 2009-10-20 18:52:15Z 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    for (uint32_t i=0; i<_param->_nb_ooo_engine; ++i)
43      for (uint32_t j=0; j<_param->_nb_inst_issue; ++j)
44        {
45          PORT_WRITE(out_ISSUE_GPR_STATUS_DATA [i][j],0);
46          PORT_WRITE(out_ISSUE_SPR_STATUS_DATA [i][j],0);
47        }
48
49    log_end(Register_unit_Glue,FUNCTION);
50  };
51
52}; // end namespace register_unit_glue
53}; // end namespace register_unit
54}; // end namespace execute_loop
55}; // end namespace multi_execute_loop
56}; // end namespace core
57
58}; // end namespace behavioural
59}; // end namespace morpheo             
60#endif
Note: See TracBrowser for help on using the repository browser.