scripts/jesd204.tcl: add support for more lanes and converters for TPLs
parent
85eabc5a08
commit
7612b5d8dd
|
@ -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
|
set link_layer_bytes_per_beat 4
|
||||||
|
|
||||||
if {$num_of_lanes < 1 || $num_of_lanes > 8} {
|
if {$num_of_lanes < 1 || $num_of_lanes > 16} {
|
||||||
return -code 1 "ERROR: Invalid number of JESD204B lanes. (Supported range 1-8)"
|
return -code 1 "ERROR: Invalid number of JESD204B lanes. (Supported range 1-16)"
|
||||||
}
|
}
|
||||||
# F = (M * N * S) / (L * 8)
|
# F = (M * N * S) / (L * 8)
|
||||||
set bytes_per_frame [expr ($num_of_converters * $sample_width * $samples_per_frame) / ($num_of_lanes * 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
|
set link_layer_bytes_per_beat 4
|
||||||
|
|
||||||
if {$num_of_lanes < 1 || $num_of_lanes > 8} {
|
if {$num_of_lanes < 1 || $num_of_lanes > 16} {
|
||||||
return -code 1 "ERROR: Invalid number of JESD204B lanes. (Supported range 1-8)"
|
return -code 1 "ERROR: Invalid number of JESD204B lanes. (Supported range 1-16)"
|
||||||
}
|
}
|
||||||
# F = (M * N * S) / (L * 8)
|
# F = (M * N * S) / (L * 8)
|
||||||
set bytes_per_frame [expr ($num_of_converters * $sample_width * $samples_per_frame) / ($num_of_lanes * 8)];
|
set bytes_per_frame [expr ($num_of_converters * $sample_width * $samples_per_frame) / ($num_of_lanes * 8)];
|
||||||
|
|
Loading…
Reference in New Issue