Skip to content

Commit 4ef3897

Browse files
committed
[roc-config] 16-bit trigger window size
1 parent 391e0ce commit 4ef3897

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ The Parameters that affect the configuration of the CRU, their possible values (
161161

162162
`DynamicOffsetEnabled (true | false) [false]`
163163

164-
`TriggerWindowSize (0 - 4095) [1000]`
164+
`TriggerWindowSize (0 - 65535) [1000]`
165165

166166
`GbtEnabled (true | false) [true]`
167167

src/Cru/DatapathWrapper.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ uint32_t DatapathWrapper::getForcedPackets(Link link)
264264
/// size in gbt words
265265
void DatapathWrapper::setTriggerWindowSize(int wrapper, uint32_t size)
266266
{
267-
if (size > 4095) {
268-
BOOST_THROW_EXCEPTION(Exception() << ErrorInfo::Message("BAD TRIGSIZE, should be less or equal to 4095") << ErrorInfo::ConfigValue(size));
267+
if (size > 65535) {
268+
BOOST_THROW_EXCEPTION(Exception() << ErrorInfo::Message("BAD TRIGSIZE, should be less or equal to 65536") << ErrorInfo::ConfigValue(size));
269269
}
270270
uint32_t address = getDatapathWrapperBaseAddress(wrapper) +
271271
Cru::Registers::DWRAPPER_GREGS.address +

0 commit comments

Comments
 (0)