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 | #ifdef VHDL |
---|
2 | |
---|
3 | /* |
---|
4 | * $Id: Vhdl_set_body_component.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/include/Vhdl.h" |
---|
11 | |
---|
12 | #include <sstream> |
---|
13 | |
---|
14 | namespace morpheo { |
---|
15 | namespace behavioural { |
---|
16 | |
---|
17 | #undef FUNCTION |
---|
18 | #define FUNCTION "Vhdl::set_body_component" |
---|
19 | void Vhdl::set_body_component (std::string name_instance , |
---|
20 | std::string name_component , |
---|
21 | std::string name_architecture, |
---|
22 | std::string name_package , |
---|
23 | std::list<std::string> list_port_map ) |
---|
24 | { |
---|
25 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | name_architecture = test_architecture(name_architecture); |
---|
28 | |
---|
29 | set_body(name_instance + " : entity " + name_package + "." + name_component + " (" + name_architecture + ")"); |
---|
30 | // set_body(name_instance + " : " + name_component); |
---|
31 | set_body("port map ("); |
---|
32 | set_list(_architecture[name_architecture]._list_body, get_list(list_port_map, 1, ",", false)); |
---|
33 | set_body(");"); |
---|
34 | |
---|
35 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
36 | }; |
---|
37 | |
---|
38 | }; // end namespace behavioural |
---|
39 | }; // end namespace morpheo |
---|
40 | |
---|
41 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.