Skip to content

Relative path to IP repository dir #11

@OVGN

Description

@OVGN

Hello!

First, thank you so much for these scripts! They really help me every day at work and home)

I have noticed a small, but annoying issue with IP repo path generation in TCL. As you know, this path is set in Vivado this way: Project Manager - Settings - Project Settings - IP - Repositoty.

My hierarchy:

│
├── My_IP_repo
├── projects
│      ├── project_0
│      ├── project_1
│      │      ├── src
│      │      ├── vivado_project
│      │      ├── project_1.tcl

So, when IP dir in hierarchy is "higher", that the project_1 origin dir, the path in the project_1.tcl remains empty after wproj run.

What I supposed see:

# Set IP repository paths
set obj [get_filesets sources_1]
if { $obj != {} } {
set_property "ip_repo_paths" "${origin_dir}/../../My_IP_repo/" $obj

# Rebuild user ip_repo's index before adding any source files
update_ip_catalog -rebuild
}

What I actually see:

# Set IP repository paths
set obj [get_filesets sources_1]
if { $obj != {} } {
set_property "ip_repo_paths" "" $obj

# Rebuild user ip_repo's index before adding any source files
update_ip_catalog -rebuild
}

Best regards,
VGN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions