Last change
on this file since 114 was
112,
checked in by rosiere, 16 years ago
|
1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone
|
-
Property svn:keywords set to
Id
|
File size:
645 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Model_get_type.cpp 112 2009-03-18 22:36:26Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Model.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | #undef FUNCTION |
---|
14 | #define FUNCTION "Model::get_type" |
---|
15 | model_type_t Model::get_type (std::string component) |
---|
16 | { |
---|
17 | log_begin(Behavioural,FUNCTION); |
---|
18 | |
---|
19 | model_type_t _return; |
---|
20 | |
---|
21 | std::map<std::string,model_t>::iterator it = models.find(component); |
---|
22 | |
---|
23 | if (it != models.end()) |
---|
24 | _return = it->second.type; |
---|
25 | else |
---|
26 | _return = default_type; |
---|
27 | |
---|
28 | log_end(Behavioural,FUNCTION); |
---|
29 | |
---|
30 | return _return; |
---|
31 | } |
---|
32 | |
---|
33 | }; // end namespace behavioural |
---|
34 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.