Author Topic: Rewrite life FLASH fpga  (Read 3878 times)

0 Members and 1 Guest are viewing this topic.

Offline fonographTopic starter

  • Frequent Contributor
  • **
  • Posts: 369
  • Country: at
Rewrite life FLASH fpga
« on: June 08, 2017, 05:52:56 am »
Since flash fpga have limited life just like flash SSD,how many times can you rewrite the flash fpga before it gets unusable?

 

Offline helius

  • Super Contributor
  • ***
  • Posts: 3642
  • Country: us
Re: Rewrite life FLASH fpga
« Reply #1 on: June 08, 2017, 06:14:33 am »
The ProASIC3 configuration memory is rated to be written 400 times, and will typically last 500 times.
 
The following users thanked this post: fonograph

Offline AndyC_772

  • Super Contributor
  • ***
  • Posts: 4228
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: Rewrite life FLASH fpga
« Reply #2 on: June 08, 2017, 06:44:06 am »
You need to check the data sheet for the specific device you're using.

High endurance is typically not a priority for this type of product. I've seen fewer than 100 erase/write cycles specified.
 
The following users thanked this post: fonograph

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Rewrite life FLASH fpga
« Reply #3 on: June 08, 2017, 01:56:31 pm »
There are also fpga with sram config, so you can forget the number-of-write-cycles but you need to inject the bitstream trough the jtag cable, and it will be lost on power off. In this case, if you need permanent config, then the bitstream needs to be loaded from external flash chip, usually serial line (SPI?), or something on parallel bus.
« Last Edit: June 08, 2017, 07:29:57 pm by legacy »
 

Offline bktemp

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: de
Re: Rewrite life FLASH fpga
« Reply #4 on: June 08, 2017, 02:08:39 pm »
There are also fpga with sram config
Is there any FPGA without SRAM? I have never seen one.

During development you write the configuration data only to SRAM (this is also much faster), so a couple of 100 write cycles should be enough for most applications.
 

Offline helius

  • Super Contributor
  • ***
  • Posts: 3642
  • Country: us
Re: Rewrite life FLASH fpga
« Reply #5 on: June 08, 2017, 04:24:46 pm »
From what I understand, the true nonvolatile configuration FPGAs use the flash gates directly inside their fabric. Writing the flash is the only way to program them, so the write cycle limit is important. Some other chips have configuration flash inside the package, but it needs to be loaded into the fabric. Spartan 3-AN for example. These FPGAs can be configured directly into SRAM without wearing down the flash during development. Another example is the iCE40, which can be configured as many times as necessary into its SRAM, but also includes a configuration PROM. When this NVCM is used, the write limit is 1 time only.
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: Rewrite life FLASH fpga
« Reply #6 on: June 08, 2017, 05:18:54 pm »
There are also fpga with sram config
Is there any FPGA without SRAM? I have never seen one.

All of MicroSemi's non-OTP FPGAs have flash-based configuration cells instead of SRAM.

 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 4531
  • Country: au
    • send complaints here
Re: Rewrite life FLASH fpga
« Reply #7 on: June 09, 2017, 01:25:34 am »
There are also fpga with sram config
Is there any FPGA without SRAM? I have never seen one.

All of MicroSemi's non-OTP FPGAs have flash-based configuration cells instead of SRAM.
And their OTP (antifuse) parts can have no memory resources on them, instead building memory from register and mux primitives. So no SRAM arrays at all.
 

Online Buriedcode

  • Super Contributor
  • ***
  • Posts: 1611
  • Country: gb
Re: Rewrite life FLASH fpga
« Reply #8 on: June 10, 2017, 02:10:27 am »
Although I have never been stung by this in practice, I have known it happen to others.  I remember when MAXII came out, 100 cycles was the norm.  That is of course quite an old device, and most 'flash' based devices from that era and onwards have significantly higher endurance.  With that said, the MaxV has 1000. This page is 6 years old (and has devices that are well over 15 years old) but mentions the subject:
http://dangerousprototypes.com/blog/2011/07/30/cpld-flash-memory-write-cycles/

For most applications 100 is more than enough, and chances are the memory will be just as reliable after that number.  But if you're learning, or using a dev board for education - where its going to get re-flashed very often  - one can easily use that up in a week.  Up to a thousand, and I think anyone would struggle to even approach that, again, unless its used in education and flashed tens of times a day.

Although I cannot lay my hands on the spec sheet from lattice I vaguely remember the NVCM MachXO3 has very few write cycles, as it is the low-cost version, but that isn't actually flash memory.

Notice I've only mentioned CPLD's here.  I am  unaware of an FPGA with flash (I'm sure they exist, just haven't used them) but then again the lines between CPLD and FPGA have been blurred in the past few years. I guess the MachX03 is an FPGA, but one with built-in config flash and low densities.
 

Offline MK14

  • Super Contributor
  • ***
  • Posts: 4539
  • Country: gb
Re: Rewrite life FLASH fpga
« Reply #9 on: June 10, 2017, 02:26:17 am »
Although I cannot lay my hands on the spec sheet from lattice I vaguely remember the NVCM MachXO3 has very few write cycles, as it is the low-cost version, but that isn't actually flash memory.

The reliability or similar PDF seems to say it is rated for 9 write cycles.

I think the idea is that for development you use the "internal SRam fuses" and/or external SPI configuration Flash devices. So that only final boards would use the NVCM mechanism, so would need hopefully very few changes of firmware. Otherwise you would be advised to include an SPI configuration flash device.

tl;dr
A life of 9 should be fine for (final) production units with rarely changing firmware.
 
The following users thanked this post: pigrew


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf