Contents 1 Parity 2 Error detection 3 Usage 3.1 Redundant array of independent disks 4 History 5 See also 6 References 7 External links


Parity[edit] In mathematics, parity refers to the evenness or oddness of an integer, which for a binary number is determined only by the least significant bit. In telecommunications and computing, parity refers to the evenness or oddness of the number of bits with value one within a given set of bits, and is thus determined by the value of all the bits. It can be calculated via an XOR sum of the bits, yielding 0 for even parity and 1 for odd parity. This property of being dependent upon all the bits and changing value if any one bit changes allows for its use in error detection schemes.


Error detection[edit] If an odd number of bits (including the parity bit) are transmitted incorrectly, the parity bit will be incorrect, thus indicating that a parity error occurred in the transmission. The parity bit is only suitable for detecting errors; it cannot correct any errors, as there is no way to determine which particular bit is corrupted. The data must be discarded entirely, and re-transmitted from scratch. On a noisy transmission medium, successful transmission can therefore take a long time, or even never occur. However, parity has the advantage that it uses only a single bit and requires only a number of XOR gates to generate. See Hamming code for an example of an error-correcting code. Parity bit checking is used occasionally for transmitting ASCII characters, which have 7 bits, leaving the 8th bit as a parity bit. For example, the parity bit can be computed as follows, assuming we are sending simple 4-bit values 1001. Type of bit parity Successful transmission scenario Even parity A wants to transmit: 1001 A computes parity bit value: 1+0+0+1 (mod 2) = 0 A adds parity bit and sends: 10010 B receives: 10010 B computes parity: 1+0+0+1+0 (mod 2) = 0 B reports correct transmission after observing expected even result. Odd parity A wants to transmit: 1001 A computes parity bit value: 1+0+0+1 + 1 (mod 2) = 1 A adds parity bit and sends: 10011 B receives: 10011 B computes overall parity: 1+0+0+1+1 (mod 2) = 1 B reports correct transmission after observing expected odd result. This mechanism enables the detection of single bit errors, because if one bit gets flipped due to line noise, there will be an incorrect number of ones in the received data. In the two examples above, B's calculated parity value matches the parity bit in its received value, indicating there are no single bit errors. Consider the following example with a transmission error in the second bit using XOR: Type of bit parity error Failed transmission scenario Even parity Error in the second bit A wants to transmit: 1001 A computes parity bit value: 1^0^0^1 = 0 A adds parity bit and sends: 10010 ...TRANSMISSION ERROR... B receives: 11010 B computes overall parity: 1^1^0^1^0 = 1 B reports incorrect transmission after observing unexpected odd result. Even parity Error in the parity bit A wants to transmit: 1001 A computes even parity value: 1^0^0^1 = 0 A sends: 10010 ...TRANSMISSION ERROR... B receives: 10011 B computes overall parity: 1^0^0^1^1 = 1 B reports incorrect transmission after observing unexpected odd result. There is a limitation to parity schemes. A parity bit is only guaranteed to detect an odd number of bit errors. If an even number of bits have errors, the parity bit records the correct number of ones, even though the data is corrupt. (See also error detection and correction.) Consider the same example as before with an even number of corrupted bits: Type of bit parity error Failed transmission scenario Even parity Two corrupted bits A wants to transmit: 1001 A computes even parity value: 1^0^0^1 = 0 A sends: 10010 ...TRANSMISSION ERROR... B receives: 11011 B computes overall parity: 1^1^0^1^1 = 0 B reports correct transmission though actually incorrect. B observes even parity, as expected, thereby failing to catch the two bit errors.


Usage[edit] Because of its simplicity, parity is used in many hardware applications where an operation can be repeated in case of difficulty, or where simply detecting the error is helpful. For example, the SCSI and PCI buses use parity to detect transmission errors, and many microprocessor instruction caches include parity protection. Because the I-cache data is just a copy of main memory, it can be disregarded and re-fetched if it is found to be corrupted. In serial data transmission, a common format is 7 data bits, an even parity bit, and one or two stop bits. This format neatly accommodates all the 7-bit ASCII characters in a convenient 8-bit byte. Other formats are possible; 8 bits of data plus a parity bit can convey all 8-bit byte values. In serial communication contexts, parity is usually generated and checked by interface hardware (e.g., a UART) and, on reception, the result made available to the CPU (and so to, for instance, the operating system) via a status bit in a hardware register in the interface hardware. Recovery from the error is usually done by retransmitting the data, the details of which are usually handled by software (e.g., the operating system I/O routines). When the total number of transmitted bits, including the parity bit, is even, odd parity has the advantage that the all-zeros and all-ones patterns are both detected as errors. If the total number of bits is odd, only one of the patterns is detected as an error, and the choice can be made based on which is expected to be the more common error. Redundant array of independent disks[edit] Parity data is used by some RAID (redundant array of independent disks) levels to achieve redundancy. If a drive in the array fails, remaining data on the other drives can be combined with the parity data (using the Boolean XOR function) to reconstruct the missing data. For example, suppose two drives in a three-drive RAID 5 array contained the following data: Drive 1: 01101101 Drive 2: 11010100 To calculate parity data for the two drives, an XOR is performed on their data:          01101101 XOR 11010100 _____________         10111001 The resulting parity data, 10111001, is then stored on Drive 3. Should any of the three drives fail, the contents of the failed drive can be reconstructed on a replacement drive by subjecting the data from the remaining drives to the same XOR operation. If Drive 2 were to fail, its data could be rebuilt using the XOR results of the contents of the two remaining drives, Drive 1 and Drive 3: Drive 1: 01101101 Drive 3: 10111001 as follows:          10111001 XOR 01101101 _____________         11010100 The result of that XOR calculation yields Drive 2's contents. 11010100 is then stored on Drive 2, fully repairing the array. This same XOR concept applies similarly to larger arrays, using any number of disks. In the case of a RAID 3 array of 12 drives, 11 drives participate in the XOR calculation shown above and yield a value that is then stored on the dedicated parity drive.


History[edit] A "parity track" was present on the first magnetic tape data storage in 1951. Parity in this form, applied across multiple parallel signals, is known as a transverse redundancy check. This can be combined with parity computed over multiple bits sent on a single signal, a longitudinal redundancy check. In a parallel bus, there is one longitudinal redundancy check bit per parallel signal. Parity was also used on at least some paper-tape (punched tape) data entry systems (which preceded magnetic tape systems). On the systems sold by British company ICL (formerly ICT) the 1-inch-wide (25 mm) paper tape had 8 hole positions running across it, with the 8th being for parity. 7 positions were used for the data, e.g., 7-bit ASCII. The 8th position had a hole punched in it depending on the number of data holes punched.


See also[edit] BIP-8 Parity function Single event upset 8-N-1


References[edit] ^ What is the difference between using mark or space parity and parity-none [1] ^ What is the purpose of the Stick Parity? [2] ^ Serial Communications - Sat-Digest[3]


External links[edit] Different methods of generating the parity bit, among other bit operations Retrieved from "https://en.wikipedia.org/w/index.php?title=Parity_bit&oldid=805568615" Categories: Binary arithmeticData transmissionError detection and correctionParity (mathematics)RAIDHidden categories: Articles needing additional references from January 2013All articles needing additional referencesArticles lacking in-text citations from January 2017All articles lacking in-text citations


Navigation menu Personal tools Not logged inTalkContributionsCreate accountLog in Namespaces ArticleTalk Variants Views ReadEditView history More Search Navigation Main pageContentsFeatured contentCurrent eventsRandom articleDonate to WikipediaWikipedia store Interaction HelpAbout WikipediaCommunity portalRecent changesContact page Tools What links hereRelated changesUpload fileSpecial pagesPermanent linkPage informationWikidata itemCite this page Print/export Create a bookDownload as PDFPrintable version Languages AfrikaansالعربيةবাংলাCatalàČeštinaDanskDeutschEspañolفارسیFrançaisGaeilge한국어ItalianoעבריתLatviešuMagyarМакедонскиമലയാളംNederlands日本語Norsk nynorskPolskiPortuguêsРусскийSlovenčinaСрпски / srpskiSvenskaไทยTürkçeУкраїнськаTiếng Việt中文 Edit links This page was last edited on 16 October 2017, at 06:44. Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. Privacy policy About Wikipedia Disclaimers Contact Wikipedia Developers Cookie statement Mobile view (window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.084","walltime":"0.115","ppvisitednodes":{"value":392,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":8534,"limit":2097152},"templateargumentsize":{"value":181,"limit":2097152},"expansiondepth":{"value":12,"limit":40},"expensivefunctioncount":{"value":2,"limit":500},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 92.005 1 -total"," 46.80% 43.062 1 Template:Ref_improve"," 37.67% 34.662 2 Template:Ambox"," 30.56% 28.118 1 Template:Convert"," 14.00% 12.880 1 Template:No_footnotes"," 5.80% 5.339 1 Template:Reflist"," 3.19% 2.931 2 Template:Yesno-no"," 1.92% 1.770 2 Template:Main_other"," 1.76% 1.620 2 Template:Yesno"]},"scribunto":{"limitreport-timeusage":{"value":"0.035","limit":"10.000"},"limitreport-memusage":{"value":2213514,"limit":52428800}},"cachereport":{"origin":"mw1246","timestamp":"20180115103652","ttl":1900800,"transientcontent":false}}});});(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":72,"wgHostname":"mw1258"});});


Check_bit - Photos and All Basic Informations

Check_bit More Links

Wikipedia:VerifiabilityHelp:Introduction To Referencing With Wiki Markup/1Help:Maintenance Template RemovalWikipedia:Citing SourcesWikipedia:External LinksWikipedia:Citing SourcesWikipedia:WikiProject Fact And Reference CheckWikipedia:When To CiteHelp:Maintenance Template RemovalBitBinary CodeEven NumberOdd NumberError Detection And CorrectionCyclic Redundancy CheckPolynomialDon't-care TermOctet (computing)Check DigitParity (mathematics)Binary Numeral SystemLeast Significant BitXORError Detection And CorrectionTransmission (telecommunications)Error Detection And CorrectionAutomatic Repeat-requestXOR GateHamming CodeASCIIError Detection And CorrectionComputer HardwareSCSIPCI BusMicroprocessorCPU CacheInstruction CacheMain MemorySerial CommunicationsData TransmissionStop BitASCIIUARTOperating SystemHardware RegisterRAIDXORRAID 5Magnetic Tape Data StorageTransverse Redundancy CheckLongitudinal Redundancy CheckPunched TapeBIP-8Parity FunctionSingle Event Upset8-N-1Help:CategoryCategory:Binary ArithmeticCategory:Data TransmissionCategory:Error Detection And CorrectionCategory:Parity (mathematics)Category:RAIDCategory:Articles Needing Additional References From January 2013Category:All Articles Needing Additional ReferencesCategory:Articles Lacking In-text Citations From January 2017Category:All Articles Lacking In-text CitationsDiscussion About Edits From This IP Address [n]A List Of Edits Made From This IP Address [y]View The Content Page [c]Discussion About The Content Page [t]Edit This Page [e]Visit The Main Page [z]Guides To Browsing WikipediaFeatured Content – The Best Of WikipediaFind Background Information On Current EventsLoad A Random Article [x]Guidance On How To Use And Edit WikipediaFind Out About WikipediaAbout The Project, What You Can Do, Where To Find ThingsA List Of Recent Changes In The Wiki [r]List Of All English Wikipedia Pages Containing Links To This Page [j]Recent Changes In Pages Linked From This Page [k]Upload Files [u]A List Of All Special Pages [q]Wikipedia:AboutWikipedia:General Disclaimer



view link view link view link view link view link