From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 26869 invoked from network); 21 Jul 1998 19:31:55 -0000 Received: from ccins.camosun.bc.ca (dbarker@204.174.56.1) by mail2.redhat.com with SMTP; 21 Jul 1998 19:31:55 -0000 Received: (from dbarker@localhost) by ccins.camosun.bc.ca (8.8.8/8.8.7-ccins) id MAA23352; Tue, 21 Jul 1998 12:31:53 -0700 (PDT) Message-ID: <19980721123153.A5478@camosun.bc.ca> Date: Tue, 21 Jul 1998 12:31:53 -0700 From: Deryk Barker To: axp-list@redhat.com Subject: Re: More problems with my new RAM (& unaligned!!) References: <199807200745.JAA01313@stefan.sime.com> <3.0.5.32.19980721110207.009a9100@pop.mcit.com> <35B4E394.1B034648@paralleldata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 In-Reply-To: <35B4E394.1B034648@paralleldata.com>; from Wes Bauske on Tue, Jul 21, 1998 at 06:53:08PM +0000 Thus spake Wes Bauske (wsb@paralleldata.com): > Ralph Green, Jr. wrote: > > > > Howdy, > > I believe they use Hamming code to do the error correction. If not, they use a code with similar properties in terms of protection bits required. For Hamming code, use the following table: > > > > bits to protect from single bit errors protection bits required > > -------------------------------------- ------------------------ > > 1 1 > > 2 2 > > 3-4 3 > > 5-8 4 > > 9-16 5 > > 17-32 6 > > 33-64 7 > > 65-128 8 And the reason for these numbers is not actually that difficult to see: If there are N data bits and K check bits then we need to be able to correct a single bit error in (N+K) bits (it's quite possible the error may affect a check rather than data bit) The K bits give us 2**K possible bit patterns for the check bits and the usual SEC-DED (single error correcting, double error detecting) scheme works as follows: The original N data bits are passed through a check-bit-generating function (call it f) which produces K check bits, which are stored with the data. On retrieval, the N data bits are passed through function f again. The regenerated K check bits are then XORed with the retrieved K check bits to produce what is called the syndrome. A 0 syndrome means no error, which leaves exactly 2**K - 1 bit patterns in the syndrome to identify single bit errors. Therefore 2**K - 1 >= N + K -- |Deryk Barker, Computer Science Dept. | Music does not have to be understood| |Camosun College, Victoria, BC, Canada| It has to be listened to. | |email: dbarker@camosun.bc.ca | | |phone: +1 250 370 4452 | Hermann Scherchen. |