emacps: Include examples only when interrupt line is configured

Don't include examples when interrupt is not connected

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
This commit is contained in:
Punnaiah Choudary Kalluri 2015-02-02 17:13:08 +05:30 committed by Suneel Garapati
parent 47d14c6a7b
commit 70384a8fc5

View file

@ -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"]