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/Sort
Files:
8 edited

Legend:

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

    r81 r88  
    2424library_clean                   : Sort_library_clean
    2525
     26local_clean                     :
     27
    2628include                         $(DIR_COMPONENT)/Makefile.deps
    2729include                         $(DIR_MORPHEO)/Behavioural/Makefile.flags
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/SelfTest/src/test.cpp

    r82 r88  
    3131#endif
    3232
     33  Tusage_t _usage = USE_ALL;
     34
     35//   _usage = usage_unset(_usage,USE_SYSTEMC              );
     36//   _usage = usage_unset(_usage,USE_VHDL                 );
     37//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH       );
     38//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT);
     39//   _usage = usage_unset(_usage,USE_POSITION             );
     40//   _usage = usage_unset(_usage,USE_STATISTICS           );
     41//   _usage = usage_unset(_usage,USE_INFORMATION          );
     42
    3343  Sort * _Sort = new Sort (name.c_str(),
    3444#ifdef STATISTICS
     
    3646#endif
    3747                           _param,
    38                            USE_ALL);
     48                           _usage);
    3949 
    4050#ifdef SYSTEMC
     
    154164              tab [ptr]._val = false;
    155165
    156               LABEL("OUTPUT [%d] %d - %d",i, out_OUTPUT_VAL [i]->read(), out_OUTPUT_DATA [i]->read(), out_OUTPUT_INDEX [i]->read());
     166              LABEL("OUTPUT [%d] %d %d - %d",i, out_OUTPUT_VAL [i]->read(), out_OUTPUT_DATA [i]->read(), out_OUTPUT_INDEX [i]->read());
    157167
    158168              TEST(Tcontrol_t,out_OUTPUT_VAL   [i]->read(),find);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/include/Parameters.h

    r81 r88  
    4242  public : ~Parameters () ;
    4343
     44  public :        void            copy       (void);
     45
    4446  public :        Parameters_test msg_error  (void);
    4547
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Parameters.cpp

    r81 r88  
    5555  };
    5656
     57#undef  FUNCTION
     58#define FUNCTION "Sort::copy"
     59  void Parameters::copy (void)
     60  {
     61    log_printf(FUNC,Sort,FUNCTION,"Begin");
     62    log_printf(FUNC,Sort,FUNCTION,"End");
     63  };
     64
    5765}; // end namespace sort
    5866}; // end namespace generic
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Sort.cpp

    r81 r88  
    3535    log_printf(FUNC,Sort,FUNCTION,"Begin");
    3636
     37#if DEBUG_Sort == true
     38    log_printf(INFO,Sort,FUNCTION,_("<%s> Parameters"),_name.c_str());
     39
     40    std::cout << *param << std::endl;
     41#endif   
     42
    3743    log_printf(INFO,Sort,FUNCTION,"Allocation");
    3844
     
    4450
    4551#ifdef STATISTICS
    46     if (_usage & USE_STATISTICS)
     52    if (usage_is_set(_usage,USE_STATISTICS))
    4753      {
    4854        log_printf(INFO,Sort,FUNCTION,"Allocation of statistics");
     
    5359
    5460#ifdef VHDL
    55     if (_usage & USE_VHDL)
     61    if (usage_is_set(_usage,USE_VHDL))
    5662      {
    5763        // generate the vhdl
     
    6369
    6470#ifdef SYSTEMC
    65     if (_usage & USE_SYSTEMC)
     71    if (usage_is_set(_usage,USE_SYSTEMC))
    6672      {
    6773        log_printf(INFO,Sort,FUNCTION,"Method - transition");
     
    117123
    118124#ifdef STATISTICS
    119     if (_usage & USE_STATISTICS)
     125    if (usage_is_set(_usage,USE_STATISTICS))
    120126      {
    121127        statistics_deallocation();
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Sort_allocation.cpp

    r81 r88  
    1313namespace generic {
    1414namespace sort {
    15 
    16 
    1715
    1816#undef  FUNCTION
     
    7573
    7674#ifdef POSITION
    77     _component->generate_file();
     75    if (usage_is_set(_usage,USE_POSTION))
     76      _component->generate_file();
    7877#endif
    7978
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Sort_deallocation.cpp

    r81 r88  
    2020    log_printf(FUNC,Sort,FUNCTION,"Begin");
    2121
    22     if (_usage & USE_SYSTEMC)
     22    if (usage_is_set(_usage,USE_SYSTEMC))
    2323      {
    2424        delete     in_CLOCK ;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Sort_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.