Line | |
---|
1 | #ifdef VHDL |
---|
2 | |
---|
3 | /* |
---|
4 | * $Id$ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/include/Vhdl.h" |
---|
11 | |
---|
12 | #include <sstream> |
---|
13 | using namespace std; |
---|
14 | |
---|
15 | namespace morpheo { |
---|
16 | namespace behavioural { |
---|
17 | |
---|
18 | void Vhdl::set_signal (string name , |
---|
19 | string type ) |
---|
20 | { |
---|
21 | set_list(_list_signal, "signal "+ name + "\t: " + type); |
---|
22 | }; |
---|
23 | |
---|
24 | void Vhdl::set_signal (string name , |
---|
25 | uint32_t size ) |
---|
26 | { |
---|
27 | set_signal(name,std_logic(size)); |
---|
28 | } |
---|
29 | |
---|
30 | void Vhdl::set_signal (string name , |
---|
31 | string type , |
---|
32 | string init) |
---|
33 | { |
---|
34 | _list_signal.push_back ("signal "+ name+"\t: "+type+"\t:= "+init); |
---|
35 | }; |
---|
36 | |
---|
37 | void Vhdl::set_signal (string name , |
---|
38 | uint32_t size , |
---|
39 | string init ) |
---|
40 | { |
---|
41 | set_signal(name,std_logic(size),init); |
---|
42 | }; |
---|
43 | void Vhdl::set_signal (string name , |
---|
44 | uint32_t size , |
---|
45 | uint32_t init ) |
---|
46 | { |
---|
47 | set_signal(name,std_logic(size),std_logic_conv(size,init)); |
---|
48 | }; |
---|
49 | |
---|
50 | |
---|
51 | }; // end namespace behavioural |
---|
52 | }; // end namespace morpheo |
---|
53 | |
---|
54 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.