source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_library_ieee.cpp @ 2

Last change on this file since 2 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_library_ieee (uint32_t depth)
19  {
20    string        tab = string(depth,'\t');
21    ostringstream text;
22
23    text << tab                                       << endl
24         << tab << "library ieee;"                    << endl
25         << tab << "use ieee.numeric_bit.all;"        << endl
26         << tab << "use ieee.numeric_std.all;"        << endl
27         << tab << "use ieee.std_logic_1164.all;"     << endl
28         << tab << "use ieee.std_logic_arith.all;"    << endl
29         << tab << "use ieee.std_logic_misc.all;"     << endl
30         << tab << "--use ieee.std_logic_signed.all;"   << endl
31         << tab << "use ieee.std_logic_unsigned.all;" << endl
32         << tab << "--use ieee.std_logic_textio.all;"   << endl;
33     
34    return text.str();
35  };
36 
37}; // end namespace behavioural         
38}; // end namespace morpheo             
39
40#endif
Note: See TracBrowser for help on using the repository browser.