Changeset 95 for trunk/IPs/systemC/processor/Morpheo/Behavioural/src
- Timestamp:
- Dec 16, 2008, 5:24:26 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_vhdl_instance.cpp
r81 r95 27 27 std::list<Interface_fifo *> * list_interface = (_entity)->get_interfaces_list()->get_interface_list(); 28 28 std::list<Interface_fifo *>::iterator j = list_interface->begin(); 29 bool print_comment = false; 29 30 if (not list_interface->empty()) 30 31 { 31 vhdl->set_body ("------------------------------------------------------");32 vhdl->set_body ("-- Output's Buffer");33 vhdl->set_body ("------------------------------------------------------");34 35 32 while (j != list_interface->end()) 36 33 { … … 48 45 (signal->get_connect_from_signal () != NULL) ) 49 46 { 47 if (not print_comment) 48 { 49 vhdl->set_body ("------------------------------------------------------"); 50 vhdl->set_body ("-- Output's Buffer"); 51 vhdl->set_body ("------------------------------------------------------"); 52 53 print_comment = true; 54 } 55 50 56 // Create name 51 57 std::string signal_name = "signal_"+toString(cpt++); … … 67 73 ++j; 68 74 } 69 vhdl->set_body (""); 70 vhdl->set_body ("------------------------------------------------------"); 71 vhdl->set_body (""); 75 76 if (print_comment) 77 { 78 vhdl->set_body (""); 79 vhdl->set_body ("------------------------------------------------------"); 80 vhdl->set_body (""); 81 } 72 82 } 73 83 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_testbench_test.cpp
r81 r95 24 24 25 25 std::string test_name = testbench_test_name(vhdl); 26 std::string test_name_ok = testbench_test_ok 26 std::string test_name_ok = testbench_test_ok (vhdl); 27 27 28 28 vhdl->set_body(test_name + " <= '1' when ("+reset_name+" = '0') else "+test_name_ok+";"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_testbench_test_ok.cpp
r81 r95 24 24 if (_list_signal->empty()== false) 25 25 { 26 std::list<Signal*>::iterator i 26 std::list<Signal*>::iterator i = _list_signal->begin(); 27 27 28 28 while (i != _list_signal->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_testbench_test_ok.cpp
r81 r95 19 19 if (_direction == OUT) 20 20 vhdl->set_body ("\tand "+_name+" = "+_name+"_test"); 21 21 22 22 log_printf(FUNC,Behavioural,"testbench_test_ok","End"); 23 23 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_constant.cpp
r81 r95 27 27 28 28 void Vhdl::set_constant (std::string name , 29 uint32_t size ,29 uint32_t size , 30 30 std::string init) 31 31 { … … 35 35 }; 36 36 37 void Vhdl::set_constant (std::string 37 void Vhdl::set_constant (std::string name , 38 38 uint32_t size , 39 39 uint32_t init) 40 40 { 41 41 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 42 set_constant(name,std_logic(size),std_logic_c onv(size,init));42 set_constant(name,std_logic(size),std_logic_cst(size,init)); 43 43 log_printf(FUNC,Behavioural,FUNCTION,"End"); 44 44 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_signal.cpp
r93 r95 9 9 10 10 #include "Behavioural/include/Vhdl.h" 11 11 #include "Common/include/ToBase2.h" 12 12 #include <sstream> 13 13 … … 56 56 { 57 57 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 58 set_signal(name,std_logic(size),std_logic_c onv(size,init));58 set_signal(name,std_logic(size),std_logic_cst(size,init)); 59 59 log_printf(FUNC,Behavioural,FUNCTION,"End"); 60 60 }; -
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.