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

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src
Files:
4 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
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_deallocation.cpp

    r40 r42  
    2424    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    2525
    26 #ifdef POSITION
    27     delete _position;
    28 #else
    29     delete _interfaces;
    30 #endif
     26    delete _component;
    3127
    3228    log_printf(FUNC,@COMPONENT,"deallocation","End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl.cpp

    r40 r42  
    2020    Vhdl vhdl (_name);
    2121
    22     vhdl.set_library_work (_name + "_Pack");
     22    _interfaces->set_port(vhdl);
     23    _component->vhdl_instance(vhdl);
    2324
    24     vhdl_port        (vhdl);
    2525    vhdl_declaration (vhdl);
    2626    vhdl_body        (vhdl);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_port.cpp

    r41 r42  
    1313@NAMESPACE_BEGIN
    1414
    15   void @COMPONENT::vhdl_port (Vhdl & vhdl)
    16   {
    17     log_printf(FUNC,@COMPONENT,"vhdl_port","Begin");
     15//   void @COMPONENT::vhdl_port (Vhdl & vhdl)
     16//   {
     17//     log_printf(FUNC,@COMPONENT,"vhdl_port","Begin");
    1818
    19     _interfaces->set_port(vhdl);
     19//     _interfaces->set_port(vhdl);
    2020
    21     log_printf(FUNC,@COMPONENT,"vhdl_port","End");
    22   };
     21//     Log_printf(FUNC,@COMPONENT,"vhdl_port","End");
     22//   };
    2323
    2424@NAMESPACE_END
Note: See TracChangeset for help on using the changeset viewer.