source: trunk/IPs/systemC/processor/Morpheo/TopLevel/src/Morpheo_transition.cpp @ 88

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

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 606 bytes
Line 
1# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
2#ifdef SYSTEMC
3/*
4 * $Id: Morpheo_transition.cpp 88 2008-12-10 18:31:39Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "TopLevel/include/Morpheo.h"
11#include "Behavioural/include/Simulation.h"
12
13namespace morpheo {
14
15  using namespace behavioural;
16
17#undef  FUNCTION
18#define FUNCTION "Morpheo::transition"
19  void Morpheo::transition (void)
20  {
21    log_begin(Morpheo,FUNCTION);
22
23#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
24    end_cycle ();
25#endif
26
27    // Test stop condition
28    if (simulation_test_end())
29      sc_stop();
30
31    log_end(Morpheo,FUNCTION);
32  };
33
34}; // end namespace morpheo
35# endif
36#endif
Note: See TracBrowser for help on using the repository browser.