source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Meta_Predictor.cpp @ 45

Last change on this file since 45 was 45, checked in by rosiere, 17 years ago
  • Documentation : specification d'un cache de donnée non bloquant
  • Modification de l'aborescence
File size: 1.8 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/include/Meta_Predictor.h"
9
10namespace morpheo                    {
11namespace behavioural {
12namespace stage_1_ifetch {
13namespace predictor {
14namespace meta_predictor {
15
16
17#ifdef SYSTEMC
18  Meta_Predictor::Meta_Predictor (sc_module_name name,
19#else
20  Meta_Predictor::Meta_Predictor (string name,
21#endif
22#ifdef STATISTICS
23                              morpheo::behavioural::Parameters_Statistics             param_statistics,
24#endif
25                              morpheo::behavioural::stage_1_ifetch::predictor::meta_predictor::Parameters param ):
26                              _name              (name)
27                              ,_param            (param)
28#ifdef STATISTICS
29                              ,_param_statistics (param_statistics)
30#endif
31  {
32    log_printf(FUNC,Meta_Predictor,"Meta_Predictor","Begin");
33
34#ifdef SYSTEMC
35    allocation ();
36#endif
37
38#ifdef STATISTICS
39    // Allocation of statistics
40    _stat = new Statistics (static_cast<string>(_name),
41                            param_statistics          ,
42                            param);
43#endif
44
45#ifdef VHDL
46    // generate the vhdl
47    vhdl();
48#endif
49
50#ifdef SYSTEMC
51#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
52    SC_METHOD (transition);
53    dont_initialize ();
54    sensitive_pos << *(in_CLOCK);
55#endif
56
57#ifdef SYSTEMCASS_SPECIFIC
58    // List dependency information
59#endif   
60
61#endif
62    log_printf(FUNC,Meta_Predictor,"Meta_Predictor","End");
63  };
64 
65  Meta_Predictor::~Meta_Predictor (void)
66  {
67    log_printf(FUNC,Meta_Predictor,"~Meta_Predictor","Begin");
68
69#ifdef STATISTICS
70    _stat->generate_file(statistics(0));
71   
72    delete _stat;
73#endif
74
75#ifdef SYSTEMC
76    deallocation ();
77#endif
78
79    log_printf(FUNC,Meta_Predictor,"~Meta_Predictor","End");
80  };
81
82}; // end namespace meta_predictor
83}; // end namespace predictor
84}; // end namespace stage_1_ifetch
85
86}; // end namespace behavioural
87}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.