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

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

Update document on Vhdl generation.

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_get_model.cpp 94 2008-12-15 11:04:03Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11#include "Common/include/Tabulation.h"
12#include <sstream>
13
14namespace morpheo              {
15namespace behavioural          {
16 
17  std::string Vhdl::get_model(uint32_t depth            ,
18                         std::string   filename         ,
19                         std::string   entity_name      ,
20                         std::string   architecture_name)
21  {
22    log_printf(FUNC,Behavioural,"get_model","Begin");
23
24    std::string        tab = morpheo::tab(depth);
25    std::ostringstream text;
26
27    text << tab << get_header       (depth,filename)                      << std::endl
28         << tab << get_library_ieee (depth)                               << std::endl
29         << tab << get_library_work (depth)                               << std::endl
30         << tab << get_entity       (depth,entity_name)                   << std::endl
31         << tab << get_architecture (depth,architecture_name,entity_name) << std::endl;
32   
33    log_printf(FUNC,Behavioural,"get_model","End");
34
35    return text.str();
36  };
37 
38}; // end namespace behavioural         
39}; // end namespace morpheo             
40
41#endif
Note: See TracBrowser for help on using the repository browser.