Hi,
I'm trying to create EDK repository with my own pcores. In one of this pcores I need to use special program to generate one of its VHDL source files. So during synthesis I need to execute something like:
/path_to_repository/my_repository/pcores/my_core/hdl/vhdl/generator
I tried to use TCL script for that purpose. I defined ELABORATE_PROC option in .mpd file which calls TCL script executing relative path like:
exec pcores/my_core/hdl/vhdl/generator
However, when I created XPS project in directory let say /path_to_project with "Project Peripheral Repository Search Path" set to /path_to_repository, add mentioned pcore into this project and try to generate bitstream, I get an error like "pcores/my_core/hdl/vhdl/generator no such file or directory". After a while I figured out, that TCL script inside my repository's pcore is executed in the project actual directory, so relative path pcores/my_core/hdl/vhdl/generator is extended to absolute path /path_to_project/pcores/my_core/hdl/vhdl/generator instead of expected /path_to_repository/pcores/my_core/hdl/vhdl/generator.
Is there a way how I can change the working directory of the TCL script to the directory with my repository? Maybe some system variable with the content of "Project Peripheral Repository Search Path". Or maybe some other way, how to correctly do the described task (calling generator program) in my repository.
--------------------------------------- Posted through