X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/9ea814d76cc52e24b80be4a6ea78cca24a9a4915..6e2b3026c6a496e81642c373796bd39dad33d2a6:/VHDLConverter.h?ds=sidebyside diff --git a/VHDLConverter.h b/VHDLConverter.h index ff9defe..fd57649 100644 --- a/VHDLConverter.h +++ b/VHDLConverter.h @@ -12,6 +12,8 @@ #include "Parameters.h" #include "Exception.h" +#include "ReferenceBlock.h" +#include "IfacePurposeDelegate.h" class VHDLConverter : public QWidget { Q_OBJECT @@ -25,33 +27,31 @@ private: // entity related QString entityName; + QString longName; + QLineEdit* editEntityName; + QLineEdit* editLongName; - // clk & rst ports related - QTextEdit* clkNameEdit; - QTextEdit* rstNameEdit; - QComboBox* clkCombo; - QComboBox* rstCombo; - // data ports related - QScrollArea *scrollDataPort; - QTableWidget* twDataPort; - - // wishbone ports related - QScrollArea *scrollWBPort; - QTableWidget* twWBPort; + QScrollArea *scrollPorts; + QTableWidget* twPorts; + IfacePurposeDelegate* purposeDelegate; // generics related QScrollArea* scrollGenerics; QTableWidget* twGenerics; + + // arch related + QString archName; + QList archLines; - int cptIn, cptOut, cptInout, cpt; - QString fileName, txt, s, entName, brief, desc; - - QHash* > packages; + // libraries related + QHash* > packages; - QWidget *wid; - - QTextEdit *teBrief, *teDesc, *teName; + QTextEdit *teBrief, *teDesc; + + ReferenceBlock* block; + + QList lstIface; QString readLibraries(QTextStream& in) throw(Exception); QString readEntity(QTextStream& in) throw(Exception); @@ -60,12 +60,21 @@ private: void readArchitecture(QTextStream& in) throw(Exception); QString skipBlankAndComments(QTextStream& in); - + + void generateRefXml(QDomDocument& doc); + void generateImplXml(QDomDocument& doc); + void replaceSignalNames(QString& line); + + void updateArchitecture(); + signals: public slots: void loadVHDLFile(); void generateXml(); + +private slots: + void searchAssociatedPort(QTableWidgetItem* item); }; #endif // __VHDLCONVERTER_H__