Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #495783 > unrolled thread

Robust configuration memory

Started byPiotr Wyderski <peter.pan@neverland.mil>
First post2018-02-18 11:20 +0100
Last post2018-02-20 20:41 -0800
Articles 12 on this page of 32 — 14 participants

Back to article view | Back to sci.electronics.design


Contents

  Robust configuration memory Piotr Wyderski <peter.pan@neverland.mil> - 2018-02-18 11:20 +0100
    Re: Robust configuration memory whit3rd <whit3rd@gmail.com> - 2018-02-18 03:27 -0800
      Re: Robust configuration memory Piotr Wyderski <peter.pan@neverland.mil> - 2018-02-18 13:24 +0100
        Re: Robust configuration memory Chris Jones <lugnut808@spam.yahoo.com> - 2018-02-18 23:57 +1100
          Re: Robust configuration memory John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-18 18:36 -0800
            Re: Robust configuration memory krw@notreal.com - 2018-02-18 21:55 -0500
              Re: Robust configuration memory John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-18 22:09 -0800
            Re: Robust configuration memory bitrex <bitrex@de.lete.earthlink.net> - 2018-02-18 22:48 -0500
              Re: Robust configuration memory Piotr Wyderski <peter.pan@neverland.mil> - 2018-02-19 10:25 +0100
                Re: Robust configuration memory bitrex <bitrex@de.lete.earthlink.net> - 2018-02-19 09:19 -0500
                  Re: Robust configuration memory bitrex <bitrex@de.lete.earthlink.net> - 2018-02-19 09:25 -0500
              Re: Robust configuration memory Rob <nomail@example.com> - 2018-02-19 14:20 +0000
                Re: Robust configuration memory bitrex <bitrex@de.lete.earthlink.net> - 2018-02-19 09:36 -0500
                  Re: Robust configuration memory Lasse Langwadt Christensen <langwadt@fonz.dk> - 2018-02-19 09:12 -0800
                    Re: Robust configuration memory bitrex <bitrex@de.lete.earthlink.net> - 2018-02-19 14:35 -0500
        Re: Robust configuration memory pcdhobbs@gmail.com - 2018-02-18 05:29 -0800
        Re: Robust configuration memory Jasen Betts <jasen@xnet.co.nz> - 2018-02-18 21:51 +0000
          Re: Robust configuration memory Piotr Wyderski <peter.pan@neverland.mil> - 2018-02-19 09:45 +0100
        Re: Robust configuration memory Dimitrij Klingbeil <nospam@no-address.com> - 2018-02-19 00:23 +0100
          Re: Robust configuration memory Piotr Wyderski <peter.pan@neverland.mil> - 2018-02-19 10:12 +0100
        Re: Robust configuration memory Robert Baer <robertbaer@localnet.com> - 2018-02-19 22:25 -0800
    Re: Robust configuration memory krw@notreal.com - 2018-02-18 10:36 -0500
      Re: Robust configuration memory Piotr Wyderski <peter.pan@neverland.mil> - 2018-02-18 16:46 +0100
        Re: Robust configuration memory krw@notreal.com - 2018-02-18 10:58 -0500
          Re: Robust configuration memory Piotr Wyderski <peter.pan@neverland.mil> - 2018-02-18 17:50 +0100
            Re: Robust configuration memory krw@notreal.com - 2018-02-18 18:15 -0500
      Re: Robust configuration memory Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-02-18 20:19 +0200
    Re: Robust configuration memory Robert Baer <robertbaer@localnet.com> - 2018-02-19 22:22 -0800
      Re: Robust configuration memory Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-02-20 10:23 +0200
      Re: Robust configuration memory krw@notreal.com - 2018-02-20 16:16 -0500
        Re: Robust configuration memory bill.sloman@ieee.org - 2018-02-20 18:46 -0800
        Re: Robust configuration memory Robert Baer <robertbaer@localnet.com> - 2018-02-20 20:41 -0800

Page 2 of 2 — ← Prev page 1 [2]


#496043

FromRobert Baer <robertbaer@localnet.com>
Date2018-02-19 22:25 -0800
Message-ID<nbPiC.62751$4_2.56447@fx35.iad>
In reply to#495791
Piotr Wyderski wrote:
> whit3rd wrote:
>
>> Flash is cheap; either redundancy (three copies and a vote)
>> or checksums (two copies with two checksums) will warn of an error,
>> and you can mark a block 'bad' and use another.
>
> You're right, a single voting engine attached to three copies
> of the DOUT SPI line will do the job without the need to analyze
> the protocol. Problem solved, dead simple, thanks!
>
>> Reading isn't stressful on flash, it's only the erase/rewrite cycles
>> that you gotta worry about, eventually.  So, minimize those.
>
> There will not be many write cycles, but the storage is leaky,
> so it will turn into all ones eventually. With the voting mechanism
> I can detect it early and re-program the chips with the correct(ed)
> content.
>
> The interesting discovery now is the apparent lack of majority gates
> and the circuit is sufficiently complex not to fit within a simple
> logic circuit in a single package. It seems the best thing to do is
> to use an 8:1 MUX (say, 74AC241) and etch the LUT on the PCB. 6ns
> delay doesn't sound bad. Am I missing an even simpler implementation?
>
>      Best regards, Piotr
   Yes; use an ANALOG sum, the rest of that solution should be obvious.

[toc] | [prev] | [next] | [standalone]


#495810

Fromkrw@notreal.com
Date2018-02-18 10:36 -0500
Message-ID<2v6j8d95ant3i7c5nrkrecgfiuevs1qe1h@4ax.com>
In reply to#495783
On Sun, 18 Feb 2018 11:20:45 +0100, Piotr Wyderski
<peter.pan@neverland.mil> wrote:

>Hello,
>
>I need a moderate amount of non-volatile memory (for FPGA
>configuration purposes and the like), but can't tolerate
>configuration errors due to charge leaks, cosmic radiation
>or just the malfunction of the chip. I thought that something
>like RAID5 imposed on memory chips/SD cards would be fine.
>It would be extremely simple in an FPGA, but it creates
>a chicken and egg problem: how can you read the controller's
>configuration from flash if the flash itself might be corrupt.
>
>It could also be done easily in hardware, but would require
>parallel-output chips, which are not particularly trendy nowadays
>and the SPI decoding circuitry would be insanely complex with
>simple gates.

It should be pretty simple with a CPLD.  You could also compare on a
bit-by-bit basis, which shouldn't be too difficult, even limited to
unit logic.  

Put the redundancy in the FPGA.  If a bit of the configuration memory
is in error, it's unlikely to be wrong in each of the redundant parts.

You could use the FPGA to verify the contents of the flash, after
configuration but before (application) enable.  

There are all sorts of possibilities but a lot depends on unspecified
requirements.

>I presume I am not the first person to have such a need, so
>what would you recommend me? It has to be autonomous only
>for (early) reads, the write mode part can materialize later
>within the FPGA. Any ideas?

Not enough information.

[toc] | [prev] | [next] | [standalone]


#495812

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2018-02-18 16:46 +0100
Message-ID<p6c74r$ttp$1@node1.news.atman.pl>
In reply to#495810
krw@notreal.com wrote:

> It should be pretty simple with a CPLD.

Which, again, is nowadays based on flash. Vicious circle.
I don't want its configuration evaporate either.

> You could also compare on a
> bit-by-bit basis, which shouldn't be too difficult, even limited to
> unit logic.

And this is the correct approach: bit-by-bit voting on a serial stream.
A single majority gate of still unknown implementation will suffice.

> Put the redundancy in the FPGA.  If a bit of the configuration memory
> is in error, it's unlikely to be wrong in each of the redundant parts.

What do you mean? An FPGA won't boot from a corrupt bitstream.
Do you mean many FPGAs?

> You could use the FPGA to verify the contents of the flash, after
> configuration but before (application) enable.

But the flash can die just before/during configuration.

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#495813

Fromkrw@notreal.com
Date2018-02-18 10:58 -0500
Message-ID<n88j8d5mpemeef78e3trltaq1ehhhf3n20@4ax.com>
In reply to#495812
On Sun, 18 Feb 2018 16:46:30 +0100, Piotr Wyderski
<peter.pan@neverland.mil> wrote:

>krw@notreal.com wrote:
>
>> It should be pretty simple with a CPLD.
>
>Which, again, is nowadays based on flash. Vicious circle.
>I don't want its configuration evaporate either.

OK, what error in the "checker" is going to give you an almost-good
flash image for the target device?  What I'm suggesting is an
"equivalence" gate in the configuration stream.

>> You could also compare on a
>> bit-by-bit basis, which shouldn't be too difficult, even limited to
>> unit logic.
>
>And this is the correct approach: bit-by-bit voting on a serial stream.
>A single majority gate of still unknown implementation will suffice.

Not majority.  Just equal, if all you care about is "valid"/"not
valid" configuration.  If you want TMR, then you need voting, which is
a little more difficult.  But in this case, you probably need TMR in
the application, too.
>
>> Put the redundancy in the FPGA.  If a bit of the configuration memory
>> is in error, it's unlikely to be wrong in each of the redundant parts.
>
>What do you mean? An FPGA won't boot from a corrupt bitstream.
>Do you mean many FPGAs?

I thought this was your problem.  If it doesn't boot, problem solved.

>> You could use the FPGA to verify the contents of the flash, after
>> configuration but before (application) enable.
>
>But the flash can die just before/during configuration.

Sorry, I thought this was the desired outcome.

[toc] | [prev] | [next] | [standalone]


#495820

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2018-02-18 17:50 +0100
Message-ID<p6catd$ttp$1@node2.news.atman.pl>
In reply to#495813
krw@notreal.com wrote:

>> What do you mean? An FPGA won't boot from a corrupt bitstream.
>> Do you mean many FPGAs?
> 
> I thought this was your problem.  

OK, but no, the desired effect is to work correctly for as long
as possible, even knowing about memory errors. Hence the RAID5
reference. I assume a configured FPGA works correctly, the problem
is to provide it with a good bitstream, as I expect the flash chips
to be least durable. Putting 3 instead of 1 doesn't increase
complexity that much, but can greatly increase reliability.

 > If it doesn't boot, problem solved.

In that case, don't most FPGAs already have all the needed checksum 
circuitry inside?

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#495871

Fromkrw@notreal.com
Date2018-02-18 18:15 -0500
Message-ID<o12k8d5snkjcvm9kmu58ffbeqju2bfhtup@4ax.com>
In reply to#495820
On Sun, 18 Feb 2018 17:50:53 +0100, Piotr Wyderski
<peter.pan@neverland.mil> wrote:

>krw@notreal.com wrote:
>
>>> What do you mean? An FPGA won't boot from a corrupt bitstream.
>>> Do you mean many FPGAs?
>> 
>> I thought this was your problem.  
>
>OK, but no, the desired effect is to work correctly for as long
>as possible, even knowing about memory errors. Hence the RAID5
>reference. I assume a configured FPGA works correctly, the problem
>is to provide it with a good bitstream, as I expect the flash chips
>to be least durable. Putting 3 instead of 1 doesn't increase
>complexity that much, but can greatly increase reliability.

In that case, a CPLD should work.  If the CPLD doesn't configure
properly, there is little chance that it'll pass a configuration
stream with a proper checksum.
>
> > If it doesn't boot, problem solved.
>
>In that case, don't most FPGAs already have all the needed checksum 
>circuitry inside?

OK, then use that fact.

[toc] | [prev] | [next] | [standalone]


#495838

FromTauno Voipio <tauno.voipio@notused.fi.invalid>
Date2018-02-18 20:19 +0200
Message-ID<p6cg3t$sqe$1@dont-email.me>
In reply to#495810
On 18.2.18 17:36, krw@notreal.com wrote:
> On Sun, 18 Feb 2018 11:20:45 +0100, Piotr Wyderski
> <peter.pan@neverland.mil> wrote:
> 
>> Hello,
>>
>> I need a moderate amount of non-volatile memory (for FPGA
>> configuration purposes and the like), but can't tolerate
>> configuration errors due to charge leaks, cosmic radiation
>> or just the malfunction of the chip. I thought that something
>> like RAID5 imposed on memory chips/SD cards would be fine.
>> It would be extremely simple in an FPGA, but it creates
>> a chicken and egg problem: how can you read the controller's
>> configuration from flash if the flash itself might be corrupt.
>>
>> It could also be done easily in hardware, but would require
>> parallel-output chips, which are not particularly trendy nowadays
>> and the SPI decoding circuitry would be insanely complex with
>> simple gates.
> 
> It should be pretty simple with a CPLD.  You could also compare on a
> bit-by-bit basis, which shouldn't be too difficult, even limited to
> unit logic.
> 
> Put the redundancy in the FPGA.  If a bit of the configuration memory
> is in error, it's unlikely to be wrong in each of the redundant parts.
> 
> You could use the FPGA to verify the contents of the flash, after
> configuration but before (application) enable.
> 
> There are all sorts of possibilities but a lot depends on unspecified
> requirements.
> 
>> I presume I am not the first person to have such a need, so
>> what would you recommend me? It has to be autonomous only
>> for (early) reads, the write mode part can materialize later
>> within the FPGA. Any ideas?
> 
> Not enough information.
> 

Using a FPGA is going to a circular definition: The FPGA has
some kind of semi-permanent memory for the configutarion.

I see two possibilities:

  - Create the voter from discrete gates,
  - Use a processor to handle the redundancy, and get a
    problem of the processor code.

I once had a customer with an instrument with calibration data
inside an EEPROM. It had the habit of losing the calibration
occasionally, so in the next generation, a triple redundancy
calibration store was made in the software. During years of
use of hundreds of instruments, there was not a single case
of redundancy correction. It was proven that the problems with
the old generation were from flaky software.

-- 

-TV

[toc] | [prev] | [next] | [standalone]


#496042

FromRobert Baer <robertbaer@localnet.com>
Date2018-02-19 22:22 -0800
Message-ID<T8PiC.62750$4_2.55781@fx35.iad>
In reply to#495783
Piotr Wyderski wrote:
> Hello,
>
> I need a moderate amount of non-volatile memory (for FPGA
> configuration purposes and the like), but can't tolerate
> configuration errors due to charge leaks, cosmic radiation
> or just the malfunction of the chip. I thought that something
> like RAID5 imposed on memory chips/SD cards would be fine.
> It would be extremely simple in an FPGA, but it creates
> a chicken and egg problem: how can you read the controller's
> configuration from flash if the flash itself might be corrupt.
>
> It could also be done easily in hardware, but would require
> parallel-output chips, which are not particularly trendy nowadays
> and the SPI decoding circuitry would be insanely complex with
> simple gates.
>
> I presume I am not the first person to have such a need, so
> what would you recommend me? It has to be autonomous only
> for (early) reads, the write mode part can materialize later
> within the FPGA. Any ideas?
>
>      Best regards, Piotr
>
   Punched paper tape or cards?

[toc] | [prev] | [next] | [standalone]


#496051

FromTauno Voipio <tauno.voipio@notused.fi.invalid>
Date2018-02-20 10:23 +0200
Message-ID<p6gluj$l6s$1@dont-email.me>
In reply to#496042
On 20.2.18 08:22, Robert Baer wrote:
> Piotr Wyderski wrote:
>> Hello,
>>
>> I need a moderate amount of non-volatile memory (for FPGA
>> configuration purposes and the like), but can't tolerate
>> configuration errors due to charge leaks, cosmic radiation
>> or just the malfunction of the chip. I thought that something
>> like RAID5 imposed on memory chips/SD cards would be fine.
>> It would be extremely simple in an FPGA, but it creates
>> a chicken and egg problem: how can you read the controller's
>> configuration from flash if the flash itself might be corrupt.
>>
>> It could also be done easily in hardware, but would require
>> parallel-output chips, which are not particularly trendy nowadays
>> and the SPI decoding circuitry would be insanely complex with
>> simple gates.
>>
>> I presume I am not the first person to have such a need, so
>> what would you recommend me? It has to be autonomous only
>> for (early) reads, the write mode part can materialize later
>> within the FPGA. Any ideas?
>>
>>      Best regards, Piotr
>>
>    Punched paper tape or cards?
> 

They were prone to tearing. I still remember disassembling and
re-assembling one card reader with a hefty card jam.

-- 

-TV

[toc] | [prev] | [next] | [standalone]


#496111

Fromkrw@notreal.com
Date2018-02-20 16:16 -0500
Message-ID<i14p8d501auc31r7ddhvj00f51ihekbgr9@4ax.com>
In reply to#496042
On Mon, 19 Feb 2018 22:22:43 -0800, Robert Baer
<robertbaer@localnet.com> wrote:

>Piotr Wyderski wrote:
>> Hello,
>>
>> I need a moderate amount of non-volatile memory (for FPGA
>> configuration purposes and the like), but can't tolerate
>> configuration errors due to charge leaks, cosmic radiation
>> or just the malfunction of the chip. I thought that something
>> like RAID5 imposed on memory chips/SD cards would be fine.
>> It would be extremely simple in an FPGA, but it creates
>> a chicken and egg problem: how can you read the controller's
>> configuration from flash if the flash itself might be corrupt.
>>
>> It could also be done easily in hardware, but would require
>> parallel-output chips, which are not particularly trendy nowadays
>> and the SPI decoding circuitry would be insanely complex with
>> simple gates.
>>
>> I presume I am not the first person to have such a need, so
>> what would you recommend me? It has to be autonomous only
>> for (early) reads, the write mode part can materialize later
>> within the FPGA. Any ideas?
>>
>>      Best regards, Piotr
>>
>   Punched paper tape or cards?

I'll take plastic.

[toc] | [prev] | [next] | [standalone]


#496162

Frombill.sloman@ieee.org
Date2018-02-20 18:46 -0800
Message-ID<d24ceae4-b083-4a0b-b40e-b7e1c37f3b36@googlegroups.com>
In reply to#496111
On Wednesday, February 21, 2018 at 8:17:04 AM UTC+11, k...@notreal.com wrote:
> On Mon, 19 Feb 2018 22:22:43 -0800, Robert Baer
> <robertbaer@localnet.com> wrote:
> 
> >Piotr Wyderski wrote:
> >> Hello,
> >>
> >> I need a moderate amount of non-volatile memory (for FPGA
> >> configuration purposes and the like), but can't tolerate
> >> configuration errors due to charge leaks, cosmic radiation
> >> or just the malfunction of the chip. I thought that something
> >> like RAID5 imposed on memory chips/SD cards would be fine.
> >> It would be extremely simple in an FPGA, but it creates
> >> a chicken and egg problem: how can you read the controller's
> >> configuration from flash if the flash itself might be corrupt.
> >>
> >> It could also be done easily in hardware, but would require
> >> parallel-output chips, which are not particularly trendy nowadays
> >> and the SPI decoding circuitry would be insanely complex with
> >> simple gates.
> >>
> >> I presume I am not the first person to have such a need, so
> >> what would you recommend me? It has to be autonomous only
> >> for (early) reads, the write mode part can materialize later
> >> within the FPGA. Any ideas?
> >>
> >>      Best regards, Piotr
> >>
> >   Punched paper tape or cards?
> 
> I'll take plastic.

Not all plastics are created equal. Teflon (PTFE) is close to indestructible (until you get it hot enough) but it does flow.

http://www.parrinst.com/products/sample-preparation/acid-digestion/design-features/the-nature-of-ptfe/

-- 
Bill Sloman, Sydney

[toc] | [prev] | [next] | [standalone]


#496181

FromRobert Baer <robertbaer@localnet.com>
Date2018-02-20 20:41 -0800
Message-ID<yL6jC.30736$ma4.21674@fx10.iad>
In reply to#496111
krw@notreal.com wrote:
> On Mon, 19 Feb 2018 22:22:43 -0800, Robert Baer
> <robertbaer@localnet.com> wrote:
>
>> Piotr Wyderski wrote:
>>> Hello,
>>>
>>> I need a moderate amount of non-volatile memory (for FPGA
>>> configuration purposes and the like), but can't tolerate
>>> configuration errors due to charge leaks, cosmic radiation
>>> or just the malfunction of the chip. I thought that something
>>> like RAID5 imposed on memory chips/SD cards would be fine.
>>> It would be extremely simple in an FPGA, but it creates
>>> a chicken and egg problem: how can you read the controller's
>>> configuration from flash if the flash itself might be corrupt.
>>>
>>> It could also be done easily in hardware, but would require
>>> parallel-output chips, which are not particularly trendy nowadays
>>> and the SPI decoding circuitry would be insanely complex with
>>> simple gates.
>>>
>>> I presume I am not the first person to have such a need, so
>>> what would you recommend me? It has to be autonomous only
>>> for (early) reads, the write mode part can materialize later
>>> within the FPGA. Any ideas?
>>>
>>>       Best regards, Piotr
>>>
>>    Punched paper tape or cards?
>
> I'll take plastic.
>
    MMMmmm with embedded chip..

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | sci.electronics.design


csiph-web