Last change
on this file since 40 was
38,
checked in by rosiere, 17 years ago
|
Interface et vhdl_testbench : l'appel aux fonction add_input et add_ouput est maintenant réalisé par la classe Interface (et autre).
2 remarques :
- tester avec des sous composants (en particulier les sorties d'un est directement relié au sortie d'un autre)
- Signal_testbench.cpp -> l'optimisé (par exemple pointeur de fonction afin d'éviter le test et le switch)
|
File size:
1.1 KB
|
Rev | Line | |
---|
[31] | 1 | #ifdef POSITION |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Entity.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
| 14 | Entity::Entity (string name , |
---|
| 15 | string type , |
---|
| 16 | schema_t schema): |
---|
| 17 | _name (name ), |
---|
| 18 | _type (type ), |
---|
| 19 | _schema (schema ) |
---|
| 20 | { |
---|
[38] | 21 | log_printf(FUNC,Behavioural,"Entity","Begin"); |
---|
[31] | 22 | _is_map = false; |
---|
[38] | 23 | log_printf(FUNC,Behavioural,"Entity","End"); |
---|
[31] | 24 | }; |
---|
| 25 | |
---|
| 26 | Entity::Entity (const Entity & entity): |
---|
| 27 | _name (entity._name ), |
---|
| 28 | _type (entity._type ), |
---|
| 29 | _schema (entity._schema ) |
---|
| 30 | { |
---|
[38] | 31 | log_printf(FUNC,Behavioural,"Entity (copy)","Begin"); |
---|
[31] | 32 | _is_map = entity._is_map ; |
---|
| 33 | _interfaces = entity._interfaces; |
---|
| 34 | _comment = entity._comment ; |
---|
[38] | 35 | log_printf(FUNC,Behavioural,"Entity (copy)","End"); |
---|
[31] | 36 | }; |
---|
| 37 | |
---|
| 38 | Entity::~Entity () |
---|
| 39 | { |
---|
[38] | 40 | log_printf(FUNC,Behavioural,"~Entity","Begin"); |
---|
[31] | 41 | delete _interfaces; |
---|
[38] | 42 | log_printf(FUNC,Behavioural,"~Entity","End"); |
---|
[31] | 43 | }; |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | }; // end namespace behavioural |
---|
| 47 | }; // end namespace morpheo |
---|
| 48 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.