FPGA: non-blocking mode (to be tested)

This commit is contained in:
2023-05-26 18:46:26 +02:00
parent 2dfd6e916d
commit 021e652dc6
6 changed files with 69 additions and 35 deletions
+3 -2
View File
@@ -5,6 +5,7 @@
#include "Completion.h"
#include "../../common/JFJochException.h"
#include "../../common/Definitions.h"
inline uint64_t bit_concat(uint32_t high, uint32_t low) {
return (uint64_t(high) << 32) | low;
@@ -25,9 +26,9 @@ Completion parse_hw_completion(uint32_t tmp[16]) {
if (parity == 1)
throw JFJochException(JFJochExceptionCategory::HardwareParityError, "Wrong parity in work completion");
if (c.handle == UINT32_MAX -1) {
if (c.handle == HANDLE_START) {
c.type = Completion::Type::Start;
} else if (c.handle == UINT32_MAX) {
} else if (c.handle == HANDLE_END) {
c.type = Completion::Type::End;
c.frame_number = detector_frame_number;
} else {