TSoM Programming the EPCS Device

From Terasic Wiki

Revision as of 13:40, 15 May 2019 by Admin (Talk | contribs)
Jump to: navigation, search

This guide describes how to program the serial configuration (EPCS) device with Serial Flash Loader (SFL) function via the JTAG interface. Users can program EPCS devices with a JTAG indirect configuration (.jic) file, which is converted from a user-specified SRAM object file (.sof) in Quartus. The .sof file is generated after the project compilation is successful. The steps of converting .sof to .jic in Quartus II are listed below.

1.1 Before Programming Begins

The FPGA should be set to AS x1 mode i.e. MSEL[4..0] = “10010” to use the Flash as a FPGA configuration device.


Please install the 10K ohm resistors in the red resistor position in the figure below.


confirm that the red resistor position in the figure below does not have any resistors installed.

1.2 8.2 Convert .SOF File to .JIC File

To programme the design file into the EPCS device, a .jic file is required. Here's how to convert the .sof file generated by Quartus compile to .jic.

  1. Choose Convert Programming Files from the File menu of Quartus II.
    TSOM PTE.jpg
  2. Select JTAG Indirect Configuration File (.jic) from the Programming file type field in the dialog of Convert Programming Files.
    TSOM PTE-001.jpg
  3. Choose EPCS64 from the Configuration device field.
  4. Choose Active Serial from the Mode filed.
  5. Browse to the target directory from the File name field and specify the name of output file.
  6. Click on the SOF data in the section of Input files to convert.
  7. Click Add File.
  8. Select the .sof to be converted to a .jic file from the Open File dialog.
    TSOM PTE-002.jpg
  9. Click Open and the Convert Programming Files page will appear.
    TSOM PTE-003.jpg
  10. Click on the Flash Loader and click Add Device.
    TSOM PTE-004.jpg
  11. The Select Devices page will appear, please select the targeted FPGA to be programed into the EPCS.
    TSOM PTE-005.jpg
  12. Click OK and the Convert Programming Files page will appear.
    TSOM PTE-006.jpg
  13. Click Generate and wait the .jic file is generated.
    TSOM PTE-007.jpg

1.3 Write JIC File into the EPCS Device