Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (15 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/src/Parameters.cpp

    r81 r88  
    2121  Parameters::Parameters (uint32_t nb_instruction,
    2222                          uint32_t size_address  ,
    23                           uint32_t size_branch_update_prediction)
     23                          uint32_t size_branch_update_prediction,
     24                          bool     is_toplevel)
    2425  {
    2526    log_printf(FUNC,Address_management,FUNCTION,"Begin");
    2627
    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;
     28    _nb_instruction = nb_instruction               ;
    3529
    3630    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
    3744    log_printf(FUNC,Address_management,FUNCTION,"End");
    3845  };
     
    5562  };
    5663
     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
    5772}; // end namespace address_management
    5873}; // end namespace ifetch_unit
Note: See TracChangeset for help on using the changeset viewer.