JPS6136256B2 - - Google Patents

Info

Publication number
JPS6136256B2
JPS6136256B2 JP54025289A JP2528979A JPS6136256B2 JP S6136256 B2 JPS6136256 B2 JP S6136256B2 JP 54025289 A JP54025289 A JP 54025289A JP 2528979 A JP2528979 A JP 2528979A JP S6136256 B2 JPS6136256 B2 JP S6136256B2
Authority
JP
Japan
Prior art keywords
field
register
instruction
data
processing
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
JP54025289A
Other languages
Japanese (ja)
Other versions
JPS55118153A (en
Inventor
Hiroshi Kadota
Katsumi Miura
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
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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP2528979A priority Critical patent/JPS55118153A/en
Publication of JPS55118153A publication Critical patent/JPS55118153A/en
Publication of JPS6136256B2 publication Critical patent/JPS6136256B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 本発明は複数個のオペランドフイールドからな
る命令語に基づき処理を実行する改良された演算
処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an improved arithmetic processing device that executes processing based on instruction words consisting of a plurality of operand fields.

ここで複数のオペランドフイールドとは基本的
には以下の三つの要素を含む。
Here, the multiple operand fields basically include the following three elements.

1 演算指示フイールド(OPフイールド) 2 信号源フイールド(SCフイールド) 3 結果格納先フイールド(DSフイールド) ここで、演算指示フイールド(OPフイール
ド)とは、装置が演算処理すべき内容を指示する
フイールドで、信号源フイールド(SCフイール
ド)とは、この演算処理に用いられるデータ(ア
ドレスデータ、演算用データ等)を指示するフイ
ールドで、結果格納先フイールド(DSフイール
ド)とは、演算処理の結果を格納するためのデー
タフイールドである。この様なフイールド体系か
らなる命令としてはデータの転送命令等がある。
1 Operation instruction field (OP field) 2 Signal source field (SC field) 3 Result storage field (DS field) Here, the operation instruction field (OP field) is a field that instructs the content to be processed by the device. The signal source field (SC field) is a field that specifies the data used in this calculation process (address data, calculation data, etc.), and the result storage field (DS field) is a field that stores the result of the calculation process. This is a data field for An example of an instruction having such a field system is a data transfer instruction.

一例としてレジスタ転送命令を参照すると、レ
ジスタR1からレジスタR2へデータを転送させる
ためには、MOV R1,R2……(1)として表わされ
る。
Referring to a register transfer instruction as an example, in order to transfer data from register R 1 to register R 2 , it is expressed as MOV R 1 , R 2 . . . (1).

ここでMOVとは演算指示フイールドに書かれ
た転送命令で、R1,R2は信号源フイールド及び
格納先フイールドに書かれた命令でレジスタR1
に格納されているデータを取り出し、レジスタ
R2に格納することを意味する。
Here, MOV is a transfer instruction written in the operation instruction field, R 1 and R 2 are instructions written in the signal source field and storage destination field, and register R 1
Retrieve the data stored in the register and
Means to store in R 2 .

今、信号源フイールドと格納先フイールドとに
書かれた内容が同一の内容(例えばR1)であれ
ば、(1)はMOV R1,R2……(2)となり、レジスタ
R1の内容をレジスタR1に移す、即ち動作として
はNO OPERATION(NOP)命令を実行するこ
とになる。例えばnビツトで1個の命令フイール
ドが構成されている場合には2n個のレジスタを
設定することができる。従つて、前述のMOV命
令に対して各々2n個のNOP動作があり、この動
作を実行せしめるのに2n個の命令が用意されて
いる。この2n個の命令に対する動作は、いずれ
も同一のNOP動作であり、これは取りも直さ
ず、同一の動作を行なわしめるのに1個の命令で
十分である所を2n個もの命令を使用しているこ
とになり、命令数の制限が厳しいマイクロプロセ
ツサにおいては、命令の有効利用を妨げる大きな
原因であつた。しかしながら従来の演算処理装置
では、上述の様なNOP動作を検知する手段をも
つていないため、結果としては同一のNOP動作
を実行させるのに2n個の命令数を使用せざるを
えなかつた。即ち、第1図に示すように従来の演
算処理装置は、命令コードを解読するデコーダ1
によつて解読された各フイールドが、i1〜ik
る制御信号として各処理ブロツクあるいは記憶ブ
ロツクへ伝送される様子を示したものである。前
述の様なレジスタ転送命令1がデコーダ1で解読
されると、レジスタR1〜Rn内のデータをバスB
を通して他のレジスタR1〜Rnへ送るゲート回路
2,3を制御するとともにレジスタR1を選択し
てレジスタR2へバスBを介してデータの転送を
行う。しかしながらMOV R1,R2……(2)のよう
な命令の場合は、レジスタR2からレジスタR1
データが転送されるだけで、プログラム進行の都
合上の必要性はあつても実質的なプログラムの処
理を行わない所謂NOP動作となる。この様な
NOP動作が最大2n回行われているとすると、命
令数に制限の厳しい演算処理装置においては、命
令の有効利用の点で大きな欠点であり、又演算処
理速度の低下を招く大きな原因でもあつた。
Now, if the contents written in the signal source field and the storage destination field are the same (for example, R 1 ), (1) becomes MOV R 1 , R 2 ... (2), and the register
The contents of R 1 are transferred to register R 1 , that is, the NO OPERATION (NOP) instruction is executed. For example, if one instruction field is made up of n bits, 2 n registers can be set. Therefore, there are 2 n NOP operations for each of the above-mentioned MOV instructions, and 2 n instructions are prepared to execute these operations. The operations for these 2 n instructions are all the same NOP operation. In microprocessors where the number of instructions is strictly limited, this has been a major cause of hindering the effective use of instructions. However, conventional arithmetic processing units do not have a means to detect NOP operations as described above, and as a result, they have no choice but to use 2 n instructions to execute the same NOP operation. . That is, as shown in FIG. 1, the conventional arithmetic processing device has a decoder 1 that decodes instruction codes.
This figure shows how each field decoded by the above is transmitted to each processing block or storage block as control signals i 1 to i k . When register transfer instruction 1 as described above is decoded by decoder 1, the data in registers R1 to Rn is transferred to bus B.
It controls the gate circuits 2 and 3 that send data to the other registers R1 to Rn through the bus B, selects the register R1 , and transfers data to the register R2 via the bus B. However, in the case of an instruction like MOV R 1 , R 2 ...(2), data is simply transferred from register R 2 to register R 1 , and even if it is necessary for the convenience of program progress, it is not practical. This is a so-called NOP operation in which no program processing is performed. Like this
If the NOP operation is performed a maximum of 2 n times, it is a major drawback in terms of effective use of instructions in arithmetic processing devices where the number of instructions is strictly limited, and is also a major cause of slowing down the arithmetic processing speed. Ta.

本発明の目的は、命令コードの含まれる処理機
能を拡大し、命令の有効利用を計るとともに高速
処理を実行する演算処理装置を提供することにあ
る。
An object of the present invention is to provide an arithmetic processing device that expands the processing functions included in instruction codes, makes effective use of instructions, and executes high-speed processing.

本発明によれば、演算指示フイールド、信号源
フイールドおよび結果格納先フイールドを含み構
成される命令を実行処理する演算処理装置におい
て、信号源フイールドと結果格納先フイールドと
の内容を比較し両者が特定の内容を有する時検出
信号を出力する検出回路を有し、前記命令の実行
処理とともに、検出信号の制御により他の処理を
並列に実行せしめることを特徴とする。
According to the present invention, in an arithmetic processing device that executes an instruction including an arithmetic instruction field, a signal source field, and a result storage field, the contents of the signal source field and the result storage field are compared, and both are identified. The present invention is characterized in that it has a detection circuit that outputs a detection signal when it has the content of , and executes other processing in parallel with the execution processing of the instruction by controlling the detection signal.

以下、図面を参照して本発明の一実施例を説明
する。
Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

尚、説明を簡単にするため、前述したレジスタ
転送命令に適用した場合の一実施例を示す。
In order to simplify the explanation, an example will be shown in which the present invention is applied to the register transfer instruction described above.

第2図はレジスタ転送命令MOV Ri,Rkを実
行する装置のブロツク図を示したもので、命令コ
ードはデコーダ4により解読され、制御信号i1
kの制御のもとにデータの入出力段のゲート回
路5,6を駆動してレジスタRi内のデータをバ
スBを介してレジスタRkに転送する。更に、こ
の装置は信号源フイールド(SC)と結果格納先
フイールド(DS)との内容を比較する比較回路
7を有しており、両者の内容が一致した時、即ち
Ri=Rkの時信号線aを介して一致信号をバスB
上のゲート回路8へ送る。ゲート回路8は一致信
号を受けるとレジスタRiから送られてきたデー
タをレジスタRiへ送る一方、他の処理機構(周
辺回路,演算部,メモリ部等)へも転送する。即
ち、本実施例によればMOV Ri,Ri命令の時、
NOP動作とともにレジスタRiのデータを他の処
理、制御系へ転送し、例えば周辺装置からのデー
タの入出力を制御する様な命令をも実行する。
FIG. 2 shows a block diagram of a device that executes register transfer instructions MOV Ri, Rk. The instruction code is decoded by the decoder 4 and the control signals i 1 to
Under the control of i k , gate circuits 5 and 6 in the data input/output stage are driven to transfer the data in register Ri to register Rk via bus B. Furthermore, this device has a comparison circuit 7 that compares the contents of the signal source field (SC) and the result storage field (DS), and when the contents of the two match, that is,
When Ri=Rk, a match signal is sent to bus B via signal line a.
It is sent to the upper gate circuit 8. When the gate circuit 8 receives the match signal, it sends the data sent from the register Ri to the register Ri, and also transfers it to other processing mechanisms (peripheral circuits, arithmetic units, memory units, etc.). That is, according to this embodiment, at the time of the MOV Ri, Ri instruction,
Along with the NOP operation, the data in the register Ri is transferred to other processing and control systems, and for example, instructions for controlling the input/output of data from peripheral devices are also executed.

比較回路7としては、例えば第3図に示すよう
な論理回路でよい。信号源フイールドを形成する
ビツト信号SC1〜SCoと結果格納先フイールドを
形成するビツト信号DS1〜DSoの各々がn個の排
他的NORゲート10の入力端に接続され、その
出力がANDゲート11に入力され、一致信号1
2を出力する。この場合、SCデータとDSデータ
が同一の時排他的NORゲート10から全てHレ
ベルの信号がANDゲート11に入力され、一致
信号Hレベルが出力される。更にこの一致信号に
制御されるゲート回路8は第4図に示すようにレ
ジスタからのビツトデータを転送するバスライン
13の各々から分岐されたビツト線と比較回路7
からの一致信号12とを入力とするn個のAND
ゲート14を有し、ANDゲート14からの出力
は各々所望の処理制御部へ伝送される。
The comparison circuit 7 may be a logic circuit as shown in FIG. 3, for example. The bit signals SC 1 to SC o forming the signal source field and the bit signals DS 1 to DS o forming the result storage field are each connected to the input terminals of n exclusive NOR gates 10, and their outputs are ANDed. Input to gate 11, match signal 1
Outputs 2. In this case, when the SC data and DS data are the same, all H level signals are input from the exclusive NOR gate 10 to the AND gate 11, and a match signal of H level is output. Further, the gate circuit 8 controlled by this coincidence signal connects the bit lines branched from each of the bus lines 13 for transferring bit data from the register and the comparison circuit 7 as shown in FIG.
n AND with matching signal 12 from
It has gates 14, and the outputs from the AND gates 14 are transmitted to respective desired processing control units.

この様に本実施例によれば信号源フイールドと
結果格納先フイールドとの内容が一致した時、
NOP動作(同一のレジスタへバスを介してデー
タを再入力する)とともに、レジスタの有するデ
ータを他の処理制御部へも伝達できる。従つて一
つの命令で2つの処理実行を行うことができ、全
体的な処理速度を向上せしめることができる。
In this way, according to this embodiment, when the contents of the signal source field and the result storage destination field match,
In addition to the NOP operation (re-inputting data to the same register via the bus), the data held in the register can also be transmitted to other processing control units. Therefore, two processes can be executed with one instruction, and the overall processing speed can be improved.

尚、本実施例ではNOP動作を検出して複数の
処理を並列に実行する例を提示したが、必ずしも
NOP動作に限ることなく、異なるアドレス値を
有するレジスタ間でのデータ転送の時にも応用で
きることは明らかであり、比較回路やゲート回路
の回路構成も種々の論理回路の組み合わせにより
達成できる。
Although this embodiment presents an example of detecting a NOP operation and executing multiple processes in parallel, this is not necessarily the case.
It is clear that the present invention can be applied not only to NOP operation but also to data transfer between registers having different address values, and circuit configurations of comparison circuits and gate circuits can be achieved by combining various logic circuits.

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

第1図は従来の演算処理装置のブロツク図で、
第2図は本発明の一実施例を示す演算処理装置の
ブロツク図で、第3図は本実施例で用いられる比
較回路の一例を示す論理回路図で、第4図はゲー
ト回路の一例を示す論理回路図である。 1,4……デコーダ、2,3,5,6……ゲー
ト、7……比較回路、8……ゲート回路、R1
Rn……レジスタ、B……バス、a……信号線、
10……排他的NORゲート、11,14……
ANDゲート、12……一致信号、13……バ
ス。
Figure 1 is a block diagram of a conventional arithmetic processing device.
FIG. 2 is a block diagram of an arithmetic processing device showing an embodiment of the present invention, FIG. 3 is a logic circuit diagram showing an example of a comparison circuit used in this embodiment, and FIG. 4 is a block diagram showing an example of a gate circuit. FIG. 1, 4... Decoder, 2, 3, 5, 6... Gate, 7... Comparison circuit, 8... Gate circuit, R 1 ~
Rn...Register, B...Bus, a...Signal line,
10...exclusive NOR gate, 11, 14...
AND gate, 12...match signal, 13...bus.

Claims (1)

【特許請求の範囲】[Claims] 1 処理内容を指示する演算指示領域を含む複数
個の領域からなる命令を解読し前記演算指示領域
の内容に基づいた処理を実行する演算処理装置に
おいて、前記複数個の領域のうち少なくとも2個
の領域に含まれている内容が所定の内容である時
検出信号を出力する検出手段を有し、前記演算指
示領域の内容に基づいた前記処理を実行する一
方、前記検出信号の制御のもとに他の処理を実行
することを特徴とする演算処理装置。
1. In an arithmetic processing device that decodes an instruction consisting of a plurality of areas including an arithmetic instruction area that instructs processing contents and executes processing based on the contents of the arithmetic instruction area, at least two of the plurality of areas It has a detection means that outputs a detection signal when the content included in the area is a predetermined content, and executes the processing based on the content of the calculation instruction area, while under the control of the detection signal. An arithmetic processing device characterized by executing other processing.
JP2528979A 1979-03-05 1979-03-05 Operation processor Granted JPS55118153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2528979A JPS55118153A (en) 1979-03-05 1979-03-05 Operation processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2528979A JPS55118153A (en) 1979-03-05 1979-03-05 Operation processor

Publications (2)

Publication Number Publication Date
JPS55118153A JPS55118153A (en) 1980-09-10
JPS6136256B2 true JPS6136256B2 (en) 1986-08-18

Family

ID=12161850

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2528979A Granted JPS55118153A (en) 1979-03-05 1979-03-05 Operation processor

Country Status (1)

Country Link
JP (1) JPS55118153A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2671438B2 (en) * 1988-10-06 1997-10-29 日本電気株式会社 Information processing device
EP1164479B1 (en) 1993-05-27 2007-05-09 Matsushita Electric Industrial Co., Ltd. Program converting unit

Also Published As

Publication number Publication date
JPS55118153A (en) 1980-09-10

Similar Documents

Publication Publication Date Title
US4740893A (en) Method for reducing the time for switching between programs
IL43641A (en) Programmable processor
JPS59174948A (en) Information processing device
US4677549A (en) Pipelined data processor system having increased processing speed
JPS6042966B2 (en) data processing system
JPS6136256B2 (en)
JPS63253433A (en) Arithmetic processor
US4747066A (en) Arithmetic unit
JPH0830971B2 (en) Programmable controller
JPH01116702A (en) Sequence controller
US5220670A (en) Microprocessor having ability to carry out logical operation on internal bus
JPH0326862B2 (en)
JPS61223964A (en) Data transfer device
GB1076775A (en) Data processing apparatus
US5774740A (en) Central processing unit for execution of orthogonal and non-orthogonal instructions
JPS61256438A (en) Microprocessor
JPH0421125A (en) Arithmetic processor
JPS62194545A (en) Program rewriting device for data flow type computer
JPS6113345A (en) Processor of tagged data
JPH0991272A (en) Vector data processor
JPH031234A (en) Information processor
JPH04177527A (en) Arithmetic processing circuit
JPS6116111B2 (en)
JPS61221844A (en) Microcomputer
JP2000207227A (en) Arithmetic and logic unit