forked from libresilicon/qtflow
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathblifdata.h
60 lines (46 loc) · 983 Bytes
/
blifdata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef SBLIFDATA_H
#define SBLIFDATA_H
#include <istream>
#include <fstream>
#include <QString>
#include <QVector>
#include <QRect>
#include <QTextStream>
#include <QString>
#include <QTextStream>
#include <QGraphicsTextItem>
#include <QDebug>
#include <QFile>
#include "blifdatacomponentinfo.h"
namespace blif {
enum blif_keyword {
MODEL,
INPUTS,
OUTPUTS,
NAMES,
GATE,
SUB_COMPONENT,
END,
UNKNOWN
};
class BLIFData
{
public:
BLIFData(QString file);
QVector<BLIFDataComponentInfo> getComponents();
QStringList getPadPinsInput();
QStringList getPadPinsOutput();
protected:
blif_keyword tokenize(QString s);
void registerInputPins(QStringList lineList);
void registerOutputPins(QStringList lineList);
void registerComponent(QStringList lineList);
private:
QString streamname;
QString m_modelName;
QStringList m_inputList;
QStringList m_outputList;
QVector<BLIFDataComponentInfo> m_components;
};
}
#endif // SBLIFDATA_H