jesd204: Add parameter for TPL data width

main
Laszlo Nagy 2019-08-30 15:09:10 +01:00 committed by Laszlo Nagy
parent f2060e27be
commit 474e07e579
1 changed files with 2 additions and 4 deletions

View File

@ -200,9 +200,8 @@ proc adi_axi_jesd204_rx_create {ip_name num_lanes {num_links 1}} {
# L M S N & NP
proc adi_tpl_jesd204_tx_create {ip_name num_of_lanes num_of_converters samples_per_frame sample_width} {
proc adi_tpl_jesd204_tx_create {ip_name num_of_lanes num_of_converters samples_per_frame sample_width {link_layer_bytes_per_beat 4}} {
set link_layer_bytes_per_beat 4
if {$num_of_lanes < 1 || $num_of_lanes > 16} {
return -code 1 "ERROR: Invalid number of JESD204B lanes. (Supported range 1-16)"
@ -312,9 +311,8 @@ proc adi_tpl_jesd204_tx_create {ip_name num_of_lanes num_of_converters samples_p
# L M S N & NP
proc adi_tpl_jesd204_rx_create {ip_name num_of_lanes num_of_converters samples_per_frame sample_width} {
proc adi_tpl_jesd204_rx_create {ip_name num_of_lanes num_of_converters samples_per_frame sample_width {link_layer_bytes_per_beat 4}} {
set link_layer_bytes_per_beat 4
if {$num_of_lanes < 1 || $num_of_lanes > 16} {
return -code 1 "ERROR: Invalid number of JESD204B lanes. (Supported range 1-16)"