Skip to content
Snippets Groups Projects
Commit 0f176d56 authored by wierenga's avatar wierenga
Browse files

BugID: 708

Keep modified state of beamformer weights registers.
parent 18dd06a5
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ void SetWeightsCmd::ack(CacheBuffer& /*cache*/)
getPort()->send(ack);
}
void SetWeightsCmd::apply(CacheBuffer& cache, bool /*setModFlag*/)
void SetWeightsCmd::apply(CacheBuffer& cache, bool setModFlag)
{
// copy to offset N_LOCAL_XLETS in the cache
Range dst_range = Range(MEPHeader::N_LOCAL_XLETS,
......@@ -89,6 +89,11 @@ void SetWeightsCmd::apply(CacheBuffer& cache, bool /*setModFlag*/)
cache.getBeamletWeights()()(0, cache_rcu, dst_range) =
m_event->weights()(0, input_rcu, Range::all());
if (setModFlag) {
cache.getCache().getBFState().modified(cache_rcu * MEPHeader::N_PHASE);
cache.getCache().getBFState().modified(cache_rcu * MEPHeader::N_PHASE + 1);
}
input_rcu++;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment