JPH03141726A - Parity circuit - Google Patents

Parity circuit

Info

Publication number
JPH03141726A
JPH03141726A JP1280108A JP28010889A JPH03141726A JP H03141726 A JPH03141726 A JP H03141726A JP 1280108 A JP1280108 A JP 1280108A JP 28010889 A JP28010889 A JP 28010889A JP H03141726 A JPH03141726 A JP H03141726A
Authority
JP
Japan
Prior art keywords
input
output
bit
parity
bits
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1280108A
Other languages
Japanese (ja)
Inventor
Katsuto Nakajima
克仁 中島
Atsushi Iida
淳 飯田
Tadashi Yasue
匡 安江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP1280108A priority Critical patent/JPH03141726A/en
Publication of JPH03141726A publication Critical patent/JPH03141726A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Error Detection And Correction (AREA)

Abstract

PURPOSE:To make correspondence to the number of bits in an arbitrary data bit and to reduce man-hour for design by executing cascade connection to a deciding means, which is composed of a holding means to hold one bit of input data and a selecting output means, to an input in the next step. CONSTITUTION:A deciding means 9 is composed of a latch 1 to hold one bit of the input data and a selecting output means 2 to turn a first input 3 as a first output 8 while not-inverting or inverting the input corresponding to the output of the latch 1. The cascade connection is executed for the means 9 so that the number of bits in the input data and the output 8 can be connected to the input 3 in the next step. Thus, in the case of an even-number parity, when the total sum of '1' in the data bit is an even number, '0' is outputted as a parity bit and when it is an odd-number '1' is outputted as the parity bit. Similarly, in the case of an odd-number parity, the parity bit can be obtained by setting the input 3 in the initial step to '1'. Thus, since the parity circuit of regular circuit configuration can be constituted, the correspondence can be made to the number of bits in the arbitrary data bit and the man-hour for design can be reduced.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ハリティピットの生成および検査に用いるパ
リティ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a parity circuit used for generating and inspecting parity pits.

[従来の技術] ディジタルデータの伝送において、通信回線の状態や品
質によって伝送信号が雑音や瞬断等の妨害を受け、受信
データに誤りが生ずることがあるこの誤りを検出するt
こめ、従来から各種の方式が実施されているが、その中
の1つにパリティチエツク方式があり、現在広く用いら
れている。第2図は従来、パリティチエツク方式におい
てパリティビットの生成および検査に用いられている回
路の構成図である。この従来例では、データビットのビ
ット数を8ビットとしており、20〜27はデータビッ
トを保持するラッチである。データビット中の「1」の
ビット数は、28〜32の排他的否定論理和回路と35
.54の排他的論理和回路とにより偶数であるか、奇数
であるが判定され、52の出力には、「1」のビット数
が偶数であれば「1」が、奇数であれば「0」が出力さ
れる。データビット中の「1」のピッ′ト数の偶数、奇
数の判定結果である52の出力と、偶数パリティの場合
「0」、奇数パリティの場合「1」を選択して入力する
選択入力40とによって、パリティビットが出力41に
得られる。
[Prior Art] In the transmission of digital data, the transmission signal may be subject to interference such as noise or instantaneous interruptions depending on the condition and quality of the communication line, and errors may occur in the received data.
To this end, various methods have been used in the past, one of which is the parity check method, which is currently widely used. FIG. 2 is a block diagram of a circuit conventionally used for generating and checking parity bits in the parity check method. In this conventional example, the number of data bits is 8 bits, and latches 20 to 27 hold data bits. The number of "1" bits in the data bits is 28 to 32 exclusive NOR circuits and 35
.. 54's exclusive OR circuit determines whether the number is even or odd, and the output of 52 is "1" if the number of "1" bits is even, and "0" if it is odd. is output. Output 52 which is the result of determining whether the number of pits with "1" in the data bit is even or odd, and selection input 40 which selects and inputs "0" for even parity and "1" for odd parity. The parity bit is obtained at output 41.

[発明が解決しようとする課題] しかしながら、第2図に示す従来の回路構成は1ビット
単位の規則的な構造となっていないため、データビット
のビット数が異なる場合、回路構成が大幅に異なるもの
となる。そのため、データビットのビット数に応じた個
別の回路設計が必要であり、設計工数を削減するにあた
り大きな課題となっていた。
[Problem to be solved by the invention] However, since the conventional circuit configuration shown in FIG. 2 does not have a regular structure on a bit-by-bit basis, the circuit configuration differs significantly when the number of data bits differs. Become something. Therefore, it is necessary to design individual circuits according to the number of data bits, which has been a major problem in reducing design man-hours.

そこで本発明はこのような課題を解決することを目的と
する。
Therefore, the present invention aims to solve such problems.

[課題を解決するための手段] 本発明のハリティ回路は、入力データの1ピツトを保持
する保持手段と、前記保持手段の出力に応じ第1の入力
を非反転または反転させて第1の出力とする選択出力手
段とから構成される判定手段を、前記入力データのビッ
ト数、前段の前記第1の出力を次段の前記第1の入力に
接続するように縦続接続したことを特徴とする。
[Means for Solving the Problems] The Harrity circuit of the present invention includes a holding means for holding one pit of input data, and a first output by non-inverting or inverting a first input according to the output of the holding means. and a selection output means, which are connected in cascade such that the first output of the previous stage is connected to the first input of the next stage according to the number of bits of the input data. .

[実施例コ 以下、本発明を図に基づいて説明する。第1図は本発明
の一実施例を示す回路構成図である・1は送信データま
たは受信データのデータビット中の1ピツトを保持する
保持手段であるラッチであり、出力4および反転出力5
を有する。2は第1の入力6と第1の出力8との間にト
ライステートインバータ6とトランスミッションゲート
7を並列接続した選択出力手段であり、1のラッチの出
力4および反転出力5によって、トライステートインバ
ータ6またはトランスミッションゲート7のいずれか一
方がアクティブとなる。1および2によって構成される
判定手段9は、1ピット単位の回路構造であり、データ
ビットのビット数に応じた個数、前段の出力8を次段の
入力3に接続するように縦続接続される。ここで、たと
えば偶数パリティの場合、初段の入力3には「0ゴな入
力する。ラッチ1に保持されているピットが「1」であ
れば、選択出力手段2におけるトライステートインバー
タ6がアクティブとなり、入力は反転され、初段の出力
8には「1」が出力される。また、ラッチ1に保持され
ているビットが「0」であれば、トランスミッションゲ
ート7がアクティブとなり、初段の出力8には初段の入
力6の状態「0」がそのまま出力される。同様に残りの
データビットに対しても、前段の出力を入力として前述
の動作が繰り返され、最終段の出力8には、データビッ
ト中の「1」のビット数が偶数であれば、初段の入力3
の状態が偶数回反転させられるので初段の入力の状態「
0」がそのまま伝達され、奇数であれば奇数回反転させ
られるので入力を反転した状態「1」が伝達される。す
なわち、偶数ハリティの場合、データビット中の「1」
が偶数であればパリティビットとしてrQJが出力され
、奇数であればパリティピットとして「1」が出力され
る。同様に奇数パリティの場合、初段の入力3を「1」
に設定することにより、パする入力と出力の関係を示す
[Example] The present invention will be explained below based on the drawings. FIG. 1 is a circuit configuration diagram showing an embodiment of the present invention. 1 is a latch which is a holding means for holding one pit in a data bit of transmitted data or received data, and an output 4 and an inverted output 5 are shown.
has. 2 is a selection output means in which a tri-state inverter 6 and a transmission gate 7 are connected in parallel between the first input 6 and the first output 8; Either transmission gate 6 or transmission gate 7 becomes active. The determination means 9 constituted by 1 and 2 have a circuit structure in units of 1 pit, and the number of determination means 9 corresponding to the number of data bits are cascaded so that the output 8 of the previous stage is connected to the input 3 of the next stage. . For example, in the case of even parity, a "0" input is input to the input 3 of the first stage. If the pit held in the latch 1 is "1", the tri-state inverter 6 in the selection output means 2 becomes active. , the input is inverted, and "1" is output to the output 8 of the first stage. Further, if the bit held in the latch 1 is "0", the transmission gate 7 becomes active, and the state "0" of the input 6 of the first stage is output as is to the output 8 of the first stage. Similarly, for the remaining data bits, the above operation is repeated using the output of the previous stage as input, and if the number of "1" bits in the data bits is even, the output of the first stage is sent to the output 8 of the final stage. input 3
Since the state of is inverted an even number of times, the state of the input of the first stage is ``
0" is transmitted as is, and if it is an odd number, it is inverted an odd number of times, so that the state "1", which is an inverted input, is transmitted. In other words, in the case of even harness, "1" in the data bit
If is an even number, rQJ is output as a parity bit, and if it is an odd number, "1" is output as a parity pit. Similarly, in the case of odd parity, input 3 of the first stage is set to "1".
By setting it to , it indicates the relationship between the input and output to be output.

第  1  表 [発明の効果] 以上述べたように本発明によれば、規f=IIJ的な回
路構造のパリティ回路が構成できるため、任意のデータ
ビットのビット数に対応可能であり、設計工数の削減に
対し大きな効果を有する。
Table 1 [Effects of the Invention] As described above, according to the present invention, a parity circuit having a circuit structure according to the rule f=IIJ can be constructed, so that it can accommodate any number of data bits, and the number of design man-hours is reduced. This has a significant effect on reducing

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示す回路構成図、第2図は
従来例を示す回路構成図。 1・・・・・・・・・・・・・・・保持手段であるラッ
チ2・・・・・・・・・・・・・・・選択出力手段3・
・・・・・・・・・・・・・・第1の入力4・・・・・
・・・・・・・・・・ランチ出力5・・・・・・・・・
・・・・・・ラッチ反転出力68.・・・・・・・・・
・・・・トライステートインバータ7・・・・・・・・
・・・・・・・トランスミッションゲート8・・・・・
・・・・・・・・・・第1の出力9・・・・・・・・・
・・・・・・判定手段20〜27・・・ラッチ 28〜52・・・排他的否定論理和回路33.34・・
・排他的論理和回路 35.36・・・イン?く一タ 37.58・・・論理種回路 39・・・・・・・・・・・否定論理和回路40・・・
・・・・・・・・・選択入力41・・・・・・・・・・
・・出 力 尤 / ■
FIG. 1 is a circuit diagram showing an embodiment of the present invention, and FIG. 2 is a circuit diagram showing a conventional example. 1...Latch which is holding means 2...Selection output means 3.
・・・・・・・・・・・・・・・First input 4・・・・・・
・・・・・・・・・Lunch output 5・・・・・・・・・
...Latch inversion output 68.・・・・・・・・・
・・・Tri-state inverter 7・・・・・・・・・
・・・・・・Transmission gate 8・・・・・・
・・・・・・・・・First output 9・・・・・・・・・
...Determination means 20-27...Latch 28-52...Exclusive NOR circuit 33,34...
・Exclusive OR circuit 35.36...in? Kuita 37.58...Logic seed circuit 39...NOR circuit 40...
......Selection input 41...
・・Output value/■

Claims (1)

【特許請求の範囲】[Claims] 入力データの1ビットを保持する保持手段と、前記保持
手段の出力に応じ第1の入力を非反転または反転させて
第1の出力とする選択出力手段とから構成される判定手
段を、前記入力データのビット数、前段の前記第1の出
力を次段の前記第1の入力に接続するように縦続接続し
たことを特徴とするパリテイ回路。
A determining means comprising a holding means for holding one bit of input data, and a selection output means for non-inverting or inverting a first input as a first output according to the output of the holding means. A parity circuit characterized in that the number of bits of data is cascaded so that the first output of the previous stage is connected to the first input of the next stage.
JP1280108A 1989-10-27 1989-10-27 Parity circuit Pending JPH03141726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1280108A JPH03141726A (en) 1989-10-27 1989-10-27 Parity circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1280108A JPH03141726A (en) 1989-10-27 1989-10-27 Parity circuit

Publications (1)

Publication Number Publication Date
JPH03141726A true JPH03141726A (en) 1991-06-17

Family

ID=17620435

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1280108A Pending JPH03141726A (en) 1989-10-27 1989-10-27 Parity circuit

Country Status (1)

Country Link
JP (1) JPH03141726A (en)

Similar Documents

Publication Publication Date Title
Bartee Computer design of multiple-output logical networks
JP3836884B2 (en) Apparatus and method for providing programmable delay
CN112865781B (en) Signal width repair circuit and method and electronic equipment
JPS60208133A (en) True data presuming method and circuit
US4446452A (en) Magnitude comparator circuit and method
US8554813B2 (en) Checking of the skew constancy of a bit flow
JPH03141726A (en) Parity circuit
JP3158215B2 (en) Parity inversion test method
JPH0614609B2 (en) Logic gate array
US5357236A (en) Parallelized difference flag logic
JPS6244727B2 (en)
US20020163359A1 (en) Data transformation for the reduction of power and noise in CMOS structures
US7061284B2 (en) High frequency divider state correction circuit with data path correction
US7119587B2 (en) High frequency divider state correction circuit
JPS6232814B2 (en)
KR100418574B1 (en) Loadable up/down counter circuit
JPH0455774A (en) Overdelay testing system between synchronous ff's
JP2864611B2 (en) Semiconductor memory
JP2833922B2 (en) PN code inspection circuit
KR20000065377A (en) Converter having variable mode
US3548376A (en) Matrix collating system
JPS62225970A (en) Serial data inspection
JP2806459B2 (en) A logic simulation device that can evaluate flip-flops
JPH04216142A (en) Received data inspecting device
JPH0269022A (en) Counter