source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_generate_file.cpp

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

1) Add test and configuration
2) Fix Bug
3) Add log file in load store unit
4) Fix Bug in environment

  • Property svn:keywords set to Id
File size: 880 bytes
Line 
1#ifdef POSITION
2/*
3 * $Id: Component_generate_file.cpp 124 2009-06-17 12:11:25Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Component.h"
10#include "Common/include/Environment.h"
11
12namespace morpheo              {
13namespace behavioural          {
14
15#undef  FUNCTION
16#define FUNCTION "Component::generate_file"
17  void Component::generate_file (void)
18  {
19    log_printf(FUNC,Behavioural,"Component::generate_file","Begin");
20
21    try 
22      {
23        directory();
24
25        XML xml = toXML();
26
27        xml.filename_extension ("pos");
28       
29        xml.generate_file(MORPHEO_POSITION,"ISO-8859-1");
30
31      }
32    catch (ErrorMorpheo e)
33      {
34        throw ERRORMORPHEO(FUNCTION,toString(_("Component \"%s\" have a bad mapping : %s\n")),_entity->get_name().c_str(),e.what().c_str());
35      }
36
37    log_printf(FUNC,Behavioural,"Component::generate_file","End");
38  };
39
40}; // end namespace behavioural         
41}; // end namespace morpheo             
42#endif
Note: See TracBrowser for help on using the repository browser.