[go: up one dir, main page]

JPS6293730A - Central processor - Google Patents

Central processor

Info

Publication number
JPS6293730A
JPS6293730A JP23253985A JP23253985A JPS6293730A JP S6293730 A JPS6293730 A JP S6293730A JP 23253985 A JP23253985 A JP 23253985A JP 23253985 A JP23253985 A JP 23253985A JP S6293730 A JPS6293730 A JP S6293730A
Authority
JP
Japan
Prior art keywords
bit
data
bit field
bits
storage device
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
JP23253985A
Other languages
Japanese (ja)
Inventor
Jiro Usui
臼井 二郎
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
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 filed Critical NEC Corp
Priority to JP23253985A priority Critical patent/JPS6293730A/en
Publication of JPS6293730A publication Critical patent/JPS6293730A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify many macro-instructions, and to improve the processing speed by storing a bit field contained in a storage device, into a register by reversing its bit sequence. CONSTITUTION:A data of 32 bits containing a bit field of 16 bits, which has been read out of a storage device 1 is read in a data register 3, and inputted to a shift device 4. By the shift device 4, the data of 32 bits is shifted to the left by the number of bits shown by a bit position, the bit field becomes upper 16 bits of the data, and as for this shifted data, only the upper 16 bits are inputted to a shift register 5 through a data bus 12. This state is an output of upper 16 bits of the shift device 4, and each bit of the bit field is represented as (a), (b),...(o), and (p) from the upper bits. As for the data selector 5, a select signal 13 becomes a state of '1' by a control device 7, therefore, it is outputted in a state that a bit sequence of an input has been reversed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、中央処理装置に関し、特に演算を簡単にする
ために、記憶装置に格納されたデータに含まれるlワー
ド長のビット長のビ・7ト順を変化させるビットフィー
ルド操作装置を備えた中央処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a central processing unit, and in particular to a central processing unit that processes a bit-length bit of l word length contained in data stored in a storage device in order to simplify calculations. - It relates to a central processing unit equipped with a bit field manipulation device that changes the order of bits.

〔概 要〕〔overview〕

本発明は、記憶装置に格納されたデータに含まれる1ワ
ード長のビットフィールドのビット順を変化させるビッ
トフィールド操作装置を備えた中央処理装置において、 上記ビットフィールド操作装置が、上記記憶装置に格納
された1ワード長のビットフィールドを含むデータを読
出し、この1ワード長のビットフィールドのビット順を
逆にして格納する手段を含むことにより、 ビット順を逆にする場合の処理速度を高めたものである
The present invention provides a central processing unit equipped with a bit field manipulation device that changes the bit order of a one-word length bit field included in data stored in a storage device. The processing speed when reversing the bit order is increased by including means for reading out data containing a 1-word length bit field, reversing the bit order of the 1-word length bit field, and storing it. It is.

〔従来の技術〕[Conventional technology]

従来、この種のビットフィールド操作装置は、記憶装置
よりデータを読込みビットフィールドのデータをレジス
タに格納するだけでビット順を逆にするものはなかった
Conventionally, this type of bit field manipulation device simply reads data from a storage device and stores the bit field data in a register, but does not reverse the bit order.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のビットフィールド操作装置は、記1.!
装置よりビットフィールドを読出し、レジスタに格納す
るだけなので、ビットフィールドのビット順を逆にする
場合、多くのマクロ命令を必要とし、処理速度が遅い欠
点がある。
The conventional bit field manipulation device described above is as follows. !
Since the bit field is simply read from the device and stored in the register, reversing the bit order of the bit field requires many macro instructions and has the disadvantage of slow processing speed.

本発明の目的は、上記の欠点を除去することにより、ビ
ット順を逆にする場合の処理速度を高めたビットフィー
ルド操作装置を備えた中央処理装置を提供することにあ
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a central processing unit equipped with a bit field manipulation device that increases the processing speed when reversing the bit order by eliminating the above-mentioned drawbacks.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、記t9装置に格納されたデータの1ワード長
のビットフィールドのピノ1−順を変化させるビットフ
ィールド操作装置を備えた中央処理装置において、上記
記憶装置は1ワード長のビットフィールドを含む2ワー
ド長のデータを格納する構成であり、上記ビットフィー
ルド操作装置は、上記1ワード長のビットフィールドの
ビット順を逆にするマクロ命令と、このマクロ命令によ
り指定される上記ビットフィールドのアドレスと、その
ビットポジションとを格納した命令記憶装置と、上記記
憶装置より読出した上記ビットフィールドを含む2ワー
ド長のデータを格納するデータレジスタと、このデータ
レジスタに格納された上記データを上記ビットポジショ
ンだけ左にシフトし上記ビットフィールドを左づめにす
るシフト装置と、このシフト装置により左づめされたビ
ットフィールドのビット順を逆にするように接続された
データセレクタと、このデータセレクタによりビット順
を逆にされた上記ビットフィールドを格納するレジスタ
と、上記マクロ命令の実行を制御する制御装置とを含む
ことを特徴とする。
The present invention provides a central processing unit equipped with a bit field manipulation device for changing the order of one word length bit fields of data stored in a t9 device, wherein the storage device stores one word length bit fields. The bit field manipulation device stores a macro instruction for reversing the bit order of the one word length bit field, and an address of the bit field specified by this macro instruction. and the bit position thereof; a data register storing two-word length data including the bit field read from the storage device; and a data register storing the data stored in the data register at the bit position. a data selector connected to reverse the bit order of the bit field left-justified by this shift device; The method is characterized in that it includes a register that stores the inverted bit field, and a control device that controls execution of the macro instruction.

C作 用〕 本発明は、記憶装置に1ワード長のビットフィールドを
含む2ワード長のデータを格納し、命令記憶装置に格納
されたマクロ命令に従ってそのデータをデータレジスタ
に読出し格納し順次シフト装置に送出される。シフト装
置ではデータをあらかじめ命令記憶装置に格納されてい
るビットポジション(ビットフィールドがそのアドレス
の何ビット目から始まるかを示す。)が示すヒツト数だ
け左にシフトし上位のビットにビットフィールドをセッ
トする。この上位のビットにシフトされたビットフィー
ルドをデータセレクタでそのビット順を逆にする。そし
てこのビット順が逆にされたビットフィールドをレジス
タに格納する。かくして記憶H1に格納された1ワード
長のビットフィールドのビット順を逆して格納すること
ができる。
C operation] The present invention stores 2-word length data including a 1-word length bit field in a storage device, reads and stores the data in a data register according to a macro instruction stored in an instruction storage device, and sequentially shifts the data to a data register. sent to. The shift device shifts the data to the left by the number of hits indicated by the bit position (indicates from which bit of the address the bit field starts) stored in the instruction storage device in advance, and sets the bit field to the upper bit. do. The bit order of the bit field shifted to the higher order bits is reversed using a data selector. Then, this bit field with the bit order reversed is stored in a register. In this way, it is possible to reverse the bit order of the one word length bit field stored in the memory H1.

すなわち必要なマクロ命令は簡単になり処理速度の向上
が図られる。
In other words, the necessary macro instructions are simplified and the processing speed is improved.

〔実施例〕〔Example〕

以下、本発明の実施例について図面を参照して説明する
Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例を示すブロック構成図である
。1は記憶装置で1ワード長16ビソトのビットフィー
ルドを含む2ワード長32ビツトのデータを格納してい
る。2は命令記憶装置でマクロ命令とビットフィールド
のアドレスとビットポジションを格納している。3は3
2ビツトのデータレジスタで、記憶装置1から読出され
る16ビソトのビットフィールドを含む32ビツトのデ
ータを格納する。4はシフト装置でデータし・ジスタ3
のデータをビットポジションが示すヒツト数だけ左にシ
フトし、上位16と・ットにビットフィールドをセット
する。5、は16ヒ、トのデータセレクタでシフト装置
4により上位16ビ・ノドにシフトされたビットフィー
ルドのビット順が逆になるように接続される。、6はレ
ジスタでデータセレクタ5により、ビット順が逆になっ
たビットフィールドを格納する。7は制御装置で必要に
応じて1〜6の各部に制御信号を送る。10は32ビツ
トの外部ハスで、記憶装置1より続出されたビットフィ
ールドを含む32ヒツトのデータをデータレジスタ3に
格納するためのハスである。11は32ビツトのデータ
バスでデータレジスタ3のデータをシフト装置4に入力
する。12は32ピントのデータバスでシフト装置4の
出力をデータセレクタ5を通してレジスタ6に格納する
。13はデータセレクタ5のセレクト信号である。
FIG. 1 is a block diagram showing one embodiment of the present invention. 1 is a storage device which stores data of 32 bits in length of 2 words including a bit field of 16 bits in length of 1 word. 2 is an instruction storage device that stores macro instructions, bit field addresses, and bit positions. 3 is 3
A 2-bit data register stores 32-bit data including a 16-bit field read from the storage device 1. 4 is data by the shift device and register 3
Shift the data to the left by the number of hits indicated by the bit position, and set the bit field in the upper 16 bits. 5 is a 16-bit data selector connected so that the bit order of the bit field shifted to the upper 16 bits/nodes by the shift device 4 is reversed. , 6 are registers that store bit fields whose bit order has been reversed by the data selector 5. 7 is a control device which sends control signals to each part of 1 to 6 as necessary. Reference numeral 10 denotes a 32-bit external lotus for storing 32 bits of data including bit fields sequentially outputted from the storage device 1 into the data register 3. A 32-bit data bus 11 inputs the data of the data register 3 to the shift device 4. 12 is a 32-pin data bus for storing the output of the shift device 4 into the register 6 through the data selector 5. 13 is a select signal of the data selector 5.

本発明の特徴は、第1図において、命令記憶装置2、デ
ータレジスタ3、シフト装置4、データセレクタ5、シ
フトレジスタ6、制御装置7を設り、記憶装置1に1ワ
ード長のビットフィールドを含む2ワード長のデータを
格納できるようにしたものである。
The feature of the present invention is that, in FIG. 1, an instruction storage device 2, a data register 3, a shift device 4, a data selector 5, a shift register 6, and a control device 7 are provided, and a bit field of one word length is stored in the storage device 1. It is designed to be able to store 2-word length data.

次に、本実施例の動作を第2図の記憶装置1内のビット
フィールドを含むデータの説明間と、第3図のシフト装
置4の出力の説明図と、第4図のデータセレクタ5の機
能説明図とを用いて説明する。記憶装置1より読出され
た、第2図に示す16ビノトのビットフィールド含む3
2ピッ1−のデータは、外部パス10を通してデータレ
ジスタ3に読込まれる。この32ビツトのデータはデー
タバス11を通ってシフト装置4に入力される。シフト
装置4により32ビツトのデータは左にビットポジショ
ンが示すビット数だけシフトされ、第2図のBすなわち
ビットフィールドがデータの上位16ビノl−になる。
Next, the operation of this embodiment will be explained by explaining the data including bit fields in the storage device 1 in FIG. 2, by explaining the output of the shift device 4 in FIG. This will be explained using a function explanatory diagram. 3 containing the 16-bit bit field shown in FIG. 2 read from the storage device 1.
The data of 2 pins 1- is read into the data register 3 through the external path 10. This 32-bit data is input to the shift device 4 through the data bus 11. The 32-bit data is shifted to the left by the shift device 4 by the number of bits indicated by the bit position, so that B in FIG. 2, that is, the bit field, becomes the upper 16 bins of the data.

このシフトされたデータはデータバス12を通して上位
16ビノトすなわちビットフィールドのみがデータセレ
クタ5に入力される。この状態が第3図のシフト装置4
の上位16ビツトの出力で、ビットフィールドの各ビッ
トを上位からa、b。
Only the upper 16 bits, that is, the bit field, of this shifted data are input to the data selector 5 through the data bus 12. This state is the shift device 4 in Fig. 3.
The output of the upper 16 bits of the bit field is a, b from the upper order.

C1−−〜−−−−1o3pと表現している。データセ
レクタ5はセレクト信号13が制御装置7により「1」
の状態になっているため、入力のビット順が逆になった
状態で出力する。これは第4図のセレクト信号13が「
1」の場合のデータセレクタ5の出力で、ビットフィー
ルドのビット順が逆になった状態でレジスタ6に格納さ
れる。
It is expressed as C1----1o3p. The data selector 5 has the select signal 13 set to “1” by the control device 7.
, the input bit order is reversed and output. This means that the select signal 13 in FIG.
1", the output from the data selector 5 is stored in the register 6 with the bit order of the bit field reversed.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、記憶装置内のビットフ
ィールドをビット順を逆にしてレジスタに格納すること
により、ビット順を逆にするために従来必要とされた多
くのマクロ命令が面単になり処理速度が大幅に向上する
効果がある。
As explained above, the present invention reverses the bit order of a bit field in a storage device and stores it in a register, thereby simplifying the many macro instructions conventionally required to reverse the bit order. This has the effect of significantly increasing processing speed.

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

第1図は本発明の一実施例を示すブロック構成図。 第2図はビットフィールドを含むデータの説明図。 第3図は第1図のシフト装置出力の上位16ビツトの説
明図。 第4図は第1図のデータセレクタの機能説明図。 1・・・記憶装置、2・・・命令記憶装置、3・・・デ
ータレジスタ、4・・・シフト装置、5・・・データセ
レクタ、6・・・レジスタ、7・・・制御装置、10・
・・外部バス、11.12・・・データバス、13・・
・セレクト信号、A・・・ビットポジション、B・・・
ビットフィールド。
FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is an explanatory diagram of data including bit fields. FIG. 3 is an explanatory diagram of the upper 16 bits of the output of the shift device in FIG. 1. FIG. 4 is a functional explanatory diagram of the data selector shown in FIG. 1. DESCRIPTION OF SYMBOLS 1... Storage device, 2... Instruction storage device, 3... Data register, 4... Shift device, 5... Data selector, 6... Register, 7... Control device, 10・
...External bus, 11.12...Data bus, 13...
・Select signal, A...Bit position, B...
bit field.

Claims (1)

【特許請求の範囲】[Claims] (1)記憶装置に格納されたデータの1ワード長のビッ
トフィールドのビット順を変化させるビットフィールド
操作装置を備えた中央処理装置において、 上記記憶装置は1ワード長のビットフィールドを含む2
ワード長のデータを格納する構成であり、上記ビットフ
ィールド操作装置は、 上記1ワード長のビットフィールドのビット順を逆にす
るマクロ命令と、このマクロ命令により指定される上記
ビットフィールドのアドレスと、そのビットポジション
とを格納した命令記憶装置と、 上記記憶装置より読出した上記ビットフィールドを含む
2ワード長のデータを格納するデータレジスタと、 このデータレジスタに格納された上記データを上記ビッ
トポジションだけ左にシフトし上記ビットフィールドを
左づめにするシフト装置と、このシフト装置により左づ
めされたビットフィールドのビット順を逆にするように
接続されたデータセレクタと、 このデータセレクタによりビット順を逆にされた上記ビ
ットフィールドを格納するレジスタと、上記マクロ命令
の実行を制御する制御装置とを含むことを特徴とする中
央処理装置。
(1) In a central processing unit equipped with a bit field manipulation device that changes the bit order of a 1-word length bit field of data stored in a storage device, the storage device includes 2 bit fields that have a 1-word length.
The bit field manipulation device is configured to store word length data, and includes a macro instruction for reversing the bit order of the one word length bit field, an address of the bit field specified by this macro instruction, an instruction storage device that stores the bit position; a data register that stores 2-word length data including the bit field read from the storage device; a data selector connected to reverse the bit order of the bit field left-justified by the shift device; and a data selector connected to reverse the bit order of the bit field left-justified by the shift device. A central processing unit comprising: a register that stores the bit field that has been read; and a control device that controls execution of the macro instruction.
JP23253985A 1985-10-18 1985-10-18 Central processor Pending JPS6293730A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23253985A JPS6293730A (en) 1985-10-18 1985-10-18 Central processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23253985A JPS6293730A (en) 1985-10-18 1985-10-18 Central processor

Publications (1)

Publication Number Publication Date
JPS6293730A true JPS6293730A (en) 1987-04-30

Family

ID=16940911

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23253985A Pending JPS6293730A (en) 1985-10-18 1985-10-18 Central processor

Country Status (1)

Country Link
JP (1) JPS6293730A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0306260A2 (en) * 1987-09-02 1989-03-08 Raytheon Company Bit reversing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0306260A2 (en) * 1987-09-02 1989-03-08 Raytheon Company Bit reversing apparatus
EP0306260A3 (en) * 1987-09-02 1990-12-19 Raytheon Company Bit reversing apparatus

Similar Documents

Publication Publication Date Title
JP2633331B2 (en) Microprocessor
JPH0248931B2 (en)
US5019969A (en) Computer system for directly transferring vactor elements from register to register using a single instruction
JPS623461B2 (en)
JPS6041769B2 (en) Addressing method
JPS5911921B2 (en) numerical control device
JPH034936B2 (en)
JP2559868B2 (en) Information processing device
JPH08212075A (en) Information processor
JPS6293730A (en) Central processor
JPS638971A (en) Polynomial vector arithmetic and control unit
JPS6293729A (en) Central processor
JPH01230125A (en) Data processor having partial updating function of register
JPH0831033B2 (en) Data processing device
JPH01273132A (en) Microprocessor
JPH0588887A (en) Data processor
JPS63148305A (en) Quick arithmetic processing system for programmable sequence controller
JPS6325373B2 (en)
SU491952A1 (en) Device for exchanging information between RAM and processor
EP0299526B1 (en) Queue having long word length
JPH0256029A (en) General-purpose register switching method
JPS598058A (en) Microprocessor
JPS58186846A (en) Microprogram controller
JPS62145430A (en) Data processor
JPH02224041A (en) Cache memory control circuit