JPS6217837A - Data processing system - Google Patents

Data processing system

Info

Publication number
JPS6217837A
JPS6217837A JP15671785A JP15671785A JPS6217837A JP S6217837 A JPS6217837 A JP S6217837A JP 15671785 A JP15671785 A JP 15671785A JP 15671785 A JP15671785 A JP 15671785A JP S6217837 A JPS6217837 A JP S6217837A
Authority
JP
Japan
Prior art keywords
microprogram
address
data
change
relative address
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
JP15671785A
Other languages
Japanese (ja)
Inventor
Yoshihiro Nakajima
義博 中島
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 JP15671785A priority Critical patent/JPS6217837A/en
Publication of JPS6217837A publication Critical patent/JPS6217837A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain efficient microprogram changing operation whose changing operation is easy by forming a microprogram chaning instruction and a conversion table. CONSTITUTION:The address 62 of the microprogram chaning instruction 6 is a relative address of a microprogram and data 63 are its chaning data. These address 62 and data 63 are set up in an address register 7 and a data register 8 respectively. A table 9 stores the base values 91-94 of an absolute addresses and can be accessed by the upper 2 bits of the relative address. The base values 91-94 are respective leading absolute addresses of four modules 51-54 constituting the microprogram 5. The base value obtained from the table 9 by the upper 2 bits of the relative address is added to the base value of the relative address by an adder 10 to find out the absolute address.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はマイクロプログラムにより制御されるデータ処
理システムに関し、特にそのマイクロプログラムの変更
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a data processing system controlled by a microprogram, and particularly to a method for changing the microprogram.

(従来の技術) マイクロプログラムにより制御されるデータ処理装置で
は擬似故障の発生、あるいは装置構成の変更により、デ
ータ処理装置の動作中に自身の有するマイクロプログラ
ムを変更しなければならない場合がある。
(Prior Art) In a data processing device controlled by a microprogram, due to the occurrence of a pseudo failure or a change in the device configuration, it may be necessary to change the microprogram owned by the data processing device while the data processing device is operating.

一般に斯かる必要性に対しては、マイクロプログラムの
内容の変更を指示するためマイクロプログラム変更命令
が設けられる。従来、この種のマイクロプログラム変更
命令では、変更されるマイクロプログラムの主記憶、ま
たは制御記憶における格納位置を示すため、マイクロア
ドレスト変更データ・七を命令の内容に有していた。従
って、ひとつのマイクロプログラム変更命令を実行すれ
ば、マイクロプログラムを1ステツプだけ変更すること
ができた。
Generally, for such a need, a microprogram change instruction is provided to instruct a change in the contents of the microprogram. Conventionally, this type of microprogram change instruction has included microaddress change data 7 in the instruction content to indicate the storage location of the microprogram to be changed in main memory or control memory. Therefore, by executing one microprogram change instruction, the microprogram could be changed by one step.

(発明が解決しようとする問題点) 上述した従来のデータ処理システムでは、マイクロプロ
グラム内に散在する変更箇所の内容を変更する必要があ
った場合に、マイクロプログラム変更命令を多数記述す
る必要があり、全体がリロケータブルに構成されている
マイクロプログラムに対しては実メモリ上でのアドレス
算出、およびブランチ先アドレスの算出にかなり手間が
かかり、誤りも犯しやすいと云う欠点があった。
(Problems to be Solved by the Invention) In the conventional data processing system described above, when it is necessary to change the contents of change points scattered in a microprogram, it is necessary to write a large number of microprogram change instructions. However, microprograms whose entire structure is relocatable have the disadvantage that calculating addresses in real memory and branch destination addresses takes considerable time and is prone to errors.

さらlこ、同じ内容のマイクロプログラムであっても装
置の機種により構成が異なる場合には、装置の機種ごと
にマイクロプログラム変更命令群を準備しなければなら
ないと云う複雑さもあった0 本発明の目的は、マイクロプログラムを変更するために
マイクロプログラムの相対アドレスと変更データとから
成るマイクロプログラム変更命令と、上記マイクロプロ
グラムの相対アドレスを絶対アドレスに変換する際の絶
対アドレスのベース値を格納するためのテーブルとを設
け、マイクロプログラム変更命令とテーブルとによって
マイクロプログラムの相対アドレスを主記憶中、または
制御記憶中の格納位置である絶対アドレスに変換してお
き、ベース値が特定値でないか否かによりマイクロプロ
グラムのデータ部を変更するか否かを決定することによ
り上記欠点を除去し、実メモリ上でのアドレスを容易、
且つ、正確に算出できるように構成したデータ処理シス
テムを提供することにある。
Furthermore, if microprograms with the same content have different configurations depending on the device model, there is also the complexity of having to prepare a group of microprogram change commands for each device model. The purpose is to store a microprogram change instruction consisting of the relative address of the microprogram and change data in order to change the microprogram, and the base value of the absolute address when converting the relative address of the microprogram to an absolute address. A table is provided, and the relative address of the microprogram is converted into an absolute address, which is a storage location in main memory or control memory, using the microprogram change instruction and the table, and whether or not the base value is not a specific value is determined. By determining whether or not to change the data section of the microprogram, the above disadvantages can be removed, and the address on real memory can be easily changed.
Another object of the present invention is to provide a data processing system configured to perform accurate calculations.

(問題点を解決するための手段) 本発明によるデータ処理システムは制御記憶と、主記憶
と、演算回路とを具備して構成したものである。
(Means for Solving the Problems) A data processing system according to the present invention includes a control memory, a main memory, and an arithmetic circuit.

制御記憶は、マイクロプログラムを格納するためのもの
である。
Control memory is for storing microprograms.

主記憶は、マイクロプログラムを変更するためにマイク
ロプログラムの相対アドレスと変更データとから成るマ
イクロプログラム変更命令、ならびにマイクロプログラ
ムの相対アドレスを絶対アドレスに変換する際あ絶対ア
ドレスのベース値を格納するためのテーブルを設けたも
のである。
The main memory is used to store microprogram change instructions consisting of a relative address of a microprogram and change data in order to change the microprogram, as well as a base value of an absolute address when converting a relative address of a microprogram to an absolute address. It is equipped with a table.

演算回路はマイクロプログラム変更命令ならびにテーブ
ルにより、マイクロプログラムの相対アドレスを主記憶
の内部、または制御記憶の内部の格納位置である絶対ア
ドレスに変換するとともに、ベース値が特定の値ではな
いか否かによりマイクロプログラムのデータを変更する
か否かを決定するためのものである。
The arithmetic circuit converts the relative address of the microprogram into an absolute address that is a storage location inside the main memory or control memory using the microprogram change instruction and table, and also checks whether the base value is a specific value or not. This is to determine whether or not to change the data of the microprogram.

(実施例) 次ζこ、本発明について図面を参照して詳細に説明する
(Example) Next, the present invention will be described in detail with reference to the drawings.

第1図において、1は処理装置、2はプログラムおよび
データを格納するための主記憶、3は主記憶2に格納さ
れたプログラムを順次読出して実行するための演算回路
、4はマイクロプログラムを格納しておき、演算回路3
を制御するための制御記憶、5は4つのモジュールから
構成されるマイクロプログラム、6は主記憶2に格納さ
れたマイクロプログラム変更命令、7はアドレスレジス
タ、8はデータレジスタ、9はデープル、10は加算器
、11は検出回路である。
In FIG. 1, 1 is a processing unit, 2 is a main memory for storing programs and data, 3 is an arithmetic circuit for sequentially reading and executing programs stored in the main memory 2, and 4 is a storage for microprograms. Then, arithmetic circuit 3
5 is a microprogram composed of four modules, 6 is a microprogram change instruction stored in main memory 2, 7 is an address register, 8 is a data register, 9 is a daple, and 10 is a The adder 11 is a detection circuit.

マイクロプログラム変更命令6は命令コード61、アド
レス62、ならびにデータ63によって構成される。ア
ドレス62は変更されるマイクロプログラムの相対アド
レスであり、データ63はその変更データである。
The microprogram change instruction 6 is composed of an instruction code 61, an address 62, and data 63. Address 62 is the relative address of the microprogram to be changed, and data 63 is the changed data.

また、アドレスレジスタ7およびデータレジスタ8には
、それぞれマイクロプログラム変更命令6によって与え
られたアドレス62およびデータ63が信号線101を
介して演算回路3よリセットされる。
Further, the address register 7 and data register 8 are reset by the arithmetic circuit 3 via the signal line 101 with the address 62 and data 63 given by the microprogram change instruction 6, respectively.

テーブル9はアドレス変換に使用されるもので、絶対ア
ドレスのベース値旧〜94を格納しており、相対アドレ
スの上位2ビツトでアクセスされる。ベース値91〜9
4は、マイクロプログラム5を構成している4個のモジ
ュール51〜54  のそれぞれの先頭絶対アドレスに
なっている。この意味から、4個のモジュールは物理的
に連続して主記憶2のなかに格納する必要はない。
Table 9 is used for address conversion and stores absolute address base values old to 94, and is accessed using the upper two bits of the relative address. Base value 91~9
4 is the start absolute address of each of the four modules 51 to 54 making up the microprogram 5. In this sense, it is not necessary to physically store the four modules consecutively in the main memory 2.

加算器10は、相対アドレスの上位2ビツトでテーブル
9からアクセスされたベース値と、相対アドレスの下位
の値とを加えるもので、加算器10で加算されたアドレ
スが主記憶2のなかのマイクロプログラムの格納位置を
示す絶対アドレスとなる。
The adder 10 adds the base value accessed from the table 9 using the upper two bits of the relative address and the lower value of the relative address. This is an absolute address indicating the storage location of the program.

検出回路11はテーブル9の内部のベース値91〜94
が″0”であるか否かを検出するための回路である。ベ
ース値が@0#ではない場合に限って、信号線110を
介して演算回路3が制御され、マイクロプログラムのデ
ータ変更が笑行さ ′れる。ここで、ベース値@O”の
モジュール内存在しないものとする。つまり、モジュー
ル単位で該当モジュール内のデータを変更するか否かが
決定される。このことは、例えば成るモジュールだけが
存在しない装置の場合には、テーブル9の内部の該当モ
ジュールのベース値ヲ“0#にしておけば、そのモジュ
ールも存在する装置(先の装置と同じ内容のマイクロプ
ログラムをもつ)に使用するマイクロプログラム変更命
令群がそのまま使え、装置の機種ごとにマイクロプログ
ラム変更命令群を準備する必要のないことを意味してい
る。
The detection circuit 11 detects the internal base values 91 to 94 of the table 9.
This is a circuit for detecting whether or not is "0". Only when the base value is not @0#, the arithmetic circuit 3 is controlled via the signal line 110 to change the data of the microprogram. Here, it is assumed that the base value @O'' does not exist in the module.In other words, it is determined on a module-by-module basis whether or not to change the data in the module. In this case, if you set the base value of the corresponding module in Table 9 to "0#," the microprogram change command used in the device (which has the same microprogram as the previous device) in which that module also exists can be used. This means that the group can be used as is, and there is no need to prepare a microprogram change instruction group for each device model.

以上説明したアドレス変換手段、およびデータ変更方式
により、主記憶2のなかに格納された目的とするマイク
ロプログラムをその相対アドレスで変更できる。
By using the address conversion means and data modification method described above, the target microprogram stored in the main memory 2 can be modified using its relative address.

本実施例では繁雑さを避けるために、本発明に直接関係
のない回路については記述を省略した。才た、本実施例
ではベース値の特定の値を“O”としたが、他の値でも
かまわないことは勿論である。
In this embodiment, in order to avoid complexity, descriptions of circuits that are not directly related to the present invention are omitted. In this embodiment, the specific value of the base value is set to "O", but it goes without saying that other values may be used.

(発明の効果) 本発明は以上説明したように、マイクロプログラムを変
更するためにマイクロプログラムの相対アドレスと変更
データとから成るマイクロプログラム変更命令と、上記
マイクロプログラムの相対アドレスを絶対アドレスに変
換する際の絶対アドレスのベース値を格納するためのテ
ーブルとを設け、マイクロプログラム変更命令とテーブ
ルとによりマイクロプログラムの相対アドレスを主記憶
中、または制御記憶中の格納位置である絶対アドレスに
変換しておき、ベース値が特定の値ではないか否かによ
りマイクロプログラムのデータを変更するか否かを決定
することにより、マイクロプログラムの変更操作を容易
に行うことができ、効率のよいマイクロプログラム変更
処理が実現できると云う効果がある0
(Effects of the Invention) As described above, the present invention includes a microprogram change instruction consisting of a relative address of the microprogram and change data, and a process of converting the relative address of the microprogram into an absolute address in order to change the microprogram. A table is provided to store the base value of the absolute address at the time of execution, and the relative address of the microprogram is converted to an absolute address which is the storage location in the main memory or control memory using the microprogram change instruction and the table. By determining whether or not to change microprogram data based on whether the base value is not a specific value, microprogram change operations can be easily performed, resulting in efficient microprogram change processing. There is an effect that 0 can be realized.

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

第1図は、本発明によるデータ処理システムの一実施例
を示すブロック図である。 1・・・処理装置    2・・・主記憶3・・・演算
回路    4・・・制御記憶5・・・マイクロプログ
ラム 6・・・マイクロプログラム変更命令 7・・・アドレスレジスタ 8・・・データレジスタ  9・・・テーブル10・・
・加算器      11・・・検出回路51〜54・
・・モジュール 61〜63・・・命令のフィールド 91〜94・・・アドレス  101〜11.0・・・
信号紳特許出願人  日本電気株式会社 代理人 弁理士 井 ノ  ロ   壽p+−10−
FIG. 1 is a block diagram showing one embodiment of a data processing system according to the present invention. 1... Processing device 2... Main memory 3... Arithmetic circuit 4... Control memory 5... Micro program 6... Micro program change instruction 7... Address register 8... Data register 9...Table 10...
・Adder 11...Detection circuits 51 to 54・
...Module 61-63...Instruction fields 91-94...Address 101-11.0...
Signal Gen Patent Applicant NEC Corporation Representative Patent Attorney Hisashi Inoro p+-10-

Claims (1)

【特許請求の範囲】[Claims] マイクロプログラムを格納するための制御記憶と、前記
マイクロプログラムを変更するために前記マイクロプロ
グラムの相対アドレスと変更データとから成るマイクロ
プログラム変更命令、ならびに前記マイクロプログラム
の相対アドレスを絶対アドレスに変換する際の絶対アド
レスのベース値を格納するためのテーブルを設けた主記
憶と、前記マイクロプログラム変更命令ならびに前記テ
ーブルにより前記マイクロプログラムの相対アドレスを
前記主記憶の内部、または前記制御記憶の内部の格納位
置である前記絶対アドレスに変換するとともに、前記ベ
ース値が特定の値ではないか否かにより前記マイクロプ
ログラムのデータを変更するか否かを決定するための演
算回路とを具備して構成したことを特徴とするデータ処
理システム。
a control memory for storing a microprogram; a microprogram change instruction consisting of a relative address of the microprogram and modification data for modifying the microprogram; and converting the relative address of the microprogram into an absolute address. a main memory provided with a table for storing the base value of the absolute address of the microprogram, and a storage location of the relative address of the microprogram within the main memory or within the control memory using the microprogram change instruction and the table; and an arithmetic circuit for converting the absolute address to the absolute address and determining whether or not to change the data of the microprogram based on whether the base value is not a specific value. Characteristic data processing system.
JP15671785A 1985-07-16 1985-07-16 Data processing system Pending JPS6217837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15671785A JPS6217837A (en) 1985-07-16 1985-07-16 Data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15671785A JPS6217837A (en) 1985-07-16 1985-07-16 Data processing system

Publications (1)

Publication Number Publication Date
JPS6217837A true JPS6217837A (en) 1987-01-26

Family

ID=15633795

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15671785A Pending JPS6217837A (en) 1985-07-16 1985-07-16 Data processing system

Country Status (1)

Country Link
JP (1) JPS6217837A (en)

Similar Documents

Publication Publication Date Title
JPS5886648A (en) Tracing device
JPS62226231A (en) Processor
JPS5826584B2 (en) data processing equipment
JPS6217837A (en) Data processing system
JPH01286029A (en) Microprogram patching system
JPH0821009B2 (en) CHANNEL CONTROLLER INITIALIZATION METHOD AND SYSTEM FOR THE INITIALIZATION
JPS62120542A (en) Information processor
JPS6042968B2 (en) information processing equipment
JPS6221131B2 (en)
JPS59188900A (en) Data processor
JPH01120628A (en) Data processor
JPS6219935A (en) Changing system for microprogram
JPS63730A (en) Data processing system
JPH0234058B2 (en)
JPH056215B2 (en)
JPS61161545A (en) Data processing system
JPH03175538A (en) Duplex processor
JPH01185738A (en) Address trace circuit
JPS6270947A (en) Control system for debug interruption
JPS6155731A (en) Processor provided with condition code discriminating function
JPS6231444A (en) Pseudo fault generating system
JPH0439097B2 (en)
JPS62166430A (en) Data processing system
JPS61269744A (en) Debugging system
JPH03168845A (en) Instruction execution control system