JPH06266557A - Data processor and data processing method - Google Patents

Data processor and data processing method

Info

Publication number
JPH06266557A
JPH06266557A JP5054341A JP5434193A JPH06266557A JP H06266557 A JPH06266557 A JP H06266557A JP 5054341 A JP5054341 A JP 5054341A JP 5434193 A JP5434193 A JP 5434193A JP H06266557 A JPH06266557 A JP H06266557A
Authority
JP
Japan
Prior art keywords
data
arithmetic
processing
register
calculation
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
JP5054341A
Other languages
Japanese (ja)
Inventor
Takashi Sugimoto
高志 杉本
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 VLSI Ltd
Fujitsu Ltd
Original Assignee
Fujitsu VLSI Ltd
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 VLSI Ltd, Fujitsu Ltd filed Critical Fujitsu VLSI Ltd
Priority to JP5054341A priority Critical patent/JPH06266557A/en
Publication of JPH06266557A publication Critical patent/JPH06266557A/en
Priority to US08/709,683 priority patent/US5826099A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To perform an arithmetic processing at a high speed by the constitution of less circuits even when the calculating formula of an arithmetic part is complicated without depending on a RAM for arithmetic data to be the exclusive data area of a computing element and a DMAC for directly writing and reading data to be calculated, arithmetic data and result data by contriving the transfer method and holding circuits of the data. CONSTITUTION:A calculation supporting means 12 for supporting the arithmetic processing of a data processing control means 11 is provided separately from the arithmetic part 11A provided in the data processing control means 11. At least, the calculation supporting means 12 is composed of first and second data holding means 12A and 12B, an arithmetic means 12C and an output data holding means 12D. The first data holding means 12A holds the data X to be calculated, the second data holding means 12B holds the arithmetic data Y, the arithmetic means 12C performs the arithmetic processing based on the data X to be calculated and the arithmetic data Y and the output data holding means 12D holds arithmetic result data O.

Description

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

【0001】〔目次〕 産業上の利用分野 従来の技術(図9) 発明が解決しようとする課題 課題を解決するための手段(図1) 作用 実施例 (1)第1の実施例の説明(図2〜7) (2)第2の実施例の説明(図8) 発明の効果[Table of Contents] Industrial Application Field of the Prior Art (FIG. 9) Problem to be Solved by the Invention Means for Solving the Problem (FIG. 1) Action Example (1) Description of First Example ( 2 to 7) (2) Description of the second embodiment (FIG. 8) Effect of the invention

【0002】[0002]

【産業上の利用分野】本発明は、データ処理装置及びデ
ータ処理方法に関するものであり、更に詳しく言えば、
中央演算処理装置(以下CPUという)の演算回路以外
に演算回路を設けた装置及び演算処理方法の改善に関す
るものである。近年,各種情報処理をするマイクロコン
トローラ等の使用態様において、高速演算可能な機種が
優先されるようになってきている。このため、CPUで
演算させるより高速動作可能な専用演算回路をマイクロ
コントローラに搭載する方法が採用される傾向にある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device and a data processing method, and more specifically,
The present invention relates to an apparatus provided with an arithmetic circuit other than an arithmetic circuit of a central processing unit (hereinafter referred to as CPU) and an improvement of an arithmetic processing method. In recent years, models that can perform high-speed calculations have been given priority in the usage of microcontrollers that perform various types of information processing. For this reason, there is a tendency to adopt a method in which a dedicated arithmetic circuit that can operate at a higher speed than that calculated by a CPU is mounted on a microcontroller.

【0003】これによれば、CPUの演算処理を補助す
る演算器に、演算データ用RAMが接続され、該RAM
に展開された被演算データや演算データが逐次読み出さ
れ、当該演算器により、被演算データと演算データとが
演算処理されている。このため、演算処理前に、演算器
の専用データ領域に、被演算データや演算データを予め
転送しておかなければならない。このことから、大幅な
データ処理時間を要し、その高速化の妨げとなる。
According to this, an arithmetic data RAM is connected to an arithmetic unit that assists the arithmetic processing of the CPU, and the RAM
The data to be calculated and the calculation data that have been expanded are sequentially read out, and the calculation data and the calculation data are processed by the calculator. Therefore, it is necessary to transfer the data to be operated and the operation data to the dedicated data area of the operation unit in advance before the operation processing. This requires a large amount of data processing time, which hinders the speedup.

【0004】また、CPUの演算処理を補助する演算器
にダイレクト・メモリ・アクセスコントローラ(以下単
にDMACという)が接続され、該DMACを介して被
演算データや演算データが汎用RAMから直接読み出さ
れ、それらが演算器により演算処理されると、その演算
結果データがDMACを介して汎用RAMに直接書き込
まれている。
Further, a direct memory access controller (hereinafter simply referred to as a DMAC) is connected to an arithmetic unit that assists the arithmetic processing of the CPU, and the operated data and the arithmetic data are directly read from the general-purpose RAM via the DMAC. When they are arithmetically processed by the arithmetic unit, the arithmetic result data is directly written to the general-purpose RAM via the DMAC.

【0005】このため、DMACの処理性能に依存した
被演算データや演算データが演算器に入力されるため、
この動作をより早くなるように演算器のアドレスを効率
良く割り当てる必要がある。そこで、演算器の専用デー
タ領域となる演算データ用RAMや、被演算データ,演
算データ及び結果データを直接書込み/読出しをするD
MACに依存することなく、それらの保持回路と転送方
法を工夫し、演算部の計算式が複雑な時でも、少ない回
路構成にて、高速に演算処理を行うことができる装置及
び方法が望まれている。
Therefore, the data to be calculated and the calculation data depending on the processing performance of the DMAC are input to the calculation unit,
It is necessary to efficiently assign the address of the arithmetic unit so that this operation becomes faster. Therefore, a RAM for arithmetic data, which is a dedicated data area of the arithmetic unit, and a D for directly writing / reading the operated data, the arithmetic data, and the result data
There is a demand for a device and method that can devise the holding circuit and the transfer method without depending on the MAC and can perform high-speed arithmetic processing with a small circuit configuration even when the calculation formula of the arithmetic unit is complicated. ing.

【0006】[0006]

【従来の技術】図9は、従来例に係る説明図である。図
9(A)は、演算データ用RAMを備えたデータ処理装
置の構成図であり、図9(B)は、DMACを備えたデ
ータ処理装置の構成図をそれぞれ示している。例えば、
CPU1Aの演算回路以外に演算回路を設けた第1のデ
ータ処理装置は、図9(A)において、CPU1A,R
OM(読出し専用メモリ)2A,汎用RAM(随時書込
み/読出し可能なメモリ)3A,演算器4A及び演算デ
ータ用RAM5から成る。
2. Description of the Related Art FIG. 9 is an explanatory diagram according to a conventional example. FIG. 9A is a configuration diagram of a data processing device including a calculation data RAM, and FIG. 9B is a configuration diagram of a data processing device including a DMAC. For example,
A first data processing device provided with an arithmetic circuit in addition to the arithmetic circuit of the CPU 1A is shown in FIG.
It comprises an OM (read-only memory) 2A, a general-purpose RAM (writable / readable memory at any time) 3A, a computing unit 4A, and a computing data RAM 5.

【0007】当該第1のデータ処理装置の機能は、例え
ば、ROM2Aから読み出されたマイクロ制御プログラ
ムに基づいてCPU1Aに内蔵された演算回路が演算処
理を実行する。この際に、順次実行された演算処理結果
は汎用RAM3Aに格納される。また、CPU1Aに内
蔵された演算回路よりも高速動作をする演算器4Aに演
算させるべく、演算処理結果が演算データ用RAM5に
転送される。これにより、演算器4Aは演算データ用R
AM5に展開された被演算データXや演算データYを読
み出し、該被演算データXや演算データYに基づいて演
算処理をする。
With respect to the function of the first data processing apparatus, for example, an arithmetic circuit incorporated in the CPU 1A executes arithmetic processing based on a micro control program read from the ROM 2A. At this time, the calculation processing results that are sequentially executed are stored in the general-purpose RAM 3A. Further, the arithmetic processing result is transferred to the arithmetic data RAM 5 so that the arithmetic unit 4A, which operates faster than the arithmetic circuit incorporated in the CPU 1A, can perform arithmetic operation. As a result, the computing unit 4A causes the computing data R
The operated data X and the operated data Y developed in the AM 5 are read out, and the operation processing is performed based on the operated data X and the operated data Y.

【0008】その結果データOが演算データ用RAM5
に格納され、それがCPU1Aにより読み出される。こ
れにより、CPU1Aの演算処理負担を演算器4Aに託
し、その演算処理の高速化を図っている。また、CPU
1Bの演算回路以外に演算回路を設けた第2のデータ処
理装置は、図9(B)において、CPU1B,ROM2
B,汎用RAM3B,演算器4B及びDMAC6から成
る。
The resulting data O is the operation data RAM 5
Is stored in the memory and is read by the CPU 1A. As a result, the arithmetic processing load of the CPU 1A is entrusted to the arithmetic unit 4A, and the arithmetic processing speed is increased. Also, CPU
A second data processing device provided with an arithmetic circuit other than the arithmetic circuit of 1B has a CPU 1B and a ROM 2 in FIG. 9B.
B, a general-purpose RAM 3B, an arithmetic unit 4B and a DMAC 6.

【0009】当該第2のデータ処理装置の機能は、例え
ば、第1のデータ処理装置と同様にマイクロ制御プログ
ラムに基づいてCPU1Bに内蔵された演算回路が演算
処理を実行する。この際に、順次実行された演算処理結
果がDMAC6を介して汎用RAM3Bに転送される。
また、CPU1Bよりも高速動作をする演算器4Bに演
算させるべく、演算処理結果がDMAC6を介して汎用
RAM3Bから直接読み出され、演算器4Bに被演算デ
ータXや演算データYが転送される。また、演算器4B
では被演算データXや演算データYに基づいて演算処理
され、その結果データOがDMAC6を介して汎用RA
M3Bに直接書き込まれる。これにより、第1のデータ
処理装置と同様にCPU1Bの演算処理負担を演算器4
Bに託し、その演算処理の高速化を図っている。
With respect to the function of the second data processing device, for example, as in the first data processing device, an arithmetic circuit incorporated in the CPU 1B executes arithmetic processing based on a micro control program. At this time, the result of the arithmetic processing executed sequentially is transferred to the general-purpose RAM 3B via the DMAC 6.
Further, in order for the arithmetic unit 4B operating faster than the CPU 1B to perform arithmetic operation, the arithmetic processing result is directly read from the general-purpose RAM 3B via the DMAC 6, and the operated data X and the arithmetic data Y are transferred to the arithmetic unit 4B. Also, the computing unit 4B
Then, the arithmetic processing is performed based on the operated data X and the operated data Y, and the resulting data O is transferred to the general-purpose RA via the DMAC 6.
Written directly to M3B. As a result, the arithmetic processing load on the CPU 1B is reduced as in the first data processing device.
We are entrusting this to B. We are trying to speed up the arithmetic processing.

【0010】[0010]

【発明が解決しようとする課題】ところで、従来例の第
1のデータ処理装置によれば、CPU1Aの演算処理を
補助する演算器4Aに演算データ用RAM5が接続さ
れ、該RAM5に展開された被演算データXや演算デー
タYが逐次読み出され、当該演算器4Aにより、被演算
データXと演算データYとが演算処理されている。
By the way, according to the first data processing apparatus of the prior art, the arithmetic data RAM 5 is connected to the arithmetic unit 4A for assisting the arithmetic processing of the CPU 1A, and the data expanded in the RAM 5 is stored. The calculation data X and the calculation data Y are sequentially read, and the calculation target data X and the calculation data Y are processed by the calculation unit 4A.

【0011】このため、演算処理前に、演算器4Aの専
用データ領域となる演算データ用RAM5に、被演算デ
ータXや演算データYを予め転送しておかなければなら
ない。このことから、全体のデータ処理時間は「データ
転送時間+演算に要する時間」となり、大幅な処理時間
を要し、データ処理の高速化の妨げとなるという問題が
ある。なお、演算データ用RAM5の回路数だけ実装面
積が大きくなり、さらに、該RAM5のメモリ容量以上
の演算項数が生じた時に使用しずらい。
Therefore, before the arithmetic processing, the operated data X and the operated data Y must be transferred in advance to the operated data RAM 5, which is a dedicated data area of the operating unit 4A. From this, the entire data processing time becomes "data transfer time + time required for calculation", which requires a large processing time, which hinders speeding up of data processing. The mounting area is increased by the number of circuits of the calculation data RAM 5, and when the number of calculation items exceeds the memory capacity of the RAM 5, it is difficult to use.

【0012】また、従来例の第2のデータ処理装置によ
れば、CPU1Aの演算処理を補助する演算器4BにD
MAC6が接続され、該DMAC6を介して演算処理結
果が汎用RAM3Bから直接読み出され、演算器4Bに
より被演算データXや演算データYに基づいて演算処理
されると、その結果データOがDMAC6を介して汎用
RAM3Bに直接書き込まれている。
Further, according to the second conventional data processing apparatus, D is provided in the arithmetic unit 4B for assisting the arithmetic processing of the CPU 1A.
When the MAC 6 is connected and the arithmetic processing result is directly read from the general-purpose RAM 3B via the DMAC 6 and arithmetic processing is performed by the arithmetic unit 4B on the basis of the operated data X or the arithmetic data Y, the result data O is transferred to the DMAC 6. It is directly written in the general-purpose RAM 3B via the.

【0013】このため、DMAC6の性能に依存して、
全体のデータ処理時間が第1のデータ処理装置に比べて
大幅に改善される。しかし、被演算データXや演算デー
タYがソフトウエア又はハードウエアにより演算器4B
に入力されるため、この動作をより早くなるように演算
器4Bのアドレスを効率良く割り当てる必要がある。な
お、DMAC6の回路分だけ実装面積が大きくなり、さ
らに、演算処理が終了するまで、被演算データXや演算
データYを汎用RAM3Bに展開しておかなければなら
い。
Therefore, depending on the performance of the DMAC6,
The overall data processing time is significantly improved compared to the first data processing device. However, the operated data X and the operated data Y are processed by the arithmetic unit 4B by software or hardware.
Therefore, it is necessary to efficiently assign the address of the arithmetic unit 4B so that this operation can be performed faster. It should be noted that the mounting area is increased by the circuit of the DMAC 6 and the operated data X and the operated data Y must be expanded in the general-purpose RAM 3B until the operation processing is completed.

【0014】これにより、演算器4Bの処理速度がDM
AC6の性能に依存され、それ以上のデータ処理の高速
化を図る場合にDMAC6の性能が障害となったり、演
算器4Bの計算式が複雑になると、ソフトウエアのプロ
グラム数が多くなるという問題がある。本発明は、かか
る従来例の問題点に鑑み創作されたものであり、演算器
の専用データ領域となる演算データ用RAMや、被演算
データ,演算データ及び結果データを直接書込み/読出
しをするDMACに依存することなく、それらの保持回
路と転送方法を工夫し、演算部の計算式が複雑な時で
も、少ない回路構成にて、高速に演算処理を行うことが
可能となるデータ処理装置及びデータ処理方法の提供を
目的とする。
As a result, the processing speed of the arithmetic unit 4B is DM.
Depending on the performance of the AC6, if the performance of the DMAC6 becomes an obstacle when the data processing speed is further increased or the calculation formula of the arithmetic unit 4B becomes complicated, the number of software programs increases. is there. The present invention was created in view of the problems of the conventional example, and is a RAM for arithmetic data, which is a dedicated data area of an arithmetic unit, and a DMAC for directly writing / reading operand data, arithmetic data and result data. Data processing device and data that can perform high-speed arithmetic processing with a small circuit configuration even when the calculation formula of the arithmetic unit is complicated without depending on The purpose is to provide a processing method.

【0015】[0015]

【課題を解決するための手段】図1(A),(B)は、
本発明に係るデータ処理装置及びデータ処理方法の原理
図を示している。本発明の第1のデータ処理装置は図1
(A)に示すように、データ処理制御手段11に設けら
れた演算部11Aとは別に、該データ処理制御手段11の
演算処理を補助する演算補助手段12を具備し、少なく
とも、前記演算補助手段12が第1,第2のデータ保持
手段12A,12B,演算手段12C及び出力データ保持手段
12Dから成り、前記第1のデータ保持手段12Aが第1の
入力データXを保持し、前記第2のデータ保持手段12B
が第2の入力データYを保持し、前記演算手段12Cが第
1の入力データX及び第2の入力データYに基づいて演
算処理をし、前記出力データ保持手段12Dが演算結果デ
ータOを保持することを特徴とする。
[Means for Solving the Problems] FIGS. 1A and 1B are
The principle view of the data processing device and the data processing method according to the present invention is shown. The first data processing device of the present invention is shown in FIG.
As shown in (A), in addition to the arithmetic unit 11A provided in the data processing control means 11, an arithmetic auxiliary means 12 for assisting the arithmetic processing of the data processing control means 11 is provided, and at least the arithmetic auxiliary means. Reference numeral 12 is first and second data holding means 12A, 12B, arithmetic means 12C and output data holding means.
12D, the first data holding means 12A holds the first input data X, and the second data holding means 12B.
Holds the second input data Y, the arithmetic means 12C performs arithmetic processing based on the first input data X and the second input data Y, and the output data holding means 12D holds the arithmetic result data O It is characterized by doing.

【0016】また、本発明の第2のデータ処理装置は図
1(B)に示すように、前記データ処理制御手段11に
接続された信号線13に演算補助手段12が2以上接続
されることを特徴とする。なお、本発明の第2のデータ
処理装置において、図1(B)に示すように、前記2以
上の演算補助手段12の間において、一方の演算補助手
段12の出力データ保持手段12Dと他方の演算補助手段
12の第1のデータ保持手段12A又は第2のデータ保持
手段12Bの間に切り換え手段14が接続されることを特
徴とする。
In the second data processor of the present invention, as shown in FIG. 1 (B), two or more operation assisting means 12 are connected to the signal line 13 connected to the data processing control means 11. Is characterized by. In the second data processor of the present invention, as shown in FIG. 1 (B), between the two or more operation assisting means 12, the output data holding means 12D of one operation assisting means 12 and the other The switching means 14 is connected between the first data holding means 12A and the second data holding means 12B of the calculation assisting means 12.

【0017】さらに、本発明の第1のデータ処理方法
は、データ処理制御手段11の演算処理とは別に演算処
理をするデータ処理方法において、少なくとも、第1の
書込みサイクルで第1の入力データXの転送を受けて、
その後、第2の書込みサイクルで第2の入力データYの
転送を受け、前記第1の入力データX及び第2の入力デ
ータYに基づいて演算処理をし、前記演算結果データO
を読出しサイクルにて転送をすることを特徴とする。
Further, the first data processing method of the present invention is a data processing method in which the arithmetic processing is performed separately from the arithmetic processing of the data processing control means 11, at least in the first write cycle, the first input data X. Received the transfer of
After that, the second input data Y is transferred in the second write cycle, the arithmetic processing is performed based on the first input data X and the second input data Y, and the arithmetic result data O
Is transferred in a read cycle.

【0018】また、本発明の第1のデータ処理方法にお
いて、前記演算処理は第2の書込みサイクルによる第2
の入力データYの転送を受けて開始することを特徴とす
る。さらに、本発明の第2のデータ処理方法は、データ
処理制御手段11の演算処理とは別に複数の演算処理を
するデータ処理方法において、一方の演算補助処理に基
づく演算結果データOを他方の演算補助処理の第1の入
力データX又は第2の入力データYに使用しパイプライ
ン処理をすることを特徴とし、上記目的を達成する。
Further, in the first data processing method of the present invention, the arithmetic processing is performed in the second write cycle.
It is characterized in that it is started upon receiving the transfer of the input data Y. Further, the second data processing method of the present invention is a data processing method in which a plurality of arithmetic processes are performed in addition to the arithmetic process of the data processing control means 11, in which the operation result data O based on one of the arithmetic auxiliary processes is operated on the other. The above object is achieved by using the first input data X or the second input data Y of the auxiliary processing to perform pipeline processing.

【0019】[0019]

【作用】本発明の第1のデータ処理装置によれば、図1
(A)に示すように、データ処理制御手段11に設けら
れた演算部11Aとは別に演算補助手段12が具備され、
演算補助手段12が第1,第2のデータ保持手段12A,
12B,演算手段12C及び出力データ保持手段12Dから成
っている。
According to the first data processing device of the present invention, as shown in FIG.
As shown in (A), the arithmetic processing unit 11A provided in the data processing control unit 11 is provided with an arithmetic assisting unit 12,
The calculation assisting means 12 includes the first and second data holding means 12A,
12B, an arithmetic means 12C and an output data holding means 12D.

【0020】このため、第1のデータ保持手段12Aに第
1の入力データXが保持され、第2のデータ保持手段12
Bに第2の入力データYが保持されると、演算手段12C
により第1の入力データXと第2の入力データYとに基
づいて演算処理され、その演算結果データOが出力デー
タ保持手段12Dに保持される。このことからデータ処理
制御手段11の演算部11Aとは別に設けられた演算補助
手段12により、該データ処理制御手段11の演算処理
を補助することが可能となる。
Therefore, the first input data X is held in the first data holding means 12A, and the second data holding means 12 is held.
When the second input data Y is held in B, the calculating means 12C
Thus, the calculation processing is performed based on the first input data X and the second input data Y, and the calculation result data O is held in the output data holding means 12D. From this, it becomes possible to assist the arithmetic processing of the data processing control means 11 by the arithmetic auxiliary means 12 provided separately from the arithmetic section 11A of the data processing control means 11.

【0021】これにより、従来例のような演算手段12C
の専用データ領域となる演算データ用RAMや被演算デ
ータ,演算データ及び結果データの直接書込み/読出し
をするDMACが不要となる。また、従来例のような演
算データ用RAMやDMACを省略することができ、そ
の回路規模だけ実装面積に余裕を持つことが可能とな
る。さらに、演算部の計算式が複雑な時でも、少ない回
路構成にて、高速な演算処理を行うことが可能となる。
As a result, the calculation means 12C as in the conventional example is provided.
It becomes unnecessary to provide a calculation data RAM which is a dedicated data area for the above and a DMAC which directly writes / reads the calculation target data, the calculation data and the result data. Further, it is possible to omit the calculation data RAM and the DMAC as in the conventional example, and it is possible to have a margin in the mounting area by the circuit scale. Furthermore, even when the calculation formula of the calculation unit is complicated, it is possible to perform high-speed calculation processing with a small circuit configuration.

【0022】また、本発明の第2のデータ処理装置によ
れば、図1(B)に示すように、データ処理制御手段1
1に接続された信号線13に演算補助手段12が2以上
接続される。このため、データ処理制御手段11の演算
部11Aに対し、その並列補助演算処理を行うことができ
る。例えば、図1(B)に示すように、2以上の演算補
助手段12の間に接続された切り換え手段14の切り換
え制御をすること,すなわち、一方の演算補助手段12
の出力データ保持手段12Dに保持された演算結果データ
Oを他方の演算補助手段12の第1のデータ保持手段12
A又は第2のデータ保持手段12Bに供給したり、それを
他の汎用RAM等に転送切り換え制御をすることによ
り、通常の並列データ処理とパイプライン処理とを切り
換えて行うことが可能となる。
Further, according to the second data processing apparatus of the present invention, as shown in FIG. 1B, the data processing control means 1
Two or more calculation assisting means 12 are connected to the signal line 13 connected to one. Therefore, the parallel auxiliary arithmetic processing can be performed on the arithmetic unit 11A of the data processing control means 11. For example, as shown in FIG. 1 (B), switching control of the switching means 14 connected between two or more arithmetic assisting means 12, that is, one arithmetic assisting means 12 is performed.
Of the operation result data O held in the output data holding means 12D of the first data holding means 12 of the other operation auxiliary means 12
It is possible to switch between normal parallel data processing and pipeline processing by supplying the data to A or the second data holding means 12B or controlling the transfer switching to another general-purpose RAM or the like.

【0023】これにより、当該データ処理装置の演算処
理機能及びその高速動作の向上に寄与するところが大き
い。さらに、本発明の第1のデータ処理方法によれば、
第1の書込みサイクルにより、第1の入力データXが第
1のデータ保持手段12Aに供給され、その後、第2の書
込みサイクルにより、第2の入力データYが第2のデー
タ保持手段12Bに供給され、第1の入力データXと第2
の入力データYとが演算処理される。
This greatly contributes to the improvement of the arithmetic processing function of the data processing device and its high speed operation. Further, according to the first data processing method of the present invention,
The first write cycle supplies the first input data X to the first data holding means 12A, and then the second write cycle supplies the second input data Y to the second data holding means 12B. The first input data X and the second
And the input data Y of are processed.

【0024】例えば、第1の入力データXや第2の入力
データYをソフトウエア又はハードウエアにより高速に
演算手段12Cに転送するように、該演算手段12Cのアド
レスを効率良く割り当てる。また、第2の書込みサイク
ルによる第2の入力データYの転送を受けて演算処理を
開始するよう制御をすると、読出しサイクルにて出力デ
ータ保持手段12Dから他の記憶手段等に該演算結果デー
タOが転送される。
For example, the addresses of the arithmetic means 12C are efficiently allocated so that the first input data X and the second input data Y are transferred to the arithmetic means 12C at high speed by software or hardware. Further, when control is performed to start the arithmetic processing upon receiving the transfer of the second input data Y in the second write cycle, the arithmetic result data O is transferred from the output data holding means 12D to another storage means or the like in the read cycle. Is transferred.

【0025】このため、演算処理前に従来例のような演
算手段12Cの専用データ領域に第1の入力データXや第
2の入力データYを予め転送展開して置く必要がない。
また、演算処理は第2の入力データYの転送を受けて開
始されることから、全体のデータ処理時間をデータ転送
時間とすることができ、見かけ上演算に要する時間を
「零」とすることが可能となる。
Therefore, it is not necessary to transfer and expand the first input data X and the second input data Y in the dedicated data area of the arithmetic means 12C before the arithmetic processing as in the conventional example.
Further, since the arithmetic processing is started upon receiving the transfer of the second input data Y, the entire data processing time can be set as the data transfer time, and the time required for the operation to be apparently set to “zero”. Is possible.

【0026】また、演算手段12Cの計算式が複雑になっ
た場合であっても、ソフトウエアのプログラム数は第1
の書込みサイクルによる第1の入力データXの転送,第
2の書込みサイクルによる第2の入力データYの転送及
び読出しサイクルにおける演算結果データの転送等の制
御プログラム数を同等にすることができる。これによ
り、従来例のようなDMAC等の性能に依存することが
無くなり、全体のデータ処理時間を第1,第2の書込み
サイクル及び読出しサイクルに依存させることができ、
従来例に比べて大幅にデータ処理速度の改善を図ること
が可能となる。また、大幅な処理時間の削減化を図るこ
とが可能となり、データ処理の高速化を図ることが可能
となる。
Even when the calculation formula of the calculating means 12C becomes complicated, the number of programs of software is the first.
The number of control programs for the transfer of the first input data X in the write cycle, the transfer of the second input data Y in the second write cycle, and the transfer of the operation result data in the read cycle can be made equal. This eliminates the dependence on the performance of the DMAC and the like as in the conventional example, and makes the entire data processing time dependent on the first and second write cycles and the read cycle,
It is possible to significantly improve the data processing speed as compared with the conventional example. In addition, it is possible to significantly reduce the processing time and speed up the data processing.

【0027】さらに、本発明の第2のデータ処理方法に
よれば、一方の演算補助処理に基づく演算結果データO
が他方の演算補助処理の第1の入力データX又は第2の
入力データYに使用され、そのパイプライン処理が行わ
れる。このため、データ処理制御手段11の演算部11A
に対し、その並列補助演算処理を高速に行うことがで
き、演算手段12Cの変更のみで多種多様な演算処理用途
に対応することが可能となる。
Further, according to the second data processing method of the present invention, the operation result data O based on one operation auxiliary process
Is used for the first input data X or the second input data Y of the other operation auxiliary processing, and the pipeline processing is performed. Therefore, the arithmetic unit 11A of the data processing control means 11
On the other hand, the parallel auxiliary arithmetic processing can be performed at high speed, and it becomes possible to cope with various kinds of arithmetic processing applications only by changing the arithmetic means 12C.

【0028】これにより、当該データ処理装置の演算処
理機能及びその高速動作の向上を図ることが可能とな
る。
This makes it possible to improve the arithmetic processing function of the data processing device and its high-speed operation.

【0029】[0029]

【実施例】次に、図を参照しながら本発明の実施例につ
いて説明をする。図2〜8は、本発明の実施例に係るデ
ータ処理装置及びデータ処理方法を説明する図である。 (1)第1の実施例の説明 図2は、本発明の第1の実施例に係るデータ処理装置の
全体構成図であり、図3はその補助演算ユニットの構成
図である。また、図4(A),(B)は本発明の各実施
例に係るレジスタのアドレス配置の説明図であり、図5
(A),(B)はその被演算レジスタ及び演算レジスタ
の説明図である。さらに、図6(A),(B)はその結
果レジスタ及びコントロール・ステータスレジスタの説
明図であり、図7は第1の実施例に係る補助演算ユニッ
トの動作フローチャートをそれぞれ示している。
Embodiments of the present invention will now be described with reference to the drawings. 2 to 8 are diagrams for explaining the data processing device and the data processing method according to the embodiment of the present invention. (1) Description of First Embodiment FIG. 2 is an overall configuration diagram of a data processing device according to a first embodiment of the present invention, and FIG. 3 is a configuration diagram of its auxiliary arithmetic unit. 4 (A) and 4 (B) are explanatory views of the address arrangement of the register according to each embodiment of the present invention.
(A), (B) is an explanatory view of the operated register and the operation register. Further, FIGS. 6A and 6B are explanatory diagrams of the result register and the control / status register, and FIG. 7 is an operation flowchart of the auxiliary arithmetic unit according to the first embodiment.

【0030】例えば、CPU21の演算器(以下ALU
という)21A以外に演算回路22Cを設けた第1のデータ
処理装置は、図2において、バス23に接続されたCP
U21,補助演算ユニット22,ROM25,汎用RA
M26,割り込み回路27から成る。すなわち、CPU
21はデータ処理制御手段11の一実施例であり、補助
演算ユニット22,ROM25,汎用RAM26及び割
り込み回路27の入出力を制御する。なお、CPU21
内には、ALU21Aが設けられるが本発明の実施例では
ALU21Aの処理機能が補助演算ユニット22の演算回
路22Cの演算機能より劣っていても良い。
For example, the arithmetic unit of the CPU 21 (hereinafter referred to as ALU
The first data processing device having an arithmetic circuit 22C in addition to 21A is a CP connected to the bus 23 in FIG.
U21, auxiliary arithmetic unit 22, ROM25, general-purpose RA
It comprises an M26 and an interrupt circuit 27. That is, the CPU
Reference numeral 21 is an embodiment of the data processing control means 11 and controls the input / output of the auxiliary arithmetic unit 22, the ROM 25, the general-purpose RAM 26 and the interrupt circuit 27. The CPU 21
Although the ALU 21A is provided therein, the processing function of the ALU 21A may be inferior to that of the arithmetic circuit 22C of the auxiliary arithmetic unit 22 in the embodiment of the present invention.

【0031】補助演算ユニット22は演算補助手段12
の一実施例であり、被演算レジスタ(以下レジスタXR
EGという)22A,演算レジスタ(以下レジスタYRE
Gという)22B,演算回路22C,結果レジスタ(以下レ
ジスタOREGという)22D及び制御部22Eから成る。
なお、補助演算ユニット22については、レジスタのア
ドレス配置と共に、図3〜5において詳述する。
The auxiliary operation unit 22 is an operation assisting means 12
The register to be operated (hereinafter referred to as register XR
22A, calculation register (hereinafter referred to as register YRE)
22B, an arithmetic circuit 22C, a result register (hereinafter referred to as register OREG) 22D, and a control unit 22E.
The auxiliary arithmetic unit 22 will be described in detail with reference to FIGS.

【0032】また、ROM25は当該データ処理装置の
マイクロ制御プログラムを格納するものであり、電気的
消去可能な読出し専用メモリ(EEPROM)や消去可
能な読出し専用メモリ(EPROM)から成る。汎用R
AM26はCPU21の演算処理に基づくデータやレジ
スタOREG22Dから出力される演算結果データ(以下
単に結果データという)Oを格納するものである。汎用
RAM26には、随時書込み/読出し書込み可能なメモ
リを用いる。割り込み回路27は、CPU21や補助演
算ユニット22で発生する割り込み要求を制御するもの
である。
The ROM 25 stores the micro control program of the data processing device, and is composed of an electrically erasable read-only memory (EEPROM) and an erasable read-only memory (EPROM). General-purpose R
The AM 26 stores data based on the arithmetic processing of the CPU 21 and operation result data (hereinafter simply referred to as result data) O output from the register OREG22D. As the general-purpose RAM 26, a memory that can be written / read / written at any time is used. The interrupt circuit 27 controls an interrupt request generated by the CPU 21 and the auxiliary arithmetic unit 22.

【0033】これにより、CPU21に設けられたAL
U21Aの演算処理を補助演算ユニット22により補助す
ることができる。図3は、本発明の各実施例に係る補助
演算ユニットの内部構成図であり、図4(A),(B)
は本発明の各実施例に係るレジスタのアドレス配置の説
明図であり、図5(A),(B)は当該補助演算ユニッ
トの被演算レジスタ及び演算レジスタの説明図である。
さらに、図6(A),(B)はその結果レジスタ及びコ
ントロール・ステータスレジスタの説明図をそれぞれ示
している。
As a result, the AL provided in the CPU 21
The arithmetic processing of U21A can be assisted by the auxiliary arithmetic unit 22. FIG. 3 is an internal configuration diagram of the auxiliary arithmetic unit according to each embodiment of the present invention, and FIG. 4 (A), (B)
5A and 5B are explanatory diagrams of the address arrangement of the registers according to the respective embodiments of the present invention, and FIGS. 5A and 5B are explanatory diagrams of the operand register and the arithmetic register of the auxiliary arithmetic unit.
Further, FIGS. 6A and 6B are explanatory views of the result register and the control / status register, respectively.

【0034】例えば、式(1)に示すような計算式,す
なわち、 Σ|X−Y|…(1) に基づいて、レジスタXREG22AとレジスタYREG
22Bに格納された値を減算をし、その結果の絶対値を順
に加算する場合,図3において、補助演算ユニット22
は各レジスタを構成するレジスタXREG22A,レジス
タYREG22B及びレジスタOREG22Dと、演算回路
22Cを構成する|X−Y|演算回路221 やΣ演算回路22
2 と、制御部22Eを構成する制御回路223 及びコントロ
ール・ステータスレジスタ(以下レジスタAFCSとい
う)224 が具備されて成る。
For example, the register XREG22A and the register YREG are based on the calculation formula as shown in the formula (1), that is, Σ│X-Y│ (1)
When the value stored in 22B is subtracted and the absolute value of the result is added in order, in FIG.
Is a register XREG22A, a register YREG22B, and a register OREG22D that form each register, and an arithmetic circuit.
22C | XY | arithmetic circuit 221 and Σ arithmetic circuit 22
2, a control circuit 223 constituting the control unit 22E and a control / status register (hereinafter referred to as register AFCS) 224.

【0035】すなわち、レジスタXREG22Aは第1の
データ保持手段12Aの一実施例であり、例えば、当該デ
ータ処理装置の動作基準クロック信号CLKに基づいて第
1の入力データXの一例となる被演算データを保持する
書込み/読出し可能なレジスタR/Wである。ここで、
レジスタXREG22Aは動作基準クロック信号CLK=2
サイクル(第1の書込みサイクル)で被演算データXの
書込みを完了する。なお、レジスタXREG22Aは16
ビットのレジスタ1組,その被演算データXは符号無し
16ビットである。
That is, the register XREG22A is an embodiment of the first data holding means 12A, and, for example, the processed data which is an example of the first input data X based on the operation reference clock signal CLK of the data processing device. Is a writable / readable register R / W for holding. here,
The register XREG22A has the operation reference clock signal CLK = 2.
In the cycle (first write cycle), the writing of the data to be operated X is completed. The register XREG22A has 16
One set of bit registers and the operand data X are 16 bits without a sign.

【0036】また、本発明の各実施例に係るレジスタの
アドレス配置は、例えば、図4(A)に示すように、下
位アドレス100H(16進)から上位アドレス300Hのアド
レスマップ範囲にメモリ領域を具備する汎用RAM26
と同じアドレスを採用する場合には、レジスタXREG
22Aを指定する下位アドレス100Hに入力データ(被演算
データ)Xを割当て、続いて、レジスタYREG22Bを
指定するアドレス101Hに入力データ(演算データ)Yを
割当てる。さらに、レジスタOREG22Dを指定するア
ドレス102Hに結果データOを割当てる。
In addition, as shown in FIG. 4A, for example, as shown in FIG. 4A, the address arrangement of the register according to each embodiment of the present invention has a memory area in the address map range from the lower address 100H (hexadecimal) to the upper address 300H. General-purpose RAM 26 provided
If you want to use the same address as
Input data (calculated data) X is assigned to the lower address 100H that specifies 22A, and subsequently input data (calculated data) Y is assigned to the address 101H that specifies the register YREG22B. Further, the result data O is assigned to the address 102H designating the register OREG22D.

【0037】なお、ソフトウエア上最も効率の良いアド
レスを割り付ける場合には、CPU21のアーキテクチ
ャにも依存するが、図4(A)に示すように命令実行時
間の短いアドレスに割り振る。例えば、データ処理動作
に付き、MOV(転送命令),汎用レジスタRW,アキ
ュームレートA等の命令実行時間が短い場合に、アドレ
スマップ上の汎用レジスタRW0に対して入力データ
(被演算データ)Xを割当て、次に、汎用レジスタRW
1に対して入力データ(演算データ)Yを割当てる。な
お、アドレスマップ上の汎用レジスタRW2に対して結
果データOを割当てる。
When assigning the most efficient address in software, it is assigned to an address having a short instruction execution time as shown in FIG. 4A, although it depends on the architecture of the CPU 21. For example, when the data processing operation involves a short instruction execution time such as MOV (transfer instruction), general-purpose register RW, and accumulation rate A, input data (calculated data) X is input to general-purpose register RW0 on the address map. Allocation, then general register RW
Input data (calculation data) Y is assigned to 1. The result data O is assigned to the general-purpose register RW2 on the address map.

【0038】汎用RAM26と同じアドレスを採用する
具体的な例としては、図5(A)に示すように下位アド
レス「000080H 」により被減算数X下位データXD00〜
XD07がレジスタXREG22Aのビット0〜7に格納さ
れる。また、レジスタXREG22Aのビット0〜7のビ
ット0〜7の初期値は「00000000」である。さらに、上
位アドレス「000081H 」により被減算数X上位データX
D08〜XD15がビット8〜15に格納され、そのビット8
〜15の初期値は「00000000」である。なお、本レジスタ
XREG22Aは随時書込み/読出し可能な演算レジスタ
である。
As a concrete example of adopting the same address as that of the general-purpose RAM 26, as shown in FIG. 5A, the subtracted number X lower data XD00 to the lower address "000080H" is used.
XD07 is stored in bits 0-7 of register XREG22A. The initial value of bits 0 to 7 of bits 0 to 7 of the register XREG22A is "00000000". Further, the subtracted number X upper data X is set by the upper address "000081H".
D08 to XD15 are stored in bits 8 to 15 and the bit 8
The initial value of ~ 15 is "00000000". The register XREG22A is an arithmetic register that can be written / read at any time.

【0039】レジスタYREG22Bは第2のデータ保持
手段12Bの一実施例であり、同様に、動作基準クロック
信号CLKに基づいて第2の入力データYの一例となる演
算データを保持する書込み/読出し可能なレジスタR/
Wである。ここで、レジスタYREG22Bは第1の書込
みサイクルに継続して発生する第2の書込みサイクル
(信号CLK=2サイクル)により被演算データYの書込
みを完了する。
The register YREG22B is an embodiment of the second data holding means 12B, and similarly, it is writable / readable for holding the operation data which is an example of the second input data Y based on the operation reference clock signal CLK. Register R /
W. Here, the register YREG22B completes the writing of the operand data Y in the second write cycle (signal CLK = 2 cycles) which continues to occur in the first write cycle.

【0040】具体的には図5(B)に示すように下位ア
ドレス「000082H 」により減算数Y下位データYD00〜
YD07がレジスタYREG22Bのビット0〜7に格納さ
れ、そのビット0〜7の初期値は「00000000」である。
さらに、上位アドレス「000083H 」により被減算数Y上
位データYD08〜YD15がレジスタYREG22Bのビッ
ト8〜15に格納され、そのビット8〜15の初期値は「00
000000」である。なお、演算回路22Cの演算動作がレジ
スタYREG22Bの下位バイトにライト動作(W)をす
ることにより開始されるため、このレジスタXREG22
Aを設定した後に、レジスタYREG22Bを設定する。
More specifically, as shown in FIG. 5B, the subtraction number Y lower data YD00 to lower address "000082H" is used.
YD07 is stored in bits 0 to 7 of register YREG22B, and the initial value of bits 0 to 7 is "00000000".
Further, the subtracted number Y high-order data YD08 to YD15 are stored in bits 8 to 15 of the register YREG22B by the high-order address "000083H", and the initial values of the bits 8 to 15 are "00".
000000 ". Since the arithmetic operation of the arithmetic circuit 22C is started by performing a write operation (W) to the lower byte of the register YREG22B, this register XREG22
After setting A, register YREG22B is set.

【0041】また、本レジスタYREG22Aはレジスタ
XREG22Aと同様に、随時書込み/読出し可能な演算
レジスタである。なお、本レジスタYREG22Aの演算
データ下位側にライト動作をすることにより演算が開始
され、読出しサイクルでは動作しない。演算回路22Cは
演算手段12Cの一実施例であり、被演算データX及び演
算データYに基づいて演算処理をするものである。例え
ば、演算回路22Cは|X−Y|演算回路221 やΣ演算回
路222 から成り、|X−Y|演算回路221 はレジスタY
REG22Bの第2の書込みサイクルによる書込み完了に
より、被演算データX及び演算データYの絶対値の減算
動作を開始する。
The register YREG22A is an arithmetic register that can be written / read at any time, like the register XREG22A. The operation is started by performing a write operation on the lower side of the operation data of this register YREG22A, and the operation is not performed in the read cycle. The arithmetic circuit 22C is an embodiment of the arithmetic means 12C and performs arithmetic processing based on the operated data X and the operated data Y. For example, the arithmetic circuit 22C is composed of a | X−Y | arithmetic circuit 221 and a Σ arithmetic circuit 222, and the | X−Y | arithmetic circuit 221 is a register Y.
When the writing of the REG22B in the second writing cycle is completed, the subtraction operation of the absolute values of the operated data X and the operated data Y is started.

【0042】また、Σ演算回路222 は被演算データX及
び演算データYに基づく減算結果データを逐次加算処理
(アキュームレート)をする。なお、演算動作はYRE
G22Aの下位バイトにライト動作をすることにより開始
する。これにより、演算時間=2サイクルでデータ処理
を終了する。レジスタOREG22Dは出力データ保持手
段12Dの一実施例であり、演算回路22Cから出力される
演算結果データ(以下単に結果データともいう)Oを保
持する読出し専用レジスタである。
Further, the Σ operation circuit 222 performs a successive addition process (accumulation rate) on the subtraction result data based on the operation data X and the operation data Y. The operation is YRE
It starts by performing a write operation on the lower byte of G22A. As a result, the data processing is completed in the calculation time = 2 cycles. The register OREG22D is an embodiment of the output data holding means 12D, and is a read-only register that holds the operation result data (hereinafter also simply referred to as result data) O output from the operation circuit 22C.

【0043】具体的には図6(A)に示すように下位ア
ドレス「000084H 」により結果値下位データOD00〜O
D07がレジスタOREG22Dのビット0〜7に格納さ
れ、そのビット0〜7の初期値は「00000000」である。
また、上位アドレス「000085H」により結果値上位デー
タOD08〜OD15がレジスタOREG22Dの8〜15ビッ
トに格納され、その8〜15ビットの初期値は「0000000
0」である。なお、本レジスタOREG22Dはレジスタ
YREG22Bの下位バイトの書込み動作により演算され
た結果データOが書き込まれ、オーバーフローがある場
合には、オーバーフローフラグ(COVF)がセットさ
れる。また、レジスタOREG22DはレジスタAFCS
224 のRCLRビットにてクリアされる。なお、レジス
タOREG22Dはリセットによってもクリアされ、結果
データOは符号無し16ビット+オーバーフローフラグ
により構成され、オーバーフローフラグセットは3サイ
クル目に挿入される。
Specifically, as shown in FIG. 6A, the result value lower data OD00 to O are obtained by the lower address "000084H".
D07 is stored in bits 0 to 7 of register OREG22D, and the initial value of bits 0 to 7 is "00000000".
Further, the result value upper data OD08 to OD15 is stored in the 8 to 15 bits of the register OREG22D by the upper address "000085H", and the initial value of the 8 to 15 bits is "0000000."
It is "0". The register OREG22D is written with the result data O calculated by the write operation of the lower byte of the register YREG22B, and if there is an overflow, the overflow flag (COVF) is set. The register OREG22D is the register AFCS.
It is cleared by the RCLR bit of 224. The register OREG22D is also cleared by reset, the result data O is composed of unsigned 16 bits + overflow flag, and the overflow flag set is inserted in the third cycle.

【0044】また、制御部22EはレジスタXREG22
A,レジスタYREG22B,演算回路22C及びレジスタ
OREG22Dの入出力を制御するものである。例えば、
制御部22Eは制御回路223 及びレジスタAFCS224 か
ら成り、制御回路223 はレジスタXREG22A,レジス
タYREG22B,演算回路22C及びレジスタOREG22
Dに動作基準クロック信号CLKを供給する。
Further, the control unit 22E uses the register XREG22.
The input / output of A, the register YREG22B, the arithmetic circuit 22C and the register OREG22D is controlled. For example,
The control unit 22E includes a control circuit 223 and a register AFCS224, and the control circuit 223 includes a register XREG22A, a register YREG22B, an arithmetic circuit 22C and a register OREG22.
The operation reference clock signal CLK is supplied to D.

【0045】さらに、レジスタAFCS224 は制御部22
Eの一部を構成し、制御データDCに基づいて、割り込
みを発生したり、制御回路223 に制御信号SCを出力す
る。具体的には図6(B)に示すように下位アドレス
「000086H 」により制御データDCがレジスタAFCS
224 の0〜7ビットに格納される。レジスタAFCS22
4 はビット7にCIE(カルキュレディッド・インタラ
プト・イネーブル)ビットが書き込まれ、ビット6にC
OVF(カルキュレディッド・オーバフラグ)ビットが
書き込まれ、ビット0にRCLR(レジスタ・クリア)
ビットがそれぞれ書き込まれる。なお、初期値00−0
であり、表1にレジスタAFCS224 の各ビットの内容
を示している。
Further, the register AFCS224 is provided in the control unit 22.
It constitutes a part of E and generates an interrupt or outputs a control signal SC to the control circuit 223 based on the control data DC. Specifically, as shown in FIG. 6B, the control data DC is transferred to the register AFCS by the lower address "000086H".
It is stored in 0 to 7 bits of 224. Register AFCS22
For C4, the CIE (calculated interrupt enable) bit is written in bit 7 and the C6 is written in bit 6.
OVF (calculated over flag) bit is written and RCLR (register clear) in bit 0
Each bit is written. Initial value 00-0
Table 1 shows the contents of each bit of the register AFCS224.

【0046】[0046]

【表1】 [Table 1]

【0047】例えば、表1において、CIEビットは計
算結果オーバーフロー割り込みを許可するデータであ
り、リセットによりクリアされる。また、「0」の書込
みでオーバーフロー割り込み禁止を示し、「1」の書込
みでオーバーフロー割り込み許可を示す。なお、演算終
了では割り込み処理に入ることができない。COVFビ
ットは計算結果オーバーフローフラグであり、演算結果
がオーバーした場合にセットされる。例えば、結果が
「FFFFH 」以上になった場合であり、「0」の書込
み及びリセットによりクリアされる。セット要因はオー
バーフローが発生した場合であり、クリア要因は「0」
の書込み及びリセットによる場合である。RCLRビッ
トはレジスタOREG22Dをクリアするためのビットで
あり、「0」書込みで結果データOを読み出すことがで
きる。また、「0」の書込みで機能無し/動作に影響無
しを示し、「1」の書込みでレジスタOREG22Dをク
リア「0000H 」する。
For example, in Table 1, the CIE bit is data for permitting the calculation result overflow interrupt and is cleared by reset. Further, writing "0" indicates that the overflow interrupt is prohibited, and writing "1" indicates that the overflow interrupt is permitted. Note that interrupt processing cannot be entered at the end of calculation. The COVF bit is a calculation result overflow flag and is set when the calculation result is over. For example, when the result is "FFFF H " or more, it is cleared by writing "0" and resetting. The set factor is when an overflow occurs, and the clear factor is "0".
This is the case by writing and resetting. The RCLR bit is a bit for clearing the register OREG22D, and the result data O can be read by writing "0". Also, writing "0" indicates no function / no effect on operation, and writing "1" clears register OREG22D to "0000 H ".

【0048】このようにして、本発明の第1の実施例に
係るデータ処理装置によれば、図2〜6に示すように、
CPU21に設けられたALU21Aとは別に補助演算ユ
ニット22が具備され、補助演算ユニット22がレジス
タXREG22A,YREG22B,|X−Y|演算回路22
1 ,Σ演算回路222 ,レジスタOREG22D,制御回路
223 及びレジスタAFCS224 から成っている。
In this way, according to the data processing device of the first embodiment of the present invention, as shown in FIGS.
An auxiliary arithmetic unit 22 is provided separately from the ALU 21A provided in the CPU 21, and the auxiliary arithmetic unit 22 includes registers XREG22A, YREG22B, | X-Y | arithmetic circuit 22.
1, Σ arithmetic circuit 222, register OREG22D, control circuit
223 and register AFCS224.

【0049】このため、レジスタXREG22Aに被演算
データXが保持され、レジスタYREG22Bに演算デー
タYが保持されると、|X−Y|演算回路221 により被
演算データXと演算データYとに基づいて絶対値X−Y
が演算処理され、その演算結果値がΣ演算回路222 によ
り加算処理され、その演算結果データOがレジスタOR
EG22Dに保持される。このことからCPU21のAL
U21Aとは別に設けられた補助演算ユニット22によ
り、該CPU21の演算処理を補助することが可能とな
る。
Therefore, when the operated data X is held in the register XREG22A and the operated data Y is held in the register YREG22B, the | X-Y | operating circuit 221 outputs the operated data X and the operated data Y based on the operated data X and the operated data Y. Absolute value XY
Is calculated, the calculated result value is added by the Σ calculating circuit 222, and the calculated result data O is stored in the register OR.
It is held in EG22D. From this, the AL of CPU21
The auxiliary arithmetic unit 22 provided separately from the U21A can assist the arithmetic processing of the CPU 21.

【0050】これにより、従来例のような演算回路22C
の専用データ領域となる演算データ用RAMや被演算デ
ータX,演算データY及び結果データOの直接書込み/
読出しを制御するDMACが不要となる。また、従来例
のような演算データ用RAMやDMACを省略すること
ができ、その回路規模だけ実装面積に余裕を持つことが
可能となる。さらに、ALUの計算式が複雑な時でも、
少ない回路構成にて、高速な演算処理を行うことが可能
となる。
As a result, the arithmetic circuit 22C as in the conventional example is provided.
RAM for operation data, which is a dedicated data area for, and direct writing of operation data X, operation data Y, and result data O
There is no need for a DMAC that controls reading. Further, it is possible to omit the calculation data RAM and the DMAC as in the conventional example, and it is possible to have a margin in the mounting area by the circuit scale. Furthermore, even when the calculation formula of ALU is complicated,
It is possible to perform high-speed arithmetic processing with a small circuit configuration.

【0051】次に、本発明の実施例に係るデータ処理方
法について、本発明のデータ処理装置の動作を補足しな
がら説明をする。図7は第1の実施例に係るデータ処理
装置の補助演算ユニットの動作フローチャートを示して
いる。例えば、CPU21の演算処理とは別に計算式
(1)のような絶対値差和を高速に演算する場合、図7
において、まず、ステップP1でコントロール・ステー
タスレジスタ(レジスタAFCS)224 の初期設定をす
る。この際に、レジスタAFCS224 にマイクロ制御プ
ログラムに基づいて,例えば、転送命令MOVに係る下
位アドレス#81H 値を書き込む。
Next, a data processing method according to the embodiment of the present invention will be described while supplementing the operation of the data processing apparatus of the present invention. FIG. 7 shows an operation flowchart of the auxiliary arithmetic unit of the data processing apparatus according to the first embodiment. For example, in the case where the absolute value difference sum like the calculation formula (1) is calculated at high speed separately from the calculation processing of the CPU 21, FIG.
In step P1, the control / status register (register AFCS) 224 is initialized. At this time, for example, the lower address # 81H value related to the transfer instruction MOV is written in the register AFCS224 based on the micro control program.

【0052】次に、ステップP2で、被演算レジスタ
(XREG)22Aに被演算データXを設定する。この際
に、第1の書込みサイクルにより被演算データXがレジ
スタXREG22Aに転送される。具体的には、マイクロ
制御プログラムに基づく、アドレス値#5555H により被
減算数X下位データXD00〜XD07がレジスタXREG
22Aのビット0〜7に転送され、被減算数X上位データ
XD08〜XD15がビット8〜15に転送される。
Next, at step P2, the data to be operated X is set in the operated register (XREG) 22A. At this time, the processed data X is transferred to the register XREG22A in the first write cycle. Specifically, the subtracted number X lower-order data XD00 to XD07 are registered in the register XREG by the address value # 5555H based on the micro control program.
22A is transferred to bits 0 to 7, and the subtracted number X upper data XD08 to XD15 is transferred to bits 8 to 15.

【0053】次いで、ステップP3で演算レジスタ(Y
REG)22Bに演算データYを設定する。この際に、第
2の書込みサイクルにより演算データYがレジスタYR
EG22Bに転送される。具体的には、マイクロ制御プロ
グラムに基づく、アドレス値#AAAAH により減算数Y下
位データYD00〜YD07がレジスタYREG22Bのビッ
ト0〜7に転送され、減算数Y上位データYD08〜YD
15がビット8〜15に転送される。
Then, in step P3, the operation register (Y
REG) 22B to set the calculation data Y. At this time, the operation data Y is transferred to the register YR by the second write cycle.
Transferred to EG22B. Specifically, the subtraction number Y lower data YD00 to YD07 is transferred to bits 0 to 7 of the register YREG22B by the address value #AAAAH based on the micro control program, and the subtraction number Y higher data YD08 to YD.
Fifteen is transferred to bits 8-15.

【0054】次に、ステップP4で被演算データX及び
演算データYに基づいて演算処理をする。この際に、レ
ジスタYREG22Bの下位バイトにデータYD00〜YD
07をライト動作することにより演算動作が開始され、|
X−Y|演算回路221 により被演算データXと演算デー
タYとに基づいて絶対値X−Yが演算処理される。ま
た、その演算値がΣ演算回路222 により加算処理(アキ
ュームレート )される。ここで、アドレス値#5555H
の演算内容が被演算データX,演算データY値の変更を
伴う場合には、ステップP2に戻って、レジスタXRE
G22Aのデータを書き換え、そして、ステップP3でレ
ジスタYREG22Bのデータも書き換える。その後、予
め設定された項数分だけ演算処理を繰り返す。また、ア
ドレス値#5555H の演算内容が被演算データX値が固定
で、演算データY値のみの変更を伴う場合には、ステッ
プP3に戻って、レジスタYREG22Bのデータのみを
書き換え、予め設定された項数分だけ演算処理を繰り返
す。その演算結果データO,すなわち、結果値下位デー
タOD00〜OD07がレジスタOREG22Dのビット0〜
7に格納され、結果値上位データOD08〜OD15が8〜
15ビットに格納される。
Next, in step P4, arithmetic processing is performed based on the operated data X and the operated data Y. At this time, data YD00 to YD is written in the lower byte of the register YREG22B.
The write operation of 07 starts the calculation operation.
The XY | operation circuit 221 calculates the absolute value XY based on the data to be operated X and the operation data Y. Further, the calculated value is added by the Σ calculation circuit 222 (accumulation rate). Where the address value # 5555H
If the contents of the calculation of (1) involve the change of the value of the operated data X and the value of the operated data Y, the process returns to step P2 and the register XRE
The data in G22A is rewritten, and in step P3, the data in the register YREG22B is also rewritten. After that, the calculation process is repeated by the number of items set in advance. When the operation content of the address value # 5555H is such that the operation data X value is fixed and only the operation data Y value is changed, the process returns to step P3 and only the data in the register YREG22B is rewritten and set in advance. The calculation process is repeated by the number of terms. The operation result data O, that is, the result value lower data OD00 to OD07 is bits 0 to 0 of the register OREG22D.
7 and the result value upper data OD08 to OD15 is 8 to
Stored in 15 bits.

【0055】その後、ステップP5で16ビットの結果
データOをレジスタOREG22Dの読出しサイクルにて
転送をする。この際に、レジスタOREG22Dに下位ア
ドレス「000084H 」を指定することにより結果値下位デ
ータOD00〜OD07がレジスタOREG22Dのビット0
〜7から読み出され、上位アドレス「000085H 」により
結果値上位データOD08〜OD15が8〜15ビットから読
み出される。なお、オーバーフローがある場合には、オ
ーバーフローフラグ(COVF)がセットされ、また、
レジスタAFCS224 のRCLRビット又はリセットに
よってレジスタOREG22Dがクリアされる。
Thereafter, in step P5, the 16-bit result data O is transferred in the read cycle of the register OREG22D. At this time, by designating the lower address "000084H" to the register OREG22D, the result value lower data OD00 to OD07 are transferred to the bit 0 of the register OREG22D.
7 to 7 and the result value upper data OD08 to OD15 are read from 8 to 15 bits by the upper address "000085H". If there is an overflow, the overflow flag (COVF) is set, and
The RCLR bit in register AFCS224 or a reset clears register OREG22D.

【0056】なお、オーバーフローフラグは演算途中で
演算結果データOが16ビットを越えた場合にセットさ
れ、このオーバーフローフラグのセットにより割り込み
要求を発生することが可能となる。また、演算終了時に
は、割り込み要求を発生することができない。このよう
にして、本発明の第1の実施例に係るデータ処理方法に
よれば、図7の動作フローチャートに示すように、第1
の書込みサイクルにより、被演算データXがレジスタX
REG22Aに供給され、その後、第2の書込みサイクル
により、演算データYがレジスタYREG22Bに供給さ
れ、被演算データXと演算データYとが演算処理され
る。
The overflow flag is set when the operation result data O exceeds 16 bits during the operation, and an interrupt request can be generated by setting the overflow flag. Further, at the end of the calculation, the interrupt request cannot be generated. In this way, according to the data processing method of the first embodiment of the present invention, as shown in the operation flowchart of FIG.
By the write cycle of the
After being supplied to the REG 22A, the operation data Y is supplied to the register YREG 22B in the second write cycle, and the operation data X and the operation data Y are processed.

【0057】例えば、図4(A),(B)に示すよう
に、被演算データXや演算データYをソフトウエア又は
ハードウエアにより高速に演算回路22Cに転送するよう
に、該演算回路22Cの各レジスタXREG22A,YRE
G22B,レジスタOREG22Dのアドレスを効率良く割
り当て、また、第2の書込みサイクルによる演算データ
Yの転送を受けて演算処理を開始するよう制御をする
と、当該演算回路22CがCPU21とは独立して演算動
作をし、その読出しサイクルにてレジスタOREG22D
から汎用RAM26等に該演算結果データOが転送され
る。
For example, as shown in FIGS. 4 (A) and 4 (B), the arithmetic circuit 22C is configured so that the arithmetic data X and the arithmetic data Y can be transferred to the arithmetic circuit 22C at high speed by software or hardware. Each register XREG22A, YRE
When the addresses of the G22B and the register OREG22D are efficiently allocated and the control is performed so as to start the arithmetic processing upon receiving the transfer of the arithmetic data Y in the second write cycle, the arithmetic circuit 22C operates independently of the CPU 21. And register OREG22D in the read cycle.
The operation result data O is transferred from the RAM to the general-purpose RAM 26 or the like.

【0058】このため、演算処理前に従来例のような演
算器4Aの専用データ領域に被演算データXや演算デー
タYを予め転送展開して置く必要がない。また、演算処
理は演算データYの転送を受けて開始されることから、
全体のデータ処理時間をデータ転送時間とすることがで
き、レジスタOREG22Cを読み出すまでに演算は終了
する。これにより、見かけ上演算に要する時間を「零」
とすることが可能となる。
Therefore, it is not necessary to transfer and expand the data to be operated X and the operation data Y in the dedicated data area of the operation unit 4A before the operation processing. Further, since the arithmetic processing is started upon receiving the transfer of the arithmetic data Y,
The entire data processing time can be used as the data transfer time, and the calculation is completed by the time the register OREG22C is read. This apparently reduces the time required for calculation to "zero".
It becomes possible to

【0059】なお、CPU21の命令実行時間より演算
時間が短い場合には、演算終了までの時間を考慮しなく
ても済む。すなわち、演算時間≦転送命令であれば、演
算時間を考えなくても必要な結果が得られる。また、終
了確認用のフラグが不要となる。また、演算回路22Cの
計算式が複雑になった場合であっても、ソフトウエアの
プログラム数は第1の書込みサイクルによる被演算デー
タXの転送,第2の書込みサイクルによる演算データY
の転送及び読出しサイクルにおける演算結果データの転
送等の制御プログラム数を同等にすることができる。
When the calculation time is shorter than the instruction execution time of the CPU 21, it is not necessary to consider the time until the calculation is completed. That is, if the operation time ≦ the transfer instruction, the required result can be obtained without considering the operation time. Further, the flag for confirming the end is unnecessary. Even when the calculation formula of the arithmetic circuit 22C becomes complicated, the number of software programs is such that the operation data X is transferred in the first write cycle and the operation data Y in the second write cycle is transferred.
It is possible to equalize the number of control programs for the transfer of the operation result data in the transfer and read cycles.

【0060】このことから、データ転送のみで演算動作
が開始されるため、演算項の数に関わらず演算処理をす
ることができ、演算項の数の自由度(フレキシブル)が
増加をする。また、演算データ用RAMのメモリ容量以
上の演算項数が生じた時にも簡単に対処することが可能
となる。このことで、演算回路22Cの変更のみで多種多
様な演算処理用途に対応することが可能となる。
From this, since the arithmetic operation is started only by the data transfer, the arithmetic processing can be performed regardless of the number of arithmetic terms, and the degree of freedom (flexibility) in the number of arithmetic terms increases. Further, it is possible to easily deal with the case where the number of calculation items exceeds the memory capacity of the calculation data RAM. As a result, it is possible to deal with a wide variety of arithmetic processing applications only by changing the arithmetic circuit 22C.

【0061】これにより、従来例のようなDMAC等の
性能に依存することが無くなり、全体のデータ処理時間
を第1,第2の書込みサイクル及び読出しサイクルに依
存させることができ、従来例に比べて大幅にデータ処理
速度の高速化の改善を図ることが可能となる。また、大
幅な処理時間の削減化を図ることが可能となり、データ
処理の高速化を図ることが可能となる。
This eliminates the dependence on the performance of the DMAC or the like as in the conventional example, and makes it possible to make the entire data processing time dependent on the first and second write cycles and the read cycle. It is possible to significantly improve the speedup of the data processing speed. In addition, it is possible to significantly reduce the processing time and speed up the data processing.

【0062】(2)第2の実施例の説明 図8は、本発明の第2の実施例に係るデータ処理装置及
びデータ処理方法の説明図である。なお、第1の実施例
と異なるは第2の実施例ではCPU31に接続されたバ
ス33に補助演算ユニット301 ,303 が2個設けられ、
通常の並列データ処理とパイプライン処理と切り換えて
行うものである。
(2) Description of Second Embodiment FIG. 8 is an explanatory diagram of a data processing device and a data processing method according to a second embodiment of the present invention. In the second embodiment, which is different from the first embodiment, two auxiliary arithmetic units 301 and 303 are provided on the bus 33 connected to the CPU 31,
This is performed by switching between normal parallel data processing and pipeline processing.

【0063】すなわち、本発明の第2のデータ処理装置
は、図8において、補助演算ユニット301 ,302 及び切
り換え部24から成り、当該補助演算ユニット301 ,30
2 は、本発明の実施例に係る補助演算ユニット22から
構成される。また、本発明の第2の実施例に係るレジス
タのアドレス配置は、アドレスマップ下位L領域から上
位H領域に被演算データX1,演算データY1,結果デ
ータO1,被演算データX2,演算データY2及び結果
データO2が割当られる。
That is, the second data processing apparatus of the present invention comprises, in FIG. 8, auxiliary calculation units 301 and 302 and a switching unit 24, and the auxiliary calculation units 301 and 30 are provided.
2 is composed of the auxiliary arithmetic unit 22 according to the embodiment of the present invention. Further, the address arrangement of the register according to the second embodiment of the present invention is such that the operation data X1, operation data Y1, result data O1, operation data X2, operation data Y2 and Result data O2 is assigned.

【0064】切り換え部24は切り換え手段14の一例
であり、例えば、補助演算ユニット302 の被演算データ
X2につき、アドレスマップのレジスタ値を用いるか、
補助演算ユニット301 の結果データO1 を用いるかを切
り換えるものである。すなわち、2つの補助演算ユニッ
ト301 ,302 の間において、一方の補助演算ユニット30
1 のレジスタOREG33Dと他方の補助演算ユニット30
2 のレジスタXREG33Aの間に切り換え部24が接続
される。なお、マイクロ制御プログラムによっては、補
助演算ユニット301 のレジスタOREG33Dと補助演算
ユニット302 のレジスタYREG33Bとの間に切り換え
部24を接続しても良い。
The switching unit 24 is an example of the switching unit 14, and, for example, the register value of the address map is used for the processed data X2 of the auxiliary processing unit 302, or
This is to switch whether to use the result data O1 of the auxiliary arithmetic unit 301. That is, between the two auxiliary arithmetic units 301, 302, one auxiliary arithmetic unit 30
One register OREG33D and the other auxiliary arithmetic unit 30
The switching unit 24 is connected between the two registers XREG33A. Depending on the micro control program, the switching unit 24 may be connected between the register OREG33D of the auxiliary arithmetic unit 301 and the register YREG33B of the auxiliary arithmetic unit 302.

【0065】このようにして、本発明の第2の実施例に
係るデータ処理装置によれば、図8に示すように、CP
U31のバス33に2つの補助演算ユニット301 ,302
が接続される。このため、CPU31のALU31Aに対
し、その並列補助演算処理を行うことができる。例え
ば、図8において、2つの補助演算ユニット301 ,302
の間に接続された切り換え部24の切り換え制御をする
こと,すなわち、補助演算ユニット301 のレジスタOR
EG33Dに保持された演算結果データO1を補助演算ユ
ニット302 のレジスタXREG33A又はレジスタYRE
G33Bに供給したり、それを他の汎用RAM等に転送切
り換え制御をすることにより、通常の並列データ処理と
パイプライン処理とを切り換えて行うことが可能とな
る。
In this way, according to the data processing device of the second embodiment of the present invention, as shown in FIG.
Two auxiliary arithmetic units 301, 302 on the bus 33 of U31
Are connected. Therefore, the parallel auxiliary arithmetic processing can be performed on the ALU 31A of the CPU 31. For example, in FIG. 8, two auxiliary arithmetic units 301 and 302
Switching control of the switching unit 24 connected between the two, that is, the register OR of the auxiliary arithmetic unit 301.
The operation result data O1 held in the EG33D is transferred to the register XREG33A or the register YRE of the auxiliary operation unit 302.
By supplying it to the G33B or controlling the transfer switching to another general-purpose RAM or the like, it becomes possible to switch between normal parallel data processing and pipeline processing.

【0066】このことから、本発明の実施例に係るデー
タ処理方法において、補助演算ユニット301 による演算
補助処理に基づく演算結果データO1を他方の補助演算
ユニット302 の被演算データX2又は演算データY2に
使用してパイプライン処理をすることにより、CPU3
1のALU31Aに対しその並列補助処理を高速に行うこ
とができ、演算回路33Cの変更のみで多種多様な演算処
理用途に対応することが可能となる。
Therefore, in the data processing method according to the embodiment of the present invention, the operation result data O1 based on the auxiliary operation processing by the auxiliary operation unit 301 is converted into the operated data X2 or the operation data Y2 of the other auxiliary operation unit 302. By using pipeline processing, CPU3
The parallel auxiliary processing can be performed at high speed for one ALU 31A, and it is possible to cope with a wide variety of arithmetic processing applications only by changing the arithmetic circuit 33C.

【0067】これにより、当該データ処理装置の演算処
理機能及びその高速動作の向上を図ることが可能とな
る。
This makes it possible to improve the arithmetic processing function of the data processing device and its high-speed operation.

【0068】[0068]

【発明の効果】以上説明したように、本発明の第1のデ
ータ処理装置によれば、データ処理制御手段に設けられ
た演算部とは別に演算補助手段が具備され、演算補助手
段が第1,第2のデータ保持手段,演算手段及び出力デ
ータ保持手段から成っている。このため、従来例のよう
な演算手段の専用データ領域となる演算データ用RAM
や被演算データ,演算データ及び結果データの直接書込
み/読出しをするDMACが不要となる。また、従来例
のような演算データ用RAMやDMACを省略すること
ができることから、その回路規模だけ実装面積に余裕を
持つことが可能となる。さらに、演算部の計算式が複雑
な時でも、少ない回路構成にて、高速な演算処理を行う
ことが可能となる。
As described above, according to the first data processing apparatus of the present invention, the operation assisting means is provided separately from the operation unit provided in the data processing control means, and the operation assisting means is the first operation means. , Second data holding means, arithmetic means and output data holding means. For this reason, a calculation data RAM which is a dedicated data area for the calculation means as in the conventional example.
Also, the DMAC for directly writing / reading the data to be operated, the operation data and the result data becomes unnecessary. Further, since the calculation data RAM and the DMAC as in the conventional example can be omitted, it is possible to have a margin in the mounting area by the circuit scale. Furthermore, even when the calculation formula of the calculation unit is complicated, it is possible to perform high-speed calculation processing with a small circuit configuration.

【0069】また、本発明の第2のデータ処理装置によ
れば、データ処理制御手段に接続された信号線に演算補
助手段が2以上接続される。このため、2以上の演算補
助手段の間に接続された切り換え手段の動作制御をする
ことにより、データ処理制御手段の演算部に対し通常の
並列データ処理とパイプライン処理とを選択しながらデ
ータ処理をする並列補助演算処理を行うことが可能とな
る。
Further, according to the second data processing apparatus of the present invention, two or more calculation assisting means are connected to the signal line connected to the data processing control means. Therefore, by controlling the operation of the switching means connected between the two or more arithmetic auxiliary means, the data processing is performed while selecting the normal parallel data processing and the pipeline processing for the arithmetic unit of the data processing control means. It is possible to perform parallel auxiliary arithmetic processing that

【0070】さらに、本発明の第1のデータ処理方法に
よれば、第1の書込みサイクルにより、第1の入力デー
タが第1のデータ保持手段に供給され、その後、第2の
書込みサイクルにより、第2の入力データが第2のデー
タ保持手段に供給され、第1の入力データと第2の入力
データとが演算処理される。このため、演算処理前に従
来例のような演算手段の専用データ領域に第1の入力デ
ータや第2の入力データを予め転送展開して置く必要が
ない。また、演算処理は第2の入力データの転送を受け
て開始されることから、全体のデータ処理時間をデータ
転送時間とすることができ、見かけ上演算に要する時間
を「零」とすることが可能となる。
Further, according to the first data processing method of the present invention, the first input data is supplied to the first data holding means in the first write cycle, and then the second write cycle is performed. The second input data is supplied to the second data holding means, and the first input data and the second input data are processed. For this reason, it is not necessary to transfer and expand the first input data and the second input data in advance in the dedicated data area of the calculation means before the calculation processing. Further, since the arithmetic processing is started upon receiving the transfer of the second input data, the entire data processing time can be set as the data transfer time, and the apparent time required for the operation can be set to “zero”. It will be possible.

【0071】また、演算手段の計算式が複雑になった場
合であっても、ソフトウエアのプログラム数を第1の入
力データの転送,第2の入力データの転送及び演算結果
データの転送等の制御プログラム数と同等にすることが
できる。さらに、本発明の第2のデータ処理方法によれ
ば、一方の演算補助処理に基づく演算結果データが他方
の演算補助処理の第1の入力データ又は第2の入力デー
タに使用され、そのパイプライン処理が行われる。
Further, even when the calculation formula of the arithmetic means becomes complicated, the number of software programs can be set such that the first input data is transferred, the second input data is transferred, and the operation result data is transferred. It can be made equal to the number of control programs. Further, according to the second data processing method of the present invention, the operation result data based on one operation auxiliary process is used for the first input data or the second input data of the other operation auxiliary process, and the pipeline thereof is used. Processing is performed.

【0072】このため、データ処理制御手段の演算部に
対し、その並列補助演算処理を高速に行うことができ、
演算手段の変更のみで多種多様な演算処理用途に対応す
ることが可能となる。これにより、従来例に比べ、回路
構成の縮小化を図りつつ、データ処理速度の高速化を図
ることが可能となり、高演算機能及び高速動作可能なデ
ータ処理装置提供に寄与するところが大きい。
Therefore, the parallel auxiliary arithmetic processing can be performed at high speed for the arithmetic unit of the data processing control means,
It is possible to deal with various uses of arithmetic processing only by changing the arithmetic means. As a result, compared with the conventional example, it is possible to reduce the circuit configuration and increase the data processing speed, which greatly contributes to the provision of a data processing device that has a high calculation function and high-speed operation.

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

【図1】本発明に係るデータ処理装置及びデータ処理方
法の原理図である。
FIG. 1 is a principle diagram of a data processing device and a data processing method according to the present invention.

【図2】本発明の第1の実施例に係るデータ処理装置の
全体構成図である。
FIG. 2 is an overall configuration diagram of a data processing device according to a first embodiment of the present invention.

【図3】本発明の各実施例に係る補助演算ユニットの内
部構成図である。
FIG. 3 is an internal configuration diagram of an auxiliary arithmetic unit according to each embodiment of the present invention.

【図4】本発明の各実施例に係るレジスタのアドレス配
置の説明図である。
FIG. 4 is an explanatory diagram of address arrangement of registers according to each embodiment of the present invention.

【図5】本発明の各実施例に係る被演算レジスタ及び演
算レジスタの説明図である。
FIG. 5 is an explanatory diagram of an operand register and an arithmetic register according to each embodiment of the present invention.

【図6】本発明の各実施例に係る結果レジスタ及びコン
トロール・ステータスレジスタの説明図である。
FIG. 6 is an explanatory diagram of a result register and a control / status register according to each embodiment of the present invention.

【図7】本発明の第1の実施例に係る補助演算ユニット
の動作フローチャートである。
FIG. 7 is an operation flowchart of the auxiliary arithmetic unit according to the first embodiment of the present invention.

【図8】本発明の第2の実施例に係るデータ処理装置の
説明図である。
FIG. 8 is an explanatory diagram of a data processing device according to a second embodiment of the present invention.

【図9】従来例に係るデータ処理装置の説明図である。FIG. 9 is an explanatory diagram of a data processing device according to a conventional example.

【符号の説明】 11…データ処理制御手段、 11A…演算部、 12…演算補助手段、 12A,12B…第1,第2のデータ保持手段、 12C…演算手段、 12D…出力データ保持手段、 13…信号線、 14…切り換え手段、 X,Y…第1,第2の入力データ、 O…演算結果データ。[Explanation of Codes] 11 ... Data processing control means, 11A ... Calculation section, 12 ... Calculation auxiliary means, 12A, 12B ... First and second data holding means, 12C ... Calculation means, 12D ... Output data holding means, 13 ... signal line, 14 ... switching means, X, Y ... first and second input data, O ... operation result data.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 データ処理制御手段(11)に設けられ
た演算部(11A)とは別に、該データ処理制御手段(1
1)の演算処理を補助する演算補助手段(12)を具備
し、少なくとも、前記演算補助手段(12)が第1,第
2のデータ保持手段(12A,12B),演算手段(12C)
及び出力データ保持手段(12D)から成り、 前記第1のデータ保持手段(12A)が第1の入力データ
(X)を保持し、前記第2のデータ保持手段(12B)が
第2の入力データ(Y)を保持し、前記演算手段(12
C)が第1の入力データ(X)及び第2の入力データ
(Y)に基づいて演算処理をし、前記出力データ保持手
段(12D)が演算結果データ(O)を保持することを特
徴とするデータ処理装置。
1. A data processing control means (1) separate from an arithmetic unit (11A) provided in the data processing control means (11).
1) A calculation assisting means (12) for assisting the calculation processing is provided, and at least the calculation assisting means (12) is a first and second data holding means (12A, 12B), a calculating means (12C).
And an output data holding means (12D), the first data holding means (12A) holds the first input data (X), and the second data holding means (12B) holds the second input data. (Y) is held and the calculation means (12
C) performs arithmetic processing based on the first input data (X) and the second input data (Y), and the output data holding means (12D) holds the operation result data (O). Data processing device.
【請求項2】 前記データ処理制御手段(11)に接続
された信号線(13)に演算補助手段(12)が2以上
接続されることを特徴とする請求項1記載のデータ処理
装置。
2. The data processing apparatus according to claim 1, wherein two or more calculation assisting means (12) are connected to the signal line (13) connected to the data processing control means (11).
【請求項3】 前記2以上の演算補助手段(12)の間
において、一方の演算補助手段(12)の出力データ保
持手段(12D)と他方の演算補助手段(12)の第1の
データ保持手段(12A)又は第2のデータ保持手段(12
B)の間に切り換え手段(14)が接続されることを特
徴とする請求項1,2記載のデータ処理装置。
3. The output data holding means (12D) of one of the operation assisting means (12) and the first data holding of the other operation assisting means (12) between the two or more operation assisting means (12). Means (12A) or second data holding means (12
Data processing device according to claims 1 and 2, characterized in that a switching means (14) is connected between B).
【請求項4】 データ処理制御手段(11)の演算処理
とは別に演算処理をするデータ処理方法において、少な
くとも、第1の書込みサイクルで第1の入力データ
(X)の転送を受けて、その後、第2の書込みサイクル
で第2の入力データ(Y)の転送を受け、前記第1の入
力データ(X)及び第2の入力データ(Y)に基づいて
演算処理をし、前記演算結果データ(O)を読出しサイ
クルにて転送をすることを特徴とするデータ処理方法。
4. A data processing method for performing arithmetic processing separately from the arithmetic processing of the data processing control means (11), at least after receiving the transfer of the first input data (X) in the first write cycle, , The second input data (Y) is transferred in the second write cycle, arithmetic processing is performed based on the first input data (X) and the second input data (Y), and the arithmetic result data is obtained. A data processing method, wherein (O) is transferred in a read cycle.
【請求項5】 前記演算処理は第2の書込みサイクルに
よる第2の入力データ(Y)の転送を受けて開始するこ
とを特徴とする請求項4記載のデータ処理方法。
5. The data processing method according to claim 4, wherein the arithmetic processing is started upon receiving the transfer of the second input data (Y) in the second write cycle.
【請求項6】 データ処理制御手段(11)の演算処理
とは別に複数の演算処理をするデータ処理方法におい
て、一方の演算補助処理に基づく演算結果データ(O)
を他方の演算補助処理の第1の入力データ(X)又は第
2の入力データ(Y)に使用しパイプライン処理をする
ことを特徴とする請求項4,5記載のデータ処理方法。
6. A data processing method for performing a plurality of arithmetic processes in addition to the arithmetic process of the data processing control means (11), the arithmetic result data (O) based on one of the arithmetic auxiliary processes.
6. The data processing method according to claim 4, wherein the pipeline processing is performed by using the above as the first input data (X) or the second input data (Y) of the other operation auxiliary processing.
JP5054341A 1993-03-15 1993-03-15 Data processor and data processing method Pending JPH06266557A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP5054341A JPH06266557A (en) 1993-03-15 1993-03-15 Data processor and data processing method
US08/709,683 US5826099A (en) 1993-03-15 1996-09-10 Data processor having a computing element mounted on a microcontroller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5054341A JPH06266557A (en) 1993-03-15 1993-03-15 Data processor and data processing method

Publications (1)

Publication Number Publication Date
JPH06266557A true JPH06266557A (en) 1994-09-22

Family

ID=12967914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5054341A Pending JPH06266557A (en) 1993-03-15 1993-03-15 Data processor and data processing method

Country Status (1)

Country Link
JP (1) JPH06266557A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009223897A (en) * 1997-03-27 2009-10-01 Atmel Corp Eight-bit microcontroller having risc architecture

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009223897A (en) * 1997-03-27 2009-10-01 Atmel Corp Eight-bit microcontroller having risc architecture

Similar Documents

Publication Publication Date Title
US3962682A (en) Split low order internal address bus for microprocessor
JPH09330236A (en) Microprocessor and peripheral device for the same
US4016546A (en) Bus switch coupling for series-coupled address bus sections in a microprocessor
US4037204A (en) Microprocessor interrupt logic
US4030079A (en) Processor including incrementor and program register structure
US4004281A (en) Microprocessor chip register bus structure
JPH06266557A (en) Data processor and data processing method
JP2001084141A (en) Processor
US6215504B1 (en) Line drawing using operand routing and operation selective multimedia extension unit
US6539472B1 (en) Reboot control unit and reboot control method
JPH1173408A (en) Arithmetic processing system and its method
JPH11120115A (en) Pci bus interrput steering circuit
JPH05334258A (en) Multiprocessor type one chip microcomputer
US5826099A (en) Data processor having a computing element mounted on a microcontroller
JPS6355634A (en) Data processing system
JPH0635800A (en) Microprocessor and data processing system using it
JP2000112754A (en) Data processor
JPS62151938A (en) Instruction processing system
JPS63184147A (en) Method for initializing channel controller
JPS6225334A (en) Instruction processing system
JP2583599B2 (en) Binary integer multiplication processing method
JP3541776B2 (en) Microcomputer
JPS62107339A (en) Instruction constituting method for microcomputer
US6161174A (en) Pipelined central processor incorporating indicator busy sensing and responsive pipeline timing modification
JPH06162067A (en) Device and method for controlling vector instruction

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20011225