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