Ignore:
Timestamp:
Jul 5, 2007, 5:50:19 PM (17 years ago)
Author:
rosiere
Message:

Modification des classes d'encapsulation des interfaces :

  • gère les signaux à écrire dans le vhdl
  • les traces pour le testbench
  • la génération des vhdl structurelles

-> test sur la Pattern History Table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp

    r40 r42  
    1919    log_printf(FUNC,@COMPONENT,"allocation","Begin");
    2020
     21    _component   = new Component ();
     22
     23    Entity * entity = _component->set_entity (_name       
    2124#ifdef POSITION
    22     _position   = new Position ();
    23 
    24     Entity * entity = _position->set_entity (_name       ,
    25                                              "@COMPONENT",
    26                                              COMBINATORY );
     25                                              ,"@COMPONENT"
     26                                              ,COMBINATORY
     27#endif
     28                                              );
    2729
    2830    _interfaces = entity->set_interfaces();
    29 #else
    30     _interfaces = new Interfaces();
    31 #endif
    3231
    3332    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3433
    35     Interface * interface_ = _interfaces->set_interface("", IN  ,WEST, "Generalist interface");
     34      Interface * interface = _interfaces->set_interface(""
     35#ifdef POSITION
     36                                                         ,IN
     37                                                         ,SOUTH,
     38                                                         "Generalist interface"
     39#endif
     40                                                         );
    3641
    37      in_CLOCK        = interface_->set_signal_clk              ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO);
    38      in_NRESET       = interface_->set_signal_in  <Tcontrol_t> ("nreset",1);
     42     in_CLOCK        = interface->set_signal_clk              ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO);
     43     in_NRESET       = interface->set_signal_in  <Tcontrol_t> ("nreset",1);
    3944
    4045
     
    4247
    4348#ifdef POSITION
    44     _position->generate_file();
     49    _component->generate_file();
    4550#endif
    4651
    47     log_printf(FUNC,@COMPONENT,"allocation","End");
     52    Log_printf(FUNC,@COMPONENT,"allocation","End");
    4853  };
    4954
Note: See TracChangeset for help on using the changeset viewer.