Programming ROM chip (EPCS)

(Read 819 times)
Programming ROM chip (EPCS) on: May 29, 2020, 08:05:22 AM
I followed the blink tutorial for the storm iv board, it works.
However, when I reset my board it goes back to the default design that it came with (the 7 segment displays counting from 0 to 9)
How can I flash the little ROM chip on the board so that my design stays when I reset it?

Thanks!
« Last Edit: June 02, 2020, 04:53:10 PM by Noob 2174 »



Re: Ptogramming ROM chip Reply #1 on: May 29, 2020, 08:40:43 AM
Yes, FPGAs will loose the synthesis when you rebgoot. You have to make a code taht will automatically get the synthesis from a flash memory. Placing the code into the flash memory of the FPGA is a bit tricky. Is usaully different for each chip. Maybe you can find a YouTube tutorial because I still don't have a video about that...



Re: Ptogramming ROM chip Reply #2 on: May 29, 2020, 09:10:06 AM
Yes, FPGAs will loose the synthesis when you rebgoot. You have to make a code taht will automatically get the synthesis from a flash memory. Placing the code into the flash memory of the FPGA is a bit tricky. Is usaully different for each chip. Maybe you can find a YouTube tutorial because I still don't have a video about that...

Alright I thought I would at least ask you about it since I have the exact same storm iv board as you.

I don't have this issue with my lattice boards. Their tool chain also seems to be a bit friendlier than the altera stuff.
I have a few "tiny FPGA" boards and they are very very easy to use. I personally would recommend those for beginners.

I have the AX2 and BX boards which I got from sparkfun

https://tinyfpga.com/
https://discourse.tinyfpga.com/

Thanks anyway!
If I figure it out I will share what I learned.



Re: Ptogramming ROM chip Reply #3 on: May 29, 2020, 10:07:09 AM
Thanks for sharing!



Re: Ptogramming ROM chip Reply #4 on: May 29, 2020, 02:51:21 PM
What is up my friend! I figured it out!

I have been researching all night trying to figure out which chip stores the configuration in other fpga boards, and then trying to find it on this storm iv board. well looking at the board didnt help, but, looking at the block diagram gave me the answer I was looking for. This board uses an EPCS4 chip!

Here is the process I went through to program this chip:
(A process I learned from watching Ben Heck! https://www.youtube.com/watch?v=0zrqYy369NQ)

after compiling your design into a ".sof" file
click file, convert programming files, opening the convert programming files window
click the "programming file type" drop down and select "JTAG indirect configuration file (.jic)"
click the "..." icon next to the configuration device dropdown, opening a configuration device window
under device family select Cyclone IV E
in the configuration device tab select the "EPCS4" device and click OK
next, under input files to convert, click on "flash loader", then to the right, click on add device, which opens the "select devices" window
under device family again select Cyclone IV E
then select our specific cyclone device version under device name, "EP4CE6", click OK
next click "SOF Data" inside input files to convert, and click add file
choose the .sof file you want
click on the "yourdesign.sof" item under SOF data, and click the properties button
check the compression checkbox, click ok
finally, click generate!

now we need to open the programmer and upload this new file to our board!

click tools, programmer
first, delete any item that is already in here, we want it empty
click add file, find your ".jic" file, it should just be in the same place as your .sof file
click the "program/configure" checkbox
then click start

and that's it! you can now power cycle your device and your design will remain!
;)  8)
« Last Edit: May 30, 2020, 06:39:03 AM by Noob 2174 »



Re: Ptogramming ROM chip Reply #5 on: May 29, 2020, 02:57:58 PM
Thank you! Glad you found a solution and also poste here!