Forum Discussion

FMaxi's avatar
FMaxi
Icon for New Contributor rankNew Contributor
7 years ago

How 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.

6 Replies

  • JohnT_Altera's avatar
    JohnT_Altera
    Icon for Regular Contributor rankRegular Contributor

    The cof file does contain the setting. Just that when you load the cof file into the GUI, the advanced option does not take into effect.

    You can look into the cof file "<ignore_condone_check>1</ignore_condone_check>", that the setting s included.​

  • JohnT_Altera's avatar
    JohnT_Altera
    Icon for Regular Contributor rankRegular Contributor

    Below is the cof setting that you can use.

    <advanced_options>

    <ignore_epcs_id_check>1</ignore_epcs_id_check>

    <ignore_condone_check>1</ignore_condone_check>

    </advanced_options>

  • FMaxi's avatar
    FMaxi
    Icon for New Contributor rankNew Contributor

    @JohnT_Intel​, do you know how to specify Advanced converting option "Disable AS mode CONF_DONE error check" when converting via script? This option is absent in .cof file, so even when loading settings from .cof file, I have to click "Advanced options" and tick this checkbox.

    I suppose when converting JIC via script this option is no applied too. So, how to do it?

  • FMaxi's avatar
    FMaxi
    Icon for New Contributor rankNew Contributor

    @JohnT_Intel​, many thanks. Thats very useful information. How about "Disable EPCS ID check" option? I don't need it now, but may need in future. Is there any document where I can find the list of options, or only you can tell me?