source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_package.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.1 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>
13
14namespace morpheo              {
15namespace behavioural          {
16 
17#undef  FUNCTION
18#define FUNCTION "Vhdl::get_package"
19  std::string Vhdl::get_package(uint32_t depth       ,
20                           std::string   filename    ,
21                           std::string   package_name,
22                           std::string   entity_name )
23  {
24    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
25
26    std::string        tab = std::string(depth,'\t');
27    std::ostringstream text;
28
29    text << tab << get_header       (depth,filename)                      << std::endl
30         << tab << get_library_ieee (depth)                               << std::endl
31         << tab << "package " << package_name << " is"                    << std::endl
32         << tab << get_component    (depth+1,entity_name)                 << std::endl
33         << tab << "end " << package_name << ";"                          << std::endl;
34
35    log_printf(FUNC,Behavioural,FUNCTION,"End");
36   
37    return text.str();
38  };
39 
40}; // end namespace behavioural         
41}; // end namespace morpheo             
42
43#endif
Note: See TracBrowser for help on using the repository browser.