Hi amilcar,
--- Quote Start ---
1. Can you post the contents of your .cof file ?
--- Quote End ---
Contents of .cof file :
<?xml version="1.0" encoding="US-ASCII" standalone="yes"?>
<cof>
<eprom_name>EPCS64</eprom_name>
<flash_loader_device>EP4CE75</flash_loader_device>
<output_filename>Project_qout/FDC285M_GVI__20150210_090108.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>Project_qout/FDC_285M_GVI.sof</sof_filename>
</bit0>
</sof_data>
<version>5</version>
<create_cvp_file>0</create_cvp_file>
<auto_create_rpd>0</auto_create_rpd>
<options>
<map_file>1</map_file>
</options>
</cof>
--- Quote Start ---
2. Did you save the "generate_jic_programming_file.tcl" in the the same directory as the .cof and .qsf file ?
--- Quote End ---
Have saved it as jic_generator.tcl. The .tcl file is in the same directory as the .cof and .qsf files. However the .jic and .sof files are placed in another directory Project_qout as indicated by the .cof file.
--- Quote Start ---
3. Did you edit your .qsf file ?
--- Quote End ---
Yes I did.
set_global_assignment -name POST_MODULE_SCRIPT_FILE "quartus_sh:jic_generator.tcl"
This is the command I used in the .qsf file and in the TCL file has set a conditional epxression to analysis and synthesis step for testing purposes.
Tcl code :
set module [lindex $quartus(args) 0]
if [string match "quartus_map" $module] {# Generating .jic file based on .cof file
set cmd "quartus_cpf -c output_file.cof"
post_message "Generated .jic file with date and time"
# If the command can't be run, return an error.
if { [catch {open "|$cmd"} input] } {
return -code error $input
}
}
Note: Forgot to mention earlier but I am using Quartus II 64-bit version 13.1.2