source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1/*
2 * $Id: Reservation_station.cpp 81 2008-04-15 18:40:01Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Reservation_station.h"
9
10namespace morpheo                    {
11namespace behavioural {
12namespace core {
13namespace multi_execute_loop {
14namespace execute_loop {
15namespace multi_read_unit {
16namespace read_unit {
17namespace reservation_station {
18
19
20#undef  FUNCTION
21#define FUNCTION "Reservation_station::Reservation_station"
22#ifdef SYSTEMC
23  Reservation_station::Reservation_station (sc_module_name name,
24#else
25  Reservation_station::Reservation_station (string name,
26#endif
27#ifdef STATISTICS
28                          morpheo::behavioural::Parameters_Statistics * param_statistics,
29#endif
30                          morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters * param ):
31                              _name              (name)
32                              ,_param            (param)
33  {
34    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
35
36#ifdef SYSTEMC
37    log_printf(INFO,Reservation_station,FUNCTION,"Allocation");
38
39    allocation ();
40#endif
41
42#ifdef STATISTICS
43    log_printf(INFO,Reservation_station,FUNCTION,"Allocation of statistics");
44
45    statistics_declaration(param_statistics);
46#endif
47
48#ifdef VHDL
49    // generate the vhdl
50    log_printf(INFO,Reservation_station,FUNCTION,"Generate the vhdl");
51
52    vhdl();
53#endif
54
55#ifdef SYSTEMC
56//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
57    log_printf(INFO,Reservation_station,FUNCTION,"Method - transition");
58
59    SC_METHOD (transition);
60    dont_initialize ();
61    sensitive_pos << *(in_CLOCK);
62//#endif
63
64#ifdef SYSTEMCASS_SPECIFIC
65    // List dependency information
66#endif   
67
68    log_printf(INFO,Reservation_station,FUNCTION,"Method - genMoore");
69
70    SC_METHOD (genMoore);
71    dont_initialize ();
72    sensitive_neg << *(in_CLOCK);
73
74#ifdef SYSTEMCASS_SPECIFIC
75    // List dependency information
76#endif   
77
78#endif
79    log_printf(FUNC,Reservation_station,FUNCTION,"End");
80  };
81 
82#undef  FUNCTION
83#define FUNCTION "Reservation_station::~Reservation_station"
84  Reservation_station::~Reservation_station (void)
85  {
86    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
87
88#ifdef STATISTICS
89    log_printf(INFO,Reservation_station,FUNCTION,"Generate Statistics file");
90
91    delete _stat;
92#endif
93
94#ifdef SYSTEMC
95    log_printf(INFO,Reservation_station,FUNCTION,"Deallocation");
96
97    deallocation ();
98#endif
99
100    log_printf(FUNC,Reservation_station,FUNCTION,"End");
101  };
102
103}; // end namespace reservation_station
104}; // end namespace read_unit
105}; // end namespace multi_read_unit
106}; // end namespace execute_loop
107}; // end namespace multi_execute_loop
108}; // end namespace core
109
110}; // end namespace behavioural
111}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.