- Timestamp:
- Apr 14, 2009, 8:39:12 PM (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_library_default.cpp
r111 r113 4 4 * $Id$ 5 5 * 6 * [ 6 * [ Description ] 7 7 * 8 8 */ … … 17 17 18 18 #undef FUNCTION 19 #define FUNCTION "Vhdl:: get_library_ieee"20 std::string Vhdl::get_library_ieee (uint32_t depth)19 #define FUNCTION "Vhdl::set_library_default" 20 void Vhdl::set_library_default (void) 21 21 { 22 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 23 24 std::string tab = morpheo::tab(depth); 25 std::ostringstream text; 26 27 text << tab << std::endl 28 << tab << "library ieee;" << std::endl 29 << tab << " use ieee.numeric_bit.all; " << std::endl 30 << tab << " use ieee.numeric_std.all; " << std::endl 31 << tab << " use ieee.std_logic_1164.all; " << std::endl 32 << tab << " use ieee.std_logic_arith.all; " << std::endl 33 << tab << " use ieee.std_logic_misc.all; " << std::endl 34 << tab << "--use ieee.std_logic_signed.all; " << std::endl 35 << tab << " use ieee.std_logic_unsigned.all;" << std::endl 36 << tab << "--use ieee.std_logic_textio.all; " << std::endl; 22 log_begin(Behavioural,FUNCTION); 23 24 set_library("ieee","numeric_bit" ,"all"); 25 set_library("ieee","numeric_std" ,"all"); 26 set_library("ieee","std_logic_1164" ,"all"); 27 set_library("ieee","std_logic_arith" ,"all"); 28 set_library("ieee","std_logic_misc" ,"all"); 29 // set_library("ieee","std_logic_signed" ,"all"); 30 set_library("ieee","std_logic_unsigned","all"); 31 // set_library("ieee","std_logic_textio" ,"all"); 37 32 38 log_printf(FUNC,Behavioural,FUNCTION,"End"); 39 40 return text.str(); 33 log_end(Behavioural,FUNCTION); 41 34 }; 42 35
Note: See TracChangeset
for help on using the changeset viewer.