cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Observer
Observer
606 Views
Registered: ‎03-12-2019

List IPs from a repository

Jump to solution

Hi,

 

I add an IP Repository to my project. I want to list all IP available in it. I found "get_ipdefs"  it looks like this one list all ip available in IP catalog. Which command should i use to list all ips from a specific repo using path i get from "get_property ip_repo_paths [current_project]" ?

 

Regards,

 

0 Kudos
Reply
1 Solution

Accepted Solutions
Observer
Observer
586 Views
Registered: ‎03-12-2019

I found a solution by myself. If you have any better please tell me.

 

First define a variable to store the path of your repository :

set repo_path [get_property ip_repo_paths [current_project]]

 

make a loop on get_ipdefs command and use a filter with the first variable :

foreach n [get_ipdefs -filter REPOSITORY==$repo_path] { puts "$n" }

 

This solution works only if you have one repository. For more repo you have to store all repo path in an array and loop on it.

View solution in original post

0 Kudos
Reply
1 Reply
Observer
Observer
587 Views
Registered: ‎03-12-2019

I found a solution by myself. If you have any better please tell me.

 

First define a variable to store the path of your repository :

set repo_path [get_property ip_repo_paths [current_project]]

 

make a loop on get_ipdefs command and use a filter with the first variable :

foreach n [get_ipdefs -filter REPOSITORY==$repo_path] { puts "$n" }

 

This solution works only if you have one repository. For more repo you have to store all repo path in an array and loop on it.

View solution in original post

0 Kudos
Reply