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

Private GIT Repository
changed VHDL converter
[blast.git] / VHDLConverter.h
1 #ifndef __VHDLCONVERTER_H__\r
2 #define __VHDLCONVERTER_H__\r
3 \r
4 \r
5 #include <QtGui>\r
6 #include <QtWidgets>\r
7 #include <QtCore>\r
8 #include <QtXml>\r
9 #include <iostream>\r
10 #include <fstream>\r
11 #include <QTextStream>\r
12 \r
13 #include "Parameters.h"\r
14 #include "Exception.h"\r
15 \r
16 class VHDLConverter : public QWidget {\r
17     Q_OBJECT\r
18 public:\r
19     explicit VHDLConverter(QWidget *parent = 0);\r
20     ~VHDLConverter();\r
21 \r
22 private:\r
23     QPushButton* loadBut;\r
24     QPushButton* genBut;\r
25 \r
26     // entity related\r
27     QString entityName;\r
28 \r
29     // clk & rst ports related\r
30     QTextEdit* clkNameEdit;\r
31     QTextEdit* rstNameEdit;\r
32     QComboBox* clkCombo;\r
33     QComboBox* rstCombo;\r
34     \r
35     // data ports related\r
36     QScrollArea *scrollDataPort;        \r
37     QTableWidget* twDataPort;\r
38     \r
39     // wishbone ports related\r
40     QScrollArea *scrollWBPort;        \r
41     QTableWidget* twWBPort;\r
42     \r
43     // generics related\r
44     QScrollArea* scrollGenerics;    \r
45     QTableWidget* twGenerics;\r
46     \r
47     int cptIn, cptOut, cptInout, cpt;        \r
48     QString fileName, txt, s, entName, brief, desc;        \r
49     \r
50     QHash<QString,QList<QString>* > packages;\r
51     \r
52     QWidget *wid;\r
53     \r
54     QTextEdit *teBrief, *teDesc, *teName;\r
55 \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
61     \r
62     QString skipBlankAndComments(QTextStream& in);\r
63     \r
64 signals:\r
65 \r
66 public slots:\r
67     void loadVHDLFile();\r
68     void generateXml();\r
69 };\r
70 \r
71 #endif // __VHDLCONVERTER_H__\r