JPH02118892A - Processor - Google Patents

Processor

Info

Publication number
JPH02118892A
JPH02118892A JP63273462A JP27346288A JPH02118892A JP H02118892 A JPH02118892 A JP H02118892A JP 63273462 A JP63273462 A JP 63273462A JP 27346288 A JP27346288 A JP 27346288A JP H02118892 A JPH02118892 A JP H02118892A
Authority
JP
Japan
Prior art keywords
processor
data
output
data processing
zero
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
JP63273462A
Other languages
Japanese (ja)
Inventor
Tetsuji Kishi
貴志 哲司
Katsuyuki Kaneko
克幸 金子
Akiyoshi Wakaya
若谷 彰良
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 JP63273462A priority Critical patent/JPH02118892A/en
Publication of JPH02118892A publication Critical patent/JPH02118892A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Microcomputers (AREA)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To simultaneously execute data transfer and data processing by successively adding +1 to a counter in the title processor according to the data transfer, executing the data processing in the processor when a counter number is a positive number, and inhibiting the data processing when the counter number is zero. CONSTITUTION:When prescribed instruction data are inputted to an instruction register 4, an instruction decoder 5 decodes the data and adds -1 to an up/down counter 1 according to the decoded result. Further, a bus control interface circuit 6 is accelerated its task of data processing until a zero output is obtained in a zero detecting circuit 2. When the value of the counter 1 goes to '0', the output of the circuit 2 comes to true, and an interruption signal is generated according to the contents of a flag register 3, starts interruption control for the circuit 6, and inhibits the data processing of the processor. In the same manner, the interruption signal generated according to the contents of the register 3 is outputted to the external part of the processor, starts interruption control for the processor from the external part, and inhibits the prescribed data processing.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、情報処理装置に用いられる演算及び制御回路
を内蔵したマイクロプロセッサに関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a microprocessor with built-in arithmetic and control circuits used in information processing devices.

従来の技術 一般的に、バスを共有しないマルチプロセラサンステム
におけるプロセッサ内のデータ転送や、非同期に動作す
るバス上の機器へのデータ転送を行った後、所定のプロ
セッサにおいて所定のデータ処理を行う場合、通常デー
タ転送にかかわるタスクが完了した後、目的としたプロ
セッサに対してデータ処理のタスク起動がDMA (D
irect Menory Access)装置によっ
て促される。
Conventional technology Generally, data is transferred within a processor in a multi-processor system that does not share a bus, or data is transferred to devices on the bus that operate asynchronously, and then predetermined data processing is performed in a predetermined processor. In this case, after the task related to normal data transfer is completed, the data processing task is started for the target processor using DMA (D
direct Memory Access) device.

一方、このようなデータ転送直後に所定のプロセッサに
おいてデータ処理を高速に行いたい場合、すなわちDM
Aにおいて実行されているデータ転送の転送データを転
送と同時にデータ処理可能な状態にしたい場合がある。
On the other hand, if you want to perform high-speed data processing in a predetermined processor immediately after such data transfer, in other words, DM
There is a case where it is desired to make the transfer data of the data transfer being executed at A ready for data processing at the same time as the transfer.

例としては、マルチプロセッサにおけるプロセッサ間の
パイプライン処理を高速に行いたい場合や、プロセッサ
アレイにおけるプロセラ゛す間のデータ交換などがこれ
らにあたる。このような例においては、転送済みデータ
、すなわちDMAによってデータ転送がどこまで新しい
データに置換されているかを確認するのがむずかしく特
にマルチプロセッサシステム等における非同期転送に伴
うプロセッサ間の同期をとる際の重要な問題となりつる
Examples of this include cases where it is desired to perform pipeline processing between processors in a multiprocessor at high speed, and data exchange between processors in a processor array. In such an example, it is difficult to check the transferred data, that is, to what extent the data transfer has been replaced with new data by DMA, which is especially important when synchronizing between processors due to asynchronous transfer in a multiprocessor system. It becomes a problem.

上記のような例において、特にメモリ上に連続して置か
れているデータ群に対して非同期にデータ転送が行われ
た直後にプロセッサにおいてデータ処理を行う方法とし
ては、以下のような方法がある。
In the above example, the following methods can be used to process data in the processor immediately after asynchronous data transfer is performed for a group of data stored consecutively in memory. .

記憶装置とプロセッサ間にF I F O(Flrst
−In−First−Out)メモリを配置し、これを
介してデータ転送を行うものである。 (第2図参照)
この場合、プロセッサはメモリとF’IFOメモリの両
方に対してストア動作を行う必要がある。また、第2の
方法として、プロセッサ内部または、該プロセッサ外部
にデータキャッシュメモリを用意し、該データキャシュ
メモリに対してFIFOアルゴリズムを用いることによ
ってデータ転送と同時にプロセッサにたいしてデータ処
理のタスクの起動と停止を行う。しかしながら、第1の
方法のおいては転送データ量に相応する容量のF’lF
Oメモリを用意する必要があり、第2の方法においては
キャラツユ内のデータのフヒーレンシ、すなわちキャッ
シュメモリとメモリ内のデータの統一化を維持すること
のためにパイプライン処理等においては複雑な制御が伴
う。
There is an FIFO (Flrst) between the storage device and the processor.
-In-First-Out) memory is arranged, and data is transferred via this. (See Figure 2)
In this case, the processor needs to perform store operations on both memory and F'IFO memory. As a second method, a data cache memory is prepared inside the processor or outside the processor, and a FIFO algorithm is used for the data cache memory to start and stop data processing tasks for the processor at the same time as data transfer. I do. However, in the first method, F'IF has a capacity corresponding to the amount of transferred data.
In the second method, complex control is required in pipeline processing etc. in order to maintain the consistency of data in the charatsuyu, that is, the unification of data in the cache memory and memory. Accompany.

発明が解決しようとした課題 上記のようなシステムにおいては、データ転送に応じて
所定のデータ処理を行うためにはFIFOメモリ、もし
くはキャッシュメモリをFIFOアルゴリズムで制御し
たものを介して制御をおこなう必要があった。しかしな
がら、第1の手法においては転送データ量に相応するF
IFOメモリと、第2の手法においてはキャッシュメモ
リとその制御用のハードウェアを該プロセッサに付加す
る必要があった。
Problems that the invention sought to solve In the above-mentioned system, in order to perform predetermined data processing in response to data transfer, it is necessary to perform control via a FIFO memory or a cache memory controlled by a FIFO algorithm. there were. However, in the first method, F
In the second method, it was necessary to add an IFO memory and, in the second method, a cache memory and hardware for controlling the same to the processor.

本発明は、このような不都合に関してなされたことで簡
単なハードウェアをプロセッサに付加することによって
データ転送と同時にデータ処理を可能な状態にすること
を目的としている。
The present invention has been made to solve this problem and aims to add simple hardware to the processor, thereby making it possible to perform data processing simultaneously with data transfer.

課題を解決するための手段 本発明は上記問題点を解決するためにプロセッサ内にカ
ウンタを設はデータ転送によって+1を順次加算するこ
とによってプロセッサ内に現在データ処理可能なデータ
数を計数しカウンタ数が正の場合はプロセッサによって
データ処理を行い零の場合には、前記プロセッサにおけ
るデータ処理に対して禁止をするように制御するもので
ある。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides a counter in the processor and counts the number of data that can be currently processed in the processor by sequentially adding +1 by data transfer. When is positive, data processing is performed by the processor, and when it is zero, data processing by the processor is prohibited.

作用 本発明は上記のような構成により、データ処理可能なデ
ータ数が常にカウンタによって指示されている為、プロ
セッサがこのカウンタの値を更新して容易にデータ処理
可能な転送データを認識することが出来る、プロセッサ
がこのカウンタを更新することによって容易にデータ処
理可能なデータ数を更新することができる。
Effects of the present invention With the above-described configuration, the number of data that can be processed is always indicated by a counter, so that the processor can easily recognize the transfer data that can be processed by updating the value of this counter. By updating this counter, the processor can easily update the number of data that can be processed.

実施例 第1図は、本発明のプロセッサの一実施例を示すブロッ
ク図である。第1図において、1はゼロクリヤ機能を有
したアップ/ダウンカウンタ、2はゼロ検出回路、3は
フラグレジスタ、4は命令レジスタ、5は命令デコーダ
、6はバス制御インターフェース回路、7は汎用レジス
タ、8はALUから構成され、外部バスインターフェー
ス6にDMA転送毎にデータ転送をモニタする外部バス
転送監視信号によって、アップ/ダウンカウンタ1を+
1カウントアツプし、転送開始にはアドレスレジスタ3
にデータ転送の先頭アドレスを格納する。
Embodiment FIG. 1 is a block diagram showing an embodiment of the processor of the present invention. In FIG. 1, 1 is an up/down counter with a zero clear function, 2 is a zero detection circuit, 3 is a flag register, 4 is an instruction register, 5 is an instruction decoder, 6 is a bus control interface circuit, 7 is a general-purpose register, 8 is composed of an ALU, and an up/down counter 1 is set to + by an external bus transfer monitoring signal that monitors data transfer for each DMA transfer to the external bus interface 6.
1 count up, address register 3 to start transfer.
Store the start address of data transfer in .

今、プロセッサOの命令レジスタ5に所定の命令データ
が入力されると命令レジスタ5、命令デコーグ4を介し
て解読され、命令デコーダ4のデコード結果によって、
アップ/ダウンカウンタ1を一1加算しながらゼロ検出
回路2においてゼロ出力が得られるまでバス制御インタ
フェース回路6に対してデータ処理のタスクを促す。
Now, when predetermined instruction data is input to the instruction register 5 of the processor O, it is decoded via the instruction register 5 and the instruction decoder 4, and based on the decoding result of the instruction decoder 4,
While incrementing the up/down counter 1 by 1, the bus control interface circuit 6 is prompted to perform a data processing task until a zero output is obtained in the zero detection circuit 2.

今、アップ/ダウンカウンタ1の値が0になるとゼロ検
出回路2の出力が真となりゼロ検出結果を示すフラグレ
ジスタ3の内容によって、割り込み信号が発生する、割
り込み信号はバス制御インターフェース回路6に対して
割り込み制御を起動させ、該プロセッサにおける所定の
データ処理を禁止する。
Now, when the value of the up/down counter 1 becomes 0, the output of the zero detection circuit 2 becomes true, and an interrupt signal is generated depending on the contents of the flag register 3 indicating the zero detection result.The interrupt signal is sent to the bus control interface circuit 6. interrupt control is activated, and predetermined data processing in the processor is prohibited.

また同様にアップ/ダウンカウンタ1の値がOになると
ゼロ検出回路2の出力が真となりゼロ検出結果を示すフ
ラグレジスタ3の内容によって、発生する、割り込み信
号をプロセッサ0外部に出力し外部からプロセッサ0に
対する割り込み制御を起動させ、プロセッサ0における
所定のデータ処理を禁止する。
Similarly, when the value of the up/down counter 1 becomes O, the output of the zero detection circuit 2 becomes true, and depending on the contents of the flag register 3 indicating the zero detection result, the generated interrupt signal is output to the outside of the processor 0. Activates interrupt control for processor 0 and prohibits predetermined data processing in processor 0.

発明の効果 以上述べてきたように、本発明によれば、F■FOメモ
リや、データキャッシュ等を特別用いることな(、比較
的簡単な回路を、−従来のプロセッサに組み込むことに
よって特定のデータ列をデータ転送後即時にデータ処理
可能な状態にすることができる。
Effects of the Invention As described above, according to the present invention, specific data can be processed without special use of FFO memory, data cache, etc. by incorporating a relatively simple circuit into a conventional processor. A column can be made ready for data processing immediately after data transfer.

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

第1図は本発明の一実施例におけるプロセッサノフロソ
ク図、第2図は従来のマルチプロセッサの構成図である
。 1・・・ゼロクリヤ機能を有したアップ/ダウンカウン
タ、2・・・ゼロ検出回路、3・Φφフラグレジスタ、
4拳舎・命令レジスタ、5・・・命令デコーダ、6・・
・バス制御インターフェース回路、7φ・・汎用レジス
タ、8・・・A L U。 代理人の氏名 弁理士 栗野重孝 はか1名第2図 外部バス 1図
FIG. 1 is a processor block diagram according to an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional multiprocessor. 1...Up/down counter with zero clear function, 2...Zero detection circuit, 3.Φφ flag register,
4. Instruction register, 5.. instruction decoder, 6..
・Bus control interface circuit, 7φ...General purpose register, 8...ALU. Name of agent: Patent attorney Shigetaka Kurino (1 person) Figure 2 External bus Figure 1

Claims (3)

【特許請求の範囲】[Claims] (1)ゼロクリヤ機能を有するアップ/ダウンカウンタ
と、前記アップ/ダウンカウンタのゼロ検出回路と、そ
のゼロ出力を示すフラグレジスタと、外部バス入出力を
制御するバスインターフェース回路と、命令を保持する
命令レジスタと、前記命令レジスタの内容を解読する命
令デコーダを備えたプロセッサであって、前記アップ/
ダウンカウンタが、外部のデータの転送動作をモニタす
る外部バス転送監視信号によぅて、転送データに応じて
カウントアップされ、また上記命令デコーダのデコード
結果によってカウントダウンもしくは、クリヤされるこ
とを特徴としたプロセッサ。
(1) An up/down counter with a zero clear function, a zero detection circuit for the up/down counter, a flag register that indicates its zero output, a bus interface circuit that controls external bus input/output, and an instruction that holds instructions. A processor comprising a register and an instruction decoder for decoding the contents of the instruction register, the processor comprising:
The down counter is incremented in accordance with the transferred data by an external bus transfer monitoring signal that monitors the external data transfer operation, and is counted down or cleared in accordance with the decoding result of the instruction decoder. processor.
(2)ゼロ検出回路の出力が真の時、該ゼロ検出回路の
出力を示すフラグレジスタより割り込み信号バスインタ
ーフェースに出力することを特徴とした特許請求の範囲
第1項記載のプロセッサ。
(2) The processor according to claim 1, wherein when the output of the zero detection circuit is true, the flag register indicating the output of the zero detection circuit outputs the output to the interrupt signal bus interface.
(3)ゼロ検出回路の出力が真の時、該ゼロ検出回路の
出力を示すフラグレジスタより割り込み信号を該プロセ
ッサより外部信号線に出力することを特徴とした特許請
求の範囲第1項記載のプロセッサ。
(3) When the output of the zero detection circuit is true, an interrupt signal is output from the processor to an external signal line from a flag register indicating the output of the zero detection circuit. processor.
JP63273462A 1988-10-28 1988-10-28 Processor Pending JPH02118892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63273462A JPH02118892A (en) 1988-10-28 1988-10-28 Processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63273462A JPH02118892A (en) 1988-10-28 1988-10-28 Processor

Publications (1)

Publication Number Publication Date
JPH02118892A true JPH02118892A (en) 1990-05-07

Family

ID=17528257

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63273462A Pending JPH02118892A (en) 1988-10-28 1988-10-28 Processor

Country Status (1)

Country Link
JP (1) JPH02118892A (en)

Similar Documents

Publication Publication Date Title
US4648034A (en) Busy signal interface between master and slave processors in a computer system
US5353418A (en) System storing thread descriptor identifying one of plural threads of computation in storage only when all data for operating on thread is ready and independently of resultant imperative processing of thread
US4794524A (en) Pipelined single chip microprocessor having on-chip cache and on-chip memory management unit
US5499349A (en) Pipelined processor with fork, join, and start instructions using tokens to indicate the next instruction for each of multiple threads of execution
EP0913767B1 (en) A method and apparatus for affecting subsequent instruction processing in a data processor
US7020871B2 (en) Breakpoint method for parallel hardware threads in multithreaded processor
US5696989A (en) Microcomputer equipped with DMA controller allowed to continue to perform data transfer operations even after completion of a current data transfer operation
US4779195A (en) Interrupt system using masking register in processor for selectively establishing device eligibility to interrupt a particular processor
US5043867A (en) Exception reporting mechanism for a vector processor
JPS63127368A (en) Control system for vector processor
JPS63240664A (en) Fast processing computer
JPS63261449A (en) Data processor
US4631672A (en) Arithmetic control apparatus for a pipeline processing system
US5615375A (en) Interrupt control circuit
JP2001249808A (en) Information processor
US4409653A (en) Method of performing a clear and wait operation with a single instruction
JPH02118892A (en) Processor
JPH02173828A (en) Interruption process system
JP2511063B2 (en) Pipeline control method
JPH0340169A (en) Multiple processor system and method of controlling plurality of processor
JPH04106652A (en) Exceptional treatment system
JPS5999552A (en) Microcomputer
JP2922979B2 (en) Central processing unit
JPH0271331A (en) Access processing method for shared resources
JPS5942331B2 (en) Prosetsusasouchinoseigiohoshiki