JPH0449415A - Segmentation shifter - Google Patents

Segmentation shifter

Info

Publication number
JPH0449415A
JPH0449415A JP16030190A JP16030190A JPH0449415A JP H0449415 A JPH0449415 A JP H0449415A JP 16030190 A JP16030190 A JP 16030190A JP 16030190 A JP16030190 A JP 16030190A JP H0449415 A JPH0449415 A JP H0449415A
Authority
JP
Japan
Prior art keywords
shifter
bit
bits
data
cut
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
JP16030190A
Other languages
Japanese (ja)
Inventor
Katsuhiko Yamada
山田 雄彦
Ichiro Fukuda
一郎 福田
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 JP16030190A priority Critical patent/JPH0449415A/en
Publication of JPH0449415A publication Critical patent/JPH0449415A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten a segmentation shifting processing time and to improve a signal processing speed by providing this segmentation shifter with a 2nd masking circuit for aligning a required bit number part with one logical value and a bidirectional shifter for shifting the output of the 2nd masking circuit in a required direction by the required number of bits. CONSTITUTION:The segmentation shifter is provided with the 1st and 2nd masking circuits 31, 32 for aligning a required bit number part to one logical value and the bidirectional shifter 35 for shifting the output 34 of the 2nd masking circuit 33 in a required direction by the required number of bits. Although this segmentation shifter is used for segmenting a required intermediate bit part 37 in data and shifting the part 37 into a required position, the shifter can be used also for segmenting a required bit part from the MSB side or the LSB side and shifting the segmented part to a required position. In any case, shifting operation can be attained only by one operation. Consequently, the segmentation shifting processing time can be shortened and the signal processing speed can be improved.

Description

【発明の詳細な説明】 [目次] 概要 産業上の利用分野 従来の技術(第10図〜第14図) 発明が解決しようとする課題 課題を解決するための手段 第1〜第3の発明(第1図〜第3図) 作用 実施例 第1実施例(第4図、第5図〉 第2実施例く第6図、第7図) 第3実施例(第8図、第9図) 発明の効果 [概要] パーソナルコンピュータや、ワークステーションにおい
て、ビットフィールド命令を実行する場合に使用される
切出しシフタ、即ち、データの一部を切出し、この切出
した部分を所望の位置にシフトする場合に使用される装
置に関し、切出しシフト処理時間を短縮し、信号処理速
度の向上化を図ることを目的とし、 切出しシフト処理の対象であるデータにつき、一方の最
端ビット側から所望のビット数部分をマスク処理し、該
所望のビット数部分を一方の論理値に揃えるための第1
のマスク回路と、該第1のマスク回路の出力につき、他
方の最端ビット側から所望のビット数部分をマスク処理
し、該所望のビット数部分を前記一方の論理値に揃える
ための第2のマスク回路と、該第2のマスク回路の出力
を所望方向に所望ビット数、シフトするための両方向シ
フタとを設けて構成する。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Prior Art (Figures 10 to 14) Problems to be Solved by the Invention Means for Solving the Problems First to Third Inventions ( (Figs. 1 to 3) Functional Examples First Embodiment (Figs. 4 and 5) Second Embodiment (Figs. 6 and 7) Third Embodiment (Figs. 8 and 9) Effects of the invention [Summary] An extraction shifter used when executing a bit field instruction in a personal computer or workstation, that is, when extracting a part of data and shifting this extracted part to a desired position. Regarding the equipment used, in order to shorten the cut-out shift processing time and improve the signal processing speed, the data to be cut-out and shifted is processed by cutting a portion of the desired number of bits from the endmost bit side on one side. The first step is to perform mask processing and align the desired number of bits to one logical value.
and a second mask circuit for masking a desired number of bits from the other endmost bit side of the output of the first mask circuit and aligning the desired number of bits with the logic value of the one. and a bidirectional shifter for shifting the output of the second mask circuit by a desired number of bits in a desired direction.

[産業上の利用分野] 本発明は、パーソナルコンピュータや、ワークステーシ
ョンにおいて、ビットフィールド命令を実行する場合に
使用される切出しシフタ、即ち、データの一部を切出し
、この切出した部分を所望の位置にシフトする場合に使
用される装置に関する。
[Industrial Application Field] The present invention is an extraction shifter used when executing a bit field instruction in a personal computer or a workstation. Regarding the equipment used when shifting to.

近年、マイクロプロセッサに、切出しシフタを内蔵させ
、ビットフィールド命令をマイクロプロセッサの命令と
して実現させるに至っている。
In recent years, microprocessors have been equipped with cut-out shifters to realize bit field instructions as microprocessor instructions.

「従来の技術] 従来、切出しシフタとして、第10図に、そのブロック
図を示すようなものが提案されている。
``Prior Art'' Conventionally, a cutout shifter, the block diagram of which is shown in FIG. 10, has been proposed.

この切出しシフタ1は、データを最上位ビット(以下、
MSBという)側にシフトする左方向シフタ2と、デー
タを最下位ビット(以下、LSBという)側にシフトす
る右方向シフタ3と、左方向シフタ4とを縦列接続して
なるものであって、マイクロプロセッサ内においては、
例えば、第11図に示すように、ALU (算術論理演
算ユニット)5やBSU(バレルシフタユニット)6と
同列に配置される。なお、7.8はレジスタ、9.10
.11はバスである。
This cutout shifter 1 converts data into the most significant bit (hereinafter referred to as
A left shifter 2 that shifts data to the MSB (hereinafter referred to as MSB), a right shifter 3 that shifts data to the least significant bit (hereinafter referred to as LSB), and a left shifter 4 are connected in cascade. Inside the microprocessor,
For example, as shown in FIG. 11, it is arranged in the same line as an ALU (arithmetic logic unit) 5 and a BSU (barrel shifter unit) 6. In addition, 7.8 is a register, 9.10
.. 11 is a bus.

かかる切出しシフタ1は、例えば、第12図に、その−
例を示すような切出しシフト処理を行う場合に使用され
る。図中、12.13は、例えば、32ヒツトのデータ
であって、この信号処理例は、データ(デスティネーシ
ョンデータ)12のMSB側からCビットの部分AとL
SB側からCビットの部分Cに挟まれた中間のbビット
の部分Bに、データ(ソースデータ)13のMSB側か
らCビットの部分りとLSB側からfビットの部分Fに
挟まれた中間のbビットの部分Eを挿入してなる新たな
32ビットのデータ14を得ようとするものである。
Such a cut-out shifter 1 is shown in FIG. 12, for example.
It is used when performing cut-out and shift processing as shown in the example. In the figure, 12.13 is, for example, 32 bits of data, and this signal processing example is based on C bits A and L from the MSB side of data (destination data) 12.
The middle b-bit part B is sandwiched between the C-bit part C from the SB side, and the intermediate b-bit part B is sandwiched between the C-bit part from the MSB side of data (source data) 13 and the f-bit part F from the LSB side. The purpose is to obtain new 32-bit data 14 by inserting the b-bit portion E of .

この場合には、まず、マスクパターン15を用意する。In this case, first, a mask pattern 15 is prepared.

このマスクパターン15は、MSB側からCビットの部
分を論理「1」、中間のbビットの部分を論理「0」、
LSB側からCビットの部分を論理「1」とするもので
ある。
This mask pattern 15 has a logic "1" for the C bit part from the MSB side, a logic "0" for the middle b bit part,
The C bit part from the LSB side is set to logic "1".

そこで、データ12とマスクパターン15との論理積を
求め、MSB側からCビットの部分AとLSB側からC
ビットの部分Cに挟まれた中間のbビットの部分を論理
「0」とするデータ16を得るようにする。
Therefore, the AND of data 12 and mask pattern 15 is calculated, and the C bit part A from the MSB side and the C bit part A from the LSB side are calculated.
Data 16 is obtained in which the middle b-bit part sandwiched between the bit parts C is set to logic "0".

他方、データ13については、第10図に示した切出し
シフタ1を使用した切出しシフト処理を行う。
On the other hand, data 13 is subjected to extraction shift processing using the extraction shifter 1 shown in FIG.

即ち、まず、データ13を左方向シフタ2においてMS
B側にCビット、シフトし、LSB側からCビットの部
分を論理「0」とするデータ17を得るようにする。次
に、このデータ17を右方向シフタ3においてLSB側
にd十fビット、シフトし、MSB側からd+fビット
の部分を論理「0」とするデータ18を得るようにする
。次に、このデータ18を左方向シフタ4においてMS
B側にCビット、シフトし、MSB側からCビットの部
分を論理「0」とし、中間のbビットの部分の論理状態
をデータ13と同一とし、LSB側からCビットの部分
を論理「0」とするデータ19を得るようにする。
That is, first, data 13 is MS
The data 17 is shifted by C bits to the B side and the C bit part is set to logic "0" from the LSB side. Next, this data 17 is shifted to the LSB side by d10f bits in the rightward shifter 3, so that data 18 is obtained in which the d+f bits from the MSB side are set to logic "0". Next, this data 18 is sent to the left shifter 4 by MS
Shift C bits to the B side, set the C bit part from the MSB side to logic "0", make the logic state of the intermediate b bit part the same as data 13, and set the C bit part from the LSB side to logic "0". ” data 19 is obtained.

そこで次に、データ16とデータ19との論理和を求め
る。ここに、データ12のMSB側からCビットの部分
AとLSB側からCビットの部分Cに挟まれた中間のb
ビットの部分Bに、データ13のMSB側からCビット
の部分りとLSB側からfビットの部分Fに挟まれた中
間のbビットの部分Eを挿入してなる新たな32ビット
のデータ14を得ることができる。
Therefore, next, the logical sum of data 16 and data 19 is calculated. Here, the intermediate b sandwiched between part A of C bits from the MSB side of data 12 and part C of C bits from the LSB side.
New 32-bit data 14 is created by inserting into bit part B an intermediate b-bit part E sandwiched between a C-bit part from the MSB side of data 13 and an f-bit part F from the LSB side. Obtainable.

[発明が解決しようとする課題] ところで、第10図従来例の切出しシフタ1を使用する
場合において、例えば、第12図に示した切出しシフト
処理を行う場合には、3回のシフト動作(左方向シフタ
2によるシフト動作、右方向シフタ3によるシフト動作
、左方向シフタ4によるシフト動作)を行う必要がある
[Problems to be Solved by the Invention] By the way, when using the conventional cutout shifter 1 shown in FIG. 10, for example, when performing the cutout shift process shown in FIG. It is necessary to perform a shift operation using the direction shifter 2, a shift operation using the right shifter 3, and a shift operation using the left shifter 4.

また、例えば、第13図に示すように、データ12のL
SB側からhビットの部分Hに、データ13のLSB側
からhビットの部分Jを挿入してなる新たなデータ20
を得ようとする場合には、データ13につき、2回のシ
フト動作、即ち、データ21.22を得るための各シフ
ト動作が必要となる。なお、23はマスクパターン、2
4はデータ12とマスクパターン23との論理積により
得られるデータを示している。
Furthermore, for example, as shown in FIG.
New data 20 obtained by inserting h-bit part J from the LSB side of data 13 into h-bit part H from the SB side
In order to obtain data 13, two shift operations are required for data 13, that is, each shift operation is required to obtain data 21 and 22. In addition, 23 is a mask pattern, 2
4 indicates data obtained by ANDing the data 12 and the mask pattern 23.

また、例えば、第14図に示すように、データ12のM
SB側からCビットの部分Gに、データ13のMSB側
からCビットの部分■を挿入してなる新たなデータ25
を得ようとする場合には、データ13につき、2回のシ
フト動作、即ち、データ26.27を得るための各シフ
ト動作が必要となる。なお、28はマスクパターン、2
つはデータ12とマスクパターン28との論理積により
得られるデータを示している。
Furthermore, for example, as shown in FIG.
New data 25 obtained by inserting the C bit part G from the MSB side of data 13 into the C bit part G from the SB side
In order to obtain data 13, two shift operations are required for each data 13, that is, each shift operation is necessary to obtain data 26 and 27. In addition, 28 is a mask pattern, 2
One shows data obtained by ANDing the data 12 and the mask pattern 28.

このように、第10図従来例の切出しシフタ1を使用す
る場合には、最大で3回、最小で2回のシフト動作が必
要となる。ここに、切出しシフト処理を大量に行う場合
には、信号処理速度の点からして、切出しシフタにおけ
るシフト動作の回数は出来るだけ少ないことが望ましい
In this way, when using the cut-out shifter 1 of the conventional example shown in FIG. 10, a maximum of three shifting operations and a minimum of two shifting operations are required. When carrying out a large amount of cutout and shift processing, it is desirable that the number of shift operations in the cutout shifter be as small as possible in terms of signal processing speed.

本発明は、かかる点に鑑み、切出しシフト処理時間を短
縮し、信号処理速度の向上化を図ることができるように
した切出しシフタを提供することを目的とする。
In view of the above, an object of the present invention is to provide a cutout shifter that can shorten cutout shift processing time and improve signal processing speed.

[課題を解決するための手段] 本発明は、次に説明する第1〜第3の発明を含み、上記
の目的は、切出した部分をどの位置にシフトさせるのか
、即ち、データの中間の任意の位置にシフトさせるのか
、最上位ビット側にシフトさせるのか、最下位ビット側
にシフトさせるのか、に応じて、これら第1〜第3の発
明のいずれかにより達成される。
[Means for Solving the Problems] The present invention includes the first to third inventions described below, and the above object is to shift the cut out portion to any position in the middle of the data. This can be achieved by any one of the first to third inventions depending on whether the signal is shifted to the most significant bit side, the least significant bit side, or the least significant bit side.

1 の   日       1 ゛ 本発明中、第1の発明による切出しシフタは、第1図に
、その原理説明図を示すように、切出しシフト処理の対
象であるデータ30につき、一方の最端ビット(例えば
、MSB)側から所望のビット数部分をマスク処理し、
この所望のビット数部分を一方の論理値(例えば、論理
「O」)に揃えるための第1のマスク回路(例えば、上
位マスク回路)31と、この第1のマスク回路(例えば
、上位マスク回路)31の出力32につき、他方の最端
ビット(例えば、LSB)側から所望のビット数部分を
マスク処理し、この所望のビット数部分を一方の論理値
(例えば、論理「0」)に揃えるための第2のマスク回
路(例えば、下位マスク回路)33と、この第2のマス
ク回路(例えば、下位マスク回路)33の出力34を所
望方向に所望ビット数、シフトするためのシフタ、いわ
ゆる両方向シフタ35とを設けて構成される。
1 Day 1 ゛As shown in FIG. 1, the extraction shifter according to the first aspect of the present invention, as shown in FIG. , MSB) from the desired number of bits,
A first mask circuit (for example, upper mask circuit) 31 for aligning this desired number of bits to one logic value (for example, logic "O"); ) 31, mask a desired number of bits from the other endmost bit (for example, LSB) side, and align this desired number of bits with one logic value (for example, logic "0"). a second mask circuit (for example, a lower mask circuit) 33, and a shifter for shifting the output 34 of the second mask circuit (for example, a lower mask circuit) 33 by a desired number of bits in a desired direction, a so-called bidirectional shifter. A shifter 35 is provided.

第2の発明(第2図) 本発明中、第2の発明による切出しシフタは、第2図に
、その原理説明図を示すように、切出しシフト処理の対
象であるデータ30中、切出し対象部分37がLSB側
に位置するようにデータ30をシフトするシフタ、いわ
ゆる右方向シフタ38と、この右方向シフタ38の出力
39のうち、切出し対象部分37以外の部分40をマス
ク処理し、この切出し対象部分37以外の部分40を一
方の論理値、例えば、論理「0」に揃えるためのマスク
回路、いわゆる上位マスク回路41とを設けて構成され
る。
Second invention (FIG. 2) In the present invention, the cut-out shifter according to the second invention, as shown in FIG. 37 is located on the LSB side, a so-called rightward shifter 38, and of the output 39 of this rightward shifter 38, a portion 40 other than the cutout target portion 37 is masked, and this cutout target portion 37 is masked. It is constructed by providing a mask circuit, a so-called upper mask circuit 41, for aligning the portion 40 other than the portion 37 to one logic value, for example, logic "0".

なお、より具体的には、例えば、切出し対象部分37の
最下位ビットの1ビット下のビット数Pをシフト値とし
て右方向シフタ38に供給すると共に、切出し対象部分
37の最上位ビットのビット数Qと、切出し対象部分3
7の最下位ビットの1ビット下のビット数Pとの差Q−
Pをマスク値として上位マスク回路41に供給するよう
に構成することができる。
More specifically, for example, the number P of bits one bit below the least significant bit of the extraction target portion 37 is supplied to the right shifter 38 as a shift value, and the bit number P of the most significant bit of the extraction target portion 37 is supplied as a shift value. Q and cutout target part 3
Difference between the least significant bit of 7 and the number of bits P below 1 bit Q-
It can be configured to supply P to the upper mask circuit 41 as a mask value.

第3の 日(第3゛ 本発明中、第3の発明による切出しシフタは、第3図に
、その原理説明図を示すように、切出しシフト処理の対
象であるデータ30中、切出し対象部分37がMSB側
に位置するようにデータ30をシフトするシフタ、いわ
ゆる左方向シフタ43と、この左方向シフタ43の出力
44のうち、切出し対象部分37以外の部分45をマス
ク処理し、この切出し対象部分37以外の部分45を一
方の論理値、例えば、論理「0」に揃えるためのマスク
回路、いわゆる下位マスク回路46とを設けて構成され
る。
3rd day (3rd) As shown in FIG. 3, the extraction shifter according to the third invention, in the data 30 that is the object of the extraction shift processing, A shifter, so-called leftward shifter 43, which shifts the data 30 so that the data 30 is located on the MSB side, and of the output 44 of this leftward shifter 43, a portion 45 other than the cutout target portion 37 is masked, and this cutout target portion is It is constructed by providing a mask circuit, a so-called lower mask circuit 46, for aligning the portion 45 other than 37 to one logic value, for example, logic "0".

なお、より具体的には、例えば、データ30のビット数
Zと、切出し対象部分37の最上位ビットのビット数Q
との差1−Qをシフト値として左方向シフタ43に供給
すると共に、データ30のビット数Zと、切出し対象部
分37の最上位ビットのビット数Qとの差Z−Qと、切
出し対象部分37の最下位ビットの1ビット下のビット
数Pとの和Z−Q+Pをマスク値として下位マスク回路
46に供給するように構成することができる。
In addition, more specifically, for example, the number of bits Z of the data 30 and the number of bits Q of the most significant bits of the extraction target portion 37
The difference 1-Q between them is supplied as a shift value to the leftward shifter 43, and the difference Z-Q between the number of bits Z of the data 30 and the number Q of the most significant bits of the cut-out target part 37 and the cut-out target part It can be configured such that the sum Z-Q+P of the number of bits P one bit below the 37 least significant bits is supplied to the lower mask circuit 46 as a mask value.

[作用] 第1の発明は、主要には、データ30の所望の中間ビッ
ト部分37を切出して、この中間ビット部分37を所望
の位置にシフトさせる場合に使用されるものであるが、
MSB側又はLSB側からの所望のビット数部分を切出
して、これを所望の位置にシフトさせる場合にも使用す
ることができる。いずれにしても、シフト動作は1回で
足りる。
[Operation] The first invention is mainly used when cutting out a desired intermediate bit portion 37 of data 30 and shifting this intermediate bit portion 37 to a desired position.
It can also be used to extract a desired number of bits from the MSB side or LSB side and shift it to a desired position. In any case, one shift operation is sufficient.

なお、第1図において、36は両方向シフタ35の出力
である。
In addition, in FIG. 1, 36 is the output of the bidirectional shifter 35.

第2の発明は、主要には、データ30の所望の中間ビッ
ト部分37又はMSB側がらの一部分を切出して、これ
をLSB側に位置させる場合に使用されるものであり、
必要とするシフト動作は1回で足りる。なお、第2図に
おいて、42は上位マスク回路41の出力である。
The second invention is mainly used when cutting out a desired intermediate bit portion 37 or a part of the MSB side of the data 30 and positioning it on the LSB side,
One shift operation is sufficient. In addition, in FIG. 2, 42 is the output of the upper mask circuit 41.

第3の発明は、主要には、データ3oの所望の中間ビッ
ト部分37又はLSB側がらの一部分を切出して、これ
をMSB側に位置させる場合に使用されるものであり、
必要とするシフト動作は1回で足りる。なお、第3図に
おいて、47は下位マスク回路46の出力である。
The third invention is mainly used when cutting out a desired intermediate bit portion 37 or a part of the LSB side of the data 3o and positioning it on the MSB side,
One shift operation is sufficient. In addition, in FIG. 3, 47 is the output of the lower mask circuit 46.

[実施例] 以下、第4図〜第9図を参照して、本発明の第1実施例
〜第3実施例につき説明する。
[Embodiments] Hereinafter, first to third embodiments of the present invention will be described with reference to FIGS. 4 to 9.

第1実施例(第4図、第5図) 第4図は、本発明の第1実施例(第1の発明の一実施例
)を示す回路図である。
First Embodiment (FIGS. 4 and 5) FIG. 4 is a circuit diagram showing a first embodiment of the present invention (an embodiment of the first invention).

本実施例においては、第1のマスク回路、例えば、上位
マスク回路31は、AND回路48〜52と、OR回路
53〜55とを設けて構成されている。なお、R(R3
〜Ro )は切出しシフト処理の対象である入力データ
、Q(Q2〜Qo)は切出し対象部分の最上位ビットの
ビット(桁)数を示す信号であるが、本実施例において
は、上位マスク回路31に供給すべきマスク値として使
用されている。また、5(S3〜So)は上位マスク回
路31の出力である。
In this embodiment, the first mask circuit, for example, the upper mask circuit 31, includes AND circuits 48 to 52 and OR circuits 53 to 55. Note that R(R3
~Ro) is the input data to be cut out and shifted, and Q (Q2 to Qo) is a signal indicating the number of bits (digits) of the most significant bit of the part to be cut out. In this embodiment, the upper mask circuit It is used as a mask value to be supplied to 31. Further, 5 (S3 to So) is the output of the upper mask circuit 31.

ここに、Qは[000]〜[100]の値を取ることが
でき、かかるQを変化させた場合における入力データR
と上位マスク回路31の出力Sとの関係は、表−1に示
すようになる。
Here, Q can take a value from [000] to [100], and the input data R when changing Q
The relationship between S and the output S of the upper mask circuit 31 is shown in Table 1.

表−1 用されている。また、T (T3〜To)は下位マスク
回路33の出力である。
Table 1. Further, T (T3 to To) is the output of the lower mask circuit 33.

ここに、Pは[000]〜[100]の値を取ることが
でき、かかるPを変化させた場合における上位マスク回
路31の出力Sと下位マスク回路33の出力Tとの関係
は表−2に示すようになる。
Here, P can take a value from [000] to [100], and the relationship between the output S of the upper mask circuit 31 and the output T of the lower mask circuit 33 when P is changed is shown in Table 2. It becomes as shown in .

表−2 このように、この上位マスク回路31は、Qで示された
ビット数だけ、LSB側がら入力データRを通過させ、
その他のビット部分については、マスクし、その論理を
「0」とするものである。
Table 2 In this way, this upper mask circuit 31 passes input data R from the LSB side by the number of bits indicated by Q.
The other bit parts are masked and their logic is set to "0".

また、第2のマスク回路、例えば、下位マスク回路33
は、AND回路56〜6oと、NOT回路61と、NO
R回路62〜64とを設けて構成されている。なお、P
(P2〜Po )は切出し対象部分の最下位ビットの1
ビット下のビット(桁)数を示す信号であるが、本実施
例においては、下位マスク回路33に供給すべきマスク
値として使このように、この下位マスク回路33は、入
力データRのワード長(本例では4ビット)がらPを引
いたビット数4−Pだけ、MSB側からデータSを通過
させ、その他のビット部分についてはマスクし、その論
理を[0」とするものである。
Further, a second mask circuit, for example, a lower mask circuit 33
are the AND circuits 56 to 6o, the NOT circuit 61, and the NO circuit.
It is configured by providing R circuits 62 to 64. In addition, P
(P2~Po) is 1 of the least significant bit of the part to be cut out
This signal indicates the number of bits (digits) below the bits, but in this embodiment, this signal is used as a mask value to be supplied to the lower mask circuit 33. In this way, the lower mask circuit 33 uses the word length of the input data R. The data S is passed from the MSB side by the number of bits (4-P, which is 4 bits in this example) minus P, and the other bits are masked and their logic is set to [0].

また、両方向シフタ35は、2ビット左方向シフタロ5
.1ビット左方向シフタ66、スリースティトバッファ
回路列67を縦列接続してなる回路と、これに並列に接
続された2ビット右方向シフタ68.1ビット右方向シ
フタ69、スリースティトバッファ回路列70を縦列接
続してなる回路と、NOT回路71とを設けて構成され
ている。
In addition, the bidirectional shifter 35 includes a 2-bit leftward shifter 5
.. A circuit consisting of a cascade connection of a 1-bit left shifter 66 and a three-stit buffer circuit array 67, a 2-bit right shifter 68, a 1-bit right shifter 69, and a three-stit buffer circuit array 70 connected in parallel. It is configured by providing circuits connected in cascade and a NOT circuit 71.

なお、Udはシフト方向表示信号、Ul、Uoはシフト
量表示信号、V (V、〜Vo)は出力データを示して
いる。
Note that Ud indicates a shift direction display signal, Ul and Uo indicate shift amount display signals, and V (V, to Vo) indicates output data.

ここに、2ビット左方向シフタ65及び2ビット右方向
シフタ68は、Ul−1のとき、シフト動作を行うよう
に構成されている。また、1ビット左方向シフタ66及
び1ビット右方向シフタ69は、Uo=1のとき、シフ
ト動作を行うように構成されている。また、スリーステ
ィトバッファ回路列67は、Ud=Oのときオン、Ud
=1のときオフ、スリースティトバッファ回路列70は
、Ud=1のときオン、Ud=Oのときオフとなる。
Here, the 2-bit left shifter 65 and the 2-bit right shifter 68 are configured to perform a shift operation when Ul-1. Further, the 1-bit left shifter 66 and the 1-bit right shifter 69 are configured to perform a shift operation when Uo=1. Further, the three-state buffer circuit array 67 is turned on when Ud=O, and is turned on when Ud=O.
When Ud=1, the three-stitch buffer circuit array 70 is off, and when Ud=1, it is on, and when Ud=O, it is off.

ここに、シフト方向表示信号Ud、シフト量表示信号U
1、Uoを変化させた場合の下位マスク回路33の出力
Tと、出力データVとの関係は、表−3に示すようにな
る。
Here, a shift direction display signal Ud, a shift amount display signal U
1. The relationship between the output T of the lower mask circuit 33 and the output data V when Uo is changed is as shown in Table 3.

表−3 このように、この両方向シフタ35は、下位マスク回路
33の出力Tを左側(MSB側)又は右側(LSB側)
に1ビット〜3ビット、シフトさせるものである。
Table 3 In this way, this bidirectional shifter 35 shifts the output T of the lower mask circuit 33 to the left side (MSB side) or the right side (LSB side).
This is to shift 1 bit to 3 bits.

かかる第1実施例においては、切出し対象部分の最上位
ビットのビット(桁)数を表示する信号Qを上位マスク
回1i’J31に供給し、切出し対象部分の最下位のビ
ットの1ビット下のビット(桁)1つ 数を表示する信号Pを下位マスク回路33に供給し、所
望のシフト方向及びシフト量を表示する信号Ud、U1
、Uoを両方向シフタ35に供給すれば、所望の切出し
対象部分を所望の位置にシフトすることができる。
In the first embodiment, a signal Q indicating the number of bits (digits) of the most significant bit of the part to be extracted is supplied to the upper mask circuit 1i'J31, and the signal Q indicating the number of bits (digits) of the most significant bit of the part to be extracted is supplied to the upper mask circuit 1i'J31, A signal P indicating the number of one bit (digit) is supplied to the lower mask circuit 33, and signals Ud and U1 indicating the desired shift direction and shift amount.
, Uo to the bidirectional shifter 35, a desired portion to be cut out can be shifted to a desired position.

例えば、第5図に示すように、入力データ[R3゜R2
+ R1,RO]につき切出しシフト処理を行い、出力
データ■として[0,R1、O,O]を得ようとする場
合には、切出し対象部分の最上位ビットのビット(桁)
数を表示する信号Qを[010]、切出し対象部分の最
下位のビットの1ビット下のビット(桁)数を表示する
信号Pを[001]、シフト方向表示信号Udを[O]
、シフト量表示信号U1、Uoを[01]と設定すれば
、上位マスク回路31の出力Sは[0,0,R1,Ro
] 、下位マスク回路33の出力Tは[0,0,R1,
O]となり、出力データ■として[0,R1,O,O]
を得ることができる。
For example, as shown in FIG. 5, input data [R3°R2
+ R1, RO], and when trying to obtain [0, R1, O, O] as output data ■, the bit (digit) of the most significant bit of the part to be extracted.
The signal Q that displays the number is [010], the signal P that displays the number of bits (digits) one bit below the least significant bit of the part to be cut out is [001], and the shift direction display signal Ud is [O]
, if the shift amount display signals U1 and Uo are set to [01], the output S of the upper mask circuit 31 becomes [0, 0, R1, Ro
], the output T of the lower mask circuit 33 is [0, 0, R1,
O], and the output data ■ is [0, R1, O, O]
can be obtained.

以下、同様に、入力データRが4ピツ1〜であることを
前提に、入力データRの所望の部分を切出=20 し、この部分を所望の位置にシフトさせることができる
。しかも、必要とするシフト動作は1回で足りる。ちな
みに、第10図従来例の場合には、3回のシフト動作を
必要とする。
Similarly, on the premise that the input data R is 4 bits 1 to 20, a desired portion of the input data R can be cut out and this portion can be shifted to a desired position. Furthermore, only one shift operation is required. Incidentally, in the case of the conventional example shown in FIG. 10, three shift operations are required.

2   (第6 、7図) 第6図は、本発明の第2実施例(第2の発明の一実施例
)を示す回路図である。
2 (FIGS. 6 and 7) FIG. 6 is a circuit diagram showing a second embodiment of the present invention (an embodiment of the second invention).

本実施例においては、右方向シフタ38は、4ビット右
方向シフタ72.2ビット右方向シフタ73.1ビット
右方向シフタ74を縦列接続して構成されている。なお
、本実施例においては、切出し対象部分の最下位ビット
の1ビット下のビット(桁)数を示す信号P(P2〜P
a)は右方向シフタ38に供給すべきシフト値として使
用されている。
In this embodiment, the right shifter 38 is configured by connecting a 4-bit right shifter 72, a 2-bit right shifter 73, and a 1-bit right shifter 74 in series. In addition, in this embodiment, a signal P (P2 to P
a) is used as the shift value to be supplied to the rightward shifter 38.

ここに、4ビット右方向シフタ72は、R21のとき、
シフト動作を行うように構成されている。また、2ビッ
ト右方向シフタ73は、P1=1のとき、シフト動作を
行うように構成されている。また、1ビット右方向シフ
タ74は、P。
Here, when the 4-bit rightward shifter 72 is R21,
It is configured to perform a shift operation. Furthermore, the 2-bit right shifter 73 is configured to perform a shift operation when P1=1. Further, the 1-bit rightward shifter 74 is set to P.

1のとき、シフト動作を行うように構成されている。When it is 1, it is configured to perform a shift operation.

なお、Pを変化させた場合における入力データRと、右
方向シフタ38の出力Wとの関係は、表4に示すように
なる。
Note that the relationship between the input data R and the output W of the rightward shifter 38 when P is changed is as shown in Table 4.

表−4 ト減算器83を介してQ−Pがマスク値として供給され
るようになされている。ここに、Q−P−X(X2〜X
o )とした場合において、マスク値Xを変化させた場
合における右方向シフタ38の出力Wと出力データVと
の関係は、表−5に示すようになる。
Table 4 QP is supplied as a mask value via the subtractor 83. Here, Q-P-X (X2~X
o), the relationship between the output W of the rightward shifter 38 and the output data V when the mask value X is changed is as shown in Table 5.

表−5 このように、この右方向シフタ38は、入力データRを
右側(LSB側)に1ビット〜4ビット、シフトさせる
ものである。
Table 5 As described above, the right shifter 38 shifts the input data R to the right (LSB side) by 1 bit to 4 bits.

また、上位マスク回路41は、AND回路75〜79と
、OR回路80〜82とを設けて構成されており、この
上位マスク回路41には、3ピツこのように、この上位
マスク回路41は、マスク値Xで示されたビット数だけ
LSB側からデータWを通過させ、その他のビット部分
についてはマスクし、その論理を「0」とするものであ
る。
Further, the upper mask circuit 41 is configured by providing AND circuits 75 to 79 and OR circuits 80 to 82, and this upper mask circuit 41 has three pins. The data W is passed from the LSB side by the number of bits indicated by the mask value X, and the other bits are masked and their logic is set to "0".

かかる第2実施例においては、切出し対象部分の最下位
のビットの1ビット下のビット(桁)数を表示する信号
Pを右方向シフタ38及び3ビット減算器83に供給す
ると共に、切出し対象部分の最上位のビットのビット(
桁〉数Qを3ビット減算器83に供給すれば、入力デー
タRから、切出し対象部分を切出して、これをLSB側
にシフトさせることができる。しかも、これを1回のシ
フト動作で行うことができる。
In the second embodiment, a signal P indicating the number of bits (digits) one bit below the least significant bit of the portion to be cut out is supplied to the right shifter 38 and the 3-bit subtractor 83, and The bits of the most significant bit of (
By supplying the digit>number Q to the 3-bit subtracter 83, it is possible to extract a portion to be extracted from the input data R and shift it to the LSB side. Moreover, this can be done in one shift operation.

例えば、第7図に示すように、入力データ[R3゜R2
,R1,RO]につき切出しシフト処理を行い、出力デ
ータ■として[0,0,0,R2]を得ようとする場合
には、切出し対象部分の最下位のビットの1ビット下の
ビット(桁)数を表示する信号Pを[010]、切出し
対象部分の最上位ビットのビット(桁)数を表示する信
号Qを[0111に設定すれば、右方向シフタ38の出
力Wは[0゜0 、 R3,R2]となり、出力データ
■として[00、O,R2]を得ることができる。
For example, as shown in FIG. 7, input data [R3°R2
, R1, RO] to obtain [0, 0, 0, R2] as the output data ■, the bit (digit) 1 bit below the lowest bit of the part to be extracted ), the output W of the rightward shifter 38 becomes [0°0]. , R3, R2], and [00, O, R2] can be obtained as output data (2).

以下、同様に、入力データRが4ビットであることを前
提に、入力データRの所望の部分を切出し、この部分を
LSB側にシフトさせることができる。しかも、必要と
するシフト動作は1回で足りる。ちなみに、第10図従
来例の場合には、2回のシフト動作を必要とする。
Similarly, on the premise that the input data R is 4 bits, a desired portion of the input data R can be extracted and this portion can be shifted to the LSB side. Furthermore, only one shift operation is required. Incidentally, in the case of the conventional example shown in FIG. 10, two shift operations are required.

第3 雄側(第8図、第9図 第8図は、本発明の第3実施例(第3の発明の一実施例
)を示す回路図である。
Third Male Side (FIGS. 8 and 9) FIG. 8 is a circuit diagram showing a third embodiment of the present invention (one embodiment of the third invention).

本実施例においては、左方向シフタ43は、1ビット左
方向シフタ84.2ビット左方向シフタ85.1ビット
左方向シフタ86を縦列接続して構成されている。
In this embodiment, the left shifter 43 is configured by connecting a 1-bit left shifter 84, a 2-bit left shifter 85, and a 1-bit left shifter 86 in series.

ここに、1ビット左方向シフタ84にはQ2が供給され
るが、この1ビット左方向シフタ84はQ2=Oでシフ
ト動作を行うように構成されている。また、2ビット左
方向シフタ85にはOR回路87を介してQ2とQlど
の論理和Q2+Q1が供給されるが、この2ビット左方
向シフタ85は、Q2+Q1=Oでシフト動作を行うよ
うに構成されている。また、1ビット左方向シフタ86
にはOR回路88を介してQ2とQoとの論理和Q2+
QOが供給されるが、この2ビット左方向シフタ86は
、Q2+QO=Oでシフト動作を行うように構成されて
いる。なお、OR回路87.88を含んで構成される回
路99は、(4−Q)演算器を構成している。
Here, Q2 is supplied to the 1-bit left shifter 84, and this 1-bit left shifter 84 is configured to perform a shift operation when Q2=O. Further, the 2-bit left shifter 85 is supplied with the logical sum Q2+Q1 of Q2 and Ql via the OR circuit 87, but the 2-bit left shifter 85 is configured to perform a shift operation when Q2+Q1=O. ing. Additionally, a 1-bit left shifter 86
is the logical sum Q2+ of Q2 and Qo via the OR circuit 88.
QO is supplied, and the 2-bit left shifter 86 is configured to perform a shift operation with Q2+QO=O. Note that the circuit 99 including the OR circuits 87 and 88 constitutes a (4-Q) arithmetic unit.

ここに、Qを変化させた場合における入力データRと左
方向シフタ43の出力データWとの関係は表−6に示す
ようになる。
Here, the relationship between the input data R and the output data W of the leftward shifter 43 when Q is changed is shown in Table 6.

表−6 〜93と、NOT回路94と、NOR,回路95〜97
とを設けて構成されており、この下位マスク回路46に
は、3ビット減算器98を介して4Q+Pがマスク値と
して供給されるようになされている。ここに、4  Q
 + P = Y (Y2〜Yo )とした場合におい
て、マスク値Yを変化させた場合における左方向シフタ
43の出力Wと、出力データVとの関係は、表−7に示
すようになる。
Table-6 ~93, NOT circuit 94, NOR circuit 95~97
The lower mask circuit 46 is supplied with 4Q+P as a mask value via a 3-bit subtracter 98. Here, 4 Q
In the case where +P=Y (Y2 to Yo), the relationship between the output W of the leftward shifter 43 and the output data V when the mask value Y is changed is as shown in Table 7.

表−7 このように、この左方向シフタ43は、Qに応じて、入
力データRを右側(LSB側)に1ビット〜4ビット、
シフトさせるものである。
Table 7 In this way, this leftward shifter 43 shifts input data R to the right side (LSB side) by 1 bit to 4 bits, depending on Q.
It is a shift.

また、下位マスク回路46は、AND回路89このよう
に、この下位マスク回路46は、Q−PだけMSB側か
ら左方向シフタ43の出力Wを通過させ、その他のビッ
ト部分についてはマスクし、論理「0」とするものであ
る。
Furthermore, the lower mask circuit 46 is connected to the AND circuit 89. In this way, the lower mask circuit 46 passes the output W of the leftward shifter 43 from the MSB side only by QP, masks the other bit parts, and logic It is set to "0".

かかる第3実施例においては、切出し対象部分の最下位
のビットの1ビット下のビット(桁)数を表示する信号
Pを3ビット減算器98に供給すると共に、切出し対象
部分の最上位ビットのビット(桁)数Qを3ビット減算
器98及び(4−Q)演算器9つに供給すれば、入力デ
ータRがら切出し対象部分を切出して、これをMSB側
にシフトさせることができる。しがも、これを1回のシ
フト動作で行うことができる。
In the third embodiment, a signal P indicating the number of bits (digits) one bit below the least significant bit of the part to be cut out is supplied to the 3-bit subtracter 98, and a signal P indicating the number of bits (digits) one bit below the least significant bit of the part to be cut out is supplied to the 3-bit subtracter 98; By supplying the number of bits (digits) Q to the 3-bit subtracter 98 and nine (4-Q) arithmetic units, it is possible to extract a portion to be extracted from the input data R and shift it to the MSB side. However, this can be done in one shift operation.

例えば、第9図に示すように、入力データ[R3R2,
Rt、 Ro]につき切出しシフト処理を行い、出力デ
ータ■として[R2,R1,O,O]を得ようとする場
合には、切出し対象部分の最下位のビットの1ビット下
のビット(桁)数を表示する信号Pを[001]、切出
し対象部分の最上位ビットのビット(桁)数を表示する
信号Qを[011]に設定すれば、左方向シフタ43の
出力Wは[R2゜R1,RO,O]となり、出力データ
Vとして[R2゜R1,O,O]を得ることができる。
For example, as shown in FIG. 9, input data [R3R2,
Rt, Ro] to obtain [R2, R1, O, O] as output data ■, the bit (digit) 1 bit below the lowest bit of the part to be extracted. If the signal P that displays the number is set to [001] and the signal Q that displays the number of bits (digits) of the most significant bit of the part to be extracted is set to [011], the output W of the left shifter 43 becomes [R2°R1 , RO, O], and [R2°R1, O, O] can be obtained as the output data V.

以下、同様に、入力データRが4ビットであることを前
提に、入力データRの所望の部分を切出し、この部分を
MSB側にシフトさせることができる。しかも、必要と
するシフ、ト動作は1回で足りる。ちなみに、第10図
従来例の場合には、2回のシフト動作を必要とする。
Similarly, on the premise that the input data R is 4 bits, a desired portion of the input data R can be extracted and this portion can be shifted to the MSB side. Moreover, only one shift and toggle operation is required. Incidentally, in the case of the conventional example shown in FIG. 10, two shift operations are required.

[発明の効果] 本発明中、第1の発明によれば、切出しシフト処理の対
象であるデータの所望の部分を切出し、この部分を所望
の位置にシフトさせる場合に、1回のシフト動作で、こ
れを行うことができるので、かかる種類の切出しシフト
処理を行う場合に、この第1の発明を使用する場合には
、切出しシフト処理時間を短縮し、信号処理速度の向上
化を図ることができる。
[Effects of the Invention] According to the first aspect of the present invention, when a desired portion of data to be subjected to cut-out and shift processing is cut out and this portion is shifted to a desired position, a single shift operation is performed. , since this can be done, when using this first invention when performing this type of cut-out shift processing, it is possible to shorten the cut-out shift processing time and improve the signal processing speed. can.

本発明中、第2の発明によれば、切出しシフト処理の対
象であるデータの所望の部分を切出し、この部分をLS
B側にシフトさせる場合に、1回のシフト動作で、これ
を行うことができるので、かかる種類の切出しシフト処
理を行う場合に、この第2の発明を使用する場合には、
切出しシフト処理時間を短縮し、信号処理速度の向上化
を図ることができる。
According to the second aspect of the present invention, a desired part of the data to be subjected to the cut-out and shift processing is cut out, and this part is transferred to the LS.
When shifting to the B side, this can be done with one shift operation, so when using this second invention when performing this type of cut-out shift processing,
It is possible to shorten the cut-out shift processing time and improve the signal processing speed.

本発明中、第3の発明によれば、切出しシフト処理の対
象であるデータの所望の部分を切出し、この部分をMS
B側にシフトさせる場合に、1回のシフト動作で、これ
を行うことができるので、かかる種類の切出しシフト処
理を行う場合に、この第3の発明を使用する場合には、
切出しシフト処理時間を短縮し、信号処理速度の向上化
を図ることができる。
According to the third aspect of the present invention, a desired portion of the data to be subjected to the cut-out and shift processing is cut out, and this portion is transferred to the MS.
When shifting to the B side, this can be done with one shift operation, so when using this third invention when performing this type of cut-out shift processing,
It is possible to shorten the cut-out shift processing time and improve the signal processing speed.

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

第1図は第1の発明の原理説明図、 第2図は第2の発明の原理説明図、 第3図は第3の発明の原理説明図、 第4図は第1実施例を示す回路図、 第5図は第1実施例の動作の一例を示す図、第6図は第
2実施例を示す回路図、 第7図は第2実施例の動作の一例を示す図、第8図は第
3実施例を示す回路図、 第9図は第3実施例の動作の一例を示す図、第10図は
従来の切出しシフタを示すブロック図、第11図は切出
しシフタを内蔵したマイクロプロセッサの要部を示すブ
ロック図、 第12図は切出しシフト処理の一例を示す図、第13図
は切出しシフト処理の他の例を示す図、第14図は切出
しシフト処理の更に他の例を示す図である。 (第1図において) 30・・・切出しシフト対象データ 31・・・第1のマスク回路(上位マスク回路)33・
・・第2のマスク回路(下位マスク回路)35・・・両
方向シフタ 36・・・出力データ (第2図において〉 38・・・右方向シフタ 41・・・上位マスク回路 42・・・出力データ (第3図において〉 43・・・左方向シフタ 46・・・下位マスク回路 47・・・出力データ ヘ の す
Fig. 1 is an explanatory diagram of the principle of the first invention, Fig. 2 is an explanatory diagram of the principle of the second invention, Fig. 3 is an explanatory diagram of the principle of the third invention, and Fig. 4 is a circuit showing the first embodiment. 5 is a diagram showing an example of the operation of the first embodiment, FIG. 6 is a circuit diagram showing the second embodiment, FIG. 7 is a diagram showing an example of the operation of the second embodiment, and FIG. 8 is a diagram showing an example of the operation of the second embodiment. is a circuit diagram showing the third embodiment, FIG. 9 is a diagram showing an example of the operation of the third embodiment, FIG. 10 is a block diagram showing a conventional cut-out shifter, and FIG. 11 is a microprocessor with a built-in cut-out shifter. 12 is a diagram showing an example of the cut-out shift process, FIG. 13 is a diagram showing another example of the cut-out shift process, and FIG. 14 is a diagram showing still another example of the cut-out shift process. It is a diagram. (In FIG. 1) 30... Data to be cut out and shifted 31... First mask circuit (upper mask circuit) 33.
...Second mask circuit (lower mask circuit) 35...Bidirectional shifter 36...Output data (in Fig. 2) 38...Rightward shifter 41...Upper mask circuit 42...Output data (In Fig. 3) 43...Leftward shifter 46...Lower mask circuit 47...Output data

Claims (1)

【特許請求の範囲】 1、切出しシフト処理の対象であるデータ(30)につ
き、一方の最端ビット側から所望のビット数部分をマス
ク処理し、該所望のビット数部分を一方の論理値に揃え
るための第1のマスク回路(31)と、 該第1のマスク回路(31)の出力(32)につき、他
方の最端ビット側から所望のビット数部分をマスク処理
し、該所望のビット数部分を前記一方の論理値に揃える
ための第2のマスク回路(33)と、 該第2のマスク回路(33)の出力(34)を所望方向
に所望ビット数、シフトするための両方向シフタ(35
)とを 設けて構成されていることを特徴とする切出しシフタ。 2、切出しシフト処理の対象であるデータ(30)中、
切出し対象部分(37)が最下位ビット側に位置するよ
うに前記データ(30)をシフトするための右方向シフ
タ(38)と、 該右方向シフタ(38)の出力(39)のうち前記切出
し対象部分(37)以外の部分 (40)をマスク処理し、該切出し対象部分(37)以
外の部分(40)を一方の論理値に揃えるための上位マ
スク回路(41)とを 設けて構成されていることを特徴とする切出しシフタ。 3、前記切出し対象部分(37)の最下位ビットの1ビ
ット下のビット数(P)をシフト値として前記右方向シ
フタ(38)に供給すると共に、前記切出し対象部分(
37)の最上位ビットのビット数(Q)と、前記切出し
対象部分(37)の最下位ビットの1ビット下のビット
数(P)との差(Q−P)をマスク値として前記上位マ
スク回路(41)に供給するように構成されていること
を特徴とする請求項2記載の切出しシフタ。 4、切出しシフト処理の対象であるデータ(30)中、
切出し対象部分(37)が最上位ビット側に位置するよ
うに前記データ(30)をシフトするための左方向シフ
タ(43)と、 該左方向シフタ(43)の出力(44)のうち前記切出
し対象部分(37)以外の部分 (45)をマスク処理し、該切出し対象部分(37)以
外の部分(45)を一方の論理値に揃えるための下位マ
スク回路(46)とを 設けて構成されていることを特徴とする切出しシフタ。 5、前記データ(30)のビット数(Z)と、前記切出
し対象部分(37)の最上位ビットのビット数(Q)と
の差(Z−Q)をシフト値として前記左方向シフタ(4
3)に供給すると共に、前記データ(30)のビット数
(Z)と、前記切出し対象部分(37)の最上位ビット
のビット数(Q)との差(Z−Q)と、前記切出し対象
部分(37)の最下位ビットの1ビット下のビット数(
P)との和(Z−Q+P)をマスク値として前記下位マ
スク回路(46)に供給するように構成されていること
を特徴とする請求項4記載の切出しシフタ。
[Claims] 1. For the data (30) to be cut out and shifted, a desired number of bits is masked from one endmost bit side, and the desired number of bits is set to one logical value. A first mask circuit (31) for alignment, and a desired number of bits of the output (32) of the first mask circuit (31) are masked from the other endmost bit side, and the desired bits are a second mask circuit (33) for aligning the number part to the one logical value; and a bidirectional shifter for shifting the output (34) of the second mask circuit (33) by a desired number of bits in a desired direction. (35
). 2. Among the data (30) that is the target of the cut-out and shift processing,
a rightward shifter (38) for shifting the data (30) so that the extraction target portion (37) is located on the least significant bit side; It is configured by providing an upper mask circuit (41) for masking a portion (40) other than the target portion (37) and aligning the portion (40) other than the cutout target portion (37) to one logical value. A cut-out shifter characterized by: 3. The number of bits (P) one bit below the least significant bit of the cut-out target portion (37) is supplied as a shift value to the rightward shifter (38), and the cut-out target portion (
37) and the number of bits (P) 1 bit below the least significant bit of the cutout target portion (37), using the difference (Q-P) as a mask value for the upper mask. The cut-out shifter according to claim 2, characterized in that it is configured to be supplied to a circuit (41). 4. Among the data (30) that is the target of the cut-out and shift processing,
a leftward shifter (43) for shifting the data (30) so that the cutout target portion (37) is located on the most significant bit side; It is configured by providing a lower mask circuit (46) for masking a portion (45) other than the target portion (37) and aligning the portion (45) other than the cutout target portion (37) to one logical value. A cut-out shifter characterized by: 5. The left shifter (4) uses the difference (Z-Q) between the number of bits (Z) of the data (30) and the number of most significant bits (Q) of the cutout target portion (37) as a shift value.
3), and the difference (Z-Q) between the number of bits (Z) of the data (30) and the number of bits (Q) of the most significant bit of the part to be cut out (37), and the number of bits to be cut out. The number of bits one bit below the least significant bit of part (37) (
5. The cut-out shifter according to claim 4, wherein the cutout shifter is configured to supply the sum (Z-Q+P) of P) to the lower mask circuit (46) as a mask value.
JP16030190A 1990-06-19 1990-06-19 Segmentation shifter Pending JPH0449415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16030190A JPH0449415A (en) 1990-06-19 1990-06-19 Segmentation shifter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16030190A JPH0449415A (en) 1990-06-19 1990-06-19 Segmentation shifter

Publications (1)

Publication Number Publication Date
JPH0449415A true JPH0449415A (en) 1992-02-18

Family

ID=15712007

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16030190A Pending JPH0449415A (en) 1990-06-19 1990-06-19 Segmentation shifter

Country Status (1)

Country Link
JP (1) JPH0449415A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729725A (en) * 1995-10-19 1998-03-17 Denso Corporation Mask data generator and bit field operation circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729725A (en) * 1995-10-19 1998-03-17 Denso Corporation Mask data generator and bit field operation circuit

Similar Documents

Publication Publication Date Title
EP0368826A2 (en) Data processing circuit
US5148386A (en) Adder-subtracter for signed absolute values
DE3314035C2 (en)
JPH04363736A (en) Information processor
JPH0769782B2 (en) Microprogrammable 32-bit cascadable bit slice
JPH0449415A (en) Segmentation shifter
US6557021B1 (en) Rounding anticipator for floating point operations
JPS6125245A (en) Rounding process circuit
AU704018B2 (en) Decimal arithmetic apparatus and method
US3752394A (en) Modular arithmetic and logic unit
JPH09198231A (en) Arithmetic processor
JP2507183B2 (en) Floating point addition / subtraction unit
JPH01158758A (en) Semiconductor integrated circuit
CN105760143A (en) Image processing execution code reconstruction method and device
US4536854A (en) Decimal arithmetic unit
US5805487A (en) Method and system for fast determination of sticky and guard bits
JPS60181833A (en) Digit matching circuit for adder of floating decimal point
JPS6186839A (en) Arithmetic processor
JPS60217435A (en) Multiple accuracy floating point adding circuit
JP3198868B2 (en) Multiplication processing unit
JPS60247781A (en) Arithmetic device
JPH0799496B2 (en) Floating point mantissa digit matching circuit
JPH01128129A (en) Floating point addition/subtraction device
JPH0348330A (en) Arithmetic device
JPS6292027A (en) Division system for binary number with code