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

Last change on this file since 82 was 82, checked in by rosiere, 16 years ago
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1/*
2 * $Id: Reservation_station.cpp 82 2008-05-01 16:48:45Z 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
23  Reservation_station::Reservation_station
24  (
25#ifdef SYSTEMC
26   sc_module_name name,
27#else
28   std::string name,
29#endif
30#ifdef STATISTICS
31   morpheo::behavioural::Parameters_Statistics * param_statistics,
32#endif
33   morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters * param,
34   morpheo::behavioural::Tusage_t                usage ):
35    _name   (name)
36    ,_param (param)
37    ,_usage (usage)
38  {
39    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
40
41#ifdef SYSTEMC
42    log_printf(INFO,Reservation_station,FUNCTION,"Allocation");
43
44    allocation ();
45#endif
46
47#ifdef STATISTICS
48    log_printf(INFO,Reservation_station,FUNCTION,"Allocation of statistics");
49
50    statistics_declaration(param_statistics);
51#endif
52
53#ifdef VHDL
54    // generate the vhdl
55    log_printf(INFO,Reservation_station,FUNCTION,"Generate the vhdl");
56
57    vhdl();
58#endif
59
60#ifdef SYSTEMC
61//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
62    log_printf(INFO,Reservation_station,FUNCTION,"Method - transition");
63
64    SC_METHOD (transition);
65    dont_initialize ();
66    sensitive_pos << *(in_CLOCK);
67//#endif
68
69#ifdef SYSTEMCASS_SPECIFIC
70    // List dependency information
71#endif   
72
73    log_printf(INFO,Reservation_station,FUNCTION,"Method - genMoore");
74
75    SC_METHOD (genMoore);
76    dont_initialize ();
77    sensitive_neg << *(in_CLOCK);
78
79#ifdef SYSTEMCASS_SPECIFIC
80    // List dependency information
81#endif   
82
83#endif
84    log_printf(FUNC,Reservation_station,FUNCTION,"End");
85  };
86 
87#undef  FUNCTION
88#define FUNCTION "Reservation_station::~Reservation_station"
89  Reservation_station::~Reservation_station (void)
90  {
91    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
92
93#ifdef STATISTICS
94    log_printf(INFO,Reservation_station,FUNCTION,"Generate Statistics file");
95
96    delete _stat;
97#endif
98
99#ifdef SYSTEMC
100    log_printf(INFO,Reservation_station,FUNCTION,"Deallocation");
101
102    deallocation ();
103#endif
104
105    log_printf(FUNC,Reservation_station,FUNCTION,"End");
106  };
107
108}; // end namespace reservation_station
109}; // end namespace read_unit
110}; // end namespace multi_read_unit
111}; // end namespace execute_loop
112}; // end namespace multi_execute_loop
113}; // end namespace core
114
115}; // end namespace behavioural
116}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.