- Timestamp:
- Jul 9, 2007, 11:04:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_constant.cpp
r2 r43 16 16 namespace behavioural { 17 17 18 #undef FUNCTION 19 #define FUNCTION "Vhdl::set_constant" 18 20 void Vhdl::set_constant (string name , 19 21 string type , 20 22 string init) 21 23 { 24 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 22 25 set_list(_list_type, "constant "+ name+"\t: "+type+"\t:= "+init); 26 log_printf(FUNC,Behavioural,FUNCTION,"End"); 23 27 }; 24 28 … … 27 31 string init) 28 32 { 33 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 29 34 set_constant(name,std_logic(size),init); 35 log_printf(FUNC,Behavioural,FUNCTION,"End"); 30 36 }; 31 37 … … 34 40 uint32_t init) 35 41 { 42 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 36 43 set_constant(name,std_logic(size),std_logic_conv(size,init)); 44 log_printf(FUNC,Behavioural,FUNCTION,"End"); 37 45 }; 38 46
Note: See TracChangeset
for help on using the changeset viewer.