QUARTUS FPGA AS模式 加载程序
1 Before Programming Begins
The FPGA should be set to AS x4 mode i.e. MSEL[4…0] = “10010” to use the quad Flash as a FPGA configuration device.
有些FPGA切换到AS模式是通过拨码开关切换的,详看FPGA datasheet.
2 Convert .SOF File to .JIC File
- Choose Convert Programming Files from the File menu of Quartus II, as shown in Figure
2…Select JTAG Indirect Configuration File (.jic) from the Programming file type field in
the dialog of Convert Programming Files.
2. Choose EPCQ256 from the Configuration device field.
3. Choose Active Serial x4 from the Model filed.
4. Browse to the target directory from the File name field and specify the name of output file.
5. Click on the SOF data in the section of Input files to convert, as shown in Figure
6. Click Add File.
7. Select the .sof to be converted to a .jic file from the Open File dialog.
8. Click Open.
9. Click on the Flash Loader and click Add Device, as shown in Figure 8-3.
10. Click OK and the Select Devices page will appear
11. Select the targeted FPGA to be programed into the EPCQ, as shown in Figure
12. Click OK and the Convert Programming Files page will appear, as shown in Figure 8-5.
13. Click Generate.
至此.jic文件生成。
3 Write JIC File into the EPCQ Device
- Set MSEL[4…0] = “10010”
- Choose Programmer from the Tools menu and the Chain.cdf window will appear.
- 上电。然后hardware setup找到 设备。Click Auto Detect and then select the correct device. Both FPGA device and HPS should be detected, as shown in Figure .
- Double click the red rectangle region shown in Figure 8-6 and the Select New
Programming File page will appear. Select the .jic file to be programmed. - Program the EPCQ device by clicking the corresponding Program/Configure box. A
factory default SFL image will be loaded, as shown in Figure 8-7. - Click Start to program the EPCQ device.
到现在程序就下载到EPCQ中去了。掉电程序还在。这时候在这种状态下你下载sof文件也没问题,可以先执行你这次的sof.再掉电再上电,配置芯片中的程序还在。
4.Erase the EPCQ Device
- Set MSEL[4…0] = “10010”
- Choose Programmer from the Tools menu and the Chain.cdf window will appear.
- Click Auto Detect, and then select correct device, both FPGA device and HPS will detected.
(See Figure 8-6) - Double click the green rectangle region shown in Figure 8-6, and the Select New
Programming File page will appear. Select the correct .jic file. - Erase the EPCQ device by clicking the corresponding Erase box. A factory default SFL image will be loaded
- Click Start to erase the EPCQ device.
好了,重启fpga程序就没了。