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:
830 bytes
|
Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id: Vhdl_generate_file_model.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
| 5 | * |
---|
| 6 | * [ Description ] |
---|
| 7 | * |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
[88] | 11 | #include "Common/include/Environment.h" |
---|
[2] | 12 | #include <sstream> |
---|
| 13 | #include <fstream> |
---|
| 14 | |
---|
| 15 | namespace morpheo { |
---|
| 16 | namespace behavioural { |
---|
| 17 | |
---|
| 18 | void Vhdl::generate_file_model(void) |
---|
| 19 | { |
---|
| 20 | log_printf(FUNC,Behavioural,"generate_file_model","Begin"); |
---|
| 21 | |
---|
[88] | 22 | directory(); |
---|
| 23 | |
---|
[113] | 24 | std::string filename = MORPHEO_VHDL + "/" + _name + VHDL_EXTENSION; |
---|
[2] | 25 | |
---|
[88] | 26 | msg_printf(INFORMATION,_("Generate file \"%s\"."),filename.c_str()); |
---|
[2] | 27 | |
---|
[71] | 28 | std::ofstream file; |
---|
[15] | 29 | |
---|
[71] | 30 | file.open(filename.c_str(),std::ios::out | std::ios::trunc); |
---|
[2] | 31 | |
---|
[113] | 32 | file << get_model (0,filename,_name); |
---|
[2] | 33 | file.close(); |
---|
| 34 | |
---|
| 35 | log_printf(FUNC,Behavioural,"generate_file_model","End"); |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | }; // end namespace behavioural |
---|
| 39 | }; // end namespace morpheo |
---|
| 40 | |
---|
| 41 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.