#include "BlockParameterGeneric.h"
#include "BlockParameterPort.h"
#include "BlockParameterWishbone.h"
+#include "Parameters.h"
ReferenceBlock::ReferenceBlock(const QString _xmlFile) : AbstractBlock() {
xmlFile = _xmlFile;
}
else {
QDomText txtName = nodeNameTxt.toText();
- name = txtName.data().trimmed();
+ name = Parameters::normalizeName(txtName.data().trimmed());
cout<< "block name : " << qPrintable(name) << endl;
}
if (iface->getPurpose() == AbstractInterface::Control) {
toWrite << iface->getName();
toWrite << iface->getType();
- toWrite << iface->getWidth();
+ toWrite << iface->getWidthString();
toWrite << iface->getPurpose();
toWrite << iface->getDirection();
toWrite << iface->getMultiplicity();
if (iface->getPurpose() != AbstractInterface::Control) {
toWrite << iface->getName();
toWrite << iface->getType();
- toWrite << iface->getWidth();
+ toWrite << iface->getWidthString();
toWrite << iface->getPurpose();
toWrite << iface->getDirection();
toWrite << iface->getMultiplicity();
if (iface->getPurpose() == AbstractInterface::Control) {
toWrite << iface->getName();
toWrite << iface->getType();
- toWrite << iface->getWidth();
+ toWrite << iface->getWidthString();
toWrite << iface->getPurpose();
toWrite << iface->getDirection();
toWrite << iface->getMultiplicity();
if (iface->getPurpose() != AbstractInterface::Control) {
toWrite << iface->getName();
toWrite << iface->getType();
- toWrite << iface->getWidth();
+ toWrite << iface->getWidthString();
toWrite << iface->getPurpose();
toWrite << iface->getDirection();
toWrite << iface->getMultiplicity();
ReferenceInterface *iface = (ReferenceInterface *)(b.bidirs.at(i));
toWrite << iface->getName();
toWrite << iface->getType();
- toWrite << iface->getWidth();
+ toWrite << iface->getWidthString();
toWrite << iface->getPurpose();
toWrite << iface->getDirection();
toWrite << iface->getMultiplicity();
// does strictly nothing
throw(Exception(INVALID_REFBLOCK_USE));
}
+
+
+void ReferenceBlock::generateVHDL(const QString& path) throw(Exception){
+ throw(Exception(INVALID_REFBLOCK_USE));
+}
+
+void ReferenceBlock::generateComments(QTextStream& out, QDomElement &elt, QString coreFile) throw(Exception) {
+ throw(Exception(INVALID_REFBLOCK_USE));
+}
+
+void ReferenceBlock::generateLibraries(QTextStream& out, QDomElement &elt) throw(Exception) {
+ throw(Exception(INVALID_REFBLOCK_USE));
+}
+
+void ReferenceBlock::generateArchitecture(QTextStream& out, QDomElement &elt ) throw(Exception) {
+ throw(Exception(INVALID_REFBLOCK_USE));
+}
+
+void ReferenceBlock::generateController(QTextStream& out) throw(Exception) {
+ throw(Exception(INVALID_REFBLOCK_USE));
+}
+
+void ReferenceBlock::generateEntityOrComponentBody(QTextStream &out, int indentLevel, bool hasController) throw(Exception) {
+ throw(Exception(INVALID_REFBLOCK_USE));
+}
+