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

Last change on this file since 71 was 71, checked in by rosiere, 16 years ago

Modification of Statisctics
Add a new systemC component : Load_Store_Queue (tested with one benchmark and one configuration). Store don't supported the Data Buss Error (Load is supported)

File size: 1.0 KB
Line 
1#ifdef VHDL
2
3/*
4 * $Id$
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11#include <sstream>
12#include <fstream>
13
14namespace morpheo              {
15namespace behavioural          {
16
17  void Vhdl::generate_file_model(void)
18  {
19    log_printf(FUNC,Behavioural,"generate_file_model","Begin");
20
21    std::string filename = _name + ".vhdl";
22   
23    log_printf(TRACE,Behavioural,"generate_file_model","print %s",filename.c_str());
24    std::cout << "Generate file \""<< filename << "\"" << std::endl;
25
26    log_printf(TRACE,Behavioural,"generate_file_model","declaration");
27    std::ofstream file;
28
29    log_printf(TRACE,Behavioural,"generate_file_model","open file");
30    file.open(filename.c_str(),std::ios::out | std::ios::trunc);
31
32    log_printf(TRACE,Behavioural,"generate_file_model","get model");
33    file << get_model (0,filename,_name,"behavioural");
34    file.close();
35
36    log_printf(FUNC,Behavioural,"generate_file_model","End");
37  };
38 
39}; // end namespace behavioural         
40}; // end namespace morpheo             
41
42#endif
Note: See TracBrowser for help on using the repository browser.