JPH0683624A - Processor and its control method - Google Patents

Processor and its control method

Info

Publication number
JPH0683624A
JPH0683624A JP23601092A JP23601092A JPH0683624A JP H0683624 A JPH0683624 A JP H0683624A JP 23601092 A JP23601092 A JP 23601092A JP 23601092 A JP23601092 A JP 23601092A JP H0683624 A JPH0683624 A JP H0683624A
Authority
JP
Japan
Prior art keywords
instruction
data
arithmetic
control signal
arithmetic units
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
JP23601092A
Other languages
Japanese (ja)
Inventor
Katsuhiko Ueda
勝彦 上田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP23601092A priority Critical patent/JPH0683624A/en
Publication of JPH0683624A publication Critical patent/JPH0683624A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a processor and its control method which can suppress the increase of the power consumption in the case of parallel execution of plural processing operations such as the coding and decoding operations, etc. CONSTITUTION:An instruction memory 2 stores the instructions, and an instruction pointer 1 outputs an address signal to the memory 2. An instruction decoder 4 decodes the output of the memory 2 and outputs a control signal based on the contents stored in an instruction. The 1st and 2nd arithmetic parts 9 and 11 are controlled by the control signals given from the decoder 4. The 1st and 2nd data memories 10 and 12 store the data against both parts 9 and 11 respectively and are controlled by the address signal and the control signal of the decoder 4. A data pointer 7 is controlled by the control signal of the decoder 4 and an address signal that is used in common to both memories 10 and 12 is outputted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、1つのプログラムで2
つの異なるデータを処理するプロセッサの制御方法およ
びプロセッサに関するものである。
BACKGROUND OF THE INVENTION The present invention uses two programs in one program.
The present invention relates to a control method of a processor that processes three different data and a processor.

【0002】[0002]

【従来の技術】近年、ディジタル信号処理プロセッサ
(以下「DSP 」と記す)の応用が急速に広まりつつあ
る。またDSP と呼ばれる範疇のプロセッサの中でもさら
に専用化したDSP が各種考案されている。例えばADPCM
(Adaptive Differential Pulse Code Modulation )方
式音声コーデック用に専用化したDSP の一例として、”
CCITT Standard 32 kbit/s ADPCMLSI Codec”(西谷
他、IEEE Trans. ASSP-25, No.2, pp.219-225, Feb. 19
87)に記載されているDSP が存在する。このDSP は、図
6のように、乗算器31と、シフタ/正規化器32と、
ALU33と、命令ポインタ34と、命令ROM35
と、データRAM36と、データROM37とを備えて
いた。命令ポインタ34は、命令ROM35にアドレス
を与える。命令ROM35は、ADPCM 処理手順を格納し
ている。データRAM36は、変数データを記憶する。
データROM37は、固定データを記憶する。
2. Description of the Related Art In recent years, applications of digital signal processors (hereinafter referred to as "DSP") are rapidly spreading. In addition, various specialized DSPs have been devised in the category of processors called DSPs. Eg ADPCM
(Adaptive Differential Pulse Code Modulation) method As an example of a DSP dedicated for voice codecs,
CCITT Standard 32 kbit / s ADPCMLSI Codec ”(Nishiya et al., IEEE Trans. ASSP-25, No.2, pp.219-225, Feb. 19
There are DSPs described in 87). This DSP has a multiplier 31, a shifter / normalizer 32, as shown in FIG.
ALU 33, instruction pointer 34, instruction ROM 35
And a data RAM 36 and a data ROM 37. The instruction pointer 34 gives an address to the instruction ROM 35. The instruction ROM 35 stores the ADPCM processing procedure. The data RAM 36 stores variable data.
The data ROM 37 stores fixed data.

【0003】この従来のDSP は、命令ポインタ34が指
し示す命令ROM35の内容に従って、乗算器31やシ
フタ/正規化器32やALU33などの演算器で演算を
行うことにより、符号化/復号化処理を行なう構成であ
った。
This conventional DSP performs an encoding / decoding process by performing an arithmetic operation with an arithmetic unit such as a multiplier 31, a shifter / normalizer 32 and an ALU 33 according to the contents of an instruction ROM 35 indicated by an instruction pointer 34. It was a configuration to do.

【0004】[0004]

【発明が解決しようとする課題】しかしながら上記従来
の構成では、一般的な音声信号サンプル間隔である12
5マイクロ秒以内に符号化/復号処理の両処理を、1系
統の乗算器31やシフタ/正規化器32やALU33を
使用して行なわねばならないため、DSP を比較的高速に
動作させなければならない。しかしDSP は一般にCMOSデ
バイスを使用して作られており、CMOSデバイスの消費電
力は動作周波数に比例する。したがって上記従来のプロ
セッサで符号化/復号処理を行うと消費電力が多くなっ
てしまうという問題があった。
However, in the above-described conventional configuration, the general audio signal sample interval is 12
Both the encoding / decoding process must be performed within 5 microseconds by using one system of multiplier 31, shifter / normalizer 32 and ALU 33, so DSP must operate at a relatively high speed. . However, DSPs are generally made using CMOS devices, and the power consumption of CMOS devices is proportional to the operating frequency. Therefore, there is a problem that power consumption increases when encoding / decoding processing is performed by the conventional processor.

【0005】本発明はかかる事情に鑑みて成されたもの
であり、符号化/復号処理のように複数の処理を並列し
て行う場合に消費電力の増加を抑制できるプロセッサの
制御方法およびプロセッサを提供することを目的とす
る。
The present invention has been made in view of the above circumstances, and provides a processor control method and a processor capable of suppressing an increase in power consumption when a plurality of processes such as encoding / decoding processes are performed in parallel. The purpose is to provide.

【0006】[0006]

【課題を解決するための手段】請求項1の発明は、命令
にその命令を実行する演算部を指定するフィールドを備
え、1つの命令で複数の演算部の中から特定の任意数の
演算部だけを動作させることを特徴としている。請求項
2の発明は、命令にその命令を実行する演算部を指定す
るフィールドを設け、1つの命令で複数の演算部の中か
ら特定の任意数の演算部だけを動作させる構成としたこ
とを特徴としている。
According to a first aspect of the present invention, an instruction is provided with a field for designating an arithmetic unit for executing the instruction, and a single arbitrary number of arithmetic units specified from a plurality of arithmetic units by one instruction. It is characterized by operating only. According to the invention of claim 2, a field is provided in an instruction to specify an arithmetic unit that executes the instruction, and one instruction operates only a specific arbitrary number of arithmetic units from a plurality of arithmetic units. It has a feature.

【0007】請求項3の発明は、命令に分岐条件判定対
象とすべき演算部を指定するフィールドを備え、1つの
命令で複数の演算部の中から特定の任意数の演算部の演
算結果状態だけを反映した分岐動作を行わせることを特
徴としている。請求項4の発明は、命令に分岐条件判定
対象とすべき演算部を指定するフィールドを設け、1つ
の命令で複数の演算部の中から特定の任意数の演算部の
演算結果状態だけを反映した分岐動作を行わせる構成と
したことを特徴としている。
According to a third aspect of the present invention, an instruction has a field for designating an arithmetic unit to be subjected to a branch condition judgment, and a single instruction has an arithmetic result state of an arbitrary number of arithmetic units among a plurality of arithmetic units. The feature is that the branching operation that reflects only is performed. According to the invention of claim 4, a field for designating an arithmetic unit to be a branch condition judgment target is provided in the instruction, and only one arithmetic operation result state of a specific arbitrary number of arithmetic units among a plurality of arithmetic units is reflected by one instruction. It is characterized in that the branching operation is performed.

【0008】請求項5の発明は、処理手順を記憶する処
理手順記憶手段と、この処理手順記憶手段からの出力に
基づいて制御信号を出力する制御手段と、この制御手段
からの制御信号による指示に基づいて演算を行う複数の
演算手段と、これら演算手段のそれぞれに対応して演算
データを記憶し、番地信号と前記制御手段からの制御信
号による指示とに基づいて動作を行う複数のデータ記憶
手段と、前記制御手段からの制御信号による指示に基づ
いて前記複数のデータ記憶手段に対して共通の番地信号
を出力する番地指示手段とを備えたことを特徴としてい
る。
According to a fifth aspect of the present invention, processing procedure storing means for storing the processing procedure, control means for outputting a control signal based on the output from the processing procedure storing means, and an instruction by the control signal from the controlling means are provided. And a plurality of data storages for storing the operation data corresponding to each of the operation means, and operating based on the address signal and the instruction by the control signal from the control means. Means and address instruction means for outputting a common address signal to the plurality of data storage means based on an instruction by a control signal from the control means.

【0009】請求項6の発明は、命令を記憶する命令メ
モリと、この命令メモリにアドレス信号を出力する命令
ポインタと、前記命令メモリの出力をデコードして命令
に記述されている内容に基づいて制御信号を出力する命
令デコーダと、この命令デコーダからの制御信号により
制御される複数の演算部と、これら演算部のそれぞれに
対応してデータを記憶し、アドレス信号と前記命令デコ
ーダからの制御信号とにより制御される複数のデータメ
モリと、前記命令デコーダからの制御信号により制御さ
れて前記複数のデータメモリ全てに共通のアドレス信号
を出力するデータポインタとを備えたことを特徴として
いる。
According to a sixth aspect of the present invention, based on an instruction memory that stores an instruction, an instruction pointer that outputs an address signal to the instruction memory, and the contents described in the instruction by decoding the output of the instruction memory. An instruction decoder that outputs a control signal, a plurality of arithmetic units controlled by the control signals from the instruction decoder, data corresponding to each of these arithmetic units, data is stored, and an address signal and a control signal from the instruction decoder are stored. And a data pointer controlled by a control signal from the instruction decoder to output an address signal common to all of the plurality of data memories.

【0010】請求項7の発明は、命令デコーダが、複数
の演算部の中から命令に記述されている特定の演算部を
選択してその状態を判断し、分岐条件を満たしていれば
分岐動作を命令ポインタに指示する構成としたことを特
徴としている。
According to a seventh aspect of the present invention, an instruction decoder selects a specific arithmetic unit described in an instruction from a plurality of arithmetic units, judges the state thereof, and branches if a branch condition is satisfied. Is characterized by being configured to point to the instruction pointer.

【0011】[0011]

【作用】請求項1の発明においては、命令にその命令を
実行する演算部を指定するフィールドを備え、1つの命
令で複数の演算部の中から特定の任意数の演算部だけを
動作させる。請求項2の発明においては、命令にその命
令を実行する演算部を指定するフィールドを設け、1つ
の命令で複数の演算部の中から特定の任意数の演算部だ
けを動作させる。
According to the first aspect of the present invention, an instruction is provided with a field for designating an arithmetic unit for executing the instruction, and one instruction operates only a specific arbitrary number of arithmetic units among a plurality of arithmetic units. According to the second aspect of the present invention, a field is provided in the instruction to specify the arithmetic unit that executes the instruction, and one instruction operates only a specific arbitrary number of arithmetic units from the plurality of arithmetic units.

【0012】請求項3の発明においては、命令に分岐条
件判定対象とすべき演算部を指定するフィールドを備
え、1つの命令で複数の演算部の中から特定の任意数の
演算部の演算結果状態だけを反映した分岐動作を行わせ
る。請求項4の発明においては、命令に分岐条件判定対
象とすべき演算部を指定するフィールドを設け、1つの
命令で複数の演算部の中から特定の任意数の演算部の演
算結果状態だけを反映した分岐動作を行わせる。
According to the third aspect of the present invention, an instruction has a field for designating an arithmetic unit to be a branch condition judgment target, and one instruction gives an arithmetic result of an arbitrary number of arithmetic units among a plurality of arithmetic units. The branch operation that reflects only the status is performed. According to the invention of claim 4, a field for designating an arithmetic unit to be a branch condition judgment target is provided in the instruction, and only one arithmetic operation result state of a specific arbitrary number of arithmetic units is selected from a plurality of arithmetic units by one instruction. Perform the reflected branch operation.

【0013】請求項5の発明において、処理手順記憶手
段は、処理手順を記憶する。制御手段は、処理手順記憶
手段からの出力に基づいて制御信号を出力する。複数の
演算手段は、制御手段からの制御信号による指示に基づ
いて演算を行う。複数のデータ記憶手段は、複数の演算
手段のそれぞれに対応して演算データを記憶し、番地信
号と制御手段からの制御信号による指示とに基づいて動
作を行う。番地指示手段は、制御手段からの制御信号に
よる指示に基づいて複数のデータ記憶手段に対して共通
の番地信号を出力する。
In the invention of claim 5, the processing procedure storing means stores the processing procedure. The control means outputs a control signal based on the output from the processing procedure storage means. The plurality of calculation means performs calculation based on an instruction given by a control signal from the control means. The plurality of data storage means store the calculation data corresponding to each of the plurality of calculation means, and operate based on the address signal and the instruction by the control signal from the control means. The address instructing means outputs a common address signal to the plurality of data storage means based on an instruction by the control signal from the control means.

【0014】請求項6の発明において、命令メモリは、
命令を記憶する。命令ポインタは、命令メモリにアドレ
ス信号を出力する。命令デコーダは、命令メモリの出力
をデコードして命令に記述されている内容に基づいて制
御信号を出力する。複数の演算部は、命令デコーダから
の制御信号により制御される。複数のデータメモリは、
複数の演算部のそれぞれに対応してデータを記憶し、ア
ドレス信号と命令デコーダからの制御信号とにより制御
される。データポインタは、命令デコーダからの制御信
号により制御されて複数のデータメモリ全てに共通のア
ドレス信号を出力する。
In the invention of claim 6, the instruction memory is
Memorize instructions. The instruction pointer outputs an address signal to the instruction memory. The instruction decoder decodes the output of the instruction memory and outputs a control signal based on the contents described in the instruction. The plurality of arithmetic units are controlled by the control signal from the instruction decoder. Multiple data memories
Data is stored corresponding to each of the plurality of arithmetic units and controlled by an address signal and a control signal from the instruction decoder. The data pointer is controlled by a control signal from the instruction decoder and outputs an address signal common to all the plurality of data memories.

【0015】請求項7の発明において、命令デコーダ
は、複数の演算部の中から命令に記述されている特定の
演算部を選択してその状態を判断し、分岐条件を満たし
ていれば分岐動作を命令ポインタに指示する。
According to a seventh aspect of the invention, the instruction decoder selects a specific arithmetic unit described in the instruction from a plurality of arithmetic units, judges its state, and branches if a branch condition is satisfied. To the instruction pointer.

【0016】[0016]

【実施例】以下、本発明の実施例を図面を用いて詳細に
説明する。図1は本発明の一実施例におけるプロセッサ
の構成図で、このプロセッサは、命令ポインタ1と、命
令メモリ2と、命令レジスタ3と、命令デコーダ4と、
第1演算系5と、第2演算系6と、データポインタ7と
を備えている。第1演算系5は、第1演算部9と、第1
データメモリ10とを備えており、第2演算系6は、第
2演算部11と、第2データメモリ12とを備えてい
る。命令ポインタ1は、命令メモリ2にアドレス信号を
供給する。命令メモリ2は、命令を記憶する。命令レジ
スタ3は、命令メモリ2からの命令を一時保持する。命
令デコーダ4は、命令レジスタ3からの命令をデコード
し、第1演算系5には第1演算系制御信号を、また第2
演算系6には第2演算系制御信号を、またデータポイン
タ7には制御信号をそれぞれ供給する。さらに命令デコ
ーダ4は、命令レジスタ3からの命令と第1演算部9か
らの演算結果状態信号と第2演算部11からの演算結果
状態信号とをデコードし、プログラム分岐を行なう場合
には、命令ポインタ1に制御信号を供給して、命令レジ
スタ3からの分岐アドレスを取り込むことを指示する。
データポインタ7は、第1データメモリ10および第2
データメモリ12にアドレス信号を供給する。第1演算
部9は、命令デコーダ4からの第1演算系制御信号に基
づいて、第1データメモリ10の内容に対して演算を施
す。第2演算部11は、命令デコーダ4からの第2演算
系制御信号に基づいて、第2データメモリ12の内容に
対して演算を施す。第1データメモリ10は、そのアド
レス信号をデータポインタ7から与えられ、命令デコー
ダ4からの第1演算系制御信号に基づいて第1演算部9
にデータを出力し、また第1演算部9からデータを受け
取る。第2データメモリ12は、そのアドレス信号をデ
ータポインタ7から与えられ、命令デコーダ4からの第
2演算系制御信号に基づいて、第2演算部11にデータ
を出力し、また第2演算部11からデータを受け取る。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram of a processor according to an embodiment of the present invention. The processor includes an instruction pointer 1, an instruction memory 2, an instruction register 3, an instruction decoder 4, and an instruction decoder 4.
A first operation system 5, a second operation system 6, and a data pointer 7 are provided. The first operation system 5 includes a first operation unit 9 and a first operation unit 9.
The second arithmetic system 6 includes a second arithmetic unit 11 and a second data memory 12. The instruction pointer 1 supplies an address signal to the instruction memory 2. The instruction memory 2 stores instructions. The instruction register 3 temporarily holds the instruction from the instruction memory 2. The instruction decoder 4 decodes the instruction from the instruction register 3 and sends the first operation system control signal to the first operation system 5 and the second operation system control signal.
The operation system 6 is supplied with a second operation system control signal, and the data pointer 7 is supplied with a control signal. Further, the instruction decoder 4 decodes the instruction from the instruction register 3, the operation result state signal from the first operation unit 9 and the operation result state signal from the second operation unit 11, and when performing a program branch, the instruction A control signal is supplied to the pointer 1 to instruct to fetch the branch address from the instruction register 3.
The data pointer 7 includes a first data memory 10 and a second data memory 10.
An address signal is supplied to the data memory 12. The first arithmetic unit 9 performs an arithmetic operation on the contents of the first data memory 10 based on the first arithmetic system control signal from the instruction decoder 4. The second operation unit 11 performs an operation on the content of the second data memory 12 based on the second operation system control signal from the instruction decoder 4. The first data memory 10 receives the address signal from the data pointer 7 and receives the first operation unit 9 based on the first operation system control signal from the instruction decoder 4.
The data is output to and the data is received from the first calculation unit 9. The second data memory 12 is supplied with the address signal from the data pointer 7, outputs data to the second operation unit 11 based on the second operation system control signal from the instruction decoder 4, and also outputs the second operation unit 11 to the second operation unit 11. Receive data from.

【0017】図2は命令フォーマットの説明図で、演算
命令の演算指定フィールドは命令デコーダ4によりデコ
ードされ、これにより命令デコーダ4は第1演算系5お
よび第2演算系6に第1演算系制御信号および第2演算
系制御信号を出力する。データポインタ制御フィールド
は命令デコーダ4によりデコードされ、これにより命令
デコーダ4はデータポインタ7に制御信号を出力する。
第1演算系指定ビットは命令デコーダ4により判定さ
れ、このビットが1の場合のみ命令デコーダ4は第1演
算系制御信号を出力する。第2演算系指定ビットは命令
デコーダ4により判定され、このビットが1の場合のみ
命令デコーダ4は第2演算系制御信号を出力する。分岐
命令の分岐指定フィールドは命令デコーダ4により判定
され、命令デコーダ4はこのフィールドによりこの命令
が分岐命令であると判断する。分岐条件フィールドは分
岐条件を指定する。分岐条件としては第1演算部9によ
る演算結果の符号および零判定結果を示す演算結果状態
信号や、同じく第2演算部11からの演算結果状態信号
を使用するが、どちらの演算結果状態信号を使用するか
は、第1演算系指定ビットおよび第2演算系指定ビット
で指定する。分岐先アドレスは、命令レジスタ3から命
令ポインタ1に与えられる。
FIG. 2 is an explanatory diagram of the instruction format. The operation designation field of the operation instruction is decoded by the instruction decoder 4, so that the instruction decoder 4 controls the first operation system 5 and the second operation system 6 by the first operation system. The signal and the second operation system control signal are output. The data pointer control field is decoded by the instruction decoder 4, so that the instruction decoder 4 outputs a control signal to the data pointer 7.
The first operation system designation bit is determined by the instruction decoder 4, and only when this bit is 1, the instruction decoder 4 outputs the first operation system control signal. The second operation system designation bit is determined by the instruction decoder 4, and only when this bit is 1, the instruction decoder 4 outputs the second operation system control signal. The branch designation field of the branch instruction is determined by the instruction decoder 4, and the instruction decoder 4 determines that this instruction is a branch instruction based on this field. The branch condition field specifies the branch condition. As the branching condition, an operation result status signal indicating the sign of the operation result and the zero determination result by the first operation unit 9 or an operation result status signal from the second operation unit 11 is used. Which operation result status signal is used? Whether to use is specified by the first operation system specifying bit and the second operation system specifying bit. The branch destination address is given from the instruction register 3 to the instruction pointer 1.

【0018】次に動作を説明する。いま、第1演算系5
および第2演算系6により図3のような処理を行なう場
合を考える。この場合、第1演算系5と第2演算系6と
で異なる処理を行なうのは、第3番目の処理である「2
番地データを用いた加算」および「3番地データを用い
た加算」だけであり、その他の処理は第1演算系5と第
2演算系6とで同じである。なお具体的なADPCM コーデ
ック処理では、第1演算系5により符号化処理を行い、
第2演算系6により復号化処理を行なうことになる。何
故ならば、ADPCM コーデックでは符号化処理中に局所的
に復号化処理と全く同じ処理を行なうため、符号化処理
と復号化処理とを同時に進めることができるからであ
る。図3に示す処理を行なう場合、図2に示す演算命令
を予め図4のように命令メモリ2に格納しておく。図4
に示す各命令401〜405における11,10,01
は、左側のビットが図2の第2演算系指定ビットに対応
し、右側のビットが図2の第1演算系指定ビットに対応
している。また図4の10番地の命令401は図3の第
1番目の処理に対応し、図4の11番地の命令402は
図3の第2番目の処理に対応し、図4の12番地の命令
403は図3の第1演算系5の第3番目の処理に対応
し、図4の13番地の命令404は図3の第2演算系6
の第3番目の処理に対応し、図4の14番地の命令40
5は図3の第4番目の処理に対応している。
Next, the operation will be described. Now, the first operation system 5
Consider the case where the processing shown in FIG. 3 is performed by the second operation system 6. In this case, it is the third processing "2" that the different processing is performed between the first calculation system 5 and the second calculation system 6.
"Addition using address data" and "addition using address data 3" are the only other processings are the same in the first operation system 5 and the second operation system 6. In the concrete ADPCM codec processing, the encoding processing is performed by the first arithmetic system 5,
Decoding processing is performed by the second operation system 6. This is because the ADPCM codec locally performs exactly the same processing as the decoding processing during the coding processing, so that the coding processing and the decoding processing can proceed at the same time. When the processing shown in FIG. 3 is performed, the arithmetic instructions shown in FIG. 2 are stored in the instruction memory 2 in advance as shown in FIG. Figure 4
11, 10, 01 in each instruction 401 to 405 shown in
2, the left side bit corresponds to the second operation system specifying bit in FIG. 2, and the right side bit corresponds to the first operation system specifying bit in FIG. The instruction 401 at address 10 in FIG. 4 corresponds to the first process in FIG. 3, the instruction 402 at address 11 in FIG. 4 corresponds to the second process in FIG. 3, and the instruction at address 12 in FIG. 403 corresponds to the third processing of the first operation system 5 in FIG. 3, and the instruction 404 at address 13 in FIG. 4 is the second operation system 6 in FIG.
Corresponding to the third processing of the instruction 40 at the address 14 in FIG.
Reference numeral 5 corresponds to the fourth processing in FIG.

【0019】先ず、命令ポインタ1が10番地を指し示
すと、命令メモリ2から10番地の命令401が出力さ
れ、これが命令レジスタ3にラッチされる。その命令4
01を命令デコーダ4がデコードするが、その命令40
1の第1演算系指定ビットと第2演算系指定ビットとが
共に1であるので、命令デコーダ4は、第1演算系5に
第1演算系制御信号を供給すると共に、第2演算系6に
第2演算系制御信号を供給する。さらに命令デコーダ4
は、データポインタ制御フィールドをデコードし、0と
いうアドレス信号を出力することをデータポインタ7に
指示する。その結果、第1演算系5は、第1演算部9に
より第1データメモリ10の0番地のデータを使用して
加算処理を行ない、第2演算系6は、第2演算部11に
より第2データメモリ12の0番地のデータを使用して
加算処理を行なう。
First, when the instruction pointer 1 points to the address 10, the instruction 401 at the address 10 is output from the instruction memory 2 and is latched in the instruction register 3. The instruction 4
01 is decoded by the instruction decoder 4, but the instruction 40
Since both the first operation system specifying bit and the second operation system specifying bit of 1 are 1, the instruction decoder 4 supplies the first operation system control signal to the first operation system 5 and the second operation system 6 To the second operation system control signal. Further instruction decoder 4
Instructs the data pointer 7 to decode the data pointer control field and output an address signal of 0. As a result, the first operation system 5 performs the addition processing by the first operation unit 9 using the data at the address 0 of the first data memory 10, and the second operation system 6 performs the second operation by the second operation unit 11. An addition process is performed using the data at address 0 of the data memory 12.

【0020】この後命令ポインタ1は、インクレメント
されて11となり、上記と同様に、第1演算系5は、第
1演算部9により第1データメモリ10の1番地のデー
タを使用して、また第2演算系6は、第2演算部11に
より第2データメモリ12の1番地のデータを使用し
て、それぞれ演算が行なわれる。この後命令ポインタ1
は、インクレメントされて12となるが、命令メモリ2
の12番地の命令403は第1演算系指定ビットだけが
1であるので、第1演算系制御信号だけが命令デコーダ
4から第1演算系5に供給される。そこで第1演算系5
だけが使用され、第1演算部9により第1データメモリ
10の2番地のデータを使用して加算が行なわれる。こ
の間第2演算系信号は出力されないので、第2演算系6
では演算は行なわれず、所謂ノーオペレーションとな
る。
Thereafter, the instruction pointer 1 is incremented to be 11, and the first operation system 5 uses the data at the first address of the first data memory 10 by the first operation unit 9 in the same manner as described above. In the second operation system 6, the second operation unit 11 uses the data at address 1 of the second data memory 12 to perform the respective operations. Instruction pointer 1 after this
Is incremented to be 12, but the instruction memory 2
Since the instruction 403 at address 12 has only the first operation system designation bit being 1, only the first operation system control signal is supplied from the instruction decoder 4 to the first operation system 5. Therefore, the first operation system 5
Is used, and the first arithmetic unit 9 uses the data at address 2 of the first data memory 10 to perform the addition. During this time, the second operation system signal is not output, so the second operation system 6
In this case, no operation is performed, which is a so-called no operation.

【0021】この後命令ポインタ1はインクレメントさ
れて13となるが、命令メモリ2の13番地の命令40
4は12番地とは逆に第2演算系指定ビットだけが1で
あるので、第2演算系6でのみ加算が行なわれる。この
後命令ポインタ1はインクレメントされて14となる
が、命令メモリ2の14番地の命令405は第1演算系
指定ビットと第2演算系指定ビットとの双方が共に1で
あるので、再び第1演算系5と第2演算系6との双方で
共に演算が行なわれる。
After this, the instruction pointer 1 is incremented to 13 but the instruction 40 at the address 13 of the instruction memory 2 is incremented.
Contrary to the address 12, 4 has only the second operation system designation bit of 1, so that the addition is performed only in the second operation system 6. After this, the instruction pointer 1 is incremented to 14, but the instruction 405 at the address 14 of the instruction memory 2 has both the first operation system designating bit and the second operation system designating bit 1, so that the instruction memory 1 is again stored in the first memory. Both the 1st operation system 5 and the 2nd operation system 6 perform operations.

【0022】以上述べた動作を時系列で整理した処理フ
ローを図5に示す。命令メモリ2には図4に示した1本
のプログラムが格納されているだけであるが、命令40
1,402,405は第1演算系5と第2演算系6とで
共用されて実行される。またこの際、データメモリとし
てそれぞれ別個のメモリである第1データメモリ10と
第2データメモリ12とを使用しているが、そのアドレ
スはデータポインタ7を共用して同じアドレスを与えて
いる。
FIG. 5 shows a processing flow in which the above-described operations are arranged in time series. The instruction memory 2 stores only one program shown in FIG.
1, 402 and 405 are shared by the first operation system 5 and the second operation system 6 and executed. At this time, the first data memory 10 and the second data memory 12, which are separate memories, are used as the data memories, but the addresses are shared by the data pointer 7 and given the same address.

【0023】次に図2に示した分岐命令の動作を説明す
る。命令レジスタ3に分岐命令が格納されると、命令デ
コーダ4は分岐指定フィールドによりこの命令が分岐命
令であることを知る。そして命令デコーダ4は、第1演
算系指定ビットおよび第2演算系指定ビットで指定され
る第1演算系5や第2演算系6からの演算結果状態信号
を、分岐条件フィールドが示す条件に従って判断する。
判断の結果分岐を行う場合、命令デコーダ4は、命令ポ
インタ1に制御信号を供給して、命令ポインタ1に命令
レジスタ3からの分岐アドレスを取り込むことを指示
し、これにより分岐が行われる。
Next, the operation of the branch instruction shown in FIG. 2 will be described. When a branch instruction is stored in the instruction register 3, the instruction decoder 4 knows from the branch designation field that this instruction is a branch instruction. Then, the instruction decoder 4 judges the operation result status signal from the first operation system 5 or the second operation system 6 specified by the first operation system specifying bit and the second operation system specifying bit according to the condition indicated by the branch condition field. To do.
When branching as a result of the determination, the instruction decoder 4 supplies a control signal to the instruction pointer 1 to instruct the instruction pointer 1 to fetch the branch address from the instruction register 3, and thus branching is performed.

【0024】このように、命令を記憶する命令メモリ2
と、命令メモリ2にアドレス信号を出力する命令ポイン
タ1と、命令メモリ2の出力をデコードして命令に記述
されている内容に基づいて制御信号を出力する命令デコ
ーダ4と、命令デコーダ4からの制御信号により制御さ
れる第1演算部9および第2演算部11と、第1演算部
9および第2演算部11のそれぞれに対応してデータを
記憶し、アドレス信号と命令デコーダ4からの制御信号
とにより制御される第1データメモリ10および第2デ
ータメモリ12と、命令デコーダ4からの制御信号によ
り制御されて第1データメモリ10と第2データメモリ
12との双方に共通のアドレス信号を出力するデータポ
インタ7とを備えたので、命令デコーダ4から命令に記
述された第1演算系5あるいは第2演算系6に制御信号
を出力することで、第1演算系5および第2演算系6に
よる演算の同時処理、ならびに必要に応じた両演算系
5,6での独立処理が容易に行える。したがって、第1
演算系5で処理する処理内容と第2演算系6で処理する
処理内容とを1つの演算系でシーケンシャルに行う場合
と比較して、プロセッサの動作速度を遅くすることがで
き、システムがCMOSデバイスで構築されている場合にそ
の消費電力を良好に低減できる。
The instruction memory 2 for storing the instructions in this way
An instruction pointer 1 that outputs an address signal to the instruction memory 2, an instruction decoder 4 that decodes the output of the instruction memory 2 and outputs a control signal based on the contents described in the instruction, Data is stored corresponding to each of the first arithmetic unit 9 and the second arithmetic unit 11 controlled by the control signal, and the first arithmetic unit 9 and the second arithmetic unit 11, and the control from the address signal and the instruction decoder 4 is performed. An address signal common to both the first data memory 10 and the second data memory 12 which is controlled by a signal, and an address signal which is controlled by the control signal from the instruction decoder 4 and is common to both the first data memory 10 and the second data memory 12. Since the data pointer 7 for outputting is provided, by outputting the control signal from the instruction decoder 4 to the first operation system 5 or the second operation system 6 described in the instruction, Simultaneous processing of operations by the first computing system 5 and the second operation system 6, as well as independent processing in the two operation system 5,6 as needed can be easily. Therefore, the first
The operation speed of the processor can be slowed down compared to the case where the processing contents processed by the arithmetic system 5 and the processing contents processed by the second arithmetic system 6 are performed sequentially by one arithmetic system, and the system is a CMOS device. If it is built in, its power consumption can be satisfactorily reduced.

【0025】[0025]

【発明の効果】以上説明したように本発明によれば、処
理手順を記憶する処理手順記憶手段と、処理手順記憶手
段からの出力に基づいて制御信号を出力する制御手段
と、制御手段からの制御信号による指示に基づいて演算
を行う複数の演算手段と、複数の演算手段のそれぞれに
対応して演算データを記憶し、番地信号と前記制御手段
からの制御信号による指示とに基づいて動作を行う複数
のデータ記憶手段と、制御手段からの制御信号による指
示に基づいて前記複数のデータ記憶手段に対して共通の
番地信号を出力する番地指示手段とを備えたので、複数
の演算手段による演算の同時処理、ならびに必要に応じ
た各演算手段での独立処理が容易に行える。したがっ
て、複数の演算手段による処理内容を1つの演算手段で
シーケンシャルに行う場合と比較して、プロセッサの動
作速度を遅くすることができ、システムがCMOSデバイス
で構築されている場合にその消費電力を良好に低減でき
る。
As described above, according to the present invention, the processing procedure storage means for storing the processing procedure, the control means for outputting a control signal based on the output from the processing procedure storage means, and the control means A plurality of arithmetic means for performing an arithmetic operation based on an instruction by a control signal and arithmetic data corresponding to each of the plurality of arithmetic means are stored, and an operation is performed based on an address signal and an instruction by the control signal from the control means. Since there are provided a plurality of data storage means for performing and an address designating means for outputting a common address signal to the plurality of data storage means based on an instruction by a control signal from the control means, calculation by a plurality of computing means Simultaneous processing of the above, and independent processing by each arithmetic means as required can be easily performed. Therefore, the operation speed of the processor can be slowed down as compared with the case where the processing contents by a plurality of arithmetic means are sequentially performed by one arithmetic means, and the power consumption is reduced when the system is constructed by CMOS devices. It can be reduced well.

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

【図1】本発明の一実施例におけるプロセッサの構成図
である。
FIG. 1 is a configuration diagram of a processor according to an embodiment of the present invention.

【図2】プロセッサの命令フォーマットの説明図であ
る。
FIG. 2 is an explanatory diagram of an instruction format of a processor.

【図3】本発明の一実施例におけるプロセッサによる処
理の説明図である。
FIG. 3 is an explanatory diagram of processing by a processor according to an embodiment of the present invention.

【図4】命令メモリの内容の説明図である。FIG. 4 is an explanatory diagram of contents of an instruction memory.

【図5】本発明の一実施例におけるプロセッサの動作の
流れの説明図である。
FIG. 5 is an explanatory diagram of a flow of operation of the processor in the embodiment of the present invention.

【図6】従来のプロセッサの構成図である。FIG. 6 is a configuration diagram of a conventional processor.

【符号の説明】[Explanation of symbols]

1 命令ポインタ 2 命令メモリ 4 命令デコーダ 7 データポインタ 9 第1演算部 10 第1データメモリ 11 第2演算部 12 第2データメモリ 1 Instruction Pointer 2 Instruction Memory 4 Instruction Decoder 7 Data Pointer 9 First Operation Unit 10 First Data Memory 11 Second Operation Unit 12 Second Data Memory

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 命令にその命令を実行する演算部を指定
するフィールドを備え、1つの命令で複数の演算部の中
から特定の任意数の演算部だけを動作させることを特徴
とするプロセッサの制御方法。
1. A processor, characterized in that an instruction is provided with a field for designating an arithmetic unit for executing the instruction, and that a single instruction operates only a specific arbitrary number of arithmetic units among a plurality of arithmetic units. Control method.
【請求項2】 命令にその命令を実行する演算部を指定
するフィールドを設け、1つの命令で複数の演算部の中
から特定の任意数の演算部だけを動作させる構成とした
ことを特徴とするプロセッサ。
2. An instruction is provided with a field for designating an arithmetic unit that executes the instruction, and one instruction operates only a specific arbitrary number of arithmetic units from a plurality of arithmetic units. The processor to do.
【請求項3】 命令に分岐条件判定対象とすべき演算部
を指定するフィールドを備え、1つの命令で複数の演算
部の中から特定の任意数の演算部の演算結果状態だけを
反映した分岐動作を行わせることを特徴とするプロセッ
サの制御方法。
3. A branch in which an instruction is provided with a field for designating an arithmetic unit to be subjected to branch condition determination, and a single instruction reflects only the arithmetic result state of a specific arbitrary number of arithmetic units among a plurality of arithmetic units. A method of controlling a processor characterized by causing an operation.
【請求項4】 命令に分岐条件判定対象とすべき演算部
を指定するフィールドを設け、1つの命令で複数の演算
部の中から特定の任意数の演算部の演算結果状態だけを
反映した分岐動作を行わせる構成としたことを特徴とす
るプロセッサ。
4. A branch in which an instruction is provided with a field for designating an arithmetic unit to be a branch condition judgment target, and a single instruction reflects only the operation result state of a specific arbitrary number of arithmetic units among a plurality of arithmetic units. A processor characterized by being configured to perform operations.
【請求項5】 処理手順を記憶する処理手順記憶手段
と、 前記処理手順記憶手段からの出力に基づいて制御信号を
出力する制御手段と、 前記制御手段からの制御信号による指示に基づいて演算
を行う複数の演算手段と、 前記複数の演算手段のそれぞれに対応して演算データを
記憶し、番地信号と前記制御手段からの制御信号による
指示とに基づいて動作を行う複数のデータ記憶手段と、 前記制御手段からの制御信号による指示に基づいて前記
複数のデータ記憶手段に対して共通の番地信号を出力す
る番地指示手段とを備えたことを特徴とするプロセッ
サ。
5. A processing procedure storage means for storing a processing procedure, a control means for outputting a control signal based on an output from the processing procedure storage means, and an operation based on an instruction by the control signal from the control means. A plurality of calculation means to perform, a plurality of data storage means for storing the calculation data corresponding to each of the plurality of calculation means, to perform an operation based on an address signal and an instruction by a control signal from the control means; An address instruction means for outputting a common address signal to the plurality of data storage means based on an instruction by a control signal from the control means.
【請求項6】 命令を記憶する命令メモリと、 前記命令メモリにアドレス信号を出力する命令ポインタ
と、 前記命令メモリの出力をデコードして命令に記述されて
いる内容に基づいて制御信号を出力する命令デコーダ
と、 前記命令デコーダからの制御信号により制御される複数
の演算部と、 前記複数の演算部のそれぞれに対応してデータを記憶
し、アドレス信号と前記命令デコーダからの制御信号と
により制御される複数のデータメモリと、 前記命令デコーダからの制御信号により制御されて前記
複数のデータメモリ全てに共通のアドレス信号を出力す
るデータポインタとを備えたことを特徴とするプロセッ
サ。
6. An instruction memory for storing an instruction, an instruction pointer for outputting an address signal to the instruction memory, a decode of an output of the instruction memory, and a control signal output based on the contents described in the instruction. An instruction decoder, a plurality of arithmetic units controlled by control signals from the instruction decoder, data corresponding to each of the plurality of arithmetic units, data is stored, and controlled by an address signal and a control signal from the instruction decoder. A plurality of data memories, and a data pointer controlled by a control signal from the instruction decoder to output an address signal common to all the plurality of data memories.
【請求項7】 命令デコーダは、複数の演算部の中から
命令に記述されている特定の演算部を選択してその状態
を判断し、分岐条件を満たしていれば分岐動作を命令ポ
インタに指示する構成としたことを特徴とする請求項6
に記載のプロセッサ。
7. The instruction decoder selects a specific arithmetic unit described in an instruction from a plurality of arithmetic units and judges the state thereof, and if the branch condition is satisfied, instructs the instruction pointer to perform a branch operation. 7. The structure according to claim 6, wherein
Processor described in.
JP23601092A 1992-09-03 1992-09-03 Processor and its control method Pending JPH0683624A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23601092A JPH0683624A (en) 1992-09-03 1992-09-03 Processor and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23601092A JPH0683624A (en) 1992-09-03 1992-09-03 Processor and its control method

Publications (1)

Publication Number Publication Date
JPH0683624A true JPH0683624A (en) 1994-03-25

Family

ID=16994448

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23601092A Pending JPH0683624A (en) 1992-09-03 1992-09-03 Processor and its control method

Country Status (1)

Country Link
JP (1) JPH0683624A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6304958B1 (en) 1997-12-17 2001-10-16 Hitachi, Ltd. Microcomputer having data execution units mounted thereon

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6304958B1 (en) 1997-12-17 2001-10-16 Hitachi, Ltd. Microcomputer having data execution units mounted thereon

Similar Documents

Publication Publication Date Title
JPS633337B2 (en)
JPH04245324A (en) Arithmetic unit
JPS62226232A (en) Control system for branch instruction
US5479620A (en) Control unit modifying micro instructions for one cycle execution
JPH0683624A (en) Processor and its control method
JPS60250438A (en) Information processor
JPH0224721A (en) Program controller
JPH03288228A (en) Information processor
JP2772100B2 (en) Parallel instruction fetch mechanism
JPS62175831A (en) Control system for pipeline with tag
JPH0793151A (en) Instruction supplying device
JPH08305563A (en) Data processing unit
JPS63141131A (en) Pipeline control system
JP3524240B2 (en) Parallel instruction processing unit
JPS622363A (en) Arithmetic unit
JPS6116334A (en) Data processor
JP2583614B2 (en) Vector arithmetic unit
JPS6024642A (en) Microprogram controlling system
JPS59160239A (en) Information processing device
JPH0557614B2 (en)
JP2000250869A (en) Method and device for controlling multiprocessor
JPH0353322A (en) Information processor
JPH06149564A (en) Instruction controller
JPH01175632A (en) Micro program controller
JPS6120135A (en) Data processor