Altera_Forum
Honored Contributor
7 years agoAltera DE2: LVDS bit alignment issue
I'm trying to verify whether my FPGA board (Altera DE2) can support LVDS. For this purpose, I set up a simple system to test it, using an ALTLVDS_TX module to output to a GPIO pair, which is then connected to an input GPIO pair and corresponding ALTLVDS_RX module. The data I'm transmitting is a simple 8-bit up counter, at 100 Mbps, nothing too speedy. However, I'm experiencing bit alignment issues, where the received bits are the same as the transmitted ones, but shifted. I wouldn't mind if the shift was by a multiple of 8, but right now it's by 21 bits, so my words are coming out corrupted.
here (https://imgur.com/a/7mune) are some waveforms and the circuit schematic here's (https://imgur.com/a/0hwqa) the transmitter settings. here's (https://imgur.com/a/rqsqt) the receiver settings. The most obvious thing I tried to change is the phase alignment alignment of tx_in WRT tx_inclock, or rx_in WRT rx_inclock, but the only option I get is 0.