From ae7ccfdcecb41e00278118003eac23f705fa5a4b Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Sun, 10 Sep 2023 21:37:20 +0200 Subject: [PATCH] FPGA: Fix to save_to_hbm test --- fpga/hls/save_to_hbm.cpp | 2 -- tests/FPGAIntegrationTest.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/fpga/hls/save_to_hbm.cpp b/fpga/hls/save_to_hbm.cpp index d11261c3..f4295553 100644 --- a/fpga/hls/save_to_hbm.cpp +++ b/fpga/hls/save_to_hbm.cpp @@ -217,8 +217,6 @@ void save_to_hbm(STREAM_512 &data_in, debug[m], timestamp[m], jf_bunchid[m], exptime[m], data_collection_id, 1); } - data_in >> packet_in; - idle = 1; } diff --git a/tests/FPGAIntegrationTest.cpp b/tests/FPGAIntegrationTest.cpp index ebdd6252..b8517d76 100644 --- a/tests/FPGAIntegrationTest.cpp +++ b/tests/FPGAIntegrationTest.cpp @@ -1116,7 +1116,7 @@ TEST_CASE("HLS_C_Simulation_internal_packet_generator_write_to_hbm", "[FPGA][Ful REQUIRE(test_frame_1 != test_frame_2); test.HBMTransfer(test_frame_2.data(), 12, 2*512*1024, true, 2, 0); - test.HBMTransfer(test_frame_2.data(), 13, 2*512*1024, true, 2, 1); + test.HBMTransfer(test_frame_2.data(), 14, 2*512*1024, true, 2, 1); REQUIRE(test_frame_1 == test_frame_2); }