spips : added namespace for all HSI TCL commands.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
This commit is contained in:
parent
8ad5b784cf
commit
9145924412
1 changed files with 16 additions and 16 deletions
|
@ -53,18 +53,18 @@ proc gen_include_files {swproj mhsinst} {
|
||||||
}
|
}
|
||||||
if {$swproj == 1} {
|
if {$swproj == 1} {
|
||||||
set inc_file_lines {xspips.h spips_header.h}
|
set inc_file_lines {xspips.h spips_header.h}
|
||||||
}
|
}
|
||||||
return $inc_file_lines
|
return $inc_file_lines
|
||||||
}
|
}
|
||||||
|
|
||||||
proc gen_src_files {swproj mhsinst} {
|
proc gen_src_files {swproj mhsinst} {
|
||||||
if {$swproj == 0} {
|
if {$swproj == 0} {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if {$swproj == 1} {
|
if {$swproj == 1} {
|
||||||
|
|
||||||
set inc_file_lines {examples/xspips_selftest_example.c data/spips_header.h}
|
set inc_file_lines {examples/xspips_selftest_example.c data/spips_header.h}
|
||||||
|
|
||||||
return $inc_file_lines
|
return $inc_file_lines
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,31 +74,31 @@ proc gen_testfunc_def {swproj mhsinst} {
|
||||||
}
|
}
|
||||||
|
|
||||||
proc gen_init_code {swproj mhsinst} {
|
proc gen_init_code {swproj mhsinst} {
|
||||||
|
|
||||||
if {$swproj == 0} {
|
if {$swproj == 0} {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if {$swproj == 1} {
|
if {$swproj == 1} {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
proc gen_testfunc_call {swproj mhsinst} {
|
proc gen_testfunc_call {swproj mhsinst} {
|
||||||
|
|
||||||
if {$swproj == 0} {
|
if {$swproj == 0} {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
||||||
set hasStdout 1
|
set hasStdout 1
|
||||||
}
|
}
|
||||||
|
|
||||||
set testfunc_call ""
|
set testfunc_call ""
|
||||||
|
|
||||||
if {${hasStdout} == 0} {
|
if {${hasStdout} == 0} {
|
||||||
|
@ -107,11 +107,11 @@ proc gen_testfunc_call {swproj mhsinst} {
|
||||||
|
|
||||||
{
|
{
|
||||||
int Status;
|
int Status;
|
||||||
|
|
||||||
Status = SpiPsSelfTestExample(${deviceid});
|
Status = SpiPsSelfTestExample(${deviceid});
|
||||||
|
|
||||||
}"
|
}"
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -119,11 +119,11 @@ proc gen_testfunc_call {swproj mhsinst} {
|
||||||
|
|
||||||
{
|
{
|
||||||
int Status;
|
int Status;
|
||||||
|
|
||||||
print(\"\\r\\n Running SpiPsSelfTestExample() for ${ipname}...\\r\\n\");
|
print(\"\\r\\n Running SpiPsSelfTestExample() for ${ipname}...\\r\\n\");
|
||||||
|
|
||||||
Status = SpiPsSelfTestExample(${deviceid});
|
Status = SpiPsSelfTestExample(${deviceid});
|
||||||
|
|
||||||
if (Status == 0) {
|
if (Status == 0) {
|
||||||
print(\"SpiPsSelfTestExample PASSED\\r\\n\");
|
print(\"SpiPsSelfTestExample PASSED\\r\\n\");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue