ad_ip_jesd204_tpl: Extend valid attribute ranges

main
Istvan Csomortani 2020-06-15 11:23:31 +01:00 committed by Adrian Costina
parent 35e4eb6a7b
commit 0413bea5c1
2 changed files with 9 additions and 9 deletions

View File

@ -72,7 +72,7 @@ ad_ip_parameter NUM_LANES INTEGER 1 true [list \
ad_ip_parameter NUM_CHANNELS INTEGER 1 true [list \
DISPLAY_NAME "Number of Converters (M)" \
DISPLAY_UNITS "converters" \
ALLOWED_RANGES {1 2 4 6 8} \
ALLOWED_RANGES {1 2 4 6 8 16 32 64} \
GROUP $group \
]
@ -114,7 +114,7 @@ ad_ip_parameter SAMPLES_PER_FRAME_MANUAL INTEGER 1 false [list \
ad_ip_parameter OCTETS_PER_FRAME INTEGER 1 false [list \
DISPLAY_NAME "Octets per Frame (F)" \
DISPLAY_UNITS "octets" \
ALLOWED_RANGES {1 2 4} \
ALLOWED_RANGES {1 2 4 8 12 16} \
DERIVED true \
GROUP $group \
]

View File

@ -93,14 +93,14 @@ ad_ip_parameter PART STRING "Generic" false [list \
ad_ip_parameter NUM_LANES INTEGER 1 true [list \
DISPLAY_NAME "Number of Lanes (L)" \
DISPLAY_UNITS "lanes" \
ALLOWED_RANGES {1 2 3 4 8} \
ALLOWED_RANGES {1 2 3 4 8 16} \
GROUP $group \
]
ad_ip_parameter NUM_CHANNELS INTEGER 1 true [list \
DISPLAY_NAME "Number of Converters (M)" \
DISPLAY_UNITS "converters" \
ALLOWED_RANGES {1 2 4 6 8} \
ALLOWED_RANGES {1 2 4 6 8 16 32 64} \
GROUP $group \
]
@ -142,7 +142,7 @@ ad_ip_parameter SAMPLES_PER_FRAME_MANUAL INTEGER 1 false [list \
ad_ip_parameter OCTETS_PER_FRAME INTEGER 1 false [list \
DISPLAY_NAME "Octets per Frame (F)" \
DISPLAY_UNITS "octets" \
ALLOWED_RANGES {1 2 4} \
ALLOWED_RANGES {1 2 4 8} \
DERIVED true \
GROUP $group \
]
@ -437,11 +437,11 @@ proc p_ad_ip_jesd204_tpl_dac_validate {} {
send_message ERROR "Framer configuration (L=$L, M=$M, N=$N, NP=$NP, S=$S, F=$F) not supported by $part"
}
} else {
set allowed_channels {1 2 4 6}
set allowed_lanes {1 2 3 4 8}
set allowed_channels {1 2 4 6 8 16 32 64}
set allowed_lanes {1 2 3 4 8 16}
set allowed_samples_per_frame {1 2 3 4 6 8 12 16}
set allowed_resolution {11 12 16}
set allowed_bits_per_sample {12 16}
set allowed_resolution {8 11 12 16}
set allowed_bits_per_sample {8 12 16}
}
set_parameter_property "NUM_CHANNELS" "ALLOWED_RANGES" $allowed_channels