chili-chips-ba / openeye-CamSI

A truly opensource camera serial interface. No frills. No backdoors that compromise security. Outstanding signal integrity. Hi-rez video pipeline with remote connectivity. For Sony, Series7 & open FPGA makers on limited budget. Augments openXC7 CI/CD, challenging its timing-savvy. Promotes the lesser-known EU boards.
https://nlnet.nl/project/TISG
BSD 3-Clause "New" or "Revised" License
25 stars 5 forks source link

issue#6 - csi_rx_align_word #21

Open Juninho99 opened 5 months ago

Juninho99 commented 5 months ago

Issue: Review of csi_rx_align_word.sv module

We need to review the implementation of csi_rx_align_word.sv module.

Modified version, as proposed in the issue#5 branch, works properly in simulation. However, something isn't right for the version that's currently on the main branch.

Below are two waveforms that show the difference.

What we see on the first wave is that valid_out is lined up with word_out, while also filtering out the B8 sync bytes, which is indeed the design intent. image

On the second wave however, valid_out is encompassing the B8. That causes downstream failures. Also, few other signals (wait_for_sync, packet_done, etc.) are not looking right in the second wave. image

chili-chips-ba commented 4 months ago

The original bug was about misalignment of VLD and DATA, and simple to fix. However we still cannot declare the _alignword module fully tested, as the existing testbench does not exercise its primary function.

To close this issue, static lane-to-lane skew needs to be added to the traffic generator. The test should cover at least the following two cases: 1) when lane-to-lane skew is within deskewing range of this module, which is 2 clock cycles 2) when lane-to-lane skew exceed that range

Similarly, we cannot declare that _alignbyte module is fully tested without introducing bit skew into traffic generator for each lane.

@Juninho99, let's improve the sim setup with these must-have capabilities for further progress on this ticket.

chili-chips-ba commented 2 months ago

@Juninho99 please consider closing this ticket. If there are any outstanding DV-related activities, open a new task issue to track them.