Skip to content

Commit

Permalink
Minor bugfixes in simulation wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Jun 22, 2024
1 parent ab48a45 commit ca29eb1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,11 @@ namespace hal {
add(it.value(),false);
}
setMaxTime(mSaleaeDirectory.get_max_time());

for (auto it = mDataGroups.begin(); it != mDataGroups.end(); ++it)
{
(*it)->recalcData();
}
}

void WaveDataList::addOrReplace(WaveData* wd)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ namespace hal {

void WavedataTableEditor::setup(const std::vector<NetlistSimulatorController::InputColumnHeader> &inpColHeads, bool omitClock)
{
int n = inpColHeads.size()+1;
setColumnCount(n);
setRowCount(2);
QStringList headerLabel;
for (NetlistSimulatorController::InputColumnHeader ich : inpColHeads)
{
Expand All @@ -25,6 +22,9 @@ namespace hal {
mInputColumnHeader.append(ich);
headerLabel << colName;
}
int n = mInputColumnHeader.size()+1;
setColumnCount(n);
setRowCount(2);
headerLabel.prepend("Time");
setHorizontalHeaderLabels(headerLabel);
for (int i=0; i<n; i++)
Expand Down
5 changes: 3 additions & 2 deletions plugins/simulator/waveform_viewer/src/wizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ namespace hal {

void PageInputData::initializePage()
{
mTableEditor->setup(mController->get_input_column_headers(), mController->is_no_clock_used());
// enter clock data must be omitted if clock is autogenerated
mTableEditor->setup(mController->get_input_column_headers(), !mController->is_no_clock_used());
handleRadioToggled(true);
}

Expand Down Expand Up @@ -748,7 +749,7 @@ namespace hal {

QGridLayout* layout = new QGridLayout(this);

mButAll = new QPushButton("All gates", this);
mButAll = new QPushButton("Wave data for all nets", this);
layout->addWidget(mButAll,0,0);
mButNone = new QPushButton("Clear selection", this);
layout->addWidget(mButNone,0,2);
Expand Down

0 comments on commit ca29eb1

Please sign in to comment.