JPS625439A - Instruction code expansion system - Google Patents
Instruction code expansion systemInfo
- Publication number
- JPS625439A JPS625439A JP14432485A JP14432485A JPS625439A JP S625439 A JPS625439 A JP S625439A JP 14432485 A JP14432485 A JP 14432485A JP 14432485 A JP14432485 A JP 14432485A JP S625439 A JPS625439 A JP S625439A
- Authority
- JP
- Japan
- Prior art keywords
- processor
- instruction
- extended
- instructions
- main processor
- 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
Links
Landscapes
- Advance Control (AREA)
- Executing Machine-Instructions (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔概要〕
主プロセッサの未定義命令コードを利用し、補助プロセ
ッサの仕事を指示する拡張命令となし、この拡張命令を
検出したことで、主プロセッサには動作しないように指
示するノーオペレーション命令に変換して与え、補助ブ
[1センナにはこの間に拡張命令を読取らせ、主プロセ
ッサに代わって定式化されたデータ処理を遂行させる。[Detailed Description of the Invention] [Summary] The undefined instruction code of the main processor is used as an extension instruction to instruct the work of the auxiliary processor, and upon detection of this extension instruction, the main processor is instructed not to operate. During this time, the auxiliary processor reads the extended instructions and performs the formulated data processing in place of the main processor.
本発明ば或まとま、った定式化されたデータ処理を行う
プロセッサに係り、特に主プロセッサの未定義命令コー
ドを利用し、て、補助プロセッサに仕事を指示すること
を可能とする命令コード拡張方式に関する。The present invention relates to a processor that performs a certain amount of formalized data processing, and in particular to an instruction code extension method that makes it possible to instruct work to an auxiliary processor by using undefined instruction codes of the main processor. Regarding.
半導体技術の発展に伴い、プロセッサを使用し、プログ
ラムによりこのプロセッサにデータ処理を指示するデー
タ処理装置が多く用いられるようになってきた。このデ
ータ処理装置に使用されるプロセッサはノイマン型方式
であり、命令を一命令ずつプログラムメモリから取り込
んで解読し、その指示に従ってオペランドを取込み、演
算することでデータ処理を行っている。2. Description of the Related Art With the development of semiconductor technology, many data processing devices have come into use that use a processor and instruct the processor to process data using a program. The processor used in this data processing device is of the Neumann type, and performs data processing by fetching and decoding instructions one by one from a program memory, and fetching and calculating operands according to the instructions.
ところで、データ処理装置のインテリジェント機能が増
大するにつれ、プロセッサの持つ命令コードだけで処理
出来ない或まとまった定式化された仕事を行うことが多
くなり、この仕事を指示するプログラムはかなりのステ
ップ数となって、プロセッサの処理時間も増大している
。By the way, as the intelligent functions of data processing devices increase, it is becoming more common for processors to perform a large number of formalized tasks that cannot be processed using only their instruction codes, and the programs that instruct this task require a considerable number of steps. As a result, the processing time of the processor is also increasing.
従ってこの仕事をプロセッサの負担にならない方法で、
他のプロセッサ等に処理させ得ることが望ましい。Therefore, this work can be done in a way that does not burden the processor.
It is desirable that the processing can be performed by another processor or the like.
第2図はデータ処理装置の一例を示すブロック図である
。FIG. 2 is a block diagram showing an example of a data processing device.
プロセッサ1はメモリ2からプログラムを読出して動作
し、処理したデータをメモリ2に格納する。又インタフ
ェース回路5を経て上位装置とデータの送受を行う。こ
の時上位装置から入るデータはメモリ2に格納し、メモ
リ2のデータを読出して送出する。The processor 1 reads a program from the memory 2, operates it, and stores the processed data in the memory 2. It also sends and receives data to and from a host device via the interface circuit 5. At this time, data input from the host device is stored in the memory 2, and the data in the memory 2 is read out and sent out.
キーボード3からはキーボード制御回路4を経て、オペ
レータの命令や入力データが入り、プロセッサ1はこの
命令を実行すると共にデータはメモリ2に格納してから
読出して処理する。Operator commands and input data are input from the keyboard 3 via the keyboard control circuit 4, and the processor 1 executes the commands and stores the data in the memory 2 before reading it out and processing it.
プロセッサ1は必要に応じてディスク7をディスク制御
回路6を経てアクセスし、データを読出したり、書込ん
だりする。又プリンタ制御回路8を経てプリンタを駆動
し、メモリ2から読出したデータを印刷させる。又表示
制御回路10を制御して表示部11にメモリ2から読出
したデータの表示を行う。The processor 1 accesses the disk 7 via the disk control circuit 6 as necessary to read or write data. The printer is also driven via the printer control circuit 8 to print the data read from the memory 2. It also controls the display control circuit 10 to display the data read from the memory 2 on the display section 11.
従来のデータ処理装置のプロセッサ1は、データ処理を
固有の命令コード(機械語)を用いたソフトウェアに従
って、逐次命令コード、オペランドを取込み、解読して
実行しており、まとまった分量のデータ処理、例えばメ
モリ2のアクセス、ディスク7やプリンタ9の如き入出
力装置アクセス等も総てプロセッサ1が実行している。A processor 1 of a conventional data processing device sequentially reads instruction codes and operands, decodes and executes data processing according to software using a unique instruction code (machine language), and processes a large amount of data. For example, access to the memory 2, access to input/output devices such as the disk 7 and the printer 9, etc. are all executed by the processor 1.
このプロセッサ1が例えば8ビツトのプロセッサであっ
た場合、命令コードは0O−FFまで256通りあるが
、前記まとまった分量のデータ処理は、プロセッサ1の
持つ256通りの命令コードだけでは処理出来ず、この
処理を指示するプログラムはステップ数が多くなる。If this processor 1 is, for example, an 8-bit processor, there are 256 instruction codes from 0O to FF, but processing the large amount of data cannot be processed only with the 256 instruction codes possessed by the processor 1. A program that instructs this processing has a large number of steps.
上記の如く、データ処理方法が定式化されており、且つ
このデータ処理が頻繁に行われる場合、従来はステップ
数の多い命令を一命令ずつメモリ2から読出して取込み
、解読して実行するため、プロセッサ1の処理効率が低
下するという問題がある。As mentioned above, when a data processing method is formulated and this data processing is frequently performed, conventionally, instructions with a large number of steps are read out from the memory 2 one by one, fetched, decoded, and executed. There is a problem that the processing efficiency of the processor 1 decreases.
本発明はこのような問題点に鑑み、プロセッサlの外に
補助プロセッサを設け、且つプロセッサlの未定義命令
コードを利用して、この補助プロセッサの起動を可能と
すると共に、直接プロセッサ1のソフトウェアでこの補
助プロセッサに、前記定式化されたデータ処理を実行さ
せることを目的としている。In view of these problems, the present invention provides an auxiliary processor outside of the processor 1, and utilizes the undefined instruction code of the processor 1 to enable the auxiliary processor to be started, and also directly updates the software of the processor 1. The purpose is to have this auxiliary processor execute the formulated data processing.
即ち一般に8ビツトのプロセッサは256通りの命令コ
ードの中200通り程度を使用している。That is, an 8-bit processor generally uses about 200 out of 256 instruction codes.
従って残りの未定義命令コードを拡張し、補助プロセッ
サに対する命令として使用することが可能である。Therefore, it is possible to expand the remaining undefined instruction codes and use them as instructions to the auxiliary processor.
第1図は本発明の一実施例を示す回路のブロック図であ
る。FIG. 1 is a block diagram of a circuit showing one embodiment of the present invention.
15はデータ処理装置全体を制御する主プロセッサ、1
6は主プロセッサ15を補助する補助プロセッサ、17
は未定義命令コードを利用した拡張命令を格納するシフ
トレジスタ、18は拡張命令を変換し、NOP (ノー
オペレーション命令、プロセッサに動作しないよ・うに
指示する命令)を主プロセッサ15に送出する命令コー
ド変換回路、19は拡張命令であることを判定する拡張
命令判定回路、20はプログラムを格納したプログラム
メモリである。15 is a main processor that controls the entire data processing device;
6 is an auxiliary processor that assists the main processor 15; 17;
18 is a shift register that stores an extended instruction using an undefined instruction code, and 18 is an instruction code that converts the extended instruction and sends a NOP (no-operation instruction, an instruction that instructs the processor not to operate) to the main processor 15. A conversion circuit 19 is an extended instruction determination circuit that determines whether the instruction is an extended instruction, and 20 is a program memory that stores a program.
拡張命令判定回路19はプログラムメモリ20から読出
された命令が、拡張命令である場合、命令コード変換回
路18に主プロセッサ15へNOPを送出させ、シフト
レジスタ17にはこの拡張命令を格納させる。そし゛C
シフi−1/ジスタ17は拡張命令が格納し終わったら
補助プロセッサ16に起動割込み要求をトげ、この拡張
命令を実行させる構成とする。If the instruction read from the program memory 20 is an extended instruction, the extended instruction determination circuit 19 causes the instruction code conversion circuit 18 to send a NOP to the main processor 15, and causes the shift register 17 to store this extended instruction. Soshi C
The shift i-1/register 17 is configured to issue a startup interrupt request to the auxiliary processor 16 when the extended instruction has been stored, causing the extended instruction to be executed.
上記構成とすることにより、予めプログラムメモリ20
に主プロセッサの未定義命令コードを利用した拡張命令
を格納しておくことで、補助プロセッサにデータ処理を
指示することが可能となり、主プロセッサは定式化した
データ処理を代行させることで、負担が軽減され、デー
タ処理効率を向上させることが出来る。With the above configuration, the program memory 20
By storing extended instructions that utilize the main processor's undefined instruction code in the auxiliary processor, it is possible to instruct the auxiliary processor to process data, and the main processor is freed from the burden by having it perform the formalized data processing on its behalf. data processing efficiency can be improved.
第1図においで、主プロセッサ15はプログラムメモリ
20から、−命令ずつ読出して取込み、解読してデータ
バスBに接続される入出力装置等を制御する。In FIG. 1, the main processor 15 reads -instructions one by one from the program memory 20, takes in them, decodes them, and controls the input/output devices connected to the data bus B.
拡張命令判定回路19は主プロセッサ15から命令取込
みサイクル信号を受け、データバスBに読出されたデー
タをチェックし、予め未定義命令コードを拡張した拡張
命令が格納されているプログラムメモリ20から、拡張
命令が読出されると、命令コード変換回路18を制御し
てNOPに変換させ、主プロセッサ15に送出させて拡
張命令が主プロセッサ15に入り、暴走することを防止
する。The extended instruction determination circuit 19 receives an instruction fetch cycle signal from the main processor 15, checks the data read to the data bus B, and selects an extended instruction from the program memory 20 in which extended instructions obtained by extending undefined instruction codes are stored in advance. When an instruction is read, the instruction code conversion circuit 18 is controlled to convert it to NOP and send it to the main processor 15, thereby preventing the extended instruction from entering the main processor 15 and running out of control.
又同時に拡張命令判定回路工9はシフトレジスタ17に
指示して、データバスB上に読出された拡張命令を格納
させる。シフトレジスタ17はこの拡張命令を総て格納
し終わると、起動割込み要求を補助プロセッサ16に送
出し、補助プロセッサ16を起動する。At the same time, the extended instruction determination circuit 9 instructs the shift register 17 to store the extended instruction read onto the data bus B. When the shift register 17 has finished storing all of the extended instructions, it sends a startup interrupt request to the auxiliary processor 16 and starts the auxiliary processor 16.
補助プロセッサ16はシフトレジスタ17の内容を読取
り、この拡張命令の指示に基づき主プロセッサ15が行
う仕事を代行する。この時必要に応じて補助プロセッサ
バスAに接続されるメモリ等を利用する。The auxiliary processor 16 reads the contents of the shift register 17 and performs the work performed by the main processor 15 based on the instructions of this extended instruction. At this time, a memory or the like connected to the auxiliary processor bus A is used as necessary.
この時主プロセッサ15は、例えば20ステツプのプロ
グラムを処理する代わりに、1ステップ分のNOP動作
を行うだけで、残り19ステツプ分は他の処理に利用出
来る。At this time, the main processor 15 only performs a NOP operation for one step instead of processing a 20-step program, and the remaining 19 steps can be used for other processing.
以」二説明した如く、本発明ば主プロセッサの未定義命
令コードを利用し、拡張命令として補助プロセッサのり
3作を指示するため、主プロセッサは補助プロセッサを
制御する必要が無(、処理効率を高めることが出来る。As explained below, according to the present invention, the undefined instruction code of the main processor is used to instruct the auxiliary processor as an extension instruction, so the main processor does not need to control the auxiliary processor (this improves processing efficiency). It can be increased.
【図面の簡単な説明】
第1図は本発明の一実施例を示す回路のブロック図、
第2図はデータ処理装置の一例を示すブロック図である
。
図において、
1はプロセッサ、 2はメモリ、3はキーボード
、 4はキーボード制御回路、5はインタフェー
ス回路、
6はディスク制御回路、7はディスク、8はプリンタ制
御回路、9はプリンタ、10は表示制御回路、 11
は表示部、15は主プロセッサ、 16は補助プロセ
ッサ、17はシフトレジスタ、 18は命令コード変換
回路、19は拡張命令判定回路、BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a circuit showing an embodiment of the present invention, and FIG. 2 is a block diagram showing an example of a data processing device. In the figure, 1 is a processor, 2 is a memory, 3 is a keyboard, 4 is a keyboard control circuit, 5 is an interface circuit, 6 is a disk control circuit, 7 is a disk, 8 is a printer control circuit, 9 is a printer, and 10 is a display control circuit, 11
15 is a display unit, 15 is a main processor, 16 is an auxiliary processor, 17 is a shift register, 18 is an instruction code conversion circuit, 19 is an extended instruction determination circuit,
Claims (1)
示により動作する補助プロセッサ(16)とを持つデー
タ処理装置において、 前記主プロセッサ(15)の未定義命令コードを利用し
て、前記補助プロセッサ(16)の仕事を指示する拡張
命令を格納するメモリ(20)と、該拡張命令が該メモ
リ(20)から読出されたことを検知する拡張命令判定
手段(19)と、該拡張命令判定手段(19)の指示に
基づき前記拡張命令をノーオペレーション命令に変換し
て、主プロセッサ(15)に送出する命令コード変換手
段(18)と、 前記拡張命令判定手段(19)の指示に基づき拡張命令
を格納して起動割込み要求を補助プロセッサ(16)に
送出する記憶手段(17)とを設け、前記メモリ(20
)から拡張命令が読出された場合、主プロセッサ(15
)にノーオペレーション命令を送出し、補助プロセッサ
(16)を起動して前記記憶手段(17)に格納された
拡張命令を読取らせることを特徴とする命令コード拡張
方式。[Claims] A data processing device having a main processor (15) and an auxiliary processor (16) that operates according to instructions from the main processor (15), using an undefined instruction code of the main processor (15). a memory (20) for storing extended instructions instructing the work of the auxiliary processor (16); and extended instruction determining means (19) for detecting that the extended instructions have been read from the memory (20). , an instruction code converting means (18) for converting the extended instruction into a no-operation instruction based on an instruction from the extended instruction determining means (19) and sending it to the main processor (15); and the extended instruction determining means (19). storage means (17) for storing extended instructions and sending a startup interrupt request to the auxiliary processor (16) based on instructions from the memory (20);
), the main processor (15
), an auxiliary processor (16) is activated to read an extended instruction stored in the storage means (17).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14432485A JPS625439A (en) | 1985-07-01 | 1985-07-01 | Instruction code expansion system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14432485A JPS625439A (en) | 1985-07-01 | 1985-07-01 | Instruction code expansion system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS625439A true JPS625439A (en) | 1987-01-12 |
Family
ID=15359451
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14432485A Pending JPS625439A (en) | 1985-07-01 | 1985-07-01 | Instruction code expansion system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS625439A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0478904A3 (en) * | 1990-08-31 | 1994-10-05 | Ibm | Apparatus for screening digital commands |
-
1985
- 1985-07-01 JP JP14432485A patent/JPS625439A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0478904A3 (en) * | 1990-08-31 | 1994-10-05 | Ibm | Apparatus for screening digital commands |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0313097A2 (en) | Microcomputer system including master processor and slave processor | |
| JPS61204758A (en) | Co-processor control method | |
| US4764869A (en) | Method and apparatus for controlling interruption in the course of instruction execution in a processor | |
| JPH07120338B2 (en) | Method for a data processor to coordinate the execution of instructions by a coprocessor and the data processor | |
| EP0240606B1 (en) | Pipe-line processing system and microprocessor using the system | |
| JPH03233630A (en) | Information processor | |
| JPS625439A (en) | Instruction code expansion system | |
| JP2002163126A (en) | Event detecting circuit embedded in debugging cpu, event detecting method, and external peripheral circuit | |
| JPS625466A (en) | Auxiliary processor control system | |
| JPH0377137A (en) | Information processor | |
| JPH06324861A (en) | System and method for controlling cpu | |
| JPH0731528B2 (en) | Programmable controller | |
| JPS6141016B2 (en) | ||
| JPS63247861A (en) | Coprocessor control method | |
| JP3414579B2 (en) | Programmable controller | |
| JPS6148181B2 (en) | ||
| JPS62293432A (en) | Information processor | |
| JPH052472A (en) | Arithmetic unit | |
| JPS6230452B2 (en) | ||
| JPH0675789A (en) | Information processor | |
| JPH05108342A (en) | Programmable controller | |
| JPH02114336A (en) | Microprogram control device | |
| JPH11143597A (en) | Microprocessor device | |
| JPS6393065A (en) | Converting system for coprocessor id | |
| JPH01255037A (en) | Electronic computer |