scripts/jesd204.tcl: add support for more lanes and converters for TPLs

main
Laszlo Nagy 2019-11-15 13:15:19 +00:00 committed by Laszlo Nagy
parent 85eabc5a08
commit 7612b5d8dd
1 changed files with 4 additions and 4 deletions

View File

@ -204,8 +204,8 @@ proc adi_tpl_jesd204_tx_create {ip_name num_of_lanes num_of_converters samples_p
set link_layer_bytes_per_beat 4
if {$num_of_lanes < 1 || $num_of_lanes > 8} {
return -code 1 "ERROR: Invalid number of JESD204B lanes. (Supported range 1-8)"
if {$num_of_lanes < 1 || $num_of_lanes > 16} {
return -code 1 "ERROR: Invalid number of JESD204B lanes. (Supported range 1-16)"
}
# F = (M * N * S) / (L * 8)
set bytes_per_frame [expr ($num_of_converters * $sample_width * $samples_per_frame) / ($num_of_lanes * 8)];
@ -316,8 +316,8 @@ proc adi_tpl_jesd204_rx_create {ip_name num_of_lanes num_of_converters samples_p
set link_layer_bytes_per_beat 4
if {$num_of_lanes < 1 || $num_of_lanes > 8} {
return -code 1 "ERROR: Invalid number of JESD204B lanes. (Supported range 1-8)"
if {$num_of_lanes < 1 || $num_of_lanes > 16} {
return -code 1 "ERROR: Invalid number of JESD204B lanes. (Supported range 1-16)"
}
# F = (M * N * S) / (L * 8)
set bytes_per_frame [expr ($num_of_converters * $sample_width * $samples_per_frame) / ($num_of_lanes * 8)];