Altera_Forum
Honored Contributor
18 years agoSerial Flash Loader Megafunction (SFL) - how to
Hi,
I want to include SFL Megafunction in my project. I have created a new project for Cyclone II (EP2C20Q240) and pasted code written by fvm (http://www.alteraforum.com/forum/showthread.php?t=2472&page=2&highlight=sfl+megafunction) (thanks!).
LIBRARY ieee;
USE ieee.std_logic_1164.all;
ENTITY sfl_3c16 IS
END sfl_3c16;
ARCHITECTURE RTL OF sfl_3c16 IS
COMPONENT sfl
PORT
(
noe_in : IN STD_LOGIC
);
END COMPONENT;
BEGIN
sfl_inst : sfl PORT MAP (
noe_in => '0'
);
END RTL;
Of course I have generated sfl using MegaWizard Plug-in Manager. Next I ran Programmer and configured Cyclone II. After that I click right mouse button on first row and select Attach Flash Device and select EPCS. Checked Erase checkbox in the EPCS4 row. Unchecked Program/Configure checkbox in FPGA row (because FPGA was configured earlier). http://urbanowski.pl/error.jpg I choosed Start and got an error: Flash Loader IP not loaded on device 1. Operation Failed. What am I doing wrong? When I choose default SFL (sfl_ep2c20.sof) from quartus\common\devinfo\programmer directory everything works fine! So I think that there is an error in vhdl code or maybe I have not checked any necessary options in quartus (I am a newbie ;)).