jesd204_rx/jesd204_lane_latency_monitor.v: Fix for datapath width of 4

Current implementation is correct only for datapath width of 8.
The buswidth of latency measurement inside a beat has a fixed width (3 bits)
for each lane that must be taken in account when computing the total latency.

Signed-off-by: Laszlo Nagy <laszlo.nagy@analog.com>
main
Laszlo Nagy 2021-11-11 17:52:50 +02:00 committed by Laszlo Nagy
parent 3cd203e9c7
commit 8e0a45dea9
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ for (i = 0; i < NUM_LANES; i = i + 1) begin: gen_lane
end
end
assign lane_latency[i*14+13:i*14] = {lane_latency_mem[i],lane_frame_align[(i*DPW_LOG2)+DPW_LOG2-1:i*DPW_LOG2]};
assign lane_latency[i*14+13:i*14] = {lane_latency_mem[i],lane_frame_align[(i*3)+DPW_LOG2-1:i*3]};
assign lane_latency_ready[i] = lane_captured[i];
end
endgenerate