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 a6d8c37 commit c5edf03Copy full SHA for c5edf03
src/Swt/Swt.cxx
@@ -53,7 +53,7 @@ void Swt::reset()
53
{
54
barWrite(sc_regs::SC_RESET.index, 0x1);
55
barWrite(sc_regs::SC_RESET.index, 0x0); //void cmd to sync clocks
56
- mWordSequence = -1;
+ mWordSequence = 0;
57
}
58
59
void Swt::read(std::vector<SwtWord>& words, TimeOut msTimeOut, SwtWord::Size wordSize)
src/Swt/Swt.h
@@ -67,7 +67,7 @@ class Swt
67
roc::RegisterReadWriteInterface& mBar2;
68
69
AlfLink mLink;
70
- int mWordSequence = -1;
+ int mWordSequence = 0; //start from 0, as after the reset the counter starts at 1
71
};
72
73
} // namespace Alf
0 commit comments