Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

EPCS as program memory

Altera_Forum
Honored Contributor II
2,067 Views

Hi, 

Whether probably to use EPCS as slow memory only for reading? As fast memory using on-chip memory. 

Sorry for my English))
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
653 Views

Hi Alex.. 

 

It is possible to use the EPCS device for program memory. Depending on the device family, this can be done through either the EPCS program pins (for Cyclone III and newer) or through secondary pins on older families. 

 

If using the NIOS II cpu, there's a EPCS controller peripheral in the SOPC builder that aids in using the EPCS for program memory. 

 

Regards 

 

Peter
0 Kudos
Altera_Forum
Honored Contributor II
653 Views

I have found and I use epcs_flash_controller in the SOPC builder. Altera by default uses it for storage of a code (*.sof and *.flash) and boot copier. Directly execute a code from EPCS I cannot :( 

I wish to carry out a slow code from EPCS, and fast code from on-chip memory. 

The device is Cyclone II.
0 Kudos
Altera_Forum
Honored Contributor II
653 Views

Actually running code from EPCS flash would be VERY slow compared to the on chip RAM. I have thought of trying it myself sometime, but I have never gotten around to it. I don't believe there is a simple way to accomplish this with any of the standard Altera provided components. I think you would have to write a custom component to do it.

0 Kudos
Altera_Forum
Honored Contributor II
653 Views

i have found the module epcs_virtual_memory (2004). in the description it is told, that he allows to work directly from epcs. whether who used such module? 

other variant to make a paging (swap) file, and to read with epcs in on-chip memory a code part, to carry out and again to read... 

whether such variants are possible? 

0 Kudos
Reply