Forum Discussion
Perl Path incorrect during Platform Designer Generate
I downloaded one of the Labs for the Platform Designer online training and when I went to try to generate the .qsys file in it, I keep getting an error message about perl not being found.
I am running v19.4 on RHEL8.
Error: Error starting the process ([/<INSTALL_PATH>/bin64/perl/bin/perl.exe, mk_avalon_state_machine_master.pl, file=/tmp/alt0109_4419065792222304765.dir/0011_av_sm_master_gen/avalon_state_machine_master, entityname=avalon_state_machine_master, av_commands=idle; write 00 FF; write 00 FF; write 00 F3; write 00 FC; read 1040; testbit 0 0; read 1040; testbit 0 1; write 00 F1; write 00 F2; write 00 F4; write 00 F8; write 40 00; write 44 00; write 48 00; write 4C 40; write 58 8C; read 40; testbit 0 1; write 00 FA; write 00 F5; read 1040; testbit 0 0; read 1040; testbit 0 1; write 00 F1; write 00 F2; write 00 F4; write 00 F8; write 20 00; write 24 00; write 28 00; write 2C 40; write 38 28C; read 20; testbit 0 1; write 20 00; write 24 00; write 28 10000; write 2C 40; write 38 8C; read 20; testbit 0 1; read 1040; testbit 1 0; read 1040; testbit 1 1; write 00 F8; write 00 F4; write 00 F2; write 00 F1; loop 0]): Cannot run program "/<INSTALL_PATH>/bin64/perl/bin/perl.exe" (in directory "~/altera_test/IPD17_1/Lab1/ip/avalon_state_machine_master"): error=2, No such file or directory
The problem is that the perl.exe file is not in /bin64/perl/bin/ but rather in /linux64/perl/bin/ in my install. I tried to change the system path to add the linux64 path at the top, but it ignored that. It seems that quartus has created a $perl internal variable that is set to the bin64 path. Is there a way to correct this?
How do I get the tool to point to its own perl directory correctly?
Thanks
6 Replies
- ShengN_altera
Super Contributor
Hi,
May I know which lab and could you provide the link?
Thanks,
Regards,
Sheng
- ericstrand
New Contributor
Creating a System Design with Platform Designer: Getting Started - Intel Learning
There is a lab attached in the resources section of this training module.
I was able to hack the tcl script to point directly to the linux64 path, but that doesn't sound like it should be the correct long-term solution.
- ShengN_altera
Super Contributor
Hi,
That design example is for window version only (bin64). Please use window version.
Thanks,
Regards,
Sheng
- sstrell
Super Contributor
If it's the lab I think it is, the instructions tell you what you need to do:
Important note: If you are running this lab after class on your own computer in a Linux* OS (the VLP and Intel FPGA training computers all run Windows* OS), you need to modify a file for the state machine to allow it to operate correctly. The state machine uses a Perl script to automatically create HDL code based on an IP parameter, and Perl needs to be called differently in Linux OS versus Windows OS. In the Intel Quartus Prime software or in a text editor, open the file:
<lab install directory>/Lab/ip/avalon_state_machine_host/avalon_state_machine_host_hw.tcl
Near the very end of the file, change….
# Call perl to execute perl script to generate HDL
global perl
exec $perl/perl.exe ...
to simply….
# Call perl to execute perl script to generate HDL
perl ... # If this doesn’t work, use “exec perl ...”
- ShengN_altera
Super Contributor
Hi,
May I know do you have any further update or concern? I think SStrell had mentioned the important notes for linux user.
Thanks,
Regards,
Sheng
- ericstrand
New Contributor
Thanks Sheng. I think the manual tcl editing is the way to go here. I am all set with this.