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

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 895 bytes
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Core_Glue_transition.cpp 88 2008-12-10 18:31:39Z 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 [i]->reset();
27      }
28    else
29      {
30        // next priority
31        for (uint32_t i=0; i<_param->_nb_execute_loop; ++i)
32          _priority [i]->transition();
33      }
34
35#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
36    end_cycle ();
37#endif
38
39    log_end(Core_Glue,FUNCTION);
40  };
41
42}; // end namespace core_glue
43}; // end namespace core
44
45}; // end namespace behavioural
46}; // end namespace morpheo             
47#endif
Note: See TracBrowser for help on using the repository browser.