Last change
on this file since 36 was
15,
checked in by rosiere, 17 years ago
|
Interface normalisé
Début du banc de registres multi niveaux
|
File size:
792 bytes
|
Line | |
---|
1 | #ifdef VHDL |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" |
---|
10 | |
---|
11 | #ifdef VHDL_TESTBENCH |
---|
12 | # define VHDL_SET_PORT(name,direction,size) do {vhdl.set_port (name,direction,size); _vhdl_testbench->set_port (name,direction,size);} while(0) |
---|
13 | #else |
---|
14 | # define VHDL_SET_PORT(name,direction,size) vhdl.set_port (name,direction,size) |
---|
15 | #endif |
---|
16 | |
---|
17 | namespace morpheo { |
---|
18 | namespace behavioural { |
---|
19 | @NAMESPACE_BEGIN |
---|
20 | |
---|
21 | void @COMPONENT::vhdl_port (Vhdl & vhdl) |
---|
22 | { |
---|
23 | log_printf(FUNC,@COMPONENT,"vhdl_port","Begin"); |
---|
24 | |
---|
25 | vhdl.set_port (" in_CLOCK" , IN, 1); |
---|
26 | VHDL_SET_PORT (" in_NRESET", IN, 1); |
---|
27 | |
---|
28 | log_printf(FUNC,@COMPONENT,"vhdl_port","End"); |
---|
29 | }; |
---|
30 | |
---|
31 | @NAMESPACE_END |
---|
32 | }; // end namespace behavioural |
---|
33 | }; // end namespace morpheo |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.