Skip to content

Commit 709b88d

Browse files
committed
Fix address indexing in CRU flow control configuration
1 parent 171f4e3 commit 709b88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cru/DatapathWrapper.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void DatapathWrapper::setFlowControl(int wrapper, int allowReject)
110110
Cru::Registers::FLOW_CONTROL_OFFSET.address +
111111
Cru::Registers::FLOW_CONTROL_REGISTER.address;
112112

113-
mPdaBar->writeRegister(address, value);
113+
mPdaBar->writeRegister(address/4, value);
114114
}
115115

116116
uint32_t DatapathWrapper::getDatapathWrapperBaseAddress(int wrapper)

0 commit comments

Comments
 (0)