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:
1011 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Interfaces.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | Interface_fifo * Interfaces::set_interface (string name |
---|
14 | #ifdef POSITION |
---|
15 | ,direction_t direction |
---|
16 | ,localisation_t localisation |
---|
17 | #endif |
---|
18 | ) |
---|
19 | { |
---|
20 | Interface_fifo * interface = new Interface_fifo (name |
---|
21 | #ifdef POSITION |
---|
22 | ,direction |
---|
23 | ,localisation |
---|
24 | #endif |
---|
25 | ); |
---|
26 | |
---|
27 | _list_interface->push_back (interface); |
---|
28 | |
---|
29 | return interface; |
---|
30 | }; |
---|
31 | |
---|
32 | #ifdef POSITION |
---|
33 | Interface_fifo * Interfaces::set_interface (string name , |
---|
34 | direction_t direction , |
---|
35 | localisation_t localisation, |
---|
36 | string comment ) |
---|
37 | { |
---|
38 | Interface_fifo * interface = set_interface(name, direction, localisation); |
---|
39 | |
---|
40 | interface->set_comment (comment); |
---|
41 | |
---|
42 | return interface; |
---|
43 | }; |
---|
44 | #endif |
---|
45 | |
---|
46 | }; // end namespace behavioural |
---|
47 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.