JPS59158438A - Shift circuit - Google Patents

Shift circuit

Info

Publication number
JPS59158438A
JPS59158438A JP3328183A JP3328183A JPS59158438A JP S59158438 A JPS59158438 A JP S59158438A JP 3328183 A JP3328183 A JP 3328183A JP 3328183 A JP3328183 A JP 3328183A JP S59158438 A JPS59158438 A JP S59158438A
Authority
JP
Japan
Prior art keywords
byte
shift
bit
data
output
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
JP3328183A
Other languages
Japanese (ja)
Inventor
Wataru Shimoda
下田 渉
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric Co 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP3328183A priority Critical patent/JPS59158438A/en
Publication of JPS59158438A publication Critical patent/JPS59158438A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/01Methods or arrangements for data conversion without changing the order or content of the data handled for shifting, e.g. justifying, scaling, normalising

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To keep the difference of delay with time between a parity bit and a data bit of an output data at the occurrence of parity to a small value by generating the parity bit at each byte of an output data. CONSTITUTION:A parity generating means 7 ORes exclusively paritity information of an output of a byte shift means 4 and an output of an exclusive OR means 6 and sets a parity bit in 8-bit to a data in 8-byte in the output of a data shift section 2. In this case, there are two methods to set the logical value of the data bit to 0 by the ineffective means 5 of the effectiveness of the parity information output from the byte shift means 4. As for the 1st method, the parity bit of output bytes 0-7 of the byte shift means 4 is used, and as for the 2nd method, the parity bit of 1-8 of the output bytes of the byte shift means 4 is used.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、パリティビット発生部を備えたシフト回路に
関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a shift circuit equipped with a parity bit generator.

(従来技術) 従来、この種のシフト回路においては、入力データのビ
ット配列と入力データの任意のビット位置から取出した
出力データのビット配列との間には規則的な関係がなく
、入力データから出力データのパリティビットを生成す
るためのパリテイプレデイクションが取れなかった。
(Prior art) Conventionally, in this type of shift circuit, there is no regular relationship between the bit array of input data and the bit array of output data extracted from an arbitrary bit position of the input data. Parity prediction for generating parity bits for output data could not be obtained.

このため、回路を二重化してその片側の出力からパリテ
ィビットを生成していだので、この種のシフト回路では
出力のパリティビットが入力データに比べてパリティ生
成に費す時間だけ遅れると云う欠点があった。
For this reason, the circuit is duplicated and the parity bit is generated from the output of one side, so this type of shift circuit has the disadvantage that the output parity bit lags behind the input data by the time taken to generate the parity. there were.

(発明の目的) 本発明の目的は、パリティ発生において入力データをシ
フトさせるためのバイトシフト手段と特定ビットを無効
化するだめの無効化手段とを経由して転送されてきたデ
ータを、隣接する2バイトごとに排他的論理和を取り、
排他的論理和の出力とバイトシフト手段の出力のパリテ
ィ情報とにより、出力データの各バイトごとにパリティ
ピットを発生させるように構成することにより、パリテ
ィ発生における出力データのパリティビットとデータビ
ットとの間の時間的遅延の差を小さくしたシフト回路を
提供することにある。
(Object of the Invention) An object of the present invention is to shift data transferred via byte shift means for shifting input data and invalidation means for invalidating specific bits into adjacent bits in parity generation. Take exclusive OR for every 2 bytes,
By configuring a structure in which a parity pit is generated for each byte of output data using the output of the exclusive OR and the parity information of the output of the byte shift means, the relationship between the parity bit and data bit of the output data in parity generation is improved. An object of the present invention is to provide a shift circuit that reduces the difference in time delay between the two.

(発明の構成) 本発明によるシフト回路は、複数バイトよシ成る入力デ
ータに含まれる複数のシフト数指定ビットによシ指定さ
れた任意のビット位置だけ、あらかじめ指定された方向
にシフトし、これによって人力データのバイト数より小
さにバイト数の出力データを取出すように構成したもの
を改良したものである。
(Structure of the Invention) A shift circuit according to the present invention shifts an arbitrary bit position specified by a plurality of shift number specification bits included in input data consisting of a plurality of bytes in a prespecified direction, and shifts this bit position in a prespecified direction. This is an improved version of the system configured to extract output data with a smaller number of bytes than the number of bytes of human data.

本発明によるシフト回路は、パリティ発生部を具備した
ことを特徴としたものであり、パリティ発生部はバイト
シフト手段と、無効化手段と、排他的論理和手段と、パ
リティ発生手段とから成立つものである。
The shift circuit according to the present invention is characterized in that it includes a parity generation section, and the parity generation section is constituted by a byte shift means, an invalidation means, an exclusive OR means, and a parity generation means. It is.

バイトシフト手段は、複数のシフト数指定ビットに含ま
れたバイトシフト数指定ビットにより、パリティピット
を含めたバイト単位で出力データ幅より1バイトだけ大
きなデータを入力データから取入れるだめのものである
The byte shift means is designed to take in data that is 1 byte larger than the output data width from the input data in byte units including parity pits, using the byte shift number designation bits included in the plurality of shift number designation bits. .

無効化手段は、複数のシフト数指定ビットに含まれたバ
イトシフト数指定ビットによりビット単位のシフトを行
立った場合に、隣接バイトにシフトされる入力データ、
または隣接バイトにシフトされることのない入力データ
のデータビットのいずれかを無効化するためのものであ
る。
The invalidation means includes input data that is shifted to an adjacent byte when a bit-by-bit shift is performed using the byte shift number designation bits included in the plurality of shift number designation bits;
or to invalidate any of the data bits of the input data that are not shifted into adjacent bytes.

排他的論理和手段は、バイトシフト手段と無効化手段と
を経由して転送されてきたデータに対して、隣接する2
バイトごとに排他的論理和を取るためのものである。
The exclusive OR means selects two adjacent data transferred via the byte shift means and the invalidation means.
This is to perform exclusive OR for each byte.

パリティ発生手段は、排他的論理和手段の出力とバイト
シフト手段の出力のパリティ情報とKより、出力データ
の各バイトごとにパリティビットを発生させるためのも
のである。
The parity generation means is for generating a parity bit for each byte of output data from the parity information of the output of the exclusive OR means and the output of the byte shift means and K.

(実施例) 次に、本発明について図面を参照して詳細に説明する。(Example) Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明によるシフト回路の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing one embodiment of a shift circuit according to the present invention.

牙1図において、1はシフト数格納レジスタ、2はデー
タシフト部、3はパリティ発生部、4はバイトシフト手
段、5は無効化手段・6は排他的論理和手段、7はパリ
ティ発生手段である。
In the diagram, 1 is a shift number storage register, 2 is a data shift section, 3 is a parity generation section, 4 is a byte shift means, 5 is an invalidation means, 6 is an exclusive OR means, and 7 is a parity generation means. be.

パリティ発生部3はバイトシフト手段4と、無効化手段
5と、排他的論理和手段6と、パリティ発生手段7とを
具備している。
The parity generation section 3 includes a byte shift means 4, an invalidation means 5, an exclusive OR means 6, and a parity generation means 7.

第1図において、シフト数格納レジスタ1は6ビツトの
レジスタであり、3ビツトのバイトシフト数と3ビツト
のビットシフト数とを格納し、O〜63ビットのシフト
値を示すものである。
In FIG. 1, shift number storage register 1 is a 6-bit register that stores a 3-bit byte shift number and a 3-bit bit shift number, and indicates a shift value of 0 to 63 bits.

データシフト部2は入力が128データビツトより成る
16バイトで、出力が64データビツトよシ成る8バイ
トの左シフト専用のシフタであシ、指定されたシフト数
に応じて入力データをシフトするものである。
The data shift unit 2 is a shifter exclusively for left shifting, with an input of 16 bytes consisting of 128 data bits and an 8 byte output consisting of 64 data bits, and shifts the input data according to the specified number of shifts. It is.

シフト数がθビットであることをシフト数格納レジスタ
1が示している場合には、入力データのビットO〜ビッ
ト63をシフトして出力し、シフト数が最大の63ビツ
トであることを示している一場合には、入力データのビ
ット63〜ビツト126をシフトして出力する。
If shift number storage register 1 indicates that the shift number is θ bits, bits O to 63 of the input data are shifted and output, indicating that the shift number is the maximum 63 bits. In one case, bits 63 to 126 of the input data are shifted and output.

バイトシフト手段4は、入力が(128データビツト+
16バリテイビツト)より成る16バイトで、出力が(
72データビツト+9パリテイビツト)より成る9バイ
トの左シフト専用のシフタであり、指定されたバイトシ
フト数に応じて、パリティビットを含めたバイト単位の
シフトを行なうものである。
The byte shift means 4 inputs (128 data bits +
16 bytes consisting of 16 variable bits) and the output is
This is a shifter exclusively for left shifting of 9 bytes consisting of 72 data bits + 9 parity bits, and performs byte-by-byte shifts including parity bits according to the specified number of byte shifts.

バイトシフト数が0であることをシフト数格納レジスタ
1が示している場合には、入力データのバイトO〜バイ
ト8をシフトして出力し、バイト数が最大の7であるこ
とを示している場合には、入力データのバイト7〜バイ
ト15をシフトして出力する。
If shift number storage register 1 indicates that the number of byte shifts is 0, byte O to byte 8 of the input data are shifted and output, indicating that the number of bytes is 7, which is the maximum. In this case, bytes 7 to 15 of the input data are shifted and output.

無効化手段5は、入力データのうちのパリティビットを
除いたデータビットを、ビットシフト数にしだがって論
理値0にセットするものである。
The invalidating means 5 sets the data bits of the input data excluding the parity bit to a logical value of 0 according to the bit shift number.

本実施例では、バイトシフト手段4を経由して得られた
入力データの9バイトに対して無効化を行かうが、バイ
トシフト手f94に入る前の16バイトの入力データに
対して無効化を行ない、その出力をバイトシフト手段4
の入力としてもよい。
In this embodiment, 9 bytes of input data obtained via the byte shift means 4 are invalidated, but 16 bytes of input data before entering the byte shift means f94 are invalidated. and the output is transferred to the byte shift means 4.
It may also be used as an input.

ビット数にしたがってデータビットの論理値を0にセッ
トするためには2通りの方法がある。
There are two ways to set the logical value of a data bit to 0 according to the number of bits.

倒t1の方法において、ビット数がOであることをシフ
ト数格納レジスタ1が示している場合には、入力データ
の各バイトにおいてバイト内ビット位置のビット0〜ビ
ツト7のデータビットの論理値をOにセットする。
In the method of t1, if the shift number storage register 1 indicates that the number of bits is O, the logical value of the data bits from bit 0 to bit 7 of the bit position within the byte is set in each byte of input data. Set to O.

ビットシフト数が1であることを示している場合には、
入力データの各バイトにおいてバイト内ビット位置のビ
ット1〜ビツト7のデータビットの論理値を0にセット
し、ビットシフト数が最大の7であることを示している
場合には、入力データの各バイトにおいてバイト内ビッ
ト位置がビット7のデータビットの値を論理値Oにする
If the number of bit shifts is 1,
In each byte of input data, if the logic value of the data bits of bits 1 to 7 in the bit position within the byte is set to 0, indicating that the number of bit shifts is the maximum of 7, each of the input data In the byte, the value of the data bit in the byte bit position bit 7 is set to the logical value O.

第2の方法において、ビット数がOであることをシフト
数格納レジスタ1が示している場合には、論理値にセッ
トすべきデータビットは存在していガい。  しかし、
ビットシフト数が1であることを示している場合には、
入力データの各バイトにおいてバイト内ビット位置のビ
ット0のデータビットの論理値をOにセットし、ビット
数が2であることを示している場合には、入力データの
各バイトにおいてバイト内ビット位置のビット0とビッ
ト1とのデータビットの論理値を0にセットする。
In the second method, if the shift number storage register 1 indicates that the number of bits is O, there are no data bits to be set to a logical value. but,
If the number of bit shifts is 1,
If the logical value of the data bit of bit 0 in the bit position within the byte is set to O in each byte of input data, indicating that the number of bits is 2, then the bit position within the byte is set in each byte of input data. The logic value of the data bits bit 0 and bit 1 of is set to 0.

ビットシフト数が最大の7であることを示している場合
には、入力データの各バイトにおいてバイト内ビット位
置がビット0〜ビツト6のデータビットの論理値をOに
する。
If the number of bit shifts is 7, which is the maximum, the logical value of the data bits in bit positions bit 0 to bit 6 in each byte of the input data is set to O.

本実施例においては、無効化手段5は+1の方法を採用
している。
In this embodiment, the invalidating means 5 employs the +1 method.

排他的論理和手段6では、バイトシフト手段4と無効化
手段5とを経由して得られた入力データの9バイトのデ
ータビットに対して、隣接する2バイトごとに排他的論
理和を増りS 8ビツトの出力を送出する。 V!J接
する2バイトとは、9バイトのデータにおけるバイト0
とノくイト1、バイト1とバイト2、バイト2とバイト
3、バイト3とバイト4、バイト4とバイト5、バイト
5とバイト6、バイト6とバイト7、ならびにバイト7
とバイト8の組合せを指すものである。
The exclusive OR means 6 increases the exclusive OR for every two adjacent bytes of the 9 bytes of data bits of the input data obtained via the byte shift means 4 and the invalidation means 5. S Sends 8-bit output. V! The two adjacent bytes are byte 0 in the 9-byte data.
Tonokuite 1, byte 1 and byte 2, byte 2 and byte 3, byte 3 and byte 4, byte 4 and byte 5, byte 5 and byte 6, byte 6 and byte 7, and byte 7
and byte 8.

パリティ発生手段7は、バイトシフト手段4の出力のパ
リティ情報と排他的論理和手段6の出力との排他的論理
和を取り、データシフト部2の出力における8バイトの
データに対する8ビツトのパリティビットを取るもので
ある。
The parity generation means 7 takes the exclusive OR of the parity information output from the byte shift means 4 and the output of the exclusive OR means 6, and generates the 8-bit parity bit for the 8-byte data output from the data shift section 2. It takes .

バイトシフト手段4からのパリティ情報出方と排他的論
理和手段6の出方との排他的論理和を取る場合には、バ
イトシフト手段4からのパリティ情報出力の有効性は無
効化手段5により、データビットの論理値を0にセット
するだめの方法に依存し、これには2通りの方法がある
When taking the exclusive OR of the output of the parity information from the byte shift means 4 and the output of the exclusive OR means 6, the validity of the parity information output from the byte shift means 4 is determined by the invalidation means 5. There are two ways to do this, depending on how to set the logical value of the data bit to zero.

本実施例における無効化手段5のように翫上記牙1の方
法を採用する場合には、バイトシフト手段4の出力のバ
イトO〜バイト7のパリティピットが使用され、上記第
2の方法を採用する場合には、バイトシフト手段4の出
力のバイト1〜バイト8のパリティビットが使用される
When the above-mentioned method 1 is adopted as in the nullification means 5 in this embodiment, the parity pits of byte O to byte 7 of the output of the byte shift means 4 are used, and the above-mentioned second method is adopted. In this case, the parity bits of bytes 1 to 8 of the output of the byte shift means 4 are used.

第2図は、バイトシフト手段4の回路構成を系統的に描
いたブロック図である。
FIG. 2 is a block diagram systematically depicting the circuit configuration of the byte shift means 4. As shown in FIG.

バイトシフト手段4は第1〜オ9の9個のシフト素子8
10〜890を具備したシフト素子アレイ8から成立つ
。 各シフト素子810〜890け16ビツトの入力に
対して9ビツトの出力を与えるものであり、3ビツトよ
り成るシフト数指定ビットにより0ビツト〜7ビツトの
左シフトを指示することが可能である。
The byte shift means 4 includes nine shift elements 8, 1st to 9th.
The shift element array 8 includes shift elements 10 to 890. Each shift element 810 to 890 provides a 9-bit output to a 16-bit input, and can instruct a left shift of 0 bits to 7 bits by a shift number designation bit consisting of 3 bits.

バイト牟位のシフトを行なうだめ、牙1〜オ9のシフト
素子810〜890において1ビツトのシフトが入力デ
ータ上の1バイトのシフトに相当するように入力データ
をビット01 ビット8、ビット16・・・・・・・・
・・・・・・・の順に第1〜オ9のシフト素子810〜
890に入力させる。
In order to perform a byte-to-byte shift, the input data is sorted from bit 01 to bit 8 to bit 16 so that a 1-bit shift corresponds to a 1-byte shift on the input data in the shift elements 810 to 890 of 1 to 9.・・・・・・・・・
. . . in the order of 1st to 9th shift elements 810 to
890.

とのバイトシフト手段4におけるシフトにより、16バ
イトの入力データから出力データとなる64ビツトのデ
ータビットを含む9バイトのデータを選択する。
By shifting the data in the byte shift means 4, 9 bytes of data including 64 data bits to be output data are selected from 16 bytes of input data.

牙3図は、無効化手段50回路構成を系統的に示すブロ
ック図である。
FIG. 3 is a block diagram systematically showing the circuit configuration of the invalidation means 50.

本実施例における無効化手段5は、デコーダ9と2人力
ゲート10とにより構成されている。
The invalidation means 5 in this embodiment is composed of a decoder 9 and a two-man power gate 10.

デコーダ9にはビットシフト数を表わす3ビツトを入力
し、出力端子a −hにより表わされているように8ビ
ツトを出力する。
Decoder 9 receives 3 bits representing the number of bit shifts and outputs 8 bits as represented by output terminals a-h.

ビットシフト数がOであることをシフト数格納レジスタ
1が示している場合には、出力端子a〜hにおける論理
値は0にセットされる。
When the shift number storage register 1 indicates that the bit shift number is O, the logic values at output terminals a to h are set to zero.

ビットシフト数が1であることを示している場合には、
出力端子aにおける論理値は1にセットされ、出力端子
b−hにおける論理値はOにセットされる。 ビットシ
フト数が2であると子c −hにおける論理値は0にセ
ットされる。
If the number of bit shifts is 1,
The logic value at output terminal a is set to 1, and the logic value at output terminals b-h is set to O. If the bit shift number is 2, the logic value in child c-h is set to 0.

ビットシフト数が最大の7であることを示している場合
には、出力端子a〜gにおける論理値は1にセットされ
、出力端子りにおける論理値はOにセットされる。
If the bit shift number indicates the maximum number of 7, the logic value at output terminals a to g is set to 1, and the logic value at output terminal 1 is set to O.

デコーダ9の出力端子a上の信号と、バイトシフト手段
4の出力の各バイトにおけるバイト内ビット位置がビッ
ト0であるデータビットとはともに2人カゲートアレイ
10の第1のANDゲー) Lotに加え、2人カゲー
トアレイ10により論理積を取る。
The signal on the output terminal a of the decoder 9 and the data bit whose in-byte bit position in each byte of the output of the byte shift means 4 is bit 0 are combined with the first AND game of the two-person gate array 10. A logical AND operation is performed using a two-person gate array 10.

上記と同様に、デコーダ9の出力端子b−hにおける信
号と、バイトシフト手段4の出力の各バイトにおけるバ
イト内ビット位置のビット1〜ビツト7のデータビット
との間でも論理積を取る。 ビットシフト数によるビッ
トシフトを行なった場合には、隣のバイトにシフトされ
るビットを除いて、バイトシフト手段4の出力データに
おける各バイト内のデータビットの論理値はOになる。
Similarly to the above, an AND is also performed between the signal at the output terminal bh of the decoder 9 and the data bits of bits 1 to 7 of the bit position within the byte in each byte of the output of the byte shift means 4. When a bit shift is performed based on the bit shift number, the logical value of the data bits in each byte in the output data of the byte shift means 4 becomes O, except for the bits shifted to the adjacent byte.

例えば、パイ)Oについて説明すれば、バイト0からシ
フトアウトするビットを除いて、バイトOのデータビッ
トの論理値は0になり、隣のバイト1のデータビットの
論理値は0になる。
For example, for pi)O, except for the bit shifted out from byte 0, the data bits of byte O have a logic value of 0, and the data bits of the adjacent byte 1 have a logic value of 0.

したがって、バイト0とバイト1とのデータビット間の
排他的論理和を取ることによシ・ビットシフト数のシフ
トによるバイト0のデータのパリティビットの変化が予
測できる。
Therefore, by calculating the exclusive OR between the data bits of byte 0 and byte 1, it is possible to predict the change in the parity bit of the data of byte 0 due to the shift of the bit shift number.

第4図は排他的論理和手段6と、パリティ発生手段7と
の回路構成を系統的に示したブロック図である。
FIG. 4 is a block diagram systematically showing the circuit configuration of the exclusive OR means 6 and the parity generating means 7.

排他的論理和手段6は、牙1〜オ8の16人力排他的論
理和素子1110〜1180を具備した16人力排他的
論理和素子アレイ11により成立ち、パリティ発生手段
7は牙1〜矛8の2人力排他的論理和素子1210〜1
280を具備した2人力排他的論理和素子アレイ12に
より成立つ。
The exclusive OR means 6 is constituted by a 16-manpower exclusive OR element array 11 having 16 man-power exclusive OR elements 1110 to 1180, numbered 1 to 08, and the parity generation means 7 is constituted by Two manual exclusive OR elements 1210-1
It is realized by the two-man exclusive OR element array 12 equipped with 280.

排他的論理和手段7は、無効化手段5の出力のバイトO
とバイト1、バイト1とバイト2、バイト2とバイト3
と云うように以下同様に、バイト7とバイト8までの2
バイトごとのデータビットの排他的論理和をそれぞれ第
1〜オ8の16人力排他的論理和素子1110〜118
0により取り、バイトシフト手段4の出力のバイト0〜
バイト7のデータに対するビットシフトによるパリティ
変化予測信号として出力する。
The exclusive OR means 7 outputs byte O of the output of the invalidation means 5.
and byte 1, byte 1 and byte 2, byte 2 and byte 3
Similarly, 2 up to byte 7 and byte 8 are
Exclusive OR of data bits for each byte is performed using 16 manual exclusive OR elements 1110 to 118, respectively.
Bytes 0 to 0 of the output of the byte shift means 4
It is output as a parity change prediction signal by bit shifting the data of byte 7.

パリティ発生手段7は排他的論理和手段6からのパリテ
ィ変化予測信号と、バイトシフト手段4の出力のバイト
0〜バイト7のパリティビットとの排他的論理和を牙1
〜オ8の2人力排他的論理和素子1210〜1280に
より取り、データシフト部2の出力の8バイトのデータ
に対する8ビツトのパリティビットを発生するものであ
る。
The parity generation means 7 generates an exclusive OR of the parity change prediction signal from the exclusive OR means 6 and the parity bits of bytes 0 to 7 of the output of the byte shift means 4.
- O8's two exclusive OR elements 1210 to 1280 generate 8 parity bits for the 8 byte data output from the data shift section 2.

以上の実施例では、各手段の動作を明確にするため、各
手段を個別の回路により具体的に説明したが、無効化手
段5はバイトシフト手段4と素子ごとに入力されるデー
タビットの数が同じであることから、一般的に無効化手
段5の構成素子に具備されている出力イネーブル機能と
、第1〜牙8のシフト素子810〜880にも具備され
ている出力イネーブル機能とを使用し、これによってバ
イトシフト手段4と無効化手段5とを一体化してハード
ウェアに構成することができる。
In the above embodiments, in order to clarify the operation of each means, each means was specifically explained using an individual circuit, but the invalidating means 5 is a byte shift means 4 and the number of data bits input for each element. Since they are the same, the output enable function that is generally provided in the components of the disabling means 5 and the output enable function that is also provided in the shift elements 810 to 880 of the first to tooth 8 are used. However, as a result, the byte shift means 4 and the invalidation means 5 can be integrated into hardware.

また、同様にして排他的論理和手段6とハIJティ発生
手段7とを一体化してハードウェアに構成することもで
きる。
Similarly, the exclusive OR means 6 and the high IJT generating means 7 can be integrated into hardware.

とれKより、パリティ発生部3における信号の時間的遅
延はバイトシフト機能における時間的遅延と、排他的論
理和機能における時間的遅延のみとなシ、データシフト
部2におけるバイトシフト機能による時間的遅延とビッ
トシフト機能による時間的遅延との和に近くなる。
From ToreK, the time delay of the signal in the parity generation unit 3 is only the time delay due to the byte shift function and the time delay due to the exclusive OR function, and the time delay due to the byte shift function in the data shift unit 2. and the time delay due to the bit shift function.

(発明の効果) 本発明は以上説明したように、パリティ発生においてバ
イトシフト手段と無効化手段とを経由して転送されてき
たパリティ生成用データを、隣接する2バイトごとに排
他的論理和を取り、排他的論理和の出力とバイトシフト
手段の出力のハリティ情報と釦より、出力データの各バ
イトごとにノ々リテイビットを発生させるように構成す
ることにより、パリティ発生における出力データのパリ
ティビットとデータビットとの間の時間的遅延の差を小
さく保つことができるため、高速素子を使用しなくても
シフト回路を高速化でき、その結果、シフト回路の高速
化においてコストの増加を防ぐことができると云う効果
がある。
(Effects of the Invention) As explained above, the present invention performs an exclusive OR operation on the parity generation data transferred via the byte shift means and the invalidation means in parity generation for every two adjacent bytes. By using the exclusive OR output, the harness information of the output of the byte shift means, and the button, the parity bit of the output data in parity generation can be changed by Since the difference in time delay between data bits can be kept small, the shift circuit can be made faster without using high-speed elements, and as a result, increasing the speed of the shift circuit can be prevented from increasing costs. There is an effect that says it can be done.

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

第1図は本発明によるシフト回路の一実施例を示すブロ
ック図である。 第2図は第1図のバイトシフト手段の構成の一実施例を
示すブロック図である。 牙3図は牙1図の無効化手段の構成の一実施例を示すブ
ロック図である。 牙4図は牙1図の排他的論理和手段とハIJティ発生手
段とを組合せだ構成の一実施例を示すブロック図である
。 1・・・シフ)M格納レジスタ 2・・・データシフト部 3+0.パリティ発生部 4・・・バイトシフト手段 5・・・無効化手段 6・・・排他的論理和手段 7・・・パリティ発生手段 8・・・シフト素子プレイ 9・・・デコーダ 10・・・2人カゲートアレイ 11・・・16人力排他的論理和素子アレイ12・・・
2人力排他的論理和素子アレイ101〜108・・・A
NDゲート 810〜890・・・シフト素子 1110〜1180・・・16人力排他的論理和素子1
210〜1280・・・2人力排他的論理和素子特許出
願人 日本電気株式会社 代理人弁理士  井 ノ ロ   壽
FIG. 1 is a block diagram showing one embodiment of a shift circuit according to the present invention. FIG. 2 is a block diagram showing an embodiment of the structure of the byte shift means of FIG. 1. FIG. 3 is a block diagram showing an example of the configuration of the invalidating means shown in FIG. 1. Fig. 4 is a block diagram showing an embodiment of a configuration in which the exclusive OR means of Fig. 1 and the high IJT generating means are combined. 1...shift) M storage register 2...data shift section 3+0. Parity generation unit 4...byte shift means 5...invalidation means 6...exclusive OR means 7...parity generation means 8...shift element play 9...decoder 10...2 Human power gate array 11...16 Human power exclusive OR element array 12...
Two-man-powered exclusive OR element array 101 to 108...A
ND gates 810-890...Shift elements 1110-1180...16 Manual exclusive OR element 1
210-1280...Two-man-powered exclusive OR element patent applicant Hisashi Inoro, patent attorney representing NEC Corporation

Claims (1)

【特許請求の範囲】[Claims] 複数バイトより成る入力データに含まれる複数のシフト
数指定ビットにより指定された任意のビット位置だけ指
定された方向にシフトして入力データのバイト数より小
さなバイト数の出力データを取出すように構成したシフ
ト回路において、前記複数のシフト数指定ビットに含ま
れたバイトシフト数指定ビットによシパリテイピットを
含めたバイト単位で出力データ幅より1バイトだけ大き
なデータを入力データから取入れるためのバイトシフト
手段と、前記複数のシフト数指定ビットに含まれたバイ
トシフト数指定ビットにより、ビット単位のシフトを行
々っだ場合に隣接パイ)Kシフトされる入カデ2り、ま
たは隣接バイトにシフトされるとトノナい入力データの
データビットのいずれかを無効化するための無効化手段
と、前記バイトシフト手段と前記無効化手段とを経由し
て転送されてきたデータに対して隣接する2バイトごと
に排他的論理和を取るための排他的論理和手段と・前記
排他的論理和手段の出力と前記バイトシフト手段の出力
のパリティ情報とにより、出力データの各バイトごとに
パリティビットを発生させるためのパリティ発生手段と
から成るパリティ発生部を具備したことを特徴とするシ
フト回路。
It is configured to shift in the specified direction by an arbitrary bit position specified by multiple shift number specification bits included in input data consisting of multiple bytes, and extract output data with a smaller number of bytes than the number of bytes of input data. In the shift circuit, a byte shift means for taking in from input data data that is one byte larger than the output data width in byte units including a sparity pit by the byte shift number designation bits included in the plurality of shift number designation bits. , when the byte shift number designation bit included in the plurality of shift number designation bits is used to perform bit-by-bit shifting, the input bits are shifted to adjacent bytes (2) or shifted to adjacent bytes. invalidating means for invalidating any of the data bits of the invalid input data; and exclusive means for every two adjacent bytes of data transferred via the byte shifting means and the invalidating means. Exclusive OR means for calculating a logical OR; and - Parity for generating a parity bit for each byte of output data based on parity information of the output of the exclusive OR means and the output of the byte shift means. 1. A shift circuit comprising a parity generation section comprising a generation means.
JP3328183A 1983-03-01 1983-03-01 Shift circuit Pending JPS59158438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3328183A JPS59158438A (en) 1983-03-01 1983-03-01 Shift circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3328183A JPS59158438A (en) 1983-03-01 1983-03-01 Shift circuit

Publications (1)

Publication Number Publication Date
JPS59158438A true JPS59158438A (en) 1984-09-07

Family

ID=12382141

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3328183A Pending JPS59158438A (en) 1983-03-01 1983-03-01 Shift circuit

Country Status (1)

Country Link
JP (1) JPS59158438A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6228833A (en) * 1985-07-31 1987-02-06 Nec Corp Shifting device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6228833A (en) * 1985-07-31 1987-02-06 Nec Corp Shifting device

Similar Documents

Publication Publication Date Title
Van der Bij et al. Two-loop correction to weak-interaction parameters due to a heavy fermion doublet
JPH01311320A (en) Overflow correcting circuit
CA1216951A (en) Alu with carry length detection
JPS5864844A (en) Synchronism detecting system
JPS6143341A (en) Adder circuit
US5007010A (en) Fast BCD/binary adder
JPS59158438A (en) Shift circuit
JPS60140428A (en) Divider
JPH0651953A (en) Adder
US5227678A (en) Fast digital comparison circuit for fuzzy logic operations
EP0189912B1 (en) Fast bcd/binary adder
US4879675A (en) Parity generator circuit and method
KR920004108B1 (en) Logic circuit having carry select adders
GB2127187A (en) Circuits for operating on N- digit operands
EP0242600A2 (en) Carry look-ahead calculating method and circuits therefor
Waite The production of completion signals by asynchronous, iterative networks
JPS6025613Y2 (en) Parity detection circuit
JPS6227864A (en) Totalizing circuit
JPH06348459A (en) Logic operation circuit
Murdocca et al. A digital design technique for optical computing
JPH0398346A (en) Cell synchronization circuit
JPS61221822A (en) Carry selection adder
KR100313931B1 (en) Control signal generating circuit
JP2561639B2 (en) Arithmetic logic unit
JP2781081B2 (en) Logical operation method by parallel operation mechanism