Skip to content

Commit c5edf03

Browse files
committed
[swt] Read SWT word sequence starts at 1 on reset
1 parent a6d8c37 commit c5edf03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Swt/Swt.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void Swt::reset()
5353
{
5454
barWrite(sc_regs::SC_RESET.index, 0x1);
5555
barWrite(sc_regs::SC_RESET.index, 0x0); //void cmd to sync clocks
56-
mWordSequence = -1;
56+
mWordSequence = 0;
5757
}
5858

5959
void Swt::read(std::vector<SwtWord>& words, TimeOut msTimeOut, SwtWord::Size wordSize)

src/Swt/Swt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Swt
6767
roc::RegisterReadWriteInterface& mBar2;
6868

6969
AlfLink mLink;
70-
int mWordSequence = -1;
70+
int mWordSequence = 0; //start from 0, as after the reset the counter starts at 1
7171
};
7272

7373
} // namespace Alf

0 commit comments

Comments
 (0)