Version 1.0.0-rc.12
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
#include <netinet/ip_icmp.h>
|
||||
#include <net/if_arp.h>
|
||||
|
||||
#include "../acquisition_device/HLSSimulatedDevice.h"
|
||||
#include "../fpga/hls/hls_jfjoch.h"
|
||||
#include "../jungfrau/sls_packet.h"
|
||||
|
||||
// ARP packet - from if_arp.h
|
||||
#pragma pack(push)
|
||||
@@ -29,22 +30,14 @@ struct RAW_ARP_Packet
|
||||
#pragma pack(pop)
|
||||
|
||||
TEST_CASE("HLS_Network_ARP_Gratuitous") {
|
||||
HLSSimulatedDevice device(0, 64);
|
||||
|
||||
const uint16_t nmodules = 4;
|
||||
DiffractionExperiment x((DetectorGeometry(nmodules)));
|
||||
AXI_STREAM arp_in;
|
||||
AXI_STREAM arp_out;
|
||||
|
||||
auto gain_from_file = GainCalibrationFromTestFile();
|
||||
|
||||
device.CreateFinalPacket(x);
|
||||
|
||||
device.StartAction(x);
|
||||
|
||||
device.WaitForActionComplete();
|
||||
arp(arp_in, arp_out, 0x1, 0x1, 1, 1);
|
||||
|
||||
packet_512_t network_packet;
|
||||
device.OutputStream().read(network_packet);
|
||||
|
||||
REQUIRE(arp_out.read_nb(network_packet));
|
||||
auto arp_packet = (RAW_ARP_Packet *) &network_packet.data;
|
||||
|
||||
for (int i = 0; i < 6; i++) {
|
||||
|
||||
Reference in New Issue
Block a user