Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6042497B2 - Shifter parity prediction method - Google Patents
[go: Go Back, main page]

JPS6042497B2 - Shifter parity prediction method - Google Patents

Shifter parity prediction method

Info

Publication number
JPS6042497B2
JPS6042497B2 JP54102796A JP10279679A JPS6042497B2 JP S6042497 B2 JPS6042497 B2 JP S6042497B2 JP 54102796 A JP54102796 A JP 54102796A JP 10279679 A JP10279679 A JP 10279679A JP S6042497 B2 JPS6042497 B2 JP S6042497B2
Authority
JP
Japan
Prior art keywords
bits
data
shift
exclusive
shifted
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.)
Expired
Application number
JP54102796A
Other languages
Japanese (ja)
Other versions
JPS5627457A (en
Inventor
博之 辻田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP54102796A priority Critical patent/JPS6042497B2/en
Publication of JPS5627457A publication Critical patent/JPS5627457A/en
Publication of JPS6042497B2 publication Critical patent/JPS6042497B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Description

【発明の詳細な説明】 本発明はシフタのパリテイプレデイクシヨン方式に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a shifter parity reduction system.

一般に、パリテイがPaの入力データをシフタによりn
ビットシフトする場合、シフトインされるnビットの排
他的論理和をPSI)シフトアウトされるnビットの排
他的論理和をPs°とすると、シフトされた結果得られ
る出力データのパリテイPBは、PB=PA(1)Ps
11Ps0・・・(1)て表わせることは周知である。
Generally, input data with a parity of Pa is transferred to n by a shifter.
In the case of bit shifting, if the exclusive OR of n bits shifted in is PSI) and the exclusive OR of n bits shifted out is Ps°, then the parity PB of the output data obtained as a result of shifting is PB =PA(1)Ps
It is well known that it can be expressed as 11Ps0...(1).

ところで、シフトインされるデータの排他的論理和P、
0は、今注目している入力データの隣のバイトからシフ
トアウトされるデータの排他的論理和と同じである。従
つて、出力データのパリテイの予測は、各バイトに関し
、シフトインするデータとシフトアウトするデータの双
方を求める必要はなく、例えば、シフトアウトされるデ
ータの排他的論理和だけを求めればよいことになる。こ
のような方法によつてパリテイの予測を行なうと、ハー
ドウェアが簡素化されるが、例えば、7ビットのシフト
を行なうような場合にはシフトアウトされる7ビットの
デ”一タについて排他的論理和を求めなければならず、
結局最大7ビットの排他的論理和の演算を行なう論理回
路を用意しなければならなかつた。本発明の目的は、よ
り少ないゲート数でシフト後のデータのパリテイを予測
することができる回路を実現することができるシフタの
パリテイプレデイクシヨン方式を提供することにある。
本発明は、8ビットの入力データA0〜A、を左方向に
nビットシフトした時のシフトアウトデータのパリテイ
Ps。
By the way, the exclusive OR P of the data to be shifted in,
0 is the same as the exclusive OR of the data shifted out from the byte next to the input data of interest. Therefore, to predict the parity of output data, it is not necessary to calculate both the data to be shifted in and the data to be shifted out for each byte; for example, it is only necessary to calculate the exclusive OR of the data to be shifted out. become. Predicting parity using this method simplifies the hardware, but when performing a 7-bit shift, for example, the 7-bit data to be shifted out must be exclusively You have to find the logical sum,
In the end, it was necessary to prepare a logic circuit for performing an exclusive OR operation of up to 7 bits. An object of the present invention is to provide a shifter parity prediction method that can realize a circuit that can predict the parity of shifted data with a smaller number of gates.
The present invention deals with the parity Ps of shift-out data when 8-bit input data A0 to A is shifted leftward by n bits.

しと、右方向に(8−n)ビットシフトした時のシフト
アウトデータのパリテイP、。Rと、入力データのパリ
テイPAとの間にP^=Ps0し1PSOR゜゜゜(2
)なる関係が存在することに着目したものであり、その
特徴は、シフトアウトされるデータの排他的論理和を求
める場合、そのシフトアウトのビット数nが4ビット以
上の場合には(8−n)ビットの他方向シフトについて
排他的論理和を求めた後、上記第(2)式を用いてその
結果を変換することにある。
Then, the parity P of the shift-out data when shifted by (8-n) bits to the right. P^=Ps0 and 1PSOR゜゜゜(2
), and its feature is that when calculating the exclusive OR of data to be shifted out, if the number of bits n to be shifted out is 4 bits or more, then (8- After calculating the exclusive OR for n) bits shifted in the other direction, the result is converted using the above equation (2).

以下、本発明の方式を図示の実施例を参照しながら詳細
に説明する。
Hereinafter, the system of the present invention will be explained in detail with reference to the illustrated embodiments.

第1図には、複数バイトのデータが示されている。FIG. 1 shows multiple bytes of data.

各データD。..Dl、D2、・・・は8ビットから成
り今、データD。に着目して、これらのデータをシフト
した場合、そのシフト結果のデータのパリテイを本発明
の方式により予測する場合について述べる。右、又は左
方向に3ビット以下のシフトを行なう場合には、各デー
タにおけるシフトアウトされるデータの排他的論理和を
求め、これらの排他的論理和を求め、第(1)方式に基
づいてシフト後のデータのパリテイを予測する。例えば
、左へ3ビットシフトする場合には、データD。のシフ
トアウトビットはA。、A1、A2であるから、先ずこ
れらのビットの排他的論理和PsOしを求める。データ
D。に着目した場合のシフトインビットは、データD2
の左3ビットのデータであるから、これらのビットの排
他的論理和PS!Lを求める。しかる後、第(1)式を
適用して必要な結果を得ることができる。次にシフト量
が4ビット以上となつた場合について述べる。
Each data D. .. .. Dl, D2, . . . consist of 8 bits and are now data D. A case will be described in which, when these data are shifted, the parity of the data resulting from the shift is predicted by the method of the present invention. When performing a shift of 3 bits or less in the right or left direction, calculate the exclusive OR of the data to be shifted out in each data, calculate these exclusive ORs, and perform the calculation based on method (1). Predict the parity of the shifted data. For example, when shifting 3 bits to the left, data D. The shift out bit of is A. , A1, and A2, first find the exclusive OR PsO of these bits. Data D. The shift-in bit when focusing on data D2
Since it is the data of the left 3 bits of , the exclusive OR of these bits PS! Find L. Equation (1) can then be applied to obtain the required result. Next, the case where the shift amount is 4 bits or more will be described.

8ビットのデータを一方向にn(7≧n≧4)ビットシ
フトする場合のバリの予測は、(8−n)ビット他方向
にシフトした場合のシフトアウトビットの排他的論理和
Pxを求め、しかる後、第(2)式を用いて一方向にn
ビットシフトの場合にシフトアウトビットの排他的論理
和を求め、これに基づいてパリテイの予測を行なう。
To predict burrs when shifting 8-bit data in one direction by n (7≧n≧4) bits, calculate the exclusive OR Px of the shift-out bits when shifting (8-n) bits in the other direction. , and then use equation (2) to calculate n in one direction.
In the case of a bit shift, the exclusive OR of the shift-out bits is calculated and parity prediction is performed based on this.

例えば、左に6ビットシフトする場合のパリテイの予測
について説明すると、右に(8−6)ビットシフトする
場合にシフトアウトするビット〜、A7の排他的論理和
PX!を求め、第(2)式を用いて左に6ビットシフト
した場合にシフトアウトするビットの排他的論理和PY
,が求められる。同様にして他のデータにおけるシフト
アウトビットの排他的論理和の求められるので、第(1
)式により所望の予測結果を得ることができる。上述の
如く、この方式では、シフト量が4ビット以上の場合で
あつても、シフトアウトビットの排他的論理和の演算は
4ビット以下の演算で済むので結局最大4ビットの排他
的論理和の演算を行なう回路を持てばよいことになり、
ハードウェアをよソー層簡素化することができる。
For example, to explain parity prediction when shifting 6 bits to the left, the bits to be shifted out when shifting (8-6) bits to the right ~, the exclusive OR of A7 PX! Find the exclusive OR of the bits shifted out when 6 bits are shifted to the left using equation (2).
, is required. In the same way, the exclusive OR of shift-out bits in other data is calculated, so the (1st
) can obtain the desired prediction result. As mentioned above, in this method, even if the shift amount is 4 bits or more, the exclusive OR operation of shift-out bits can be performed using 4 bits or less, so in the end, the exclusive OR operation of up to 4 bits is required. All you need to do is have a circuit that performs calculations,
The hardware can be simplified to a much higher level.

更に、この方式によりシフト出力のパリテイを予測する
場合に、入力データにエラーがあつた時、出力にエラー
が含まれるか否かを示したのが第1表に示されている。
Further, Table 1 shows whether or not the output contains an error when there is an error in the input data when predicting the parity of the shift output using this method.

この表から判るように、右シフト及び左シフト共に、4
ビット以上の場合には、隣のバイトにエラーが表われる
。エラーがこのように隣のバイトに影響を与えると、エ
ラー追跡を行なう場合に非常に役立つことになる。第2
図には、本発墓の方式を適用したパリテイプレデイクシ
ヨン回路の一実施例が示されいる。パリテイプレデイク
シヨン回路10は、2進数で与えられるシフト量をデコ
ードするためのデコーダ11、アンドゲート12、ナン
ドゲート13〜26、インバータ27〜29、Kxオア
ゲート30〜39から成つている。デコーダ11の真理
値表は第2表に示す通りであり、シフト量nが4ビット
以上の場合には、(8−n)ビットのシフト量を与える
ようになつている。シフト量の指定は、端子B4、■、
b1にシフト量に相応した2進データを印加することに
より行なわれ、端子も〜A7には、図示しないシフトレ
ジスタによりシフトされる入力データが印加される。
As you can see from this table, both right shift and left shift are 4
If it is more than a bit, the error will appear in the adjacent byte. Having errors affect neighboring bytes in this way can be very useful for error tracking. Second
The figure shows an embodiment of a parity reduction circuit to which the present method is applied. The parity prediction circuit 10 includes a decoder 11 for decoding a shift amount given in binary numbers, an AND gate 12, NAND gates 13-26, inverters 27-29, and Kx OR gates 30-39. The truth table of the decoder 11 is as shown in Table 2, and when the shift amount n is 4 bits or more, a shift amount of (8-n) bits is given. To specify the shift amount, use terminal B4, ■,
This is done by applying binary data corresponding to the shift amount to b1, and input data shifted by a shift register (not shown) is applied to terminal ~A7.

端子Pはこの入力データのパリテイデータの入力端子、
端子Dはシフト方向の情報を入力する端子で、右シフト
の場合はRlJが、左シフトの場合にはROJが印加さ
れる。端子も〜A7に印加されたデータは、デコーダ1
1の出力に従つて選択的に開閉されるナンドゲート13
〜20により、シフトアウトされるビットのデータのみ
が取出される。
Terminal P is an input terminal for parity data of this input data,
Terminal D is a terminal for inputting shift direction information, and RlJ is applied in the case of a right shift, and ROJ is applied in the case of a left shift. The data applied to terminal ~A7 is also sent to decoder 1.
NAND gate 13 that is selectively opened and closed according to the output of
.about.20, only the data of the bits that are shifted out is retrieved.

そして、Ex−オアゲート30〜35によりシフトアウ
トビットの排他的論理和が演算される。すでに説明した
ように、1〜3ビットのシフトの場合には従来通りの演
算が行なわれるが、4ビット乃至7ビットのシフトの場
合には、逆方向の4ビット乃至1ビットのシフトについ
てのシフトアウトビットの排他的論理和が計算される必
要がある。このため、シフト方向のデータと、端子B4
からのデータとはExオアゲート36に入力されており
、Exオアゲート36からの出力はナンドゲート22の
一方の入力に直接印加されると共に、インバータ28を
介してナンドゲート21の一方の入力の印加されている
。従つて、シフト方向が右方向でシフト量が3ビット以
下の場合にはゲート22が開き、シフト量が4ビット以
上となるとゲート21が開かれる。一方、シフト方向が
左方向でシフト量が3ビット以下の場合にはゲート21
が開き、シフト量が4ビット以上となるとゲート22が
開けれる。このようにして得られたシフトアウトされる
ビットの排他的論理和は、ナンドゲート23から取出さ
れ、Exオアゲート37においてアンドゲート12の出
力と排他的論理和がとられる。このアンドゲート12の
出力は、シフト量が3ビット以下の場合にはROJであ
り、シフト量が4ビット以上の場合にはパリテイの反転
データとなる。このExオアゲート37の出力が、シフ
トアウトビットの排他的論理和となる。ナンドゲート2
5には左隣のバイトよりシフトインされるビットの排他
的論理和の結果S1が印加されており、一方、ナンドゲ
ート24には右隣バイトよりシフトインされるビットの
排他的論理和の結果S2が印加されており、右シフト指
令の場合にはナンドゲート24が開かれ、Exオアゲー
ト38,39により、今注目しているバイトのシフトア
ウトビットの排他的論理和と、結果S2と、パリテイデ
ータの3つが更に排他的論理和をとられ、第(1)式に
示す演算が行なわれ、Exオアゲート39からシフトさ
れたデータのパリテイの予測結果0UTが得られる。
Then, the Ex-OR gates 30 to 35 calculate the exclusive OR of the shift-out bits. As already explained, in the case of a shift of 1 to 3 bits, the conventional calculation is performed, but in the case of a shift of 4 bits to 7 bits, the shift for a shift of 4 bits to 1 bit in the opposite direction is performed. The exclusive OR of the out bits needs to be computed. Therefore, the data in the shift direction and the terminal B4
The data from the Ex-OR gate 36 is input to the Ex-OR gate 36, and the output from the Ex-OR gate 36 is applied directly to one input of the NAND gate 22, and is also applied to one input of the NAND gate 21 via the inverter 28. . Therefore, when the shift direction is rightward and the shift amount is 3 bits or less, the gate 22 is opened, and when the shift amount is 4 bits or more, the gate 21 is opened. On the other hand, if the shift direction is leftward and the shift amount is 3 bits or less, the gate 21
is opened, and when the shift amount becomes 4 bits or more, the gate 22 is opened. The exclusive OR of the bits to be shifted out thus obtained is taken out from the NAND gate 23 and exclusive ORed with the output of the AND gate 12 at the Ex-OR gate 37. The output of this AND gate 12 is ROJ when the shift amount is 3 bits or less, and becomes parity inverted data when the shift amount is 4 bits or more. The output of this Ex-OR gate 37 becomes the exclusive OR of the shift-out bits. nand gate 2
5 is applied with the result S1 of the exclusive OR of the bits shifted in from the adjacent byte on the left, while the NAND gate 24 is applied with the result S2 of the exclusive OR of the bits shifted in from the adjacent byte on the right. is applied, and in the case of a right shift command, the NAND gate 24 is opened, and the Ex-OR gates 38 and 39 perform the exclusive OR of the shift-out bits of the currently focused byte, the result S2, and the parity data. The three are further exclusive-ORed, and the operation shown in equation (1) is performed to obtain the parity prediction result 0UT of the data shifted from the Ex-OR gate 39.

左シフト指令の場合には結果S1がナンドゲート26か
ら出力される。このように、シフトアウトビットの排他
的論理和の演算は、シフト量のいかんに拘らず、最大4
ビットの演算で済むので使用ゲート回路で大巾に削減す
ることがてきる。本発明の方式によれば、乗述の如く、
シフト量が4ビット以上の場合であつても、シフトアウ
トビットの排他的論理和の演算は4ビット以下の演算て
済むので、結局最大4ビットの排他的論理和・の演算を
行なう回路を持てばよいことになり、ハードウェアを著
しく簡素化することができる。
In the case of a left shift command, the result S1 is output from the NAND gate 26. In this way, the exclusive OR operation of shift-out bits can be performed up to 4 times, regardless of the amount of shift.
Since only bit operations are required, the number of gate circuits used can be greatly reduced. According to the method of the present invention, as described above,
Even if the shift amount is 4 bits or more, the exclusive OR operation of the shift-out bits requires less than 4 bits, so it is necessary to have a circuit that can perform an exclusive OR operation of up to 4 bits. This makes it possible to significantly simplify the hardware.

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

第1図は本発明の詳細な説明するため被シフトデータの
配列状態を示す図、第2図は本発明の方式を適用したシ
フタ用パリテイプレデイクシヨン回路の回路図である。
FIG. 1 is a diagram showing the arrangement of shifted data for detailed explanation of the present invention, and FIG. 2 is a circuit diagram of a parity reduction circuit for a shifter to which the method of the present invention is applied.

Claims (1)

【特許請求の範囲】[Claims] 1 シフトアウトされるデータの排他的論理和を求める
ことによりシフト後のデータのパリテイを予測するシフ
タのパリテイプレデイクシヨン方式において、シフトア
ウトされるデータのビット数nと被シフトデータの全ビ
ット数Nとの間にn<N/2の関係がある場合はシフト
アウトされるデータそのものの排他的論理和によりシフ
ト後のデータの排他的論理和を求め、n≧N/2の関係
がある場合は(N−n)ビットのデータの排他的論理和
によりシフト後のデータの排他的論理和を求めることを
特徴とするシフタのパリテイプレデイツクシヨン方式。
1 In the shifter parity prediction method that predicts the parity of the data after shifting by calculating the exclusive OR of the data to be shifted out, the number n of bits of the data to be shifted out and all bits of the data to be shifted If there is a relationship between n<N/2 with the number N, the exclusive OR of the shifted data is determined by the exclusive OR of the data to be shifted out, and there is a relationship of n≧N/2. In this case, the shifter parity reduction method is characterized in that the exclusive OR of the shifted data is determined by the exclusive OR of (N-n) bits of data.
JP54102796A 1979-08-14 1979-08-14 Shifter parity prediction method Expired JPS6042497B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54102796A JPS6042497B2 (en) 1979-08-14 1979-08-14 Shifter parity prediction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54102796A JPS6042497B2 (en) 1979-08-14 1979-08-14 Shifter parity prediction method

Publications (2)

Publication Number Publication Date
JPS5627457A JPS5627457A (en) 1981-03-17
JPS6042497B2 true JPS6042497B2 (en) 1985-09-24

Family

ID=14337041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54102796A Expired JPS6042497B2 (en) 1979-08-14 1979-08-14 Shifter parity prediction method

Country Status (1)

Country Link
JP (1) JPS6042497B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59141447A (en) * 1983-01-31 1984-08-14 日本セメント株式会社 Accelerator for dry spraying method
JPS62288147A (en) * 1986-06-06 1987-12-15 三井建設株式会社 Concrete flowing method
US4819983A (en) * 1987-09-24 1989-04-11 Asc Incorporated Power latch system
JP2802328B2 (en) * 1990-11-26 1998-09-24 株式会社エフ・エフ・シー Automatic selection receiver

Also Published As

Publication number Publication date
JPS5627457A (en) 1981-03-17

Similar Documents

Publication Publication Date Title
US4807172A (en) Variable shift-count bidirectional shift control circuit
US5270955A (en) Method of detecting arithmetic or logical computation result
US4953115A (en) Absolute value calculating circuit having a single adder
EP0328871A2 (en) Condition code prediction apparatus
US5559837A (en) Efficient utilization of present state/next state registers
EP0591846B1 (en) Subtracting method and device in or relating to signal processing technologies
JPS6351287B2 (en)
US5027310A (en) Carry chain incrementer and/or decrementer circuit
CA1249372A (en) Self-checking microprogram control unit with on-line error detection capability, in mos technology
US4110831A (en) Method and means for tracking digit significance in arithmetic operations executed on decimal computers
US4947359A (en) Apparatus and method for prediction of zero arithmetic/logic results
US4224680A (en) Parity prediction circuit for adder/counter
JPS6042497B2 (en) Shifter parity prediction method
US4635220A (en) Binary coded decimal number division apparatus
KR0161868B1 (en) Memory address control circuit
JPS58182754A (en) arithmetic processing unit
KR100223997B1 (en) Normalization circuit device of floating point computation device
US6946985B2 (en) Device for reconfiguring a faulty storage assembly
EP0334768B1 (en) Logic circuit having carry select adders
Sooriamala et al. Reduction of Garbage Outputs and Constant Inputs in Design of Combinational Circuits Using Reversible Logic
KR960015194A (en) Absolute value calculation method and circuit
US5148480A (en) Decoder
JPH09185493A (en) Integrated circuit for adder
JP2520484B2 (en) Division circuit
KR100203742B1 (en) Adder using multiplex