Use "Reverse" instead of "Rewind"
MODIFY
external/VSRTL
external/VSRTL
-Subproject commit 2d9585f420bf5c3941548fe912a3723c69636dab
+Subproject commit c12f7ac083c6395a85c887df750d9dddad84bd06

MODIFY
resources/icons/icons.qrc
resources/icons/icons.qrc
<file>stop-clock.svg</file>
<file>step.svg</file>
<file>step-clock.svg</file>
- <file>rewind.svg</file>
+ <file>reverse.svg</file>
<file>reset.svg</file>
<file>tag.svg</file>
<file>run.svg</file>

RENAME
resources/icons/rewind.svg
resources/icons/reverse.svg
MODIFY
src/processors/ss/riscv_ss.h
src/processors/ss/riscv_ss.h
@@ -176,9 +176,9 @@ public:
}
}
- void rewind() override {
- Design::rewind();
- // Ensure that rewinds performed when we expected to finish in the following cycle, clears this expectation.
+ void reverse() override {
+ Design::reverse();
+ // Ensure that reverses performed when we expected to finish in the following cycle, clears this expectation.
m_finishInNextCycle = false;
m_finished = false;
}

MODIFY
src/processortab.cpp
src/processortab.cpp
@@ -75,9 +75,9 @@ void ProcessorTab::setupSimulatorActions() {
m_resetAction->setShortcut(QKeySequence("F3"));
m_toolbar->addAction(m_resetAction);
- const QIcon reverseIcon = QIcon(":/icons/rewind.svg");
- m_reverseAction = new QAction(reverseIcon, "Rewind (F4)", this);
- connect(m_reverseAction, &QAction::triggered, this, &ProcessorTab::rewind);
+ const QIcon reverseIcon = QIcon(":/icons/reverse.svg");
+ m_reverseAction = new QAction(reverseIcon, "Reverse (F4)", this);
+ connect(m_reverseAction, &QAction::triggered, this, &ProcessorTab::reverse);
m_reverseAction->setShortcut(QKeySequence("F4"));
m_toolbar->addAction(m_reverseAction);
@@ -152,7 +152,7 @@ void ProcessorTab::updateStatistics() {
void ProcessorTab::pause() {
m_autoClockAction->setChecked(false);
m_runAction->setChecked(false);
- m_reverseAction->setEnabled(m_vsrtlWidget->isRewindable());
+ m_reverseAction->setEnabled(m_vsrtlWidget->isReversible());
}
void ProcessorTab::processorSelection() {
@@ -221,7 +221,7 @@ void ProcessorTab::enableSimulatorControls() {
m_clockAction->setEnabled(true);
m_autoClockAction->setEnabled(true);
m_runAction->setEnabled(true);
- m_reverseAction->setEnabled(m_vsrtlWidget->isRewindable());
+ m_reverseAction->setEnabled(m_vsrtlWidget->isReversible());
m_resetAction->setEnabled(true);
}
@@ -266,8 +266,8 @@ void ProcessorTab::run(bool state) {
}
}
-void ProcessorTab::rewind() {
- m_vsrtlWidget->rewind();
+void ProcessorTab::reverse() {
+ m_vsrtlWidget->reverse();
enableSimulatorControls();
emit update();
}
@@ -279,7 +279,7 @@ void ProcessorTab::clock() {
pause();
}
ProcessorHandler::get()->checkProcessorFinished();
- m_reverseAction->setEnabled(m_vsrtlWidget->isRewindable());
+ m_reverseAction->setEnabled(m_vsrtlWidget->isReversible());
emit update();
}

MODIFY
src/processortab.h
src/processortab.h
@@ -41,7 +41,7 @@ public slots:
void pause();
void restart();
void reset();
- void rewind();
+ void reverse();
void printToLog(const QString&);
void processorFinished();
void runFinished();

Use "Reverse" instead of "Rewind"