]> AND Private Git Repository - blast.git/blobdiff - VHDLConverter.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
moved vhdl gen. into block
[blast.git] / VHDLConverter.h
index ff9defe91b8c26a9d72fd978fc1e344cb9f0f07c..fd576497e31514f59c0d147e2b047619a7fe9fbb 100644 (file)
@@ -12,6 +12,8 @@
 \r
 #include "Parameters.h"\r
 #include "Exception.h"\r
 \r
 #include "Parameters.h"\r
 #include "Exception.h"\r
+#include "ReferenceBlock.h"\r
+#include "IfacePurposeDelegate.h"\r
 \r
 class VHDLConverter : public QWidget {\r
     Q_OBJECT\r
 \r
 class VHDLConverter : public QWidget {\r
     Q_OBJECT\r
@@ -25,33 +27,31 @@ private:
 \r
     // entity related\r
     QString entityName;\r
 \r
     // entity related\r
     QString entityName;\r
+    QString longName;\r
+    QLineEdit* editEntityName;\r
+    QLineEdit* editLongName;\r
 \r
 \r
-    // clk & rst ports related\r
-    QTextEdit* clkNameEdit;\r
-    QTextEdit* rstNameEdit;\r
-    QComboBox* clkCombo;\r
-    QComboBox* rstCombo;\r
-    \r
     // data ports related\r
     // data ports related\r
-    QScrollArea *scrollDataPort;        \r
-    QTableWidget* twDataPort;\r
-    \r
-    // wishbone ports related\r
-    QScrollArea *scrollWBPort;        \r
-    QTableWidget* twWBPort;\r
+    QScrollArea *scrollPorts;\r
+    QTableWidget* twPorts;\r
+    IfacePurposeDelegate* purposeDelegate;\r
     \r
     // generics related\r
     QScrollArea* scrollGenerics;    \r
     QTableWidget* twGenerics;\r
     \r
     // generics related\r
     QScrollArea* scrollGenerics;    \r
     QTableWidget* twGenerics;\r
+        \r
+    // arch related\r
+    QString archName;\r
+    QList<QString> archLines;\r
     \r
     \r
-    int cptIn, cptOut, cptInout, cpt;        \r
-    QString fileName, txt, s, entName, brief, desc;        \r
-    \r
-    QHash<QString,QList<QString>* > packages;\r
+    // libraries related\r
+    QHash<QString,QList<QString>* > packages;        \r
     \r
     \r
-    QWidget *wid;\r
-    \r
-    QTextEdit *teBrief, *teDesc, *teName;\r
+    QTextEdit *teBrief, *teDesc;\r
+\r
+    ReferenceBlock* block;\r
+\r
+    QList<AbstractInterface*> lstIface;\r
 \r
     QString readLibraries(QTextStream& in) throw(Exception);\r
     QString readEntity(QTextStream& in) throw(Exception);\r
 \r
     QString readLibraries(QTextStream& in) throw(Exception);\r
     QString readEntity(QTextStream& in) throw(Exception);\r
@@ -60,12 +60,21 @@ private:
     void readArchitecture(QTextStream& in) throw(Exception);\r
     \r
     QString skipBlankAndComments(QTextStream& in);\r
     void readArchitecture(QTextStream& in) throw(Exception);\r
     \r
     QString skipBlankAndComments(QTextStream& in);\r
-    \r
+\r
+    void generateRefXml(QDomDocument& doc);\r
+    void generateImplXml(QDomDocument& doc);\r
+    void replaceSignalNames(QString& line);\r
+\r
+    void updateArchitecture();\r
+\r
 signals:\r
 \r
 public slots:\r
     void loadVHDLFile();\r
     void generateXml();\r
 signals:\r
 \r
 public slots:\r
     void loadVHDLFile();\r
     void generateXml();\r
+\r
+private slots:\r
+    void searchAssociatedPort(QTableWidgetItem* item);\r
 };\r
 \r
 #endif // __VHDLCONVERTER_H__\r
 };\r
 \r
 #endif // __VHDLCONVERTER_H__\r