- Timestamp:
- Jan 19, 2008, 12:09:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_std_logic.cpp
r67 r71 16 16 #undef FUNCTION 17 17 #define FUNCTION "Vhdl::std_logic" 18 st ring std_logic (uint32_t size)18 std::string std_logic (uint32_t size) 19 19 { 20 20 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 21 21 22 st ring type;22 std::string type; 23 23 24 24 if (size == 1) … … 34 34 #undef FUNCTION 35 35 #define FUNCTION "Vhdl::std_logic_conv" 36 st ring std_logic_conv (uint32_t size,string value)36 std::string std_logic_conv (uint32_t size, std::string value) 37 37 { 38 38 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 39 39 40 st ring conv;40 std::string conv; 41 41 42 42 if (size == 1) … … 50 50 }; 51 51 52 st ring std_logic_conv (uint32_t size, uint32_t value)52 std::string std_logic_conv (uint32_t size, uint32_t value) 53 53 { 54 54 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 55 cout << toString(value) << endl; 56 string _return = std_logic_conv(size,toString(value)); 55 std::string _return = std_logic_conv(size,toString(value)); 57 56 log_printf(FUNC,Behavioural,FUNCTION,"End"); 58 57 … … 62 61 #undef FUNCTION 63 62 #define FUNCTION "Vhdl::std_logic_range" 64 st ring std_logic_range (uint32_t size, uint32_t max, uint32_t min)63 std::string std_logic_range (uint32_t size, uint32_t max, uint32_t min) 65 64 { 66 65 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 67 st ring type;66 std::string type; 68 67 69 68 if (size < 2) … … 80 79 }; 81 80 82 st ring std_logic_range (uint32_t max, uint32_t min)81 std::string std_logic_range (uint32_t max, uint32_t min) 83 82 { 84 83 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 85 st ring type;84 std::string type; 86 85 87 86 if (max == 0) … … 98 97 }; 99 98 100 st ring std_logic_range (uint32_t size)99 std::string std_logic_range (uint32_t size) 101 100 { 102 101 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 103 st ring _return = std_logic_range(size-1,0);102 std::string _return = std_logic_range(size-1,0); 104 103 log_printf(FUNC,Behavioural,FUNCTION,"End"); 105 104 … … 109 108 #undef FUNCTION 110 109 #define FUNCTION "Vhdl::std_logic_others" 111 st ring std_logic_others (uint32_t size, uint32_t cst )110 std::string std_logic_others (uint32_t size, uint32_t cst ) 112 111 { 113 112 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 114 113 115 st ring _return;114 std::string _return; 116 115 117 116 if (size < 2)
Note: See TracChangeset
for help on using the changeset viewer.