source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_model.cpp @ 3

Last change on this file since 3 was 2, checked in by kane, 17 years ago

Import Morpheo

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
12#include <sstream>
13using namespace std;
14
15namespace morpheo              {
16namespace behavioural          {
17 
18  string Vhdl::get_model(uint32_t depth            ,
19                         string   filename         ,
20                         string   entity_name      ,
21                         string   architecture_name)
22  {
23    log_printf(FUNC,Behavioural,"get_model","Begin");
24
25    string        tab = string(depth,'\t');
26    ostringstream text;
27
28    text << tab << get_header       (depth,filename)                      << endl
29         << tab << get_library_ieee (depth)                               << endl
30         << tab << get_library_work (depth)                               << endl
31         << tab << get_entity       (depth,entity_name)                   << endl
32         << tab << get_architecture (depth,architecture_name,entity_name) << endl;
33   
34    log_printf(FUNC,Behavioural,"get_model","End");
35
36    return text.str();
37  };
38 
39}; // end namespace behavioural         
40}; // end namespace morpheo             
41
42#endif
Note: See TracBrowser for help on using the repository browser.