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

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

1) Stat List : scan all queue to find free register
2) Write_queue : test "genMealy" add bypass [0]
3) Functionnal_unit : add const parameters to add or not the pipeline_in
4) Load Store Unit : if load make an exception, free nb_check
5) Debug, change test to add model

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Core_Glue_transition.cpp 118 2009-05-20 22:01:32Z 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          {
27//          _priority_ooo_engine [i]->reset();
28            _priority_read_unit  [i]->reset();
29          }
30        _priority_ooo_engine->reset();
31
32        reg_PRIORITY = 0;
33      }
34    else
35      {
36        // next priority
37        for (uint32_t i=0; i<_param->_nb_execute_loop; ++i)
38          {
39//          _priority_ooo_engine [i]->transition();
40            _priority_read_unit  [i]->transition();
41          }
42        _priority_ooo_engine->transition();
43
44        reg_PRIORITY ++;
45      }
46
47#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
48    end_cycle ();
49#endif
50
51    log_end(Core_Glue,FUNCTION);
52  };
53
54}; // end namespace core_glue
55}; // end namespace core
56
57}; // end namespace behavioural
58}; // end namespace morpheo             
59#endif
Note: See TracBrowser for help on using the repository browser.