Commit 3c7407f6 authored by Venkatesh Yadav Abbarapu's avatar Venkatesh Yadav Abbarapu
Browse files

Update the logic if the connected interrupt controller is NULL



The function get_intr_ctrl_name returns NULL(0 or {}) if there
is no interrupt controller.
Signed-off-by: default avatarVenkatesh Yadav Abbarapu <vabbarap@xilinx.com>
Acked-by: default avatarNaga Sureshkumar Relli <nagasure@xilinx.com>
parent 52748091
......@@ -1380,7 +1380,7 @@ proc gen_interrupt_property {drv_handle {intr_port_name ""}} {
# TODO: consolidation with get_intr_id proc
foreach pin ${intr_port_name} {
set connected_intc [get_intr_cntrl_name $drv_handle $pin]
if {[llength $connected_intc] == 0 } {
if {[llength $connected_intc] == 0 || [string match $connected_intc "{}"] } {
if {![string match -nocase [common::get_property IP_NAME [get_cells -hier $drv_handle]] "axi_intc"]} {
dtg_warning "Interrupt pin \"$pin\" of IP block: \"$drv_handle\" is not connected to any interrupt controller\n\r"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment