We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40ff8be commit cb951cbCopy full SHA for cb951cb
src/Swt/Swt.cxx
@@ -60,7 +60,7 @@ void Swt::read(std::vector<SwtWord>& words, SwtWord::Size wordSize)
60
uint32_t numWords = 0x0;
61
62
auto endTime = std::chrono::steady_clock::now() + std::chrono::milliseconds(10);
63
- while (std::chrono::steady_clock::now() <= endTime) {
+ while ((std::chrono::steady_clock::now() <= endTime) && (numWords < 1)) {
64
numWords = (barRead(sc_regs::SWT_MON.index) >> 16);
65
}
66
0 commit comments