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