source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Core_Glue/src/Core_Glue_transition.cpp @ 120

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

1) Context_state : Add statistics
2) Add configuration with multi front_end
3) Add optionnal pid at log filename

  • Property svn:keywords set to Id
File size: 1000 bytes
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Core_Glue_transition.cpp 120 2009-05-26 19:01:47Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Core_Glue/include/Core_Glue.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace core_glue {
15
16
17#undef  FUNCTION
18#define FUNCTION "Core_Glue::transition"
19  void Core_Glue::transition (void)
20  {
21    log_begin(Core_Glue,FUNCTION);
22
23    if (PORT_READ(in_NRESET) == 0)
24      {
25        for (uint32_t i=0; i<_param->_nb_execute_loop; ++i)
26          _priority_read_unit  [i]->reset();
27        _priority_ooo_engine->reset();
28      }
29    else
30      {
31        // next priority
32        for (uint32_t i=0; i<_param->_nb_execute_loop; ++i)
33          _priority_read_unit  [i]->transition();
34        _priority_ooo_engine->transition();
35      }
36
37#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
38    end_cycle ();
39#endif
40
41    log_end(Core_Glue,FUNCTION);
42  };
43
44}; // end namespace core_glue
45}; // end namespace core
46
47}; // end namespace behavioural
48}; // end namespace morpheo             
49#endif
Note: See TracBrowser for help on using the repository browser.