From 70384a8fc5b9a7292f560b02718cb3e7a5330746 Mon Sep 17 00:00:00 2001 From: Punnaiah Choudary Kalluri Date: Mon, 2 Feb 2015 17:13:08 +0530 Subject: [PATCH] emacps: Include examples only when interrupt line is configured Don't include examples when interrupt is not connected Signed-off-by: Punnaiah Choudary Kalluri --- .../drivers/emacps/data/emacps_tapp.tcl | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/XilinxProcessorIPLib/drivers/emacps/data/emacps_tapp.tcl b/XilinxProcessorIPLib/drivers/emacps/data/emacps_tapp.tcl index 8893e928..6fb67c6b 100755 --- a/XilinxProcessorIPLib/drivers/emacps/data/emacps_tapp.tcl +++ b/XilinxProcessorIPLib/drivers/emacps/data/emacps_tapp.tcl @@ -38,6 +38,7 @@ # 2.0 adk 10/12/13 Updated as per the New Tcl API's # 3.0 adk 08/1/15 Don't include gem in peripheral test when gem is # configured with PCS/PMA Core. +# 3.0 kpc 01/20/15 Don't include examples when interrupt is not connected ############################################################################## # Uses $XILINX_EDK/bin/lib/xillib_sw.tcl @@ -60,6 +61,12 @@ proc gen_include_files {swproj mhsinst} { return "" } + set isintr [::hsm::utils::is_ip_interrupting_current_proc $mhsinst] + + if {$isintr == 0} { + return "" + } + set ispcs_pma 0 set ipname [get_property NAME $mhsinst] set ips [get_cells "*"] @@ -109,6 +116,13 @@ proc gen_src_files {swproj mhsinst} { if {$swproj == 0} { return "" } + + set isintr [::hsm::utils::is_ip_interrupting_current_proc $mhsinst] + + if {$isintr == 0} { + return "" + } + if {$ispcs_pma == 0} { if {$swproj == 1} { @@ -130,6 +144,12 @@ proc gen_init_code {swproj mhsinst} { return "" } + set isintr [::hsm::utils::is_ip_interrupting_current_proc $mhsinst] + + if {$isintr == 0} { + return "" + } + if {$ispcs_pma == 0} { if {$swproj == 1} { @@ -149,6 +169,11 @@ proc gen_testfunc_call {swproj mhsinst} { if {$swproj == 0} { return "" } + set isintr [::hsm::utils::is_ip_interrupting_current_proc $mhsinst] + + if {$isintr == 0} { + return "" + } set ipname [common::get_property NAME $mhsinst] set deviceid [::hsi::utils::get_ip_param_name $mhsinst "DEVICE_ID"]