
76
ECP5 and ECP5-5G Hi
g
h-Speed I/O Interface
BW_ALIGN
This module is used to perform 7:1 video RX bit and word alignment. This module is optional and can be enabled in
Clarity Designer.
Figure 71. BW_ALIGN Ports
Table 43. BW_ALIGN Port Description
With Bit Alignment, the goal is to place edge clock (under PLL dynamic phase shift control) to the center of valid
window for the clock word and data words. The PLL phase rotation goes through all 16 phases. The PLL’s high
speed output is used to sample RX input clock. Transitions are detected on 2nd IDDR71 output which inputs the
RX Clock and phases close to transition are identified. The IP will choose the phase most away from transition as
the final phase to use.
The low speed clock has two transitions per 7-bit word. It is not the worst case in terms of inter-symbol interference.
On the other hand, we do have 8 possible sample points per bit period. Minimum eye-opening of 3/8 UI is needed
to achieve lock. Jitter tolerance is around 0.25UI, about 300ps at 756Mb/sec.
After bit alignment is achieved, word alignment is needed so video data (in 7-bit words) can be processed in core.
The IP uses the “ALIGNWD” function of the IDDRX71 primitive for word alignment. Each pulse on ALIGNWD
rotates the 7-bit bus by 2 bits. In maximum 7 ALIGNWD operations, the word will loop through all 7 possibilities.
The goal is to get “7’b1100011” (7’h63) in the clock word. The clock word is the clock (4 bit 1 and 3’b 0) converted
to parallel data, exactly as the video data traffic. For the 7:1 video, the RX input Clock serves as:
• Frequency reference to generate high speed.
• Phase reference as source synchronized RX, since the clock is edge aligned with the data bits.
• Word alignment reference.
Port
In/Out
Descriptions
RX_SCLK
IN
Divided RX clock from the 7:1 RX interface, produced by CLKDIV.
RST
IN
Active high reset to this circuit. When RST=1,
All outputs=0.
PLL_LOCK
IN
Connect to PLL’s LOCK output. Start the alignment procedures after PLL lock
goes high.
UPDATE
IN
Start the procedure, or re-start if need to optimize again.
RXCLK_WORD<6:0>
IN
Parallel data output from the 2nd IDDRX71 attached to RX CLK Input.
PHASESTEP
OUT
Rotate phase for PLL
PHASEDIR
OUT
Phase rotation direction for PLL, fixed to forward (0) for this design.
ALIGNWORD
OUT
Connect to IDDRX71.ALIGNWORD, for word rotation.
WINDOW_SIZE
OUT
Final valid window size.
BIT_LOCK
OUT
Status output, bit lock has been achieved.
WORD_LOCK
OUT
Status output, word lock has been achieved.
READY
OUT
Indicate that alignment procedure is finished and RX circuit is ready to operate
RX_ SCLK
RXCLK_ WORD <6 :0 >
UPDATE
PLL_ LOCK
RST
PHASESTEP
PHASEDIR
ALIGNWORD
WINDOW_ SIZE
BIT _ LOCK
WORD_ LOCK
READY
BW_ALIGN