Skip to content

Commit cb951cb

Browse files
committed
[swt] Update SWT read FIFO condition
1 parent 40ff8be commit cb951cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Swt/Swt.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void Swt::read(std::vector<SwtWord>& words, SwtWord::Size wordSize)
6060
uint32_t numWords = 0x0;
6161

6262
auto endTime = std::chrono::steady_clock::now() + std::chrono::milliseconds(10);
63-
while (std::chrono::steady_clock::now() <= endTime) {
63+
while ((std::chrono::steady_clock::now() <= endTime) && (numWords < 1)) {
6464
numWords = (barRead(sc_regs::SWT_MON.index) >> 16);
6565
}
6666

0 commit comments

Comments
 (0)