JPH0644069A - Microprocessor for controlling peripheral device - Google Patents

Microprocessor for controlling peripheral device

Info

Publication number
JPH0644069A
JPH0644069A JP4215787A JP21578792A JPH0644069A JP H0644069 A JPH0644069 A JP H0644069A JP 4215787 A JP4215787 A JP 4215787A JP 21578792 A JP21578792 A JP 21578792A JP H0644069 A JPH0644069 A JP H0644069A
Authority
JP
Japan
Prior art keywords
register
microprocessor
rewriting
contents
latch
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
JP4215787A
Other languages
Japanese (ja)
Inventor
Takeshi Hirayama
武司 平山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP4215787A priority Critical patent/JPH0644069A/en
Publication of JPH0644069A publication Critical patent/JPH0644069A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To provide a microprocessor capable of controlling a peripheral device just by changing the microprocessor and reloading a register by adding minimum hardwares while maintaining interchangeability. CONSTITUTION:An address comparator circuit 6 compares addresses outputted by a bus control unit 11 with the contents of a register reloading branching destination address latch 15 for which latched contents can be easily reloaded, starts a register reloading branching destination 2 when the coincidence of the addresses is confirmed and transfers the next register contents from a ROM 4 without changing a software while monitoring an instruction execution state inside the microprocessor. The reset address of the microprocessor is set to the address latch 15 immediately after resetting and a flag register 5 inhibits the decoding of instructions exclusively for reloading the contents of the address latch 15 when the function is not used and holds the interchangeability to the conventional software.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は周辺装置の制御回路に関
し、特に制御手段としてマイクロプロセッサを有する周
辺装置の制御用マイクロプロセッサに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a peripheral device control circuit, and more particularly to a microprocessor for controlling a peripheral device having a microprocessor as a control means.

【0002】[0002]

【従来の技術】従来、マイクロプロセッサを中心とし、
システム全体の規模が小さいコンピュータシステムにお
いて、外部記憶装置や印刷装置や通信装置といったコン
ピュータシステムの周辺装置に要求される能力は非常に
単純化さた簡単なもので、かつ要求される時間当たりの
処理速度も限られたものであったため、周辺装置の構造
は単純で多くの場合要求される機能を最低限のレベルで
実行できる程度の回路であった。ところが、最近はシス
テム全体の規模が小さいコンピュータシステムであって
も、半導体集積回路の飛躍的な高速度化、高集積化並び
に社会の急速な高度情報化を背景に高速かつ高制度、高
機能が要求されるようになっている。
2. Description of the Related Art Conventionally, a microprocessor is mainly used,
In a computer system with a small overall system scale, the performance required for peripheral devices of the computer system, such as external storage devices, printing devices, and communication devices, is extremely simplified and simple, and the required processing per hour is required. Since the speed was also limited, the structure of the peripheral device was simple and in many cases it was a circuit that could perform the required functions at the minimum level. However, recently, even in the case of a computer system in which the entire system is small in scale, high speed, high institution, and high function are required due to the dramatic increase in speed and integration of semiconductor integrated circuits and the rapid sophistication of society. It is being requested.

【0003】これに伴って、コンピュータシステムの周
辺装置も高機能化に対応するため、周辺装置に予め複数
或いは数水準の機能を持たせておき、ユーザが使用する
際にDIPスイッチ等による直接的にハードウェアを切
り替える手段によって必要な機能を選択して使用する周
辺装置が先ず最初に登場したが、コンピュータシステム
で使用するアプリケーションソフト毎にユーザが周辺装
置とコンピュータシステムとソフトウェアの使用説明書
を理解して対応する必要があり、ユーザにコンピュータ
システム自体のある程度の知識を要求するものであっ
た。このため、コンピュータシステムの装置構成が同じ
コンピュータシステムが他に1つ存在しても、同じアプ
リケーションソフトが実行できるとは限らず、システム
を構成する装置の変更も困難であった。
Along with this, the peripheral devices of the computer system are also required to have higher functions. Therefore, the peripheral devices are provided with a plurality of or several levels of functions in advance, and when the user uses them, they are directly connected by a DIP switch or the like. Peripheral devices that select and use the necessary functions by means of hardware switching have first appeared, but the user understands the peripheral device, computer system and software instruction manual for each application software used in the computer system. Therefore, it requires the user to have some knowledge of the computer system itself. For this reason, even if there is another computer system having the same device configuration as the computer system, the same application software cannot always be executed, and it is difficult to change the device configuring the system.

【0004】このような不便さを解消するため、最近は
周辺装置内に周辺装置自体の制御用としてマイクロプロ
セッサを使用し、周辺装置自体を簡単なコンピュータ装
置にすることによって周辺装置の機能の拡大をソフトウ
ェアによって図る手段が多く用いられている。周辺装置
自体のコンピュータ装置化は、ユーザがアプリケーショ
ンソフトの新規導入やコンピュータシステムの装置変更
を行う場合、多くの場合ソフトメーカが提供する周辺装
置別に作成したパッチファイルやバッチファイルを指定
するだけでアプリケーションソフト或いは周辺装置のイ
ンストールが完了するユーザフレンドリな環境を提供し
た。
In order to eliminate such inconvenience, recently, by using a microprocessor for controlling the peripheral device itself in the peripheral device and making the peripheral device itself a simple computer device, the function of the peripheral device is expanded. There are many methods used to achieve this by software. When a user installs a new application software or changes the device of a computer system, in many cases the peripheral device itself is converted to a computer device by simply specifying the patch file or batch file created for each peripheral device provided by the software manufacturer. We provided a user-friendly environment where software or peripheral device installation was completed.

【0005】その反面、周辺装置内部の制御用にマイク
ロプロセッサを使用した周辺装置は、装置内部の機能切
り替え用の条件設定を変更するためのプロセスが、従来
行われていたDIPスイッチ等による直接的な切り替え
プロセスからソトウェアによる間接的で複雑なプロセス
になり、かつCPUのバスサイクルと実行クロック数に
よって決定される処理時間を要し、コンピュータシステ
ムに要求されている高速化の要求に反している。周辺装
置の機能切り替えに要するマイクロプロセッサの処理と
データ転送に要する処理時間を軽減し、コンピュータシ
ステム全体の高速度化の要求に応えるために、一般に装
置内部の動作クロック数を上げてマイクロプロセッサの
処理速度を向上させたり、より高速で能力の高いマイク
ロプロセッサを周辺装置の制御用に用いたり、マイクロ
プロセッサの個数を増やしたマルチプロセッサシステム
にするなどの手段が取られている。
On the other hand, in the peripheral device using the microprocessor for controlling the inside of the peripheral device, the process for changing the condition setting for switching the function inside the device is directly performed by the DIP switch or the like which has been conventionally performed. The switching process becomes an indirect and complicated process by software, requires a processing time determined by the CPU bus cycle and the number of execution clocks, and runs counter to the demand for high speed required for computer systems. In order to reduce the processing time of the microprocessor required to switch the functions of peripheral devices and the processing time required to transfer data, and to meet the demand for higher speed of the entire computer system, the number of operating clocks inside the device is generally increased to process the microprocessor. Measures have been taken such as increasing the speed, using a faster and more powerful microprocessor for controlling peripheral devices, and making a multiprocessor system with an increased number of microprocessors.

【0006】ところが、これらの手法による高速化は、
効果的ではあるが、従来のマイクロプロセッサの処理手
順の構造に起因する問題を受け入れているため基本的な
解決になっておらず、高コスト化をまねき、タイミング
設計もより複雑になり、装置内部の制御プログラムの継
承性がなくなるといった新たな問題を発生させている。
そこで、マイクロプロセッサ自信のレベルから高速化の
問題を解決するために、マイクロプロセッサの処理手順
において、処理内容を切り替える際に必要なレジスタの
内容を切り替える手順を、図3に示すように通常のマイ
クロプロセッサ構成機能に加えてレジスタのバンク切り
替えによってレジスタ内容の切り替えを瞬時に行う機能
を有するマイクロプロセッサが提案されている。
However, the speedup by these methods is
Although effective, it is not a basic solution because it accepts the problems caused by the structure of the processing procedure of the conventional microprocessor, leading to higher cost, more complicated timing design, and internal device It causes a new problem that the control program of is lost.
Therefore, in order to solve the problem of speeding up from the level of self-confidence of the microprocessor, the procedure of switching the contents of registers necessary for switching the processing contents in the processing procedure of the microprocessor is performed as shown in FIG. A microprocessor has been proposed that has a function of instantaneously switching register contents by register bank switching in addition to processor configuration functions.

【0007】[0007]

【発明が解決しようとする課題】上述した従来のマイク
ロプロセッサでは、周辺装置のコンピュータシステム化
のメリットであるソフトウェアによる柔軟な機能の拡大
による高機能化と高速度化を一つのマイクロプロセッサ
でできるだけ両立するために、マイクロプロセッサの内
部のレジスタをバンク化し、レジスタバンクを切り替え
ることによってマイクロプロセッサの内部状態を瞬時に
切り替え、制御する周辺装置の機能を切り替えている
が、マイクロプロセッサのチップ外部に出ている端子は
それ以前のマイクロプロセッサと全く同一になるように
していた。このため、CPUボードのプリント配線板は
変更は最小限で済むが、このレジストバンク切り替えの
機能を使いこなすためには周辺装置の制御プログラムの
大幅な変更が必要でかつ高度なテクニックやノウハウが
必要で、従来のソフトウェエの共用あるは互換性を保つ
ことは困難であった。本発明の目的は、互換性を保ちな
がらマイクロプロセッサの変更のみで周辺装置の制御を
可能にしたマイクロプロセッサを提供することにある。
In the above-described conventional microprocessor, one microprocessor can achieve both high performance and high speed by expanding flexible functions by software, which is an advantage of computer systemization of peripheral devices. In order to achieve this, the registers inside the microprocessor are banked, and by switching the register bank, the internal state of the microprocessor is instantaneously switched, and the functions of the peripheral devices to be controlled are switched. The existing terminals were made to be exactly the same as the microprocessors before that. For this reason, the printed wiring board of the CPU board can be changed minimally, but in order to make full use of this register bank switching function, it is necessary to drastically change the control program of the peripheral device and to require advanced techniques and know-how. , It was difficult to keep compatibility with existing software. It is an object of the present invention to provide a microprocessor capable of controlling peripheral devices by only changing the microprocessor while maintaining compatibility.

【0008】[0008]

【課題を解決するための手段】本発明は、マイクロプロ
セッサのレジスタ転送命令によらずに書き換え可能なレ
ジスタと、この転送命令によって書き換えが行われるラ
ッチと、レジスタ及びラッチを書き換える手段と、レジ
スタ及びラッチを書き換えることを判断する手段と、レ
ジスタ及びラッチを書き換えるタイミングを計る手段と
を備える。また、本発明はレジスタを書き換える必要が
ある分岐先のアドレスと書き換えるレジスタの内容をマ
イクロプロセッサ外部から供給する手段と、この供給手
段が接続されていない場合は前記レジスタ及びラッチの
書換え制御が起動して生じる誤動作と、従来のマイクロ
プロセッサ用のソフトウェアを実行した場合にも前記レ
ジスタ及びラッチの書換え制御が起動して生じる誤動作
をハードウェア或いはソフトウェア上で防止する手段を
有する。
SUMMARY OF THE INVENTION The present invention is directed to a register which can be rewritten without depending on a register transfer instruction of a microprocessor, a latch which is rewritten by this transfer instruction, a register and a means for rewriting the latch, a register and a register. A means for determining whether to rewrite the latch and a means for measuring the timing of rewriting the register and the latch are provided. Further, according to the present invention, means for supplying the address of the branch destination for which the register needs to be rewritten and the contents of the register to be rewritten from the outside of the microprocessor, and the rewriting control of the register and the latch are activated when this supplying means is not connected. And means for preventing the malfunction caused by the above and the malfunction caused by the activation of the rewriting control of the register and the latch even when the software for the conventional microprocessor is executed, on the hardware or the software.

【0009】[0009]

【作用】本発明は、制御プログラムを実行する途中で条
件分岐等を行うと、分岐先の番地を予め専用の書換え命
令によりレジスタを書き換える必要のあるアドレスを設
定したアドレスラッチ上のアドレスと比較してレジスタ
の書き換えの要不要を確認し、書換え要求が確認される
と命令キューをクリアし、命令キューに命令がプリフェ
ッチされる間に分岐先アドレスで参照される外部レジス
タの書き換えを行い、ソフトウェアリセットと一連の書
き込み操作によって行われるレジスタの書き換えを通常
のマイクロプロセッサの動作に影響を及ぼすことなくハ
ードウェアのみで行う。
According to the present invention, when a conditional branch or the like is performed during the execution of the control program, the address of the branch destination is compared with the address on the address latch in which the address for which the register needs to be rewritten by the dedicated rewriting instruction is set in advance. Confirm whether the register needs to be rewritten, clear the instruction queue when the rewrite request is confirmed, rewrite the external register referenced by the branch destination address while prefetching the instruction to the instruction queue, and reset the software. And the rewriting of the register performed by a series of write operations is performed only by hardware without affecting the operation of a normal microprocessor.

【0010】[0010]

【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明の第1実施例のブロック図である。外
部リセット入力端子RESET1から4クロック以上の
長さのリセットパルスが入力されると、レジスタ書換え
制御回路2はマイクロプロセッサ内部のリセット信号3
をリセット状態に保持し、レジスタ書換え分岐先(コー
ル先:以下同じ)アドレステーブルとレジスタ内容を格
納したROM(又はRAM、以下同じ)4の専用ADバ
ス16からマイクロプロセッサの外部のレジスタ書換え
分岐先アドレステーブルとレジスタ内容を格納したRO
M4の接続検査を行い、レジスタ書換え分岐先アドレス
テーブルとレジスタ内容を格納したROM4が専用AD
バス16に接続されていなければレジスタ書換え機能を
無効にするためにフラグレジスタ5を“0”に設定し、
通常のマイクロプロセッサと同様にマイクロプロセッサ
内部のリセット信号3を復帰させ、リセット動作以降通
常の動作を開始する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a first embodiment of the present invention. When a reset pulse having a length of 4 clocks or more is input from the external reset input terminal RESET1, the register rewrite control circuit 2 causes the reset signal 3 in the microprocessor to be reset.
To the register rewriting branch destination (call destination: the same applies hereinafter) from the dedicated AD bus 16 of the ROM (or RAM, the same applies below) 4 that stores the address table and register contents outside the microprocessor. RO storing address table and register contents
ROM4, which stores the register rewrite branch destination address table and register contents, is used for exclusive AD
If it is not connected to the bus 16, the flag register 5 is set to "0" in order to invalidate the register rewriting function,
Similar to a normal microprocessor, the reset signal 3 inside the microprocessor is restored, and the normal operation is started after the reset operation.

【0011】レジスタ書換え先アドレステーブルとレジ
スタ内容を格納したROM4が接続さていれば、まず最
初にレジスタ書換え機能を有効にするためにフラグレジ
スタ5を“1”に設定し、マイクロプロセッサ内部のリ
セット信号3を復帰させる。レジスタ書換え分岐先アド
レステーブルとレジスタ内容を格納したROM4が接続
されながら前記転送命令が実行されない、或いは実行さ
れていない場合に誤動作をしないようにレジスタ書換え
分岐先アドレスラッチ15にはマイクロプロセッサのリ
セットアドレスがマイクロプロセッサ内部のリセット信
号3の復帰時にラッチされる。この後、マイクロプロセ
ッサはリセット動作以降通常のマイクロプロセッサと同
様に動作を開始する。
If the register rewriting destination address table and the ROM 4 storing the register contents are connected, first, the flag register 5 is set to "1" to enable the register rewriting function, and the reset signal inside the microprocessor is set. Return 3 The register rewrite branch destination address table 15 and the ROM 4 storing the register contents are connected to each other, so that the register rewrite branch destination address latch 15 does not malfunction if the transfer instruction is not executed or is not executed. Are latched when the reset signal 3 inside the microprocessor returns. After this, the microprocessor starts the operation after the reset operation in the same manner as a normal microprocessor.

【0012】フラグレジスタ5は実行ユニット14内部
のデコーダ17に作用し、フラグレジスタ5の内容が
“1”であると「レジスタ書換え機能」が有効であるか
ら、レジスタ書換え分岐先アドレスをレジスタ書換え分
岐先アドレステーブルとレジスタ内容を格納したROM
4からレジスタ書換え分岐先アドレスラッチ15への転
送命令を実行可能とする。フラグレジスタ5の内容が
“0”であると「レジスタ書換え機能」が無効であるか
ら、レジスタ書換え分岐先アドレスをレジスタ書換え分
岐先アドレステーブルとレジスタ内容を格納したROM
4からレジスタ書換え分岐先アドレスラッチ15への転
送命令を実行不能とし、万一実行された場合には無操作
命令(MOP,NO,OPERATION)として実行
し、他の半導体集積回路の信号タイミングに影響を与え
ない。「レジスタ書換え機能」を使用するには、マイク
ロプロセッサのプログラムでレジスタ書換え分岐先アド
レスをレジスタ書換え分岐先アドレステーブルとレジス
タ内容を格納したROM4からレジスタ書換え分岐先ア
ドレスラッチ15への転送命令を実行する。また、レジ
スタ書換え分岐先アドレスを変更する場合も、この転送
命令を実行する。
The flag register 5 acts on the decoder 17 inside the execution unit 14, and when the content of the flag register 5 is "1", the "register rewriting function" is effective, so the register rewriting branch destination address is set to the register rewriting branch address. ROM storing destination address table and register contents
4 makes it possible to execute the transfer instruction from the register rewriting branch destination address latch 15. If the content of the flag register 5 is "0", the "register rewriting function" is invalid. Therefore, the register rewriting branch destination address is the ROM that stores the register rewriting branch destination address table and the register contents.
4 makes the transfer instruction from the register rewriting branch destination address latch 15 unexecutable, and if it is executed, it is executed as a no-operation instruction (MOP, NO, OPERATION), which affects the signal timing of other semiconductor integrated circuits. Don't give. To use the "register rewriting function", a microprocessor program executes a transfer instruction from the ROM 4 storing the register rewriting branch destination address and the register rewriting branch destination address table and register contents to the register rewriting branch destination address latch 15. . This transfer instruction is also executed when the register rewrite branch destination address is changed.

【0013】アドレス比較回路6はメモリインタフェー
スに送られるアドレスを内部動作クロックに同期して比
較している。このアドレス比較回路6はメモリインタフ
ェースに送られるアドレスにレジスタ書換え分岐先アド
レスラッチ15に格納されているアドレスと等しいアド
レスを検出すると、レジスタ書換え検出信号7を立ち上
げ、命令キュー8をクリアし、タイミング制御回路9に
レジスタ書換え要求を伝える。レジスタ書換え制御回路
2はアドレス比較回路6から周辺装置の機能に対応した
レジスタ内容を登録したROM内アドレスを受け取り、
マイクロプロセッサ内のレジスタ10の退避用ラッチ回
路に新しいレジスタ内容を転送する。
The address comparison circuit 6 compares the address sent to the memory interface in synchronization with the internal operation clock. When the address comparison circuit 6 detects an address equal to the address stored in the register rewrite branch destination address latch 15 in the address sent to the memory interface, it raises the register rewrite detection signal 7, clears the instruction queue 8, and sets the timing. A register rewriting request is transmitted to the control circuit 9. The register rewrite control circuit 2 receives from the address comparison circuit 6 the ROM address in which the register contents corresponding to the function of the peripheral device are registered,
The new register contents are transferred to the saving latch circuit of the register 10 in the microprocessor.

【0014】タイミング制御回路9は、マイクロプロセ
ッサのバスステータスを監視し、書換え検出信号7が立
ち上がった時点で処理中命令が終了し次第、マイクロプ
ロセッサ内のレジスタ10の退避用ラッチ回路からマイ
クロプロセッサ内のレジスタ10に新しいレジスタ内容
を転送する。この間にバスコントロールユニット11は
命令キュー8に、次に実行する命令のプリフェッチを行
う。マイクロプロセッサはレジスタ内容が書き換った時
点で、次の命令の実行を開始する。この実施例では、機
能を切り換えるためにマイクロプロセッサのレジスタ転
送命令を使用せずに、ダイレクトにレジスタ内容をRO
Mから転送することよって、マイクロプロセッサのレジ
スタ書き換えによる内部状態の変更を短いクロック数で
実現できる。
The timing control circuit 9 monitors the bus status of the microprocessor, and when the instruction being processed is completed at the time when the rewrite detection signal 7 rises, the timing control circuit 9 shifts from the saving latch circuit of the register 10 in the microprocessor to the inside of the microprocessor. The new register contents are transferred to the register 10 of. During this time, the bus control unit 11 prefetches the next instruction to be executed in the instruction queue 8. When the register contents are rewritten, the microprocessor starts executing the next instruction. In this embodiment, the register contents are directly transferred to the RO without using the register transfer instruction of the microprocessor to switch the function.
By transferring from M, the internal state can be changed in a short number of clocks by rewriting the register of the microprocessor.

【0015】図2は本発明の第2実施例のブロック図で
ある。外部リセット端子RESET1から4クロック以
上の長さのリセットパルスが入力されると、レジスタ書
換え制御回路2はマイクロプロセッサ内部のリセット信
号3をリセット状態に保持し、レジスタ書換え分岐先
(コール先:以下同じ)アドレステーブルとレジスタ内
容を格納したROM(又はRAM、以下同じ)の専用A
Dバス16からマイクロプロセッサの外部のレジスタ書
換え分岐先、アドレステーブルとレジスタ内容を格納し
たROM4の接続検査を行い、レジスタ書換え分岐先ア
ドレステーブルとレジスタ内容を格納したROM4が専
用ADバス16に接続されていなければレジスタ書換え
機能を無効にするためにフラグレジスタ5を“0”に設
定し、通常のマイクロプロセッサと同様にマイクロプロ
セッサ内部のリセット信号3を復帰させ、リセット動作
以降通常の動作を開始する。
FIG. 2 is a block diagram of the second embodiment of the present invention. When a reset pulse having a length of 4 clocks or more is input from the external reset terminal RESET1, the register rewrite control circuit 2 holds the reset signal 3 inside the microprocessor in the reset state, and the register rewrite branch destination (call destination: the same applies hereinafter). ) Dedicated A of ROM (or RAM, same below) that stores address table and register contents
The connection rewriting branch destination outside the microprocessor from the D bus 16 and the ROM 4 storing the address table and the register contents are tested for connection, and the ROM 4 storing the register rewriting branch destination address table and the register contents is connected to the dedicated AD bus 16. If not, the flag register 5 is set to "0" in order to invalidate the register rewriting function, the reset signal 3 inside the microprocessor is restored as in a normal microprocessor, and the normal operation is started after the reset operation. .

【0016】レジスタ書換え先アドレステーブルとレジ
スタ内容を格納したROM4が接続さていれば、まず最
初にレジスタ書換え機能を有効にするためにフラグレジ
スタ5を“1”に設定し、レジスタ書換え分岐先アドレ
ステーブルとレジスタ内容を格納したROM4から、周
辺装置の制御プログラム中で分岐或いはコールされる周
辺装置の機能に対応したレジスタ内容を登録したROM
内アドレスのテーブルの先頭から8番目までのレジスタ
書換え分岐先アドレスを読み出し、レジスタ内容転送用
DMA12を通じて各々レジスタ書換え分岐先アドレス
に対応した8ステージのレジスタバンク13にレジスタ
書換え分岐先アドレステーブルとレジスタ内容を格納し
たROM4から頭の8つのレジスタ内容を転送し、マイ
クロプロセッサ内部のリセット信号3を復帰させる。
If the register rewriting destination address table and the ROM 4 storing the register contents are connected, first the flag register 5 is set to "1" to enable the register rewriting function, and the register rewriting branch destination address table is set. ROM which stores the register contents corresponding to the functions of the peripheral device branched or called in the control program of the peripheral device from the ROM 4 storing the register contents
The 8th to 8th register rewrite branch destination addresses in the internal address table are read out, and the register rewrite branch destination address table and the register contents are stored in the 8-stage register bank 13 corresponding to each register rewrite branch destination address through the DMA 12 for register content transfer. The contents of the eight registers at the head are transferred from the ROM 4 storing therein, and the reset signal 3 inside the microprocessor is restored.

【0017】レジスタ書換え分岐先アドレステーブルと
レジスタ内容を格納したROM4が接続されながら前記
転送命令が実行されない、或いは実行されていない場合
に誤動作をしないようにレジスタ書換え分岐先アドレス
ラッチ15にはマイクロプロセッサのリセットアドレス
がマイクロプロセッサ内部のリセット信号3の復帰時に
ラッチされる。この後、マイクロプロセッサはリセット
動作以降通常のマイクロプロセッサと同様に動作を開始
する。
The register rewrite branch destination address latch 15 is provided with a microprocessor so that the register rewrite branch destination address table 15 and the ROM 4 storing the register contents are connected to each other so that no malfunction occurs when the transfer instruction is not executed or is not executed. Reset address is latched when the reset signal 3 inside the microprocessor returns. After this, the microprocessor starts the operation after the reset operation in the same manner as a normal microprocessor.

【0018】フラグレジスタ5は実行ユニット14内部
のデコーダ17に作用し、フラグレジスタ5の内容が
“1”であると「レジスタ書換え機能」が有効であるか
ら、レジスタ書換え分岐先アドレスをレジスタ書換え分
岐先アドレステーブルとレジスタ内容を格納したROM
4からレジスタ書換え分岐先アドレスラッチ15への転
送命令を実行可能とする。フラグレジスタ5の内容が
“0”であると「レジスタ書換え機能」が無効であるか
ら、レジスタ書換え分岐先アドレスをレジスタ書換え分
岐先アドレステーブルとレジスタ内容を格納したROM
4からレジスタ書換え分岐先アドレスラッチ15への転
送命令を実行不能とし、万一実行された場合には無操作
命令(MOP,NO,OPERATION)として実行
し、他の半導体集積回路の信号タイミングに影響を与え
ない。「レジスタ書換え機能」を使用するには、マイク
ロプロセッサのプログラムでレジスタ書換え分岐先アド
レスをレジスタ書換え分岐先アドレステーブルとレジス
タ内容を格納したROM4からレジスタ書換え分岐先ア
ドレスラッチ15への転送命令を実行する。また、レジ
スタ書換え分岐先アドレスを変更する場合も、この転送
命令を実行する。
The flag register 5 acts on the decoder 17 inside the execution unit 14, and when the content of the flag register 5 is "1", the "register rewriting function" is effective, so that the register rewriting branch destination address is changed to the register rewriting branch address. ROM storing destination address table and register contents
4 makes it possible to execute the transfer instruction from the register rewriting branch destination address latch 15. If the content of the flag register 5 is "0", the "register rewriting function" is invalid. Therefore, the register rewriting branch destination address is the ROM that stores the register rewriting branch destination address table and the register contents.
4 makes the transfer instruction from the register rewriting branch destination address latch 15 unexecutable, and if it is executed, it is executed as a no-operation instruction (MOP, NO, OPERATION), which affects the signal timing of other semiconductor integrated circuits. Don't give. To use the "register rewriting function", a microprocessor program executes a transfer instruction from the ROM 4 storing the register rewriting branch destination address and the register rewriting branch destination address table and register contents to the register rewriting branch destination address latch 15. . This transfer instruction is also executed when the register rewrite branch destination address is changed.

【0019】アドレス比較回路6はメモリインタフェー
スに送られるアドレスを内部動作クロックに同期して比
較している。アドレス比較回路6はメモリインタフェー
スに送られるアドレスにレジスタ書換え分岐先アドレス
ラッチ15に格納されているアドレスと等しいアドレス
を検出すると、レジスタ書換え検出信号7を立ち上げ、
命令キュー8をクリアし、タイミング制御回路9にレジ
スタ書換え要求を伝える。レジスタ書換え制御回路2は
アドレス比較回路6から周辺装置の機能に対応したレジ
スタ内容を登録したROM内アドレスを受け取り、対応
するレジスタ内容を持つアドレスがレジスタバンク13
のデータに存在すればレジスタバンク13をタイミング
制御回路9に従ってタイミングを他のユニットと同期し
て切り換え、対応するアドレスが存在しなければレジス
タ内容転送用DMA12を通じてマイクロプロセッサ内
のレジスタバンク13の現在使用しているレジスタバン
クに対して上位のレジスタバンクの退避用ラッチ回路に
新しいレジスタ内容を転送する。
The address comparison circuit 6 compares the address sent to the memory interface in synchronization with the internal operation clock. When the address comparison circuit 6 detects an address equal to the address stored in the register rewrite branch destination address latch 15 in the address sent to the memory interface, it raises the register rewrite detection signal 7,
The instruction queue 8 is cleared and the register rewrite request is transmitted to the timing control circuit 9. The register rewrite control circuit 2 receives from the address comparison circuit 6 the address in the ROM in which the register contents corresponding to the function of the peripheral device are registered, and the address having the corresponding register contents is the register bank 13
If it exists in the data, the timing of the register bank 13 is switched in synchronization with the other unit according to the timing control circuit 9, and if there is no corresponding address, the register bank 13 in the microprocessor is currently used through the register content transfer DMA 12. The new register contents are transferred to the save latch circuit of the upper register bank with respect to the current register bank.

【0020】タイミング制御回路9は、マイクロプロセ
ッサのバスステータスを監視し、書換え検出信号7が立
ち上がった時点で処理中命令が終了し次第、マイクロプ
ロセッサ内のレジスタ10の退避用ラッチ回路からマイ
クロプロセッサ内のレジスタ10に新しいレジスタ内容
を転送する。この間にバスコントロールユニット11は
命令キュー8に、次に実行する命令のプリフェッチを行
う。マイクロプロセッサはレジスタ内容が書き換った時
点で、次の命令の実行を開始する。この実施例では、機
能を切り換えるためにマイクロプロセッサのレジスタ転
送命令を使用せずに、レジスタ内容をROMからレジス
タバンクにDMA転送しレジスタバンクの書き換えをレ
ジスタバンクをずらしながら行うことにより、マイクロ
プロセッサの内部状態の変更を最短で1クロックで実現
でき、レジスタ書換えを行えば行うほどレジスタバンク
に使用するレジスタが多く存在することととなってレジ
スタ書換えのロスタイムが減少する効果がある。
The timing control circuit 9 monitors the bus status of the microprocessor, and when the instruction being processed ends at the time when the rewrite detection signal 7 rises, the timing control circuit 9 shifts from the saving latch circuit of the register 10 in the microprocessor to the inside of the microprocessor. The new register contents are transferred to the register 10 of During this time, the bus control unit 11 prefetches the next instruction to be executed in the instruction queue 8. When the register contents are rewritten, the microprocessor starts executing the next instruction. In this embodiment, the register contents of the microprocessor are DMA-transferred from the ROM to the register bank and the register bank is rewritten while shifting the register bank without using the register transfer instruction of the microprocessor to switch the function. The internal state can be changed in a minimum of one clock, and the more registers are rewritten, the more registers are used in the register bank, and the loss time of register rewriting is reduced.

【0021】[0021]

【発明の効果】以上説明したように本発明は、コンピュ
ータシステムに使用される周辺装置の制御用に使用され
るマイクロプロセッサについて、周辺装置の制御条件を
設定する鍵となるマイクロプロセッサのレジスタ内容を
書き換える効率を、マイクロプロセッサ動作の基本的な
手順から変更することにより、マイクロプロセッサを利
用しているがために発生するレジスタ書き換えによって
生じるロスタイムを減少でき、簡単なハードウェアの変
更により周辺装置の大幅な高速化ができる。また、通常
のマイクロプロセッサとソフトウェアが共用できるた
め、ソフトウェア資産の有効活用が期待できる。
As described above, according to the present invention, with respect to the microprocessor used for controlling the peripheral device used in the computer system, the register contents of the key microprocessor for setting the control condition of the peripheral device are set. By changing the efficiency of rewriting from the basic procedure of microprocessor operation, the loss time caused by register rewriting caused by using a microprocessor can be reduced, and simple hardware changes can significantly reduce the peripheral device. It can be speeded up quickly. Moreover, since software can be shared with an ordinary microprocessor, effective utilization of software assets can be expected.

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

【図1】本発明の周辺装置制御用マイクロプロセッサの
第1実施例のブロック図である。
FIG. 1 is a block diagram of a first embodiment of a microprocessor for controlling a peripheral device according to the present invention.

【図2】本発明の第2実施例のブロック図である。FIG. 2 is a block diagram of a second embodiment of the present invention.

【図3】従来の周辺装置制御用マイクロプロセッサのブ
ロック図である。
FIG. 3 is a block diagram of a conventional peripheral device control microprocessor.

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

1 外部リセット入力端子 2 レジスタ書換え制御回路 3 リセット信号 4 ROM 5 フラグレジスタ 6 アドレス比較回路 7 レジスタ書換え検出信号 8 命令キュー 9 タイミング制御回路 10 レジスタ 11 バスコントロールユニット 12 レジスタ内容転送用DMA 13 レジスタバンク 1 external reset input terminal 2 register rewrite control circuit 3 reset signal 4 ROM 5 flag register 6 address comparison circuit 7 register rewrite detection signal 8 instruction queue 9 timing control circuit 10 register 11 bus control unit 12 register content transfer DMA 13 register bank

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 コンピュータシステムの周辺装置を制御
するための回路に設けられ、マイクロプロセッサのレジ
スタ転送命令によらずに書き換え可能なレジスタと、前
記転送命令によって書き換えを行うラッチと、レジスタ
及びラッチを書き換える手段と、レジスタ及びラッチを
書き換えることを判断する手段と、レジスタ及びラッチ
を書き換えるタイミングを計る手段とを備えることを特
徴とする周辺装置制御用マイクロプロセッサ。
1. A register which is provided in a circuit for controlling a peripheral device of a computer system and which can be rewritten without depending on a register transfer instruction of a microprocessor, a latch for rewriting according to the transfer instruction, and a register and a latch. A microprocessor for controlling a peripheral device, comprising: a rewriting unit, a unit for determining whether to rewrite a register and a latch, and a unit for measuring a timing for rewriting a register and a latch.
【請求項2】 レジスタを書き換える必要がある分岐先
のアドレスと書き換えるレジスタの内容をマイクロプロ
セッサ外部から供給する手段と、この供給手段が接続さ
れていない場合は前記レジスタ及びラッチの書換え制御
が起動して生じる誤動作と、従来のマイクロプロセッサ
用のソフトウェアを実行した場合にも前記レジスタ及び
ラッチの書換え制御が起動して生じる誤動作をハードウ
ェア或いはソフトウェア上で防止する手段を有する請求
項1の周辺装置制御用マイクロプロセッサ。
2. A means for supplying an address of a branch destination where the register needs to be rewritten and the contents of the register to be rewritten from the outside of the microprocessor, and rewriting control of the register and the latch is activated when the supplying means is not connected. 2. The peripheral device control according to claim 1, further comprising means for preventing, by hardware or software, a malfunction caused by the above and a malfunction caused by activation of the rewriting control of the register and the latch even when the software for the conventional microprocessor is executed. For microprocessor.
JP4215787A 1992-07-22 1992-07-22 Microprocessor for controlling peripheral device Pending JPH0644069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4215787A JPH0644069A (en) 1992-07-22 1992-07-22 Microprocessor for controlling peripheral device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4215787A JPH0644069A (en) 1992-07-22 1992-07-22 Microprocessor for controlling peripheral device

Publications (1)

Publication Number Publication Date
JPH0644069A true JPH0644069A (en) 1994-02-18

Family

ID=16678231

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4215787A Pending JPH0644069A (en) 1992-07-22 1992-07-22 Microprocessor for controlling peripheral device

Country Status (1)

Country Link
JP (1) JPH0644069A (en)

Similar Documents

Publication Publication Date Title
US6314515B1 (en) Resetting multiple processors in a computer system
US5781774A (en) Processor having operating modes for an upgradeable multiprocessor computer system
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
US8234430B2 (en) Apparatus and method with controlled switch method
EP0464615A2 (en) Microcomputer equipped with DMA controller
JP3136257B2 (en) Computer memory interface device
JP4226085B2 (en) Microprocessor and multiprocessor system
JP2822782B2 (en) Single chip microcomputer
JP3970609B2 (en) Processor system
GB2216306A (en) Load and synchronize computer architecture and process
US6199156B1 (en) System for explicitly referencing a register for its current content when performing processor context switch
EP0840223B1 (en) Microcomputer capable of accessing an external memory
US6993674B2 (en) System LSI architecture and method for controlling the clock of a data processing system through the use of instructions
KR100453262B1 (en) Processor or core logic unit with internal register for peripheral status
JP7468112B2 (en) INTERFACE CIRCUIT AND METHOD FOR CONTROLLING INTERFACE CIRCUIT - Patent application
JPH0644069A (en) Microprocessor for controlling peripheral device
JP2004348327A (en) Digital signal processor and digital signal processing method
EP0840221B1 (en) Microcomputer with packet bus
JP3077807B2 (en) Microcomputer system
JP2701752B2 (en) Microprocessor clock supply control circuit
US20070038435A1 (en) Emulation method, emulator, computer-attachable device, and emulator program
JP2005018650A (en) Nonvolatile semiconductor storage device and data processor
JPH0651979A (en) Microprocessor for peripheral unit control
JP3323341B2 (en) Emulation processor and emulator equipped with it
JP3097602B2 (en) Data processing device