source: trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp @ 68

Last change on this file since 68 was 68, checked in by rosiere, 16 years ago

read_queue : systemC et vhdl ok !
queue : quelques petits modif pour avoir une queue de taille 1
nettoyage des fichiers *mkf*

File size: 1.3 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/@DIRECTORY/include/@COMPONENT.h"
9
10namespace morpheo                    {
11namespace behavioural {
12@NAMESPACE_BEGIN
13
14
15#undef  FUNCTION
16#define FUNCTION "@COMPONENT::allocation"
17  void @COMPONENT::allocation (void)
18  {
19    string rename;
20
21    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
22
23    _component   = new Component (_usage);
24
25    Entity * entity = _component->set_entity (_name       
26                                              ,"@COMPONENT"
27#ifdef POSITION
28                                              ,COMBINATORY
29#endif
30                                              );
31
32    _interfaces = entity->set_interfaces();
33
34    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35
36      Interface * interface = _interfaces->set_interface(""
37#ifdef POSITION
38                                                         ,IN
39                                                         ,SOUTH,
40                                                         "Generalist interface"
41#endif
42                                                         );
43
44     in_CLOCK        = interface->set_signal_clk              ("clock" ,1, CLOCK_VHDL_YES);
45     in_NRESET       = interface->set_signal_in  <Tcontrol_t> ("nreset",1, RESET_VHDL_YES);
46
47    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
48
49#ifdef POSITION
50    _component->generate_file();
51#endif
52
53    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
54  };
55
56@NAMESPACE_END
57}; // end namespace behavioural
58}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.