if (reference->isWBConfigurable()) {\r
genController = true;\r
controllerFile = path;\r
+ controllerFile += "/";\r
controllerFile.append(block->getName());\r
controllerFile.append("_ctrl.vhd"); \r
}\r
controllerFile = "nofile.vhd"; \r
}\r
coreFile = path;\r
+ coreFile += "/";\r
coreFile.append(block->getName());\r
coreFile.append(".vhd");\r
\r
for(int i = 0; i < 50; i++) {\r
out << "--";\r
}\r
- out << "\n--\n";\r
+ out << "\n--" << endl;\r
QString fileName = coreFile;\r
- out << "-- File : " << fileName << "\n";\r
- out << "--\n";\r
+ out << "-- File : " << fileName << endl;\r
+ out << "--" << endl;\r
QDomElement eltAuthor = elt.firstChildElement("author");\r
QString firstName = eltAuthor.attribute("firstname","");\r
QString lastName = eltAuthor.attribute("lastname","");\r
QString mail = eltAuthor.attribute("mail","");\r
- out << "-- Author(s) : "<<firstName+" "<<lastName<<" ("<<mail<<")\n";\r
- out << "--\n";\r
+ out << "-- Author(s) : "<<firstName+" "<<lastName<<" ("<<mail<<")" << endl;\r
+ out << "--" << endl;\r
QDomElement eltDate = eltAuthor.nextSiblingElement("date");\r
QString crea = eltDate.attribute("creation","");\r
- out << "-- Creation Date : "<<crea<<"\n";\r
- out << "--\n";\r
+ out << "-- Creation Date : "<<crea<< endl;\r
+ out << "--" << endl;\r
QDomElement eltRelated = eltDate.nextSiblingElement("related_files");\r
QString relateds = eltRelated.attribute("list","");\r
- out << "-- Related files :\n"<<relateds<<"\n";\r
- out << "--\n";\r
+ out << "-- Related files :\n"<<relateds<<endl;\r
+ out << "--" << endl;\r
QDomElement eltDesc = eltRelated.nextSiblingElement("description");\r
QDomElement desc = eltDesc.firstChildElement();\r
QString descTxt = desc.text();\r
- out << "-- Decription :\n"<<descTxt<<"\n";\r
- out << "--\n";\r
+ out << "-- Decription :\n"<<descTxt<<endl;\r
+ out << "--" << endl;\r
QDomElement eltNote = eltDesc.nextSiblingElement("description");\r
QDomElement note = eltNote.firstChildElement();\r
QString noteTxt = note.text();\r
- out << "-- Note :\n"<<noteTxt<<"\n";\r
- out << "--\n";\r
+ out << "-- Note :\n"<<noteTxt<<endl;\r
+ out << "--" << endl;\r
for(int i = 0; i < 50; i++) {\r
out << "--";\r
}\r
- out << "\n\n";\r
+ out << endl << endl;\r
}\r
\r
// This function generates the library part of the VHDL document\r
QDomNode nodeLib = listLib.item(i);\r
QDomElement eltLib = nodeLib.toElement();\r
QString nameLib = eltLib.attribute("name","none");\r
- out << "library " << nameLib << ";\n";\r
+ out << "library " << nameLib << ";" << endl;\r
QDomNodeList listPack = eltLib.elementsByTagName("package");\r
for(int j = 0; j < listPack.length(); j++) {\r
QDomNode nodePack = listPack.item(j);\r
QList<AbstractInterface*> listBidirs = block->getBidirs();\r
QString typePort, namePort;\r
\r
- out << "entity " << nameEnt << " is\n";\r
+ out << "entity " << nameEnt << " is" << endl;\r
\r
\r
/* TODO : rewrite the generation to take into acocunt the new object hierarchy */\r