From 48921bc872e19483dc0730f7b32892cd77fcfda3 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Mon, 29 Sep 2014 19:56:55 +0200 Subject: [PATCH] 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 --- library/util_adc_pack/util_adc_pack_ip.tcl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/library/util_adc_pack/util_adc_pack_ip.tcl b/library/util_adc_pack/util_adc_pack_ip.tcl index d85d8ba24..6d8de5c1a 100644 --- a/library/util_adc_pack/util_adc_pack_ip.tcl +++ b/library/util_adc_pack/util_adc_pack_ip.tcl @@ -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] - -