util_cpack2_hw.tcl: Define allowed ranges for NUM_OF_CHANNELS

The number of channels must be round up to the closest next power of
two.
main
Istvan Csomortani 2019-09-18 13:46:31 +01:00 committed by István Csomortáni
parent acba490c2e
commit 97d4a14e2b
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ ad_ip_files util_cpack2_impl [list \
# parameters
ad_ip_parameter NUM_OF_CHANNELS INTEGER 4 true [list \
DISPLAY_NAME "Number of Channels"
DISPLAY_NAME "Number of Channels" \
ALLOWED_RANGES {2, 4, 8, 16}
]
ad_ip_parameter SAMPLES_PER_CHANNEL INTEGER 1 true [list \