emc : added common namespace to all common tcl commands.

Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
This commit is contained in:
Kishore Kumar Korathaluri 2015-01-09 15:27:55 +05:30 committed by Suneel Garapati
parent 5b3241364b
commit 33d4fa6a7f
2 changed files with 7 additions and 7 deletions

View file

@ -87,7 +87,7 @@ proc xdefine_canonical_xpars {drv_handle file_name drv_string args} {
# Get the names of all the peripherals connected to this driver
foreach periph $periphs {
set peripheral_name [string toupper [get_property NAME $periph]]
set peripheral_name [string toupper [common::get_property NAME $periph]]
lappend peripherals $peripheral_name
}
@ -108,7 +108,7 @@ proc xdefine_canonical_xpars {drv_handle file_name drv_string args} {
set i 0
foreach periph $periphs {
set periph_name [string toupper [get_property NAME $periph]]
set periph_name [string toupper [common::get_property NAME $periph]]
# Generate canonical definitions only for the peripherals whose
# canonical name is not the same as hardware instance name
@ -127,7 +127,7 @@ proc xdefine_canonical_xpars {drv_handle file_name drv_string args} {
# The commented out rvalue is the name of the instance-specific constant
# set rvalue [::hsi::utils::get_ip_param_name $periph $arg]
# The rvalue set below is the actual value of the parameter
set rvalue [get_property CONFIG.$arg $periph]
set rvalue [common::get_property CONFIG.$arg $periph]
if {[llength $rvalue] == 0} {
set rvalue 0
}

View file

@ -95,8 +95,8 @@ proc gen_testfunc_call {swproj mhsinst} {
return ""
}
set ipname [get_property NAME $mhsinst]
set stdout [get_property CONFIG.STDOUT [hsi::get_os]]
set ipname [common::get_property NAME $mhsinst]
set stdout [common::get_property CONFIG.STDOUT [hsi::get_os]]
if { $stdout == "" || $stdout == "none" } {
set hasStdout 0
} else {
@ -108,7 +108,7 @@ proc gen_testfunc_call {swproj mhsinst} {
set prog_memranges [hsi::get_mem_ranges -filter "IS_INSTRUCTION==1" $mhsinst]
if {[string compare ${prog_memranges} ""] != 0} {
foreach progmem $prog_memranges {
set baseaddrval [get_property CONFIG.${progmem} $mhsinst]
set baseaddrval [common::get_property CONFIG.${progmem} $mhsinst]
append testfunc_call "
/*
* MemoryTest routine will not be run for the memory at
@ -122,7 +122,7 @@ proc gen_testfunc_call {swproj mhsinst} {
set romemranges [hsi::get_mem_ranges $mhsinst]
if {[string compare ${romemranges} ""] != 0} {
foreach romem $romemranges {
set baseaddrval [get_property CONFIG.${romem} $mhsinst]
set baseaddrval [common::get_property CONFIG.${romem} $mhsinst]
append testfunc_call "
/*
* MemoryTest routine will not be run for the memory at