cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hbl
Visitor
Visitor
302 Views
Registered: ‎04-01-2021

Retrive IP version/revision numbers using Tcl

Jump to solution

Is there a way to retrieve an IP/bd version and revision numbers using Tcl (e.g. [get_property <version/revision> $IP]

0 Kudos
1 Solution

Accepted Solutions
amaccre
Moderator
Moderator
171 Views
Registered: ‎04-24-2013

Hi @hbl ,

Try the following for the revision version:

get_property CORE_REVISION [get_ips xxIP_NAMExx]

e.g.

get_property CORE_REVISION [get_ips Base_Zynq_MPSoC_axi_bram_ctrl_0_0]
2

amaccre_0-1617872048608.png

Best Regards
Aidan

 

------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if this answered your question
Give Kudos to a post which you think is helpful and may help other users
------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
6 Replies
hongh
Moderator
Moderator
284 Views
Registered: ‎11-04-2010

Please try the below command:

Ex: %get_property IPDEF [get_ips XX]

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
hbl
Visitor
Visitor
280 Views
Registered: ‎04-01-2021

Thanks for the reply. This only returns the version number (similar to VLNV) but not the revision number.

0 Kudos
hongh
Moderator
Moderator
235 Views
Registered: ‎11-04-2010

You have to catch the information from the generated file of the command "report_ip_status -file XX" 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
hbl
Visitor
Visitor
204 Views
Registered: ‎04-01-2021

I guess no easy way to get the revision number! Would it be possible to get the ip_report_status source code to see how it retrieves the Rev #?

0 Kudos
amaccre
Moderator
Moderator
172 Views
Registered: ‎04-24-2013

Hi @hbl ,

Try the following for the revision version:

get_property CORE_REVISION [get_ips xxIP_NAMExx]

e.g.

get_property CORE_REVISION [get_ips Base_Zynq_MPSoC_axi_bram_ctrl_0_0]
2

amaccre_0-1617872048608.png

Best Regards
Aidan

 

------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if this answered your question
Give Kudos to a post which you think is helpful and may help other users
------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
hbl
Visitor
Visitor
150 Views
Registered: ‎04-01-2021

Thanks Aidan, it worked.

In case someone else is looking for same info "report_property [get_ips <IP name>]" will list all properties attached to the IP.

0 Kudos