source: trunk/IPs/systemC/processor/Morpheo/TopLevel/src/Morpheo_end_cycle.cpp @ 137

Last change on this file since 137 was 137, checked in by rosiere, 14 years ago

Various modif (add test, and vhdl)

  • Property svn:keywords set to Id
File size: 684 bytes
Line 
1#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
2/*
3 * $Id: Morpheo_end_cycle.cpp 137 2010-02-16 12:35:48Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "TopLevel/include/Morpheo.h"
10
11namespace morpheo {
12
13  using namespace behavioural;
14
15#undef  FUNCTION
16#define FUNCTION "Morpheo::end_cycle"
17void Morpheo::end_cycle ()
18  {
19    log_begin(Morpheo,FUNCTION);
20
21    DEBUG_SIGNAL_END_CYCLE();
22
23#ifdef STATISTICS
24    if (usage_is_set(_usage,USE_STATISTICS))
25      _stat->end_cycle();
26#endif   
27
28#ifdef VHDL_TESTBENCH
29    // Evaluation before read the ouput signal
30//  sc_start(0);
31    if (usage_is_set(_usage,USE_VHDL_TESTBENCH))
32      _interfaces->testbench();
33#endif
34
35    log_end(Morpheo,FUNCTION);
36  };
37
38}; // end namespace morpheo
39#endif
Note: See TracBrowser for help on using the repository browser.