AR# 50278

Vivado IP Flows - Is there a way, with Tcl, to determine if an IP core will be delivered with an Example design?

Description

Is there a way, with Tcl, to determine if an IP core will be delivered with an Example design or C-models?

Solution

The get_property command can be used to get all of the know targets available for an IP in the IP Catalog.

For example, the command "get_property known_targets [get_ipdefs -filter {NAME=~selectio_wiz}]" returns "synthesis example instantiation_template simulation". Therefore, you can see that an example design is available for the Select I/O Wizard IP.

A simple tcl script that will find all IP in the IP catalog that support a particular target type can easily be created.

For example, the script below finds all IP that deliver example targets:

set ipd [get_ipdefs]

for

each ip $ipd {

set known_targets [get_property known_targets $ip]

if { [lsearch $known_targets example] != -1 } {

puts $ip

}

}

You could easily modify the script to find all IP that deliver c-models, etc.

AR# 50278
Date 10/19/2012
Status Active
Type General Article
Devices
Tools