Last change
on this file since 114 was
113,
checked in by rosiere, 15 years ago
|
1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Interface_set_signal.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Interface.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | #undef FUNCTION |
---|
14 | #define FUNCTION "Interface::set_signal" |
---|
15 | Signal * Interface::set_signal (std::string name , |
---|
16 | direction_t direction, |
---|
17 | uint32_t size , |
---|
18 | presence_port_t presence_port) |
---|
19 | { |
---|
20 | log_begin(Behavioural,FUNCTION); |
---|
21 | |
---|
22 | std::string signame = signal_name(_name, name, direction); |
---|
23 | |
---|
24 | Signal * sig = new Signal (signame, direction, size, presence_port); |
---|
25 | |
---|
26 | _list_signal->push_back (sig); |
---|
27 | |
---|
28 | log_end(Behavioural,FUNCTION); |
---|
29 | |
---|
30 | return sig; |
---|
31 | }; |
---|
32 | |
---|
33 | #ifdef VHDL |
---|
34 | # ifdef VHDL_TESTBENCH |
---|
35 | |
---|
36 | #undef FUNCTION |
---|
37 | #define FUNCTION "Interface::set_signal" |
---|
38 | void Interface::set_signal (Vhdl * & vhdl) |
---|
39 | { |
---|
40 | log_begin(Behavioural,FUNCTION); |
---|
41 | if (not _list_signal->empty()) |
---|
42 | { |
---|
43 | std::list<Signal*>::iterator i = _list_signal->begin(); |
---|
44 | |
---|
45 | while (i != _list_signal->end()) |
---|
46 | { |
---|
47 | (*i)->set_signal (vhdl); |
---|
48 | ++i; |
---|
49 | } |
---|
50 | } |
---|
51 | log_end(Behavioural,FUNCTION); |
---|
52 | }; |
---|
53 | # endif |
---|
54 | #endif |
---|
55 | |
---|
56 | }; // end namespace behavioural |
---|
57 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.