FMaxi
New Contributor
7 years agoHow to auto-convert SOF to JIC after compilation using TCL script (solved)
I've added following line to redirector.qsf (redirector is project name)
set_global_assignment -name POST_FLOW_SCRIPT_FILE "quartus_sh:sof_to_jic.tcl"Contents of sof_to_jic.tcl:
exec quartus_cpf -c conv_setup.cof
post_message "Script has been executed"Contents of conv_setup.cof (generated by Quartus II):
<?xml version="1.0" encoding="US-ASCII" standalone="yes"?>
<cof>
<eprom_name>EPCS4</eprom_name>
<flash_loader_device>EP4CE6</flash_loader_device>
<output_filename>output_files/output_file.jic</output_filename>
<n_pages>1</n_pages>
<width>1</width>
<mode>7</mode>
<sof_data>
<user_name>Page_0</user_name>
<page_flags>1</page_flags>
<bit0>
<sof_filename>output_files/redirector.sof</sof_filename>
</bit0>
</sof_data>
<version>5</version>
<create_cvp_file>0</create_cvp_file>
<options>
</options>
</cof>JIC file is generated successfully.