Last change
on this file since 58 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
|
Rev | Line | |
---|
[2] | 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 | |
---|
[53] | 14 | |
---|
| 15 | #undef FUNCTION |
---|
| 16 | #define FUNCTION "@COMPONENT::allocation" |
---|
[2] | 17 | void @COMPONENT::allocation (void) |
---|
| 18 | { |
---|
| 19 | string rename; |
---|
| 20 | |
---|
[53] | 21 | log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); |
---|
[2] | 22 | |
---|
[42] | 23 | _component = new Component (); |
---|
| 24 | |
---|
| 25 | Entity * entity = _component->set_entity (_name |
---|
[50] | 26 | ,"@COMPONENT" |
---|
[40] | 27 | #ifdef POSITION |
---|
[42] | 28 | ,COMBINATORY |
---|
| 29 | #endif |
---|
| 30 | ); |
---|
[2] | 31 | |
---|
[40] | 32 | _interfaces = entity->set_interfaces(); |
---|
| 33 | |
---|
| 34 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 35 | |
---|
[42] | 36 | Interface * interface = _interfaces->set_interface("" |
---|
| 37 | #ifdef POSITION |
---|
| 38 | ,IN |
---|
| 39 | ,SOUTH, |
---|
| 40 | "Generalist interface" |
---|
| 41 | #endif |
---|
| 42 | ); |
---|
[40] | 43 | |
---|
[50] | 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); |
---|
[40] | 46 | |
---|
[2] | 47 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 48 | |
---|
[40] | 49 | #ifdef POSITION |
---|
[42] | 50 | _component->generate_file(); |
---|
[40] | 51 | #endif |
---|
| 52 | |
---|
[53] | 53 | log_printf(FUNC,@COMPONENT,FUNCTION,"End"); |
---|
[2] | 54 | }; |
---|
| 55 | |
---|
| 56 | @NAMESPACE_END |
---|
| 57 | }; // end namespace behavioural |
---|
| 58 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.