Last change
on this file since 42 was
42,
checked in by rosiere, 17 years ago
|
Modification des classes d'encapsulation des interfaces :
- gère les signaux à écrire dans le vhdl
- les traces pour le testbench
- la génération des vhdl structurelles
-> test sur la Pattern History Table
|
File size:
912 bytes
|
Line | |
---|
1 | #ifdef POSITION |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Interfaces.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | |
---|
14 | XML Interfaces::toXML (void) |
---|
15 | { |
---|
16 | XML xml ("interfaces"); |
---|
17 | |
---|
18 | if (_list_interface->empty()== false) |
---|
19 | { |
---|
20 | list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
21 | |
---|
22 | while (i != _list_interface->end()) |
---|
23 | { |
---|
24 | xml. insert_XML ((*i)->toXML()); |
---|
25 | ++i; |
---|
26 | } |
---|
27 | } |
---|
28 | |
---|
29 | return xml; |
---|
30 | }; |
---|
31 | |
---|
32 | XML Interfaces::toXML_mapping (void) |
---|
33 | { |
---|
34 | XML xml ("interfaces"); |
---|
35 | |
---|
36 | if (_list_interface->empty()== false) |
---|
37 | { |
---|
38 | list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
39 | |
---|
40 | while (i != _list_interface->end()) |
---|
41 | { |
---|
42 | xml. insert_XML ((*i)->toXML_mapping()); |
---|
43 | ++i; |
---|
44 | } |
---|
45 | } |
---|
46 | |
---|
47 | return xml; |
---|
48 | }; |
---|
49 | }; // end namespace behavioural |
---|
50 | }; // end namespace morpheo |
---|
51 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.