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
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/SelfTest/Makefile

    r81 r88  
    2323library_clean                   : Select_Priority_Fixed_library_clean
    2424
     25local_clean                     :
     26
    2527include                         ../Makefile.deps
    2628include                         $(DIR_MORPHEO)/Behavioural/Makefile.flags
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/SelfTest/src/test.cpp

    r82 r88  
    1818  cout << "<" << name << "> : Simulation SystemC" << endl;
    1919
    20 
    2120#ifdef STATISTICS
    2221  morpheo::behavioural::Parameters_Statistics * _param_stat = new morpheo::behavioural::Parameters_Statistics (5,50);
    2322#endif
     23
     24  Tusage_t _usage = USE_ALL;
     25
     26//   _usage = usage_unset(_usage,USE_SYSTEMC              );
     27//   _usage = usage_unset(_usage,USE_VHDL                 );
     28//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH       );
     29//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT);
     30//   _usage = usage_unset(_usage,USE_POSITION             );
     31//   _usage = usage_unset(_usage,USE_STATISTICS           );
     32//   _usage = usage_unset(_usage,USE_INFORMATION          );
     33
    2434  Select_Priority_Fixed * _Select_Priority_Fixed = new Select_Priority_Fixed
    2535    (name.c_str(),
     
    2838#endif
    2939     _param,
    30      USE_ALL);
     40     _usage);
    3141 
    3242#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h

    r81 r88  
    3131                        bool     encoding_one_hot,
    3232                        bool     encoding_compact);
    33   public : Parameters  (Parameters & param) ;
     33//   public : Parameters  (Parameters & param) ;
    3434  public : ~Parameters () ;
    3535
     36  public :        void            copy       (void);
     37
    3638  public :        Parameters_test msg_error  (void);
     39
    3740  public :        std::string   print      (uint32_t depth);
    3841  public : friend std::ostream& operator<< (std::ostream& output_stream,
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h

    r82 r88  
    9595  public  :          ~Select_Priority_Fixed             (void);
    9696                                               
    97 #ifdef SYSTEMC                                 
    9897  private : void     allocation                (void);
    9998  private : void     deallocation              (void);
    10099                                               
     100#ifdef SYSTEMC                                 
    101101# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    102102  public  : void     transition                (void);
  • 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.