pc2 / Aurora-HLS

Ready-to-link, packaged Aurora IP on four QSFP28 lanes, providing 100Gb/s throughput
Apache License 2.0
7 stars 2 forks source link

Fix frame counter and CRC readings #12

Closed michaellass closed 3 months ago

michaellass commented 3 months ago

Only the LSB of the frames_received and frames_with_errors counters provided by the aurora_hls_crc_counter module were wired up. All of our tests probably transferred an even number of frames, hence the counters were always showing up as 0 when read by the host code.

Output for the test case given in scripts/run_N1.sh:

3: Total frames received: 8388608
3: Frames with errors: 0
2: Total frames received: 8388608
2: Frames with errors: 0
1: Total frames received: 8388608
1: Frames with errors: 0
5: Total frames received: 8388608
5: Frames with errors: 0
4: Total frames received: 8388608
4: Frames with errors: 0
0: Total frames received: 8388608
0: Frames with errors: 0

Fixes #1

papeg commented 3 months ago

Ah that exlains a lot.. thanks for finding this!