Skip to content

Commit

Permalink
Change CICADA unpacker to read the last 4 words instead of first 4
Browse files Browse the repository at this point in the history
  • Loading branch information
aloeliger committed Jun 21, 2024
1 parent 077e16d commit 92c99c1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ namespace l1t {
return false;
} else {
std::vector<uint32_t> cicadaWords = {0, 0, 0, 0};
//the first 4 words are CICADA words
for (uint32_t i = 0; i < 4; ++i) {
cicadaWords.at(i) = ((block.payload().at(i)) >> 28);
//the last 4 words are CICADA words
for (uint32_t i = 2; i < 6; ++i) {
cicadaWords.at(i-2) = ((block.payload().at(i)) >> 28);
}

float cicadaScore = convertCICADABitsToFloat(cicadaWords);
Expand Down

0 comments on commit 92c99c1

Please sign in to comment.