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

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

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 2.0 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/include/Parameters.h"
9
10namespace morpheo {
11namespace behavioural {
12namespace core {
13namespace multi_front_end {
14namespace front_end {
15namespace ifetch_unit {
16namespace ifetch_queue {
17
18
19#undef  FUNCTION
20#define FUNCTION "Ifetch_queue::Parameters"
21  Parameters::Parameters (uint32_t size_queue                   ,
22                          uint32_t nb_instruction               ,
23                          uint32_t size_branch_update_prediction,
24                          uint32_t size_general_data            )
25  {
26    log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin");
27
28    _size_queue                            = size_queue                   ;
29    _nb_instruction                        = nb_instruction               ;
30    _size_branch_update_prediction         = size_branch_update_prediction;
31    _size_general_data                     = size_general_data            ;
32
33    _size_queue_ptr                        = log2(size_queue);
34    _size_instruction_ptr                  = log2(nb_instruction);
35
36    _have_port_queue_ptr                   = _size_queue_ptr > 0;
37    _have_port_instruction_ptr             = _size_instruction_ptr > 0;
38    _have_port_branch_update_prediction_id = size_branch_update_prediction > 0;
39   
40    test();
41    log_printf(FUNC,Ifetch_queue,FUNCTION,"End");
42  };
43 
44// #undef  FUNCTION
45// #define FUNCTION "Ifetch_queue::Parameters (copy)"
46//   Parameters::Parameters (Parameters & param)
47//   {
48//     log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin");
49//     test();
50//     log_printf(FUNC,Ifetch_queue,FUNCTION,"End");
51//   };
52
53#undef  FUNCTION
54#define FUNCTION "Ifetch_queue::~Parameters"
55  Parameters::~Parameters () 
56  {
57    log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin");
58    log_printf(FUNC,Ifetch_queue,FUNCTION,"End");
59  };
60
61}; // end namespace ifetch_queue
62}; // end namespace ifetch_unit
63}; // end namespace front_end
64}; // end namespace multi_front_end
65}; // end namespace core
66
67}; // end namespace behavioural
68}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.