Last change
on this file since 125 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.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Interface_find_signal.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Interface.h" |
---|
9 | |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | |
---|
14 | Signal * Interface::find_signal (std::string name) |
---|
15 | { |
---|
16 | log_printf(FUNC,Behavioural,"find_signal","Begin"); |
---|
17 | |
---|
18 | LowerCase(name); |
---|
19 | |
---|
20 | std::list<Signal*>::iterator i = _list_signal->begin(); |
---|
21 | Signal * sig = NULL; |
---|
22 | if (_list_signal->empty() == false) |
---|
23 | { |
---|
24 | while (i != _list_signal->end()) |
---|
25 | { |
---|
26 | if ((*i)->get_name() == name) |
---|
27 | { |
---|
28 | sig = (*i); |
---|
29 | break; |
---|
30 | } |
---|
31 | ++i; |
---|
32 | } |
---|
33 | } |
---|
34 | |
---|
35 | log_printf(FUNC,Behavioural,"find_signal","End"); |
---|
36 | |
---|
37 | return sig; |
---|
38 | }; |
---|
39 | |
---|
40 | bool Interface::find_signal (Signal * signal) |
---|
41 | { |
---|
42 | log_printf(FUNC,Behavioural,"find_signal","Begin"); |
---|
43 | |
---|
44 | bool find = false; |
---|
45 | std::list<Signal*>::iterator i = _list_signal->begin(); |
---|
46 | if (_list_signal->empty() == false) |
---|
47 | { |
---|
48 | while (i != _list_signal->end()) |
---|
49 | { |
---|
50 | if ( (*i) == signal) |
---|
51 | { |
---|
52 | find = true; |
---|
53 | break; |
---|
54 | } |
---|
55 | ++i; |
---|
56 | } |
---|
57 | } |
---|
58 | |
---|
59 | log_printf(FUNC,Behavioural,"find_signal","End"); |
---|
60 | |
---|
61 | return find; |
---|
62 | }; |
---|
63 | |
---|
64 | }; // end namespace behavioural |
---|
65 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.