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.1 KB
|
Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id: Vhdl_get_package.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
| 5 | * |
---|
| 6 | * [ Description ] |
---|
| 7 | * |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
[94] | 11 | #include "Common/include/Tabulation.h" |
---|
[2] | 12 | #include <sstream> |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | |
---|
[43] | 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Vhdl::get_package" |
---|
[71] | 19 | std::string Vhdl::get_package(uint32_t depth , |
---|
| 20 | std::string filename , |
---|
| 21 | std::string package_name, |
---|
| 22 | std::string entity_name ) |
---|
[2] | 23 | { |
---|
[43] | 24 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 25 | |
---|
[94] | 26 | std::string tab = morpheo::tab(depth); |
---|
[71] | 27 | std::ostringstream text; |
---|
[2] | 28 | |
---|
[113] | 29 | text << tab << get_header (depth,filename) << std::endl |
---|
| 30 | << tab << get_library_default (depth) << std::endl |
---|
| 31 | << tab << "package " << package_name << " is" << std::endl |
---|
| 32 | << tab << get_component (depth+1,entity_name) << std::endl |
---|
| 33 | << tab << "end " << package_name << ";" << std::endl; |
---|
[43] | 34 | |
---|
| 35 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[2] | 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.