source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/src/Parameters.cpp @ 88

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1/*
2 * $Id: Parameters.cpp 88 2008-12-10 18:31:39Z 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                          bool     is_toplevel)
25  {
26    log_printf(FUNC,Address_management,FUNCTION,"Begin");
27
28    _nb_instruction = nb_instruction               ;
29
30    test();
31
32    if (is_toplevel)
33      {
34        _size_instruction_address  = size_address                 ;
35        _size_depth                = size_branch_update_prediction;
36        _size_inst_ifetch_ptr      = log2(nb_instruction);
37       
38        _have_port_inst_ifetch_ptr = _size_inst_ifetch_ptr > 0;
39        _have_port_depth           = _size_depth > 0;
40
41        copy();
42      }
43
44    log_printf(FUNC,Address_management,FUNCTION,"End");
45  };
46 
47// #undef  FUNCTION
48// #define FUNCTION "Address_management::Parameters (copy)"
49//   Parameters::Parameters (Parameters & param)
50//   {
51//     log_printf(FUNC,Address_management,FUNCTION,"Begin");
52//     test();
53//     log_printf(FUNC,Address_management,FUNCTION,"End");
54//   };
55
56#undef  FUNCTION
57#define FUNCTION "Address_management::~Parameters"
58  Parameters::~Parameters () 
59  {
60    log_printf(FUNC,Address_management,FUNCTION,"Begin");
61    log_printf(FUNC,Address_management,FUNCTION,"End");
62  };
63
64#undef  FUNCTION
65#define FUNCTION "Address_management::copy"
66  void Parameters::copy (void) 
67  {
68    log_printf(FUNC,Address_management,FUNCTION,"Begin");
69    log_printf(FUNC,Address_management,FUNCTION,"End");
70  };
71
72}; // end namespace address_management
73}; // end namespace ifetch_unit
74}; // end namespace front_end
75}; // end namespace multi_front_end
76}; // end namespace core
77
78}; // end namespace behavioural
79}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.