Due to a problem in the Quartus II software version 10.0 and later, the generation of a UniPHY core may error out with the above message.
Error: add_fileset_file: No such file C:/<temp directory>/qsys/<UniPHY core>_p0_sequencer_rom.hex
while executing
"add_fileset_file [::alt_mem_if::util::hwtcl_utils::get_file_type 0] PATH "
("foreach" body line 4)
invoked from within
"foreach generated_file [alt_mem_if::gen::uniphy_gen::generate_sequencer_fi les "DDR3" QUARTUS_SYNTH] {
set file_name [file tail ..."
("if" then script line 2)
invoked from within
"if {[string compare -nocase [get_parameter_value NIOS_SEQUENCER] "true"] == 0} {
foreach generated_file [alt_mem_if::gen::uniphy_gen::generate_seque..."
(procedure "generate_synth" line 24)
invoked from within
"generate_synth ddr3_p0"
The workaround is to open the <Quartus II installation directory>/nios2eds/bin/elf2hex file and edit the first line from
#!/bin/sh
to
#!/bin/bash
This issue has been fixed in the Quartus II software version 13.1.