source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Core_Glue/src/Core_Glue_genMealy_insert.cpp

Last change on this file 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: 3.3 KB
Line 
1// #ifdef SYSTEMC
2// /*
3//  * $Id: Core_Glue_genMealy_insert.cpp 136 2009-10-20 18:52:15Z rosiere $
4//  *
5//  * [ Description ]
6//  *
7//  */
8
9// #include "Behavioural/Core/Core_Glue/include/Core_Glue.h"
10
11// namespace morpheo                    {
12// namespace behavioural {
13// namespace core {
14// namespace core_glue {
15
16
17// #undef  FUNCTION
18// #define FUNCTION "Core_Glue::genMealy_insert"
19//   void Core_Glue::genMealy_insert (void)
20//   {
21//     log_begin(Core_Glue,FUNCTION);
22//     log_function(Core_Glue,FUNCTION,_name.c_str());
23
24//     if (PORT_READ(in_NRESET))
25//       {
26//     for (uint32_t i=0; i<_param->_nb_execute_loop; ++i)
27//       for (uint32_t j=0; j<_param->_execute_loop_nb_ooo_engine[i]; ++j)
28//         {
29//           Tcontext_t num_ooo_engine   = _param->_translate_execute_loop_num_ooo_engine [i][j];
30
31//           for (uint32_t k=0; k<_param->_execute_loop_nb_inst_insert[i][j]; ++k)
32//             {
33//               log_printf(TRACE,Core_Glue,FUNCTION,"  * INSERT_OOO_ENGINE [%d][%d] <-> INSERT_EXECUTE_LOOP [%d][%d][%d]",num_ooo_engine,k,i,j,k);
34         
35//               Tcontrol_t ooo_engine_val   = PORT_READ(in_INSERT_OOO_ENGINE_VAL   [num_ooo_engine][k]);
36//               Tcontrol_t execute_loop_ack = PORT_READ(in_INSERT_EXECUTE_LOOP_ACK [i][j][k]);
37             
38//               Tcontrol_t execute_loop_val = ooo_engine_val  ;
39//               Tcontrol_t ooo_engine_ack   = execute_loop_ack;
40
41//               log_printf(TRACE,Core_Glue,FUNCTION,"    * ooo_engine_val   (r) : %d",ooo_engine_val  );
42//               log_printf(TRACE,Core_Glue,FUNCTION,"    * ooo_engine_ack   (w) : %d",ooo_engine_ack  );
43//               log_printf(TRACE,Core_Glue,FUNCTION,"    * execute_loop_val (w) : %d",execute_loop_val);
44//               log_printf(TRACE,Core_Glue,FUNCTION,"    * execute_loop_ack (r) : %d",execute_loop_ack);
45   
46//               PORT_WRITE(out_INSERT_OOO_ENGINE_ACK          [num_ooo_engine][k],ooo_engine_ack  );
47//               PORT_WRITE(out_INSERT_EXECUTE_LOOP_VAL        [i][j][k],execute_loop_val);
48//               PORT_WRITE(out_INSERT_EXECUTE_LOOP_RD_USE     [i][j][k],PORT_READ(in_INSERT_OOO_ENGINE_RD_USE     [num_ooo_engine][k]));
49//               PORT_WRITE(out_INSERT_EXECUTE_LOOP_RD_NUM_REG [i][j][k],PORT_READ(in_INSERT_OOO_ENGINE_RD_NUM_REG [num_ooo_engine][k]));
50//               PORT_WRITE(out_INSERT_EXECUTE_LOOP_RE_USE     [i][j][k],PORT_READ(in_INSERT_OOO_ENGINE_RE_USE     [num_ooo_engine][k]));
51//               PORT_WRITE(out_INSERT_EXECUTE_LOOP_RE_NUM_REG [i][j][k],PORT_READ(in_INSERT_OOO_ENGINE_RE_NUM_REG [num_ooo_engine][k]));
52//             }
53//         }
54//       }
55//     else
56//       {
57//         for (uint32_t i=0; i<_param->_nb_execute_loop; ++i)
58//           for (uint32_t j=0; j<_param->_execute_loop_nb_ooo_engine[i]; ++j)
59//             {
60//               Tcontext_t num_ooo_engine   = _param->_translate_execute_loop_num_ooo_engine [i][j];
61             
62//               for (uint32_t k=0; k<_param->_execute_loop_nb_inst_insert[i][j]; ++k)
63//                 {
64//                   PORT_WRITE(out_INSERT_OOO_ENGINE_ACK  [num_ooo_engine][k],0);
65//                  PORT_WRITE(out_INSERT_EXECUTE_LOOP_VAL [i][j][k],0);
66//                 }
67//             }
68//       }
69
70//     log_end(Core_Glue,FUNCTION);
71//   };
72
73// }; // end namespace core_glue
74// }; // end namespace core
75
76// }; // end namespace behavioural
77// }; // end namespace morpheo             
78// #endif
Note: See TracBrowser for help on using the repository browser.