Author Topic: Altera configuration Flash - crazy prices - alternatives?  (Read 10550 times)

0 Members and 1 Guest are viewing this topic.

Offline AndyC_772Topic starter

  • Super Contributor
  • ***
  • Posts: 4227
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Altera configuration Flash - crazy prices - alternatives?
« on: April 21, 2017, 08:08:48 am »
Hi all,

Has anyone looked at the price of Altera's configuration Flash devices lately?

The EPCS4 - described in their own data sheet as a 'low cost' configuration option - has become stupidly, ridiculously, painfully expensive lately:

US$14.95 @ Arrow and Digi-key
£13.20 @ RS
£24.96 @ Farnell  :wtf:  :-DD  :palm:

Sod that, I can buy a complete microcontroller with more than 4Mbits of internal flash for that much. What gives? Price gouging by Intel? A conscious decision to push designers toward Xilinx?

Some years ago I recall designing in a cheap commodity flash device instead, which worked perfectly, but IIRC it went EOL and I can't remember if there was ever a drop-in replacement.

Does anyone have a favourite cheap way to configure these FPGAs?

[Edit]: It's actually cheaper to buy one of these:

http://www.ebay.co.uk/itm/ALTERA-FPGA-CycloneII-EP2C5T144-Learning-Board1pc-Mini-System-Development-Board-/272274835998?hash=item3f64d84a1e:g:yPgAAOSwnbZYFvic

...and desolder the EPCS4 than it is to buy a new one now  |O
« Last Edit: April 21, 2017, 08:11:00 am by AndyC_772 »
 

Offline bktemp

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: de
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #1 on: April 21, 2017, 08:20:30 am »
Most modern FPGAs support SPI flashs, but older ones don't.
I have also used SPI flash with older FPGAs: A small, cheap microcontroller sends the read command to the SPI flash, then switches the control over to the FPGA. Since the flash is now in read mode, it shifts out the data at every clock cycle like a configuration flash does.
This works both in master and slave mode (FPGA generates bitclock or microcontroller generates clock).
 

Offline AndyC_772Topic starter

  • Super Contributor
  • ***
  • Posts: 4227
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #2 on: April 21, 2017, 11:34:29 am »
I recall they can be replaced with just normal SPI flash? Correct me if I am wrong.

Here is an app note elaborating the process: http://www.newark.com/pdfs/techarticles/spansion/Configuring_Altera_FPGAs_via_SPI_Flash_AN_01_e.pdf

Thanks, I'm fairly sure it was a Spansion flash I used before.

That app note is quite old now, though, and the specific devices they mention are now EOL. The only single-SPI Flash now available from Spansion (now Cypress) is S25FL128P0XMFIxxx, which is 128 Mbit and about £3. Much more sane!

Offline FrankBuss

  • Supporter
  • ****
  • Posts: 2365
  • Country: de
    • Frank Buss
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #3 on: April 21, 2017, 11:59:00 am »
Winbond makes cheap SPI flash as well:

https://www.digikey.de/short/3n77b2

I've seen such a chip on a cheap dev board from China with a Cyclone IV.

But if you have a microcontroller on board, you can always program it from there at boot (using passive mode instead of active mode for Altera parts). This makes firmware updates easier as well. I've done this for an embedded Linux system with an ARM microcontroller and a Cyclone FPGA.
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 

Offline jesuscf

  • Frequent Contributor
  • **
  • Posts: 499
  • Country: ca
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #4 on: April 21, 2017, 02:54:09 pm »
My understanding is that ST’s M25P10-A, M25P40, M25P16 and M25P64 can replace Altera's EPCS1, EPCS4, EPCS16 and EPCS64. A few years back I replaced an EPCS4 in a Terasic/Altera DE1 board (Cyclone II) with a M25P40.  Quartus II/USB Blaster programmed it without problems.  The DE0-CV (Cyclone V) uses a Spansion FL064P.  The DE1-SoC (also a Cyclone V)  uses the Spansion FL128SA.  The M25P40 has been discontinued, but the W25Q40 looks very similar...
Homer: Kids, there's three ways to do things; the right way, the wrong way and the Max Power way!
Bart: Isn't that the wrong way?
Homer: Yeah, but faster!
 

Offline Scrts

  • Frequent Contributor
  • **
  • Posts: 797
  • Country: lt
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #5 on: April 21, 2017, 02:57:27 pm »
Yep, we've used Winbond and Spansion without issues.
 

Offline AndyC_772Topic starter

  • Super Contributor
  • ***
  • Posts: 4227
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #6 on: April 21, 2017, 03:56:46 pm »
Interesting, thanks.

ST haven't advertised Flash memory for some time. (Didn't they sell off that whole product line to someone?)

The low density Spansion parts are EOL too. The smallest they now advertise is 128 Mbit. (I wonder whether there's a clue here; maybe Spansion made the EPCS range for Altera, and they're now charging a ridiculous premium to make the part to special order?)

Winbond looks like the one to go with. W25X40CL (4 Mbit) is about US$0.40, just as it should be.

Normally these days I do put the bit stream into the microcontroller, and have it program the FPGA in PS mode as part of the boot process - but for prototyping if nothing else, it's nice to be able to develop for the FPGA independently of the MCU.

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8517
  • Country: us
    • SiliconValleyGarage
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #7 on: April 21, 2017, 04:18:02 pm »
altera never made the proms. they were always fabbed at ST . ( spun off into numonix and borged by micron i believe )
25m10 and family. someone gave the info in this topic.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline marshallh

  • Supporter
  • ****
  • Posts: 1462
  • Country: us
    • retroactive
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #8 on: April 25, 2017, 02:28:01 am »
I used the M25P40 with great success until recently when it was EOLd.

Now I use the W25X40 which works great as a EPCS4.

If you want more space, M25P80 used to work, but the winbond quad 80 does not return the right silicon ID. It will still work fine with ASMI though. I haven't tried any 16mbit yet.
Verilog tips
BGA soldering intro

11:37 <@ktemkin> c4757p: marshall has transcended communications media
11:37 <@ktemkin> He speaks protocols directly.
 
The following users thanked this post: invzim

Offline Scrts

  • Frequent Contributor
  • **
  • Posts: 797
  • Country: lt
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #9 on: April 25, 2017, 12:22:35 pm »
I used the M25P40 with great success until recently when it was EOLd.

Now I use the W25X40 which works great as a EPCS4.

If you want more space, M25P80 used to work, but the winbond quad 80 does not return the right silicon ID. It will still work fine with ASMI though. I haven't tried any 16mbit yet.

There were some issues with Spansion 128Mbit flash, but I've found an app note on Altera website of what checkboxes to tick to make it work in Quartus Programmer. Might be the same for M25P80.
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7727
  • Country: ca
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #10 on: April 26, 2017, 09:53:06 am »
My understanding is that ST’s M25P10-A, M25P40, M25P16 and M25P64 can replace Altera's EPCS1, EPCS4, EPCS16 and EPCS64. A few years back I replaced an EPCS4 in a Terasic/Altera DE1 board (Cyclone II) with a M25P40.  Quartus II/USB Blaster programmed it without problems.  The DE0-CV (Cyclone V) uses a Spansion FL064P.  The DE1-SoC (also a Cyclone V)  uses the Spansion FL128SA.  The M25P40 has been discontinued, but the W25Q40 looks very similar...
My video scalers used ST's as bootproms with a Cyclone III EP3C55, program fine with both altera's USB Blaster and third party clones + I also successfully integrated self re-programming of the boot-proms + used the spare space on the proms for software apps, with 1 caveat, when designing a self-modifying firmware for the boot-prom, make sure you have a power supply fault detector feeding the nConfig/Global reset.  Without this, sometimes during loss of power, if you have large caps slowly discharging the rails of the FPGA, if your code accidentally begins a write cycle due to corrupt functionality during the power drop, you may corrupt the data on your boot-prom. 
That bug took me over a month to discover why my boot-prom sometimes corrupted after less than 1% of power down/power up cycles.    |O :scared: It drove me mad. :scared:  |O
Quartus also gave me a little headache configuring the boot-prom lines as IOs for my SPI interface, but I managed to get it to work.
« Last Edit: April 26, 2017, 10:06:14 am by BrianHG »
 

Offline Scrts

  • Frequent Contributor
  • **
  • Posts: 797
  • Country: lt
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #11 on: April 26, 2017, 04:05:49 pm »
I always used a small microcontroller to program the FPGA.
 

Offline c64

  • Frequent Contributor
  • **
  • Posts: 297
  • Country: au
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #12 on: June 22, 2020, 04:21:07 am »
Can anyone suggest compatible 16Mbit chip which can be sourced from a reputable place?
From the chips mentioned here, I could only find W25X40 (4Mbit) still in stock. M25P16 can not find anywhere, only from China, I'm not even sure they are not second hand.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
 

Offline asmi

  • Super Contributor
  • ***
  • Posts: 2730
  • Country: ca
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #14 on: June 22, 2020, 01:06:50 pm »
That app note is quite old now, though, and the specific devices they mention are now EOL. The only single-SPI Flash now available from Spansion (now Cypress) is S25FL128P0XMFIxxx, which is 128 Mbit and about £3. Much more sane!
Any QSPI flash can work in SPI mode. Infact all of them do until they are given a command to use other modes.
 
The following users thanked this post: soFPG

Offline c64

  • Frequent Contributor
  • **
  • Posts: 297
  • Country: au
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #15 on: June 23, 2020, 02:28:21 am »
Can anyone suggest compatible 16Mbit chip which can be sourced from a reputable place?
From the chips mentioned here, I could only find W25X40 (4Mbit) still in stock. M25P16 can not find anywhere, only from China, I'm not even sure they are not second hand.
LCSC doesn't sell second hand.
Do they have ?
 

Offline c64

  • Frequent Contributor
  • **
  • Posts: 297
  • Country: au
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #16 on: June 23, 2020, 03:27:37 am »
I already look before and didn't find anything. 4Mbit is not enough
 

Offline ejeffrey

  • Super Contributor
  • ***
  • Posts: 3713
  • Country: us
Re: Altera configuration Flash - crazy prices - alternatives?
« Reply #17 on: June 23, 2020, 03:39:48 am »
Do watch out: at the larger sizes compatibility becomes an issue.  256 Mbit and higher requires 4 byte addressing and there are two (at least) incompatible modes for selecting 4 byte addressing.  In addition some QSPI flash in large sizes uses stacked dies which is incompatible with altera FPGAs.

The series 10 FPGAs use 1.8V flash which I understand is more uniform.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf