source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/src/Parameters.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: 1.8 KB
Line 
1/*
2 * $Id: Parameters.cpp 81 2008-04-15 18:40:01Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/include/Parameters.h"
9
10namespace morpheo {
11namespace behavioural {
12namespace core {
13namespace multi_front_end {
14namespace front_end {
15namespace ifetch_unit {
16namespace address_management {
17
18
19#undef  FUNCTION
20#define FUNCTION "Address_management::Parameters"
21  Parameters::Parameters (uint32_t nb_instruction,
22                          uint32_t size_address  ,
23                          uint32_t size_branch_update_prediction)
24  {
25    log_printf(FUNC,Address_management,FUNCTION,"Begin");
26
27    _nb_instruction                        = nb_instruction               ;
28    _size_address                          = size_address                 ;
29    _size_branch_update_prediction         = size_branch_update_prediction;
30
31    _size_instruction_ptr                  = log2(nb_instruction);
32
33    _have_port_instruction_ptr             = _size_instruction_ptr > 0;
34    _have_port_branch_update_prediction_id = size_branch_update_prediction > 0;
35
36    test();
37    log_printf(FUNC,Address_management,FUNCTION,"End");
38  };
39 
40// #undef  FUNCTION
41// #define FUNCTION "Address_management::Parameters (copy)"
42//   Parameters::Parameters (Parameters & param)
43//   {
44//     log_printf(FUNC,Address_management,FUNCTION,"Begin");
45//     test();
46//     log_printf(FUNC,Address_management,FUNCTION,"End");
47//   };
48
49#undef  FUNCTION
50#define FUNCTION "Address_management::~Parameters"
51  Parameters::~Parameters () 
52  {
53    log_printf(FUNC,Address_management,FUNCTION,"Begin");
54    log_printf(FUNC,Address_management,FUNCTION,"End");
55  };
56
57}; // end namespace address_management
58}; // end namespace ifetch_unit
59}; // end namespace front_end
60}; // end namespace multi_front_end
61}; // end namespace core
62
63}; // end namespace behavioural
64}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.