10-20-2010 05:18 AM
Hello,
I have a user IP core which can be instantiated like this in the mhs file:
BEGIN dds
PARAMETER INSTANCE = dds_0
PARAMETER HW_VER = 1.00.a
PARAMETER C_BASEADDR = 0x92000000
PARAMETER C_HIGHADDR = 0x9200FFFF
PARAMETER C_MEM0_BASEADDR = 0x93000000
PARAMETER C_MEM0_HIGHADDR = 0x930003FF
BUS_INTERFACE SPLB = mb_plb
PORT Dds_Out_En = dds_0_Dds_Out_En
PORT Dds_Out = dds_0_Dds_Out
END
the devce tree generator generates this:
dds_0: dds@92000000 {
compatible = "xlnx,dds-1.00.a";
reg = < 0x92000000 0x10000 >;
xlnx,family = "spartan6";
xlnx,include-dphase-timer = <0x0>;
} ;
It would be good if all parameters show up, so in my case the C_MEM0_BASEADDR.
I looked at the tcl file (I am not familiar with tcl) but I think the C_MEM0_BASEADDR should show up (*BASEADDR should cover it??):
proc default_parameters {ip_handle} {
set par_handles [xget_hw_parameter_handle $ip_handle "*"]
set params {}
foreach par $par_handles {
set par_name [xget_hw_name $par]
# Ignore some parameters that are always handled specially
switch -glob $par_name {
"INSTANCE" -
"*BASEADDR" -
"*HIGHADDR" -
"C_SPLB*" -
"C_OPB*" -
"C_DPLB*" -
"C_IPLB*" -
"C_PLB*" -
"HW_VER" {}
default { lappend params $par_name }
}
}
return $params
}