source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit_end_cycle.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: 1.0 KB
Line 
1#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
2/*
3 * $Id: Register_unit_end_cycle.cpp 88 2008-12-10 18:31:39Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Register_unit.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_execute_loop {
15namespace execute_loop {
16namespace register_unit {
17
18#undef  FUNCTION
19#define FUNCTION "Register_unit::end_cycle"
20void Register_unit::end_cycle ()
21  {
22    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
23
24#ifdef STATISTICS
25    if (usage_is_set(_usage,USE_STATISTICS))
26      _stat->end_cycle();
27#endif   
28
29#ifdef VHDL_TESTBENCH
30    // Evaluation before read the ouput signal
31//  sc_start(0);
32    if (usage_is_set(_usage,USE_VHDL_TESTBENCH))
33      _interfaces->testbench();
34#endif
35
36    log_printf(FUNC,Register_unit,FUNCTION,"End");
37  };
38
39}; // end namespace register_unit
40}; // end namespace execute_loop
41}; // end namespace multi_execute_loop
42}; // end namespace core
43
44}; // end namespace behavioural
45}; // end namespace morpheo             
46#endif
Note: See TracBrowser for help on using the repository browser.