Last change
on this file since 61 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:
666 bytes
|
Rev | Line | |
---|
[29] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Signal.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
| 13 | XML Signal::toXML (void) |
---|
| 14 | { |
---|
[38] | 15 | log_printf(FUNC,Behavioural,"toXML","Begin"); |
---|
| 16 | |
---|
[29] | 17 | XML xml ("signal"); |
---|
| 18 | |
---|
| 19 | xml.singleton_begin ("signal"); |
---|
| 20 | xml.attribut ("name" ,_name ); |
---|
| 21 | xml.attribut ("direction",toString(_direction)); |
---|
| 22 | xml.attribut ("size" ,toString(_size )); |
---|
| 23 | xml.singleton_end (); |
---|
[38] | 24 | |
---|
| 25 | log_printf(FUNC,Behavioural,"toXML","End"); |
---|
| 26 | |
---|
[29] | 27 | return xml; |
---|
| 28 | }; |
---|
| 29 | |
---|
| 30 | }; // end namespace behavioural |
---|
| 31 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.