Last change
on this file since 63 was
57,
checked in by rosiere, 17 years ago
|
- VHDL - RegisterFile_Multi_Banked (only partial_crossbar)
- SystemC - modif Component, interface and co -> ajout du type Tusage_T pour instancier un coposant mais ne demander que le VHDL ou le systemC.
- Séminaire interne
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace 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 (); |
---|
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.