util_adc_pack: Hide unused signals

Hide unused signals based on the number of selected channels. This silences
a few warnings from the tools about unconnected pins.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2014-09-29 19:56:55 +02:00
parent 8fa4b0c56d
commit 48921bc872
1 changed files with 10 additions and 2 deletions

View File

@ -18,6 +18,14 @@ ipx::remove_memory_map {m} [ipx::current_core]
ipx::remove_address_space {s} [ipx::current_core]
ipx::remove_address_space {fifo} [ipx::current_core]
for {set i 0} {$i < 8} {incr i} {
foreach port {"chan_enable" "chan_valid" "chan_data"} {
set name [format "%s_%d" $port $i]
set_property ENABLEMENT_DEPENDENCY \
"(spirit:decode(id('MODELPARAM_VALUE.CHANNELS')) > $i)" \
[ipx::get_ports $name]
set_property DRIVER_VALUE "0" [ipx::get_ports $name]
}
}
ipx::save_core [ipx::current_core]