Last change
on this file since 134 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_get_model.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/include/Vhdl.h" |
---|
11 | #include "Common/include/Tabulation.h" |
---|
12 | #include <sstream> |
---|
13 | |
---|
14 | namespace morpheo { |
---|
15 | namespace behavioural { |
---|
16 | |
---|
17 | std::string Vhdl::get_model(uint32_t depth , |
---|
18 | std::string filename , |
---|
19 | std::string entity_name ) |
---|
20 | { |
---|
21 | log_printf(FUNC,Behavioural,"get_model","Begin"); |
---|
22 | |
---|
23 | std::string tab = morpheo::tab(depth); |
---|
24 | std::ostringstream text; |
---|
25 | |
---|
26 | std::string configuration_name = "configuration_"+entity_name; |
---|
27 | |
---|
28 | text << tab << get_header (depth,filename) << std::endl |
---|
29 | << tab << get_library (depth) << std::endl |
---|
30 | << tab << get_entity (depth,entity_name) << std::endl |
---|
31 | << tab << get_architecture (depth,entity_name) << std::endl |
---|
32 | << tab << get_configuration(depth,entity_name,configuration_name) << std::endl |
---|
33 | ; |
---|
34 | |
---|
35 | log_printf(FUNC,Behavioural,"get_model","End"); |
---|
36 | |
---|
37 | return text.str(); |
---|
38 | }; |
---|
39 | |
---|
40 | }; // end namespace behavioural |
---|
41 | }; // end namespace morpheo |
---|
42 | |
---|
43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.