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