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

Almost complete design
with Test and test platform

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src
Files:
6 edited

Legend:

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

    r85 r88  
    3838    log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"Begin");
    3939
     40#if DEBUG_Ifetch_unit_Glue == true
     41    log_printf(INFO,Ifetch_unit_Glue,FUNCTION,_("<%s> Parameters"),_name.c_str());
     42
     43    std::cout << *param << std::endl;
     44#endif   
     45
    4046    log_printf(INFO,Ifetch_unit_Glue,FUNCTION,"Allocation");
    4147
     
    4753
    4854#ifdef STATISTICS
    49     if (_usage & USE_STATISTICS)
     55    if (usage_is_set(_usage,USE_STATISTICS))
    5056      {
    5157        log_printf(INFO,Ifetch_unit_Glue,FUNCTION,"Allocation of statistics");
     
    5662
    5763#ifdef VHDL
    58     if (_usage & USE_VHDL)
     64    if (usage_is_set(_usage,USE_VHDL))
    5965      {
    6066        // generate the vhdl
     
    6672
    6773#ifdef SYSTEMC
    68     PORT_WRITE(out_ICACHE_REQ_TYPE,ICACHE_TYPE_LOAD);
     74    if (usage_is_set(_usage,USE_SYSTEMC))
     75      {
     76        // Write constant
     77        PORT_WRITE(out_ICACHE_REQ_TYPE,ICACHE_TYPE_LOAD);
    6978
    70     if (_usage & USE_SYSTEMC)
    71       {
    7279# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    7380        log_printf(INFO,Ifetch_unit_Glue,FUNCTION,"Method - transition");
     
    140147
    141148#ifdef STATISTICS
    142     if (_usage & USE_STATISTICS)
     149    if (usage_is_set(_usage,USE_STATISTICS)) 
    143150      {
    144151        statistics_deallocation();
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Ifetch_unit_Glue_allocation.cpp

    r85 r88  
    6767      ALLOC_SIGNAL_IN ( in_ICACHE_REQ_QUEUE_ACK      ,"queue_ack"      ,Tcontrol_t,1);
    6868      ALLOC_SIGNAL_OUT(out_ICACHE_REQ_TYPE           ,"type"           ,Ticache_type_t,_param->_size_icache_type);
    69       ALLOC_SIGNAL_OUT(out_ICACHE_REQ_ADDRESS        ,"address"        ,Taddress_t,_param->_size_address);
    70       ALLOC_SIGNAL_IN ( in_ICACHE_REQ_ADDRESS_ADDRESS,"address_address",Taddress_t,_param->_size_address);
    71       ALLOC_SIGNAL_OUT(out_ICACHE_REQ_QUEUE_ADDRESS  ,"queue_address"  ,Taddress_t,_param->_size_address);
     69      ALLOC_SIGNAL_OUT(out_ICACHE_REQ_ADDRESS        ,"address"        ,Taddress_t,_param->_size_instruction_address);
     70      ALLOC_SIGNAL_IN ( in_ICACHE_REQ_ADDRESS_ADDRESS,"address_address",Taddress_t,_param->_size_instruction_address);
     71      ALLOC_SIGNAL_OUT(out_ICACHE_REQ_QUEUE_ADDRESS  ,"queue_address"  ,Taddress_t,_param->_size_instruction_address);
    7272    }
    7373
     
    8787
    8888#ifdef POSITION
    89     _component->generate_file();
     89     if (usage_is_set(_usage,USE_POSITION))
     90       _component->generate_file();
    9091#endif
    9192
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Ifetch_unit_Glue_deallocation.cpp

    r85 r88  
    2323    log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"Begin");
    2424
    25     if (_usage & USE_SYSTEMC)
     25    if (usage_is_set(_usage,USE_SYSTEMC))
    2626      {
    2727        delete     in_CLOCK ;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Ifetch_unit_Glue_end_cycle.cpp

    r81 r88  
    2525
    2626#ifdef STATISTICS
    27     _stat->end_cycle();
     27    if (usage_is_set(_usage,USE_STATISTICS))
     28      _stat->end_cycle();
    2829#endif   
    2930
     
    3132    // Evaluation before read the ouput signal
    3233//  sc_start(0);
    33     _interfaces->testbench();
     34    if (usage_is_set(_usage,USE_VHDL_TESTBENCH))
     35      _interfaces->testbench();
    3436#endif
    3537
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Parameters.cpp

    r85 r88  
    1919#undef  FUNCTION
    2020#define FUNCTION "Ifetch_unit_Glue::Parameters"
    21   Parameters::Parameters (uint32_t size_address)
     21  Parameters::Parameters (uint32_t size_address,
     22                          bool     is_toplevel)
    2223  {
    2324    log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"Begin");
    2425
    25     _size_address = size_address;
     26    test();
    2627
    27     test();
     28    if (is_toplevel)
     29      {
     30        _size_instruction_address = size_address;
     31
     32        copy ();
     33      }
     34
    2835    log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"End");
    2936  };
     
    4653  };
    4754
     55#undef  FUNCTION
     56#define FUNCTION "Ifetch_unit_Glue::copy"
     57  void Parameters::copy (void)
     58  {
     59    log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"Begin");
     60    log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"End");
     61  };
     62
    4863}; // end namespace ifetch_unit_glue
    4964}; // end namespace ifetch_unit
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Parameters_print.cpp

    r85 r88  
    2727
    2828    xml.balise_open("ifetch_unit_glue");
    29     xml.singleton_begin("size_address"); xml.attribut("value",toString(_size_address)); xml.singleton_end();
     29//  xml.singleton_begin("size_address"); xml.attribut("value",toString(_size_address)); xml.singleton_end();
    3030    xml.balise_close();
    3131
Note: See TracChangeset for help on using the changeset viewer.