sysmon : added namespace for all HSI TCL commands.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
This commit is contained in:
parent
9145924412
commit
c9875d6a3f
1 changed files with 9 additions and 9 deletions
|
@ -59,7 +59,7 @@ proc gen_include_files {swproj mhsinst} {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if {$swproj == 1} {
|
if {$swproj == 1} {
|
||||||
set ifsysmonintr [::hsm::utils::is_ip_interrupting_current_proc $mhsinst]
|
set ifsysmonintr [::hsi::utils::is_ip_interrupting_current_proc $mhsinst]
|
||||||
if {$ifsysmonintr == 1} {
|
if {$ifsysmonintr == 1} {
|
||||||
set inc_file_lines {xsysmon.h sysmon_header.h sysmon_intr_header.h}
|
set inc_file_lines {xsysmon.h sysmon_header.h sysmon_intr_header.h}
|
||||||
} else {
|
} else {
|
||||||
|
@ -74,7 +74,7 @@ proc gen_src_files {swproj mhsinst} {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if {$swproj == 1} {
|
if {$swproj == 1} {
|
||||||
set ifsysmonintr [::hsm::utils::is_ip_interrupting_current_proc $mhsinst]
|
set ifsysmonintr [::hsi::utils::is_ip_interrupting_current_proc $mhsinst]
|
||||||
|
|
||||||
if {$ifsysmonintr == 1} {
|
if {$ifsysmonintr == 1} {
|
||||||
set inc_file_lines {examples/xsysmon_polled_example.c examples/xsysmon_intr_example.c data/sysmon_header.h data/sysmon_intr_header.h}
|
set inc_file_lines {examples/xsysmon_polled_example.c examples/xsysmon_intr_example.c data/sysmon_header.h data/sysmon_intr_header.h}
|
||||||
|
@ -97,7 +97,7 @@ proc gen_init_code {swproj mhsinst} {
|
||||||
if {$swproj == 1} {
|
if {$swproj == 1} {
|
||||||
|
|
||||||
set ipname [get_property NAME $mhsinst]
|
set ipname [get_property NAME $mhsinst]
|
||||||
set ifsysmonintr [::hsm::utils::is_ip_interrupting_current_proc $mhsinst]
|
set ifsysmonintr [::hsi::utils::is_ip_interrupting_current_proc $mhsinst]
|
||||||
if {$ifsysmonintr == 1} {
|
if {$ifsysmonintr == 1} {
|
||||||
set decl " static XSysMon ${ipname}_SysMon_ADC;"
|
set decl " static XSysMon ${ipname}_SysMon_ADC;"
|
||||||
set inc_file_lines $decl
|
set inc_file_lines $decl
|
||||||
|
@ -115,10 +115,10 @@ proc gen_testfunc_call {swproj mhsinst} {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
set ifsysmonintr [::hsm::utils::is_ip_interrupting_current_proc $mhsinst]
|
set ifsysmonintr [::hsi::utils::is_ip_interrupting_current_proc $mhsinst]
|
||||||
set ipname [get_property NAME $mhsinst]
|
set ipname [get_property NAME $mhsinst]
|
||||||
set deviceid [::hsm::utils::get_ip_param_name $mhsinst "DEVICE_ID"]
|
set deviceid [::hsi::utils::get_ip_param_name $mhsinst "DEVICE_ID"]
|
||||||
set stdout [get_property CONFIG.STDOUT [get_os]]
|
set stdout [get_property CONFIG.STDOUT [hsi::get_os]]
|
||||||
if { $stdout == "" || $stdout == "none" } {
|
if { $stdout == "" || $stdout == "none" } {
|
||||||
set hasStdout 0
|
set hasStdout 0
|
||||||
} else {
|
} else {
|
||||||
|
@ -126,10 +126,10 @@ proc gen_testfunc_call {swproj mhsinst} {
|
||||||
}
|
}
|
||||||
|
|
||||||
if {$ifsysmonintr == 1} {
|
if {$ifsysmonintr == 1} {
|
||||||
set intr_pin_name [get_pins -of_objects [get_cells $ipname] -filter "TYPE==INTERRUPT"]
|
set intr_pin_name [hsi::get_pins -of_objects [hsi::get_cells $ipname] -filter "TYPE==INTERRUPT"]
|
||||||
set intcname [::hsm::utils::get_connected_intr_cntrl $ipname $intr_pin_name]
|
set intcname [::hsi::utils::get_connected_intr_cntrl $ipname $intr_pin_name]
|
||||||
set intcvar intc
|
set intcvar intc
|
||||||
set proc [get_property IP_NAME [get_cells [get_sw_processor]]]
|
set proc [get_property IP_NAME [hsi::get_cells [hsi::get_sw_processor]]]
|
||||||
}
|
}
|
||||||
|
|
||||||
set testfunc_call ""
|
set testfunc_call ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue