1 #ifndef __VHDLCONVERTER_H__
\r
2 #define __VHDLCONVERTER_H__
\r
11 #include <QTextStream>
\r
13 #include "Parameters.h"
\r
14 #include "Exception.h"
\r
16 class VHDLConverter : public QWidget {
\r
19 explicit VHDLConverter(QWidget *parent = 0);
\r
23 QPushButton* loadBut;
\r
24 QPushButton* genBut;
\r
29 // clk & rst ports related
\r
30 QTextEdit* clkNameEdit;
\r
31 QTextEdit* rstNameEdit;
\r
32 QComboBox* clkCombo;
\r
33 QComboBox* rstCombo;
\r
35 // data ports related
\r
36 QScrollArea *scrollDataPort;
\r
37 QTableWidget* twDataPort;
\r
39 // wishbone ports related
\r
40 QScrollArea *scrollWBPort;
\r
41 QTableWidget* twWBPort;
\r
44 QScrollArea* scrollGenerics;
\r
45 QTableWidget* twGenerics;
\r
47 int cptIn, cptOut, cptInout, cpt;
\r
48 QString fileName, txt, s, entName, brief, desc;
\r
50 QHash<QString,QList<QString>* > packages;
\r
54 QTextEdit *teBrief, *teDesc, *teName;
\r
56 QString readLibraries(QTextStream& in) throw(Exception);
\r
57 QString readEntity(QTextStream& in) throw(Exception);
\r
58 void readGenerics(QTextStream& in) throw(Exception);
\r
59 void readPorts(QTextStream& in) throw(Exception);
\r
60 void readArchitecture(QTextStream& in) throw(Exception);
\r
62 QString skipBlankAndComments(QTextStream& in);
\r
67 void loadVHDLFile();
\r
71 #endif // __VHDLCONVERTER_H__
\r