K
kekely
Guest
Hi,
I'm trying to create EDK repository with my own pcores. In one of thi
pcores I need to use special program to generate one of its VHDL sourc
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 optio
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_projec
with "Project Peripheral Repository Search Path" set t
/path_to_repository, add mentioned pcore into this project and try t
generate bitstream, I get an error like "pcores/my_core/hdl/vhdl/generato
no such file or directory". After a while I figured out, that TCL scrip
inside my repository's pcore is executed in the project actual directory
so relative path pcores/my_core/hdl/vhdl/generator is extended to absolut
path /path_to_project/pcores/my_core/hdl/vhdl/generator instead of expecte
/path_to_repository/pcores/my_core/hdl/vhdl/generator.
Is there a way how I can change the working directory of the TCL script t
the directory with my repository? Maybe some system variable with th
content of "Project Peripheral Repository Search Path". Or maybe some othe
way, how to correctly do the described task (calling generator program) i
my repository.
---------------------------------------
Posted through http://www.FPGARelated.com
I'm trying to create EDK repository with my own pcores. In one of thi
pcores I need to use special program to generate one of its VHDL sourc
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 optio
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_projec
with "Project Peripheral Repository Search Path" set t
/path_to_repository, add mentioned pcore into this project and try t
generate bitstream, I get an error like "pcores/my_core/hdl/vhdl/generato
no such file or directory". After a while I figured out, that TCL scrip
inside my repository's pcore is executed in the project actual directory
so relative path pcores/my_core/hdl/vhdl/generator is extended to absolut
path /path_to_project/pcores/my_core/hdl/vhdl/generator instead of expecte
/path_to_repository/pcores/my_core/hdl/vhdl/generator.
Is there a way how I can change the working directory of the TCL script t
the directory with my repository? Maybe some system variable with th
content of "Project Peripheral Repository Search Path". Or maybe some othe
way, how to correctly do the described task (calling generator program) i
my repository.
---------------------------------------
Posted through http://www.FPGARelated.com