- Timestamp:
- Dec 16, 2008, 5:24:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_std_logic.cpp
r94 r95 10 10 #include <math.h> 11 11 #include "Behavioural/include/Vhdl.h" 12 #include "Common/include/ToBase2.h" 12 13 13 14 namespace morpheo { … … 57 58 58 59 return _return; 60 }; 61 62 #undef FUNCTION 63 #define FUNCTION "Vhdl::std_logic_cst" 64 std::string std_logic_cst (uint32_t size, uint32_t value) 65 { 66 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 67 68 std::string conv; 69 70 if (size == 1) 71 conv = "'"+toString(value&1)+"'"; 72 else 73 conv = "\""+toBase2<uint32_t>(value,size)+"\""; 74 75 log_printf(FUNC,Behavioural,FUNCTION,"End"); 76 77 return conv; 59 78 }; 60 79
Note: See TracChangeset
for help on using the changeset viewer.