JPS59229647A - Controlling method of input/output device - Google Patents

Controlling method of input/output device

Info

Publication number
JPS59229647A
JPS59229647A JP10447983A JP10447983A JPS59229647A JP S59229647 A JPS59229647 A JP S59229647A JP 10447983 A JP10447983 A JP 10447983A JP 10447983 A JP10447983 A JP 10447983A JP S59229647 A JPS59229647 A JP S59229647A
Authority
JP
Japan
Prior art keywords
address
rom
output
data
input
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
JP10447983A
Other languages
Japanese (ja)
Inventor
Hiroki Katano
加田野 博喜
Tadao Nozaki
野崎 忠雄
Tetsuaki Sumida
哲明 隅田
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 Ltd
Original Assignee
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 Ltd filed Critical Fujitsu Ltd
Priority to JP10447983A priority Critical patent/JPS59229647A/en
Publication of JPS59229647A publication Critical patent/JPS59229647A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To change easily and rapidly an I/O control microprogram by deciding a jump instruction, jumping an address to the position to which address to be jumped and sending data in the prescribed order of addresses. CONSTITUTION:A RAM2 accumulating correction data for correcting program accumulated in a ROM1 in the order of addresses is prepared. When an address in the ROM1 coincides with an address of the ROM1 which is held in the RAM2 and requested to correct, the correction data held in the RAM2 at the address are outputted to an I/O device 3. When the output of the ROM1 is used as the address of the ROM1, the difference between said address and the address of the ROM1 which is held in the RAM2 and requested to correct is found out and the address of the RAM2 is forwarded or backwarded to update the address of the RAM2 to an address corresponding to the correction data to be outputted successively.

Description

【発明の詳細な説明】 発明の技術分野 本発明はマイクロプログラム制御による入出力装置制御
方式に関し、特に読出し専用メモリ(以下ROMという
)に格納された入出力装置制御プログラムの変更を行う
ことが可能な入出力装置制御方式に関するものである。
[Detailed Description of the Invention] Technical Field of the Invention The present invention relates to an input/output device control method using microprogram control, and in particular, it is possible to change an input/output device control program stored in a read-only memory (hereinafter referred to as ROM). It is related to input/output device control methods.

従来技術と問題点 マイクロプログラム制御による入出力装置の制御に際し
、制御を高速化する目的で、ROMに格納されたデータ
を読み出してそのまま用いる方式%式% しかしながらこのような方式をとった場合、入出力装置
制御のためプログラムの変更を行う必要が生じたときは
、データがROMに記載さKいるため簡単に訂正するこ
とができず1通常はデータを格納したROM自体を交換
する等の手段によらざるを得す、一般にはプログラムの
変更は極めて困難であった。
Prior Art and Problems When controlling input/output devices using microprogram control, there is a method in which data stored in ROM is read out and used as is in order to speed up control. When it becomes necessary to change the program to control the output device, since the data is stored in the ROM, it cannot be easily corrected, so the method usually involves replacing the ROM itself that stores the data. Unfortunately, it was generally extremely difficult to change the program.

これに対してROMのデータを訂正するためのデータ及
び、そのデータに対応するROMのアドレスを例えば続
出し書込みメモリ(以下RAMという)に格納しておい
て、RAMに保持した訂正を要するROMのアドレスと
ROMをアクセスするアドレスが一致した場合RAMに
保持しておいた訂正データを読み出して用いるという方
式が考えられる。
On the other hand, the data for correcting the ROM data and the ROM address corresponding to the data are stored, for example, in a continuous write memory (hereinafter referred to as RAM), and the ROM that requires correction is stored in the RAM. A possible method is to read out and use the corrected data held in the RAM when the address matches the address used to access the ROM.

しかしながらこのように単純にアドレスを比較する構成
をとった場合、RAMのデータを取り出すためには訂正
用のデータが格納されたRAM(C保持された訂正を要
するデータのROMのアドレスをすべて比較して一致を
検出しなければならず、訂正用データの続出しに長時間
を要し、続出し時間を短縮しようとすれば、アドレスの
比較を高速で行うようにしなければならないこと2二な
って好ましく&  い。
However, when using a configuration that simply compares addresses like this, in order to retrieve data from RAM, it is necessary to compare all the addresses of the RAM (C) where correction data is stored and the ROM of the data that needs correction. Therefore, it takes a long time to continuously output correction data, and in order to shorten the successive output time, address comparisons must be performed at high speed22. Preferable & good.

発明の目的 本発明はこのような従来技術の問題点を解決しようとす
るものであって、その目的は、ROM化された入出力制
御マイクロプログラムの変更を容易にかつ迅速に二行う
ことが可能な方式を提供することにある。
Purpose of the Invention The present invention is intended to solve the problems of the prior art, and its purpose is to make it possible to easily and quickly change input/output control microprograms stored in ROM. The goal is to provide a new method.

発明の実施例 図は本発明の入出力制御方式の一実施例の構成を示して
いる。図において1はマイクロプログラムデータを格納
するROM、2はマイクロプログラムに対する訂正デー
タを格納するRAM、3は入出力装置jtcI10)、
4,5はセレクタ(SEL)、6.7.8はマツチャー
(MAT)、9は固定パターン発生回路、10はRAM
2のアドレスを出力するアップダウンカウンタであって
、マツチャー7、固定パターン発生回路9は入出力制御
ロジック部20を形成し、マツチャー8.カウンタ10
は演算部30を形成している。
Embodiment of the Invention The figure shows the configuration of an embodiment of the input/output control system of the invention. In the figure, 1 is a ROM that stores microprogram data, 2 is a RAM that stores correction data for the microprogram, 3 is an input/output device jtcI10),
4 and 5 are selectors (SEL), 6.7.8 are matchers (MAT), 9 is a fixed pattern generation circuit, and 10 is RAM
The matcher 7 and the fixed pattern generation circuit 9 form an input/output control logic section 20, and the matcher 8. counter 10
forms an arithmetic unit 30.

ここでROM1には入出力装置3に対して出力すべきデ
ータがアドレス順に格納されているが。
Here, data to be output to the input/output device 3 is stored in the ROM 1 in address order.

RAM2には訂正を要するROMのアドレスとそのアド
レスに対応するデータがアドレス順に格納されている。
The RAM 2 stores ROM addresses that require correction and data corresponding to the addresses in address order.

通常、セレクタ4は1示されない中央制御装置(以下C
Cと略す)側に切り替えられていて、CCからROM1
に対するアドレス情報は、セレクタ4を経てROM1及
びマツチャー65二加えられる。マツチャー6では、R
AM2から出力される次に訂正すべきROMlのアドレ
ス情報(手段は後述)と、CCからのアドレス情報を比
較する。通常、セレクタ5は、ROM1側に切り替えら
れていて、マツ”チャー6での比較結果が不一致の場合
は、ROMlの出力データを訂正する必要はないので、
そのまま、また、比較結果が一致した場合は、ROM1
の出力データは訂正を要するので、セレクタ5をRAM
2側へ切り替え、RAM2+=保持された訂正済データ
を入出力装置3へ送り、セレクタ5を復旧させる。また
、比較結果が一致した場合は、RAM2のアドレスを出
力するカウンタ10を1歩進させ、RAM2の出力を次
の訂正を要するROM1のアドレスと訂正データにする
Normally, the selector 4 is a central control unit (hereinafter referred to as C) which is not shown.
(abbreviated as C) side, and from CC to ROM1
Address information for the ROM 1 and the matcher 65 are added via the selector 4 to the ROM 1 and the matcher 65. In Matscher 6, R
The address information of ROM1 to be corrected next (the means will be described later) outputted from AM2 is compared with the address information from CC. Normally, the selector 5 is switched to the ROM1 side, and if the comparison result at the char 6 does not match, there is no need to correct the output data of the ROM1.
As is, or if the comparison results match, ROM1
Since the output data of requires correction, selector 5 is moved to RAM.
The corrected data held in RAM2+ is sent to the input/output device 3, and the selector 5 is restored. Further, if the comparison results match, the counter 10 that outputs the address of RAM2 is incremented by one step, and the output of RAM2 is made into the address of ROM1 and correction data that require the next correction.

セレクタ5から出力されるデータが、ROM1内のプロ
グラムの流れを変えるためのジャンプ命令識別パターン
とジャンプ先アドレス(以下、JADDと略す)とから
なるジャンプ命令であった場合、次のように動作し、R
AM2の出力を次の訂正データ用に改める。固定パター
ン発生回路9からは、ジャンプ命令識別パターンと同一
パターンが、出力されていて、ジャンプ命令の際には、
マツチャー7においてマツチングがとられ、マツチャー
7の出力でセレクタ4が切り替えられて、ROM1及び
マツチャー6にはアドレスJADDが加えられる。また
、アドレスJADDは、マツチャー8にも加えられ、そ
の時RAMQが出力している訂正を要するROM1のア
ドレス(以下ADDAと略す)と比較される。JADD
)ADDAの場合、イネーブル信号を発生してJADD
くADDAとなるまで、カウンタ10を歩進させ、また
、JADD<−ADDAの場合は、カウンタ10を後退
させてJADD)ADDAとなった後に歩進させ、その
後セレクタ4を復旧させ通常動作にもどす。カウンタ1
0は、RAM2のアドレスを与えるから、RAM2の出
力は、次の訂正データ用のものとなる。
When the data output from selector 5 is a jump instruction consisting of a jump instruction identification pattern and a jump destination address (hereinafter abbreviated as JADD) for changing the flow of the program in ROM 1, the operation is as follows. ,R
The output of AM2 is changed for the next correction data. The fixed pattern generation circuit 9 outputs the same pattern as the jump instruction identification pattern, and when a jump instruction is issued,
Matching is performed in the matcher 7, the selector 4 is switched by the output of the matcher 7, and the address JADD is added to the ROM 1 and the matcher 6. The address JADD is also added to the matcher 8 and compared with the address of the ROM 1 that requires correction (hereinafter abbreviated as ADDA) output from the RAMQ at that time. J.A.D.D.
) In the case of ADDA, generate an enable signal and use JADD.
The counter 10 is incremented until JADD<-ADDA, and when JADD<-ADDA, the counter 10 is incremented until it reaches JADD)ADDA, and then the selector 4 is restored to return to normal operation. . counter 1
Since 0 gives the address of RAM2, the output of RAM2 will be for the next correction data.

このように本発明によれば、例えばマイクロ命令をデー
タとして相手装置に送るような場合、必要なデータだけ
を送るためにジャンプ命令を判断し、ジャンプ命令の場
合は指定されたジャンプ先ヘアドレスを飛ばし、その点
からまた所定のアドレス順にデータを送るような制御を
行うことができる。
According to the present invention, for example, when sending a microinstruction as data to a partner device, a jump instruction is determined in order to send only the necessary data, and in the case of a jump instruction, the specified jump destination address is sent. It is possible to perform control such as skipping and sending data again in a predetermined address order from that point.

例えばフロッピーディスク装置へマイクロ命令を送る場
合、中央制御装置から人出力制御装置へり一ド/ライト
命令を送ると、入出力制御′装置はリードまたはライト
に応じて必要なマイクロ命令の共通部分およびそのリー
ドまたはライト動作に特有な命令部分を送るため、その
切り分けとしてジャンプ命令が挿入される。
For example, when sending microcommands to a floppy disk device, when the central controller sends a read/write command to the human output controller, the input/output controller will respond to the read or write by identifying the common parts of the microcommands and In order to send a command part specific to a read or write operation, a jump command is inserted as a separation.

発明の詳細 な説明したように本発明の入出力装置制御方式によれば
、ROMに蓄積されているプログラムを訂正するための
訂正データをデータと訂正すべきROMのアドレスをア
ドレス順(=蓄積するRAMを設け、ROMのアドレス
とRAMに保持した訂正を要するROMのアドレスとが
一致したときそのアドレスにおいてRAMに保持されて
いる訂正データを入出力装置に出力するとともに、RO
Mの出力がROMのアドレスとして使用される場合RA
Mに保持された訂正を要するROMのアドレスとの差を
求めてRAMのアドレスを歩進または後退させてRAM
のアドレスを次に出力すべき訂正データに対応するアド
レスに更新するようにしたので、ROM化された入出力
制御マイクロプログラムの変更を容易にかつ迅速に行う
ことができるので甚だ効果的である。
As described in detail, according to the input/output device control method of the present invention, the correction data for correcting the program stored in the ROM and the address of the ROM to be corrected are arranged in the address order (=accumulation). A RAM is provided, and when the ROM address and the ROM address that requires correction held in the RAM match, the corrected data held in the RAM is output to the input/output device at that address, and the RO
If the output of M is used as the ROM address, RA
The RAM address is incremented or retracted by finding the difference from the ROM address that requires correction held in M.
Since the address is updated to the address corresponding to the corrected data to be output next, the input/output control microprogram stored in the ROM can be easily and quickly changed, which is extremely effective.

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

図は本発明の入出力装置制御方式の一実施例の構成を示
すブロック図である。 1・・・読出し専用メモリ(Rolば)、2・・・読出
し書込みメモリ(RAM)、’y・・・入出力装置(I
lo)、4.5・・・セレクタ(SEL)、6,7.8
・・・マツチャー(MAT)、9・・・固定パターン発
生回路、10・・・アップダウンカウンタ、20・・・
入出力制御ロジック部、60・・・演算部 特許出願人 富士通株式会社
The figure is a block diagram showing the configuration of an embodiment of the input/output device control method of the present invention. 1... Read-only memory (Rolba), 2... Read/write memory (RAM), 'y... Input/output device (I
lo), 4.5... Selector (SEL), 6, 7.8
... Matcher (MAT), 9... Fixed pattern generation circuit, 10... Up/down counter, 20...
Input/output control logic section, 60...Arithmetic section Patent applicant Fujitsu Limited

Claims (1)

【特許請求の範囲】[Claims] 読出し専用メモリ(以下ROMと略f)に蓄積されてい
るプログラムによってマイクロプログラム制御を行う入
出力装置制御方式において、前記ROMに蓄積されてい
るプログラムを訂正するための訂正データとデータを訂
正すべきROMのアドレスをアドレス順に蓄積する続出
し書込みメモリ(以下RAMと略す)を設け、前記RO
MをアクセスするアドレスとRAMに保持したデータを
訂正すべきROMのアドレスとが一致したとき該アドレ
スにおいてRAMに保持されている訂正データを入出力
装置に出力するとともに、前記ROMの出力が、同RO
Mのアドレスとして使用される場合には両アドレスの差
を求めてRAMのアドレスな歩進または後退させてRA
Mのアドレスを次に出力すべき訂正データに対応するア
ドレス(二更新することを特徴とする入出力装置制御方
式。
In an input/output device control method that performs microprogram control using a program stored in a read-only memory (hereinafter referred to as ROM), correction data for correcting the program stored in the ROM and data to be corrected are provided. A continuous write memory (hereinafter abbreviated as RAM) for storing ROM addresses in address order is provided, and the RO
When the address for accessing M matches the address of the ROM where the data held in the RAM is to be corrected, the corrected data held in the RAM at that address is output to the input/output device, and the output of the ROM is the same. R.O.
When used as the address of M, find the difference between both addresses and increment or retract the address of RAM and write it to RA.
An input/output device control method characterized by updating the address of M to the address corresponding to the corrected data to be output next.
JP10447983A 1983-06-11 1983-06-11 Controlling method of input/output device Pending JPS59229647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10447983A JPS59229647A (en) 1983-06-11 1983-06-11 Controlling method of input/output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10447983A JPS59229647A (en) 1983-06-11 1983-06-11 Controlling method of input/output device

Publications (1)

Publication Number Publication Date
JPS59229647A true JPS59229647A (en) 1984-12-24

Family

ID=14381696

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10447983A Pending JPS59229647A (en) 1983-06-11 1983-06-11 Controlling method of input/output device

Country Status (1)

Country Link
JP (1) JPS59229647A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63126033A (en) * 1986-11-14 1988-05-30 Nec Corp Microprogram control system
JPH01109433A (en) * 1987-10-22 1989-04-26 Nec Corp Microinstruction storage device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63126033A (en) * 1986-11-14 1988-05-30 Nec Corp Microprogram control system
JPH01109433A (en) * 1987-10-22 1989-04-26 Nec Corp Microinstruction storage device

Similar Documents

Publication Publication Date Title
EP0383474B1 (en) Processor interrupt control
US4080651A (en) Memory control processor
US4905200A (en) Apparatus and method for correcting microcomputer software errors
JP3230262B2 (en) Electronic device and fixed information correcting method thereof
JPH04346127A (en) Electronic device
US5600807A (en) Programmable controller capable of updating a user program during operation by switching between user program memories
US5799144A (en) Microcomputer for resolving problems found in a program stored in a ROM
JPS59229647A (en) Controlling method of input/output device
KR920006768B1 (en) Method and device to execute two instruction sequences in an order determined in advance
JPH0939212A (en) Controller for printing machine
JPH06309265A (en) Dynamic selection method for driver program of information processor
JPS63142431A (en) Pipeline control system
US6665830B2 (en) System and method for building a checksum
JPH1020906A (en) Data processor and data processing method
JP2000040057A (en) Computer system, buffer controller and transferring method
JPH06314190A (en) Electronic device
JPS62168229A (en) Automatic recognizing system for system constitution
US20030182523A1 (en) Cache memory control device and cache memory system
JPS5935264A (en) Magnetic disk device
JPH06187140A (en) Processor
JP2003196087A (en) Memory addressing system of microcontroller and page mapping device
JPH0423147A (en) Bank switching system
JPH05181680A (en) Method for transferring firmware
JPS601657B2 (en) Address conversion method
JPH05298112A (en) Program managing method for parallel executing programmable controller system