Changeset 41 for trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_Testbench_generate_instance.cpp
- Timestamp:
- Jun 7, 2007, 9:13:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_Testbench_generate_instance.cpp
r2 r41 13 13 namespace behavioural { 14 14 15 void Vhdl_Testbench::generate_instance (void)16 {17 _vhdl->set_body("");18 _vhdl->set_body("instance_"+_name+" : "+_name);19 _vhdl->set_body("port map (");15 // void Vhdl_Testbench::generate_instance (void) 16 // { 17 // _vhdl->set_body(""); 18 // _vhdl->set_body("instance_"+_name+" : "+_name); 19 // _vhdl->set_body("port map ("); 20 20 21 list<string>::iterator i = _list_port.begin();22 if (i != _list_port.end())23 {24 _vhdl->set_body("\t "+*i+"\t=>\t"+*i);25 ++i;26 }27 while (i != _list_port.end())28 {29 _vhdl->set_body("\t,"+*i+"\t=>\t"+*i);30 ++i;31 }32 _vhdl->set_body(" );");33 };21 // list<string>::iterator i = _list_port.begin(); 22 // if (i != _list_port.end()) 23 // { 24 // _vhdl->set_body("\t "+*i+"\t=>\t"+*i); 25 // ++i; 26 // } 27 // while (i != _list_port.end()) 28 // { 29 // _vhdl->set_body("\t,"+*i+"\t=>\t"+*i); 30 // ++i; 31 // } 32 // _vhdl->set_body(" );"); 33 // }; 34 34 35 35 }; // end namespace behavioural
Note: See TracChangeset
for help on using the changeset viewer.