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
parent
8fa4b0c56d
commit
48921bc872
|
@ -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]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue