source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_generate_file_model.cpp @ 98

Last change on this file since 98 was 98, checked in by rosiere, 15 years ago

1) Fix bug (read unit, RAT -> write in R0, SPR desallocation ...)
2) Change VHDL Execute_queue -> use Generic/Queue?
3) Complete document on VHDL generation
4) Add soc test

  • Property svn:keywords set to Id
File size: 837 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_generate_file_model.cpp 98 2008-12-31 10:18:08Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11#include "Common/include/Environment.h"
12#include <sstream>
13#include <fstream>
14
15namespace morpheo              {
16namespace behavioural          {
17
18  void Vhdl::generate_file_model(void)
19  {
20    log_printf(FUNC,Behavioural,"generate_file_model","Begin");
21
22    directory();
23
24    std::string filename = MORPHEO_VHDL + "/" + _name + ".vhdl";
25   
26    msg_printf(INFORMATION,_("Generate file \"%s\"."),filename.c_str());
27
28    std::ofstream file;
29
30    file.open(filename.c_str(),std::ios::out | std::ios::trunc);
31
32    file << get_model (0,filename,_name,"behavioural");
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.