Changeset 67 for trunk/IPs/systemC/processor/Morpheo/Behavioural/src
- Timestamp:
- Dec 6, 2007, 8:57:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_std_logic.cpp
r66 r67 62 62 #undef FUNCTION 63 63 #define FUNCTION "Vhdl::std_logic_range" 64 string std_logic_range (uint32_t size, uint32_t max, uint32_t min) 65 { 66 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 67 string type; 68 69 if (size < 2) 70 type = ""; 71 else 72 if (max == min) 73 type = "("+toString(max)+")"; 74 else 75 type = "("+toString(max)+" downto "+toString(min)+")"; 76 77 log_printf(FUNC,Behavioural,FUNCTION,"End"); 78 79 return type; 80 }; 81 64 82 string std_logic_range (uint32_t max, uint32_t min) 65 83 { … … 106 124 return _return; 107 125 } 126 127 128 108 129 }; // end namespace behavioural 109 130 }; // end namespace morpheo
Note: See TracChangeset
for help on using the changeset viewer.