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/Generic/Select/Select_Priority_Fixed/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters.cpp

    r81 r88  
    2828  };
    2929 
    30   Parameters::Parameters (Parameters & param):
    31     _nb_entity        (param._nb_entity       ),
    32     _encoding_one_hot (param._encoding_one_hot),
    33     _encoding_compact (param._encoding_compact),
    34     _size_entity      (param._size_entity     )
    35   {
    36     log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin");
    37     test();
    38     log_printf(FUNC,Select_Priority_Fixed,"Parameters","End");
    39   };
     30//   Parameters::Parameters (Parameters & param):
     31//     _nb_entity        (param._nb_entity       ),
     32//     _encoding_one_hot (param._encoding_one_hot),
     33//     _encoding_compact (param._encoding_compact),
     34//     _size_entity      (param._size_entity     )
     35//   {
     36//     log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin");
     37//     test();
     38//     log_printf(FUNC,Select_Priority_Fixed,"Parameters","End");
     39//   };
    4040
    4141  Parameters::~Parameters ()
     
    4343    log_printf(FUNC,Select_Priority_Fixed,"~Parameters","Begin");
    4444    log_printf(FUNC,Select_Priority_Fixed,"~Parameters","End");
     45  };
     46
     47  void Parameters::copy (void)
     48  {
     49    log_printf(FUNC,Select_Priority_Fixed,"copy","Begin");
     50    log_printf(FUNC,Select_Priority_Fixed,"copy","End");
    4551  };
    4652
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed.cpp

    r81 r88  
    22 * $Id$
    33 *
    4  * [ Description ]
     4 * [ Description ]
    55 *
    66 */
     
    3333    log_printf(FUNC,Select_Priority_Fixed,"Select_Priority_Fixed","Begin");
    3434
     35#if DEBUG_Select_Priority_Fixed == true
     36    log_printf(INFO,Select_Priority_Fixed,FUNCTION,_("<%s> Parameters"),_name.c_str());
     37
     38    std::cout << *param << std::endl;
     39#endif   
     40
    3541    log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Allocation");
    3642    allocation ();
    3743
    3844#ifdef STATISTICS
    39     if (_usage & USE_STATISTICS)
     45    if (usage_is_set(_usage,USE_STATISTICS))
    4046      {
    4147        log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Allocation of statistics");
     
    4652
    4753#ifdef VHDL
    48     // generate the vhdl
    49     log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Generate the vhdl");
    50 
    51     vhdl();
     54    if (usage_is_set(_usage,USE_VHDL)
     55      {
     56        // generate the vhdl
     57        log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Generate the vhdl");
     58       
     59        vhdl();
     60      }
    5261#endif
    5362
    5463#ifdef SYSTEMC
    55     if (_usage & USE_SYSTEMC)
    56       {
     64      if (usage_is_set(_usage,USE_SYSTEMC))
     65        {
    5766#  if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    5867        log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Method - transition");
     
    96105
    97106#ifdef STATISTICS
    98     if (_usage & USE_STATISTICS)
     107    if (usage_is_set(_usage,USE_STATISTICS))
    99108      {
    100109        log_printf(INFO,Select_Priority_Fixed,"~Select_Priority_Fixed","Generate Statistics file");
     
    104113#endif
    105114
    106 #ifdef SYSTEMC
    107115    log_printf(INFO,Select_Priority_Fixed,"~Select_Priority_Fixed","Deallocation");
    108 
    109116    deallocation ();
    110 #endif
    111117
    112118    log_printf(FUNC,Select_Priority_Fixed,"~Select_Priority_Fixed","End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp

    r81 r88  
    1 #ifdef SYSTEMC
    21/*
    32 * $Id$
     
    3029    _interfaces = entity->set_interfaces();
    3130
    32     // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     31    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3332
    3433    Interface_fifo * interface = _interfaces->set_interface(""
     
    6362
    6463#ifdef POSITION
    65     _component->generate_file();
     64    if (usage_is_set(_usage,USE_POSITION))
     65      _component->generate_file();
    6666#endif
    6767
     
    7474}; // end namespace behavioural
    7575}; // end namespace morpheo             
    76 #endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_deallocation.cpp

    r81 r88  
    1 #ifdef SYSTEMC
    21/*
    32 * $Id$
     
    2019    log_printf(FUNC,Select_Priority_Fixed,"deallocation","Begin");
    2120
    22     if (_usage & USE_SYSTEMC)
     21    if (usage_is_set(_usage,USE_SYSTEMC))
    2322      {
    2423        delete     in_CLOCK;
     
    4847}; // end namespace behavioural
    4948}; // end namespace morpheo             
    50 #endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_end_cycle.cpp

    r81 r88  
    2222
    2323#ifdef STATISTICS
    24     _stat->end_cycle();
     24    if (usage_is_set(_usage,USE_STATISTICS))
     25      _stat->end_cycle();
    2526#endif   
    2627
     
    2829    // Evaluation before read the ouput signal
    2930//  sc_start(0);
    30     _interfaces->testbench();
     31    if (usage_is_set(_usage,USE_VHDL_TESTBENCH))
     32      _interfaces->testbench();
    3133#endif
    3234
Note: See TracChangeset for help on using the changeset viewer.