HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
wavedata_table_editor.h
Go to the documentation of this file.
1 #pragma once
2 #include <QTableWidget>
3 #include <unordered_set>
4 #include <QMap>
6 
7 namespace hal {
8 
9  class Net;
10 
15  {
16  Q_OBJECT
17 
19  qulonglong mMaxTime;
20  bool mDisableCellParser;
21  bool mDisplayHexValues;
22 
23  // member variables for load data callback
24  uint64_t mCurrentTime;
25  int mCurrentRow;
26  int* mCurrentValue;
27 
28  static const int sIllegalValue = -99;
29  void setValueCell(int irow, int icol, int val);
30  void setupHeader();
31 
32  Q_SIGNALS:
33  void lineAdded();
34 
35  public Q_SLOTS:
36  void setDisplayHexValues(bool hex);
37 
38  private Q_SLOTS:
39  void handleItemChanged(QTableWidgetItem* changedItem);
40 
41  public:
43 
44  void setup(const std::vector<NetlistSimulatorController::InputColumnHeader>& inpColHeads, bool omitClock);
45 
46  int validLines() const;
47 
48  void generateSimulationInput(const QString& workdir); // will update mMaxTime
49 
50  int intCellValue(int irow, int icol) const;
51 
52  qulonglong maxTime() const { return mMaxTime; }
53 
54  bool isDisplayHexValues() const { return mDisplayHexValues; }
55 
56  void loadWaveData(const QString& saleaDirectoryFile);
57  };
58 
59 }
WavedataTableEditor(QWidget *parent=nullptr)
void loadWaveData(const QString &saleaDirectoryFile)
int intCellValue(int irow, int icol) const
void generateSimulationInput(const QString &workdir)
void setup(const std::vector< NetlistSimulatorController::InputColumnHeader > &inpColHeads, bool omitClock)
Definition: defines.h:45
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const