JPS61259340A - Input output control device - Google Patents

Input output control device

Info

Publication number
JPS61259340A
JPS61259340A JP60100551A JP10055185A JPS61259340A JP S61259340 A JPS61259340 A JP S61259340A JP 60100551 A JP60100551 A JP 60100551A JP 10055185 A JP10055185 A JP 10055185A JP S61259340 A JPS61259340 A JP S61259340A
Authority
JP
Japan
Prior art keywords
input
output
port number
program
output port
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
JP60100551A
Other languages
Japanese (ja)
Inventor
Seishiro Oota
太田 征四郎
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP60100551A priority Critical patent/JPS61259340A/en
Publication of JPS61259340A publication Critical patent/JPS61259340A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To decrease the cost of a changing work by generating a program so as to be able to separate a code and a board number in a control device which applies the microcomputer, etc. CONSTITUTION:The device handles input and output port numbers used on the control program as logical numbers and is provided with an input output port number data table 11 to correspond to the logical number and the input and output port numbers. An input output instruction word is formed at a RAM area, in accordance with the necessity, an input output port number code is obtained from the input output port number data table 11, buried to an input output port number code part, and therefore, the input output instruction code is executed. Consequently, when the port number is changed, changing can be executed only by rewriting the input output port number corresponding to the logical number equivalent to the data table 11.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、マイクロコンピュータ等の中央処理装置C
以下、  「CPUJと略す)を有し、その制御プログ
ラムを読出専用メモリC以下、rRoMJと略す)に記
憶して成る入出力側(2)装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] This invention relates to a central processing unit C such as a microcomputer.
The following description relates to an input/output side (2) device having a CPUJ (abbreviated as "CPUJ") and storing its control program in a read-only memory C (hereinafter referred to as "rRoMJ").

〔従来の技術〕[Conventional technology]

一般に、マイクロコンピュータ等を応用した入出力節1
倒装宜では、入力又は出力に必要なインタ7工イス回路
を、マイクロコンピュータ等が有する処理ビット数を単
位としてユニット化し2それぞれのユニット(以下、入
力インタ7工イス回路ユニットヲ「入力ポート」、又、
出力インタフエイス回路ユニットヲ「出力ポート」と呼
ぶ)には固有のポート番号が付される。
In general, input/output sections using microcomputers, etc. 1
In this case, the interface circuits required for input or output are divided into units based on the number of processing bits of a microcomputer, etc., and each unit (hereinafter, input interface circuit unit is referred to as an "input port"). or,
Each output interface circuit unit (referred to as an "output port") is assigned a unique port number.

第7図は、このような入出力制御装置の一般的な構成例
を示′す。図において、(1)は演算処理を実行するC
PU、(2+は制御プログラムが書込まれたROM、(
、?)はCPUが演算処理を実行する際に必要な各種デ
ータを一時的に記憶する為の書込および読出し可能なメ
モリ(以下、l”’RAMJと略す。)、(クー/)〜
(弘−n)は入力ポート、(s−7’)〜(!;−m)
は出力ポートであり、(AIHこれらの各ユニットを結
合する為の信号パスラインである。
FIG. 7 shows a general configuration example of such an input/output control device. In the figure, (1) is a C that performs arithmetic processing.
PU, (2+ is ROM in which the control program is written, (
,? ) is a writable and readable memory (hereinafter abbreviated as l"'RAMJ) for temporarily storing various data necessary when the CPU executes arithmetic processing, (ku/)~
(Hiro-n) is an input port, (s-7') ~ (!;-m)
is an output port, and (AIH) is a signal path line for coupling these units.

第3図は、 ROM(,21に組込まれた制御プログラ
ムの構成例を示す。図において、(コa)はROM(λ
)上に記憶された制御プログラム全体を示し、(eO−
/)〜(グ0−n)は入力動作を実行するための入力節
j御プログラムに含まれる入力命令語、 (10−/)
〜(so−m)は、出力動作を実行するための出力制御
プログラムに含まれる出力命令語である。
Figure 3 shows an example of the configuration of a control program built into the ROM (21).
) shows the entire control program stored on (eO-
/) ~ (g0-n) are input command words included in the input clause j control program for executing the input operation, (10-/)
~(so-m) is an output instruction word included in an output control program for executing an output operation.

ここで、各入力命令語(弘0−/)〜(ao−n)の入
力命令コードは全て同一であシ、入力ポート番号コード
だけが入力しようとする入力ポート番号に対応しで異な
っておシ、又、各出力命令語(30−/)〜(so−m
)の出力命令コードも全て同一であシ、出力ポート番号
コードだけが出力しようとする出力ホート番号に対応し
て異なっている。これは、一般的なマイクロコンピュー
タの入出力命令語は、入力命令コードとそのオペランド
としての入力ポート番号コードとで一つの入力命令語が
Here, the input command codes of each input command word (Hiro0-/) to (ao-n) are all the same, and only the input port number code is different depending on the input port number to be input. Also, each output command word (30-/) ~ (so-m
) are all the same, and only the output port number code differs depending on the output port number to which output is to be made. This is a general microcomputer input/output instruction word, with one input instruction word consisting of an input instruction code and an input port number code as its operand.

又、出力命令コードとそのオペランドとしの出力ポート
番号コードとで一つの出力命令語が構成されるためであ
る。
This is also because one output instruction word is composed of the output instruction code and the output port number code as its operand.

フた。入力命令語(llo−/)〜(ao−n)及び出
力命令語(!rO−/ )〜(!r 0 1!l )の
間にFi、第1図に示した入出力f1111@装置を作
動させるために必要な各種のプログラムが存在するが省
略しである。
Futa. Between the input command word (llo-/) ~ (ao-n) and the output command word (!rO-/) ~ (!r 0 1!l), Fi, the input/output f1111@ device shown in Fig. 1 is connected. There are various programs necessary for operation, but they are omitted.

また、図中の矢印Aは、制御プログラムの基本的な流れ
を示す。
Further, arrow A in the figure indicates the basic flow of the control program.

次に、@/図及び第3図によシ従来の入出力制御装置に
おける入出力動作について説明する。
Next, input/output operations in the conventional input/output control device will be explained with reference to FIG. 1 and FIG.

先づ、入力動作は、CP U(/lが入力命令コードと
入力ポート番号コードで構成される入力命令語(qθ−
/)〜(ダ0−n)をROM(コ)から取シ出して実行
することによって行なわれ、その結果として入力ポート
番号に対応する入カポ−) (u−/ )−(u−n 
)に保持されているデータが信号パスライン(6)ヲ介
してCP U(/lに読込まれる。次に、出力動作はC
PU(1)が出力命令コードと出力ポート番号コードで
構成される出力命令語(!0−/) 〜(!rO−m)
 ’eROM(2)から取シ出して実行することによっ
て行なわれ。
First, the input operation is performed by the CPU (where /l is an input instruction word (qθ-
/) to (da0-n) are extracted from the ROM and executed, and as a result, the input port number corresponding to the input port number is
) is read into the CPU (/l) via the signal path line (6). Next, the output operation is performed by the CPU (/l).
PU (1) is an output instruction word (!0-/) consisting of an output instruction code and an output port number code (!rO-m)
This is done by extracting the data from eROM (2) and executing it.

その結果として出力ポート番号に対応する出カポ−ト(
s−/ ) 〜(tm )にC’ P U(/lからの
データが信号パスライン(6)を介して出力される〇〔
発明が解決しようとする問題点〕 従来の入出力制御装置は以上のように構成され。
As a result, the output port (
s-/) ~ (tm), data from C'PU(/l is outputted via the signal path line (6)〇〇
Problems to be Solved by the Invention] The conventional input/output control device is configured as described above.

制御プログラムは、機器の信頼性の維持、物理的形状の
制約若しくは製品価格の抑制等の理由から。
Control programs are used for reasons such as maintaining equipment reliability, physical form constraints, and reducing product prices.

ROMに予め書込まれた状態で装置に組込まれるのが一
般的である。このような入出力制御装置においては、何
らかの理由で、装置に接続されている入力又は出力ポー
ト番号を変更する必要が生じた場合、ROM内の入出力
命令語中の入力ポート番号コード部又は出力ポート番号
コード部を変更しなければならないが、一般に、同一の
制御プログラム内に、7つの入力又は出力ポート’l起
動するための命令語は複数個存在するので、該当する命
令語が制御プログラム上のどのアドレスに存在するかを
検索する為に多大な時間を費していた。又、変更を必要
とする命令語が非常に多い場合は、変更作業に伴う人為
的ミスが発生しやすく、その為にプログラムの変更後の
確認試験にも多くの時間金費し、ROMに書込まれた機
械語レベルでの変更が困難である等の問題点があった。
Generally, the information is written in a ROM in advance and incorporated into the device. In such an input/output control device, if it becomes necessary to change the input or output port number connected to the device for some reason, the input port number code section or output port number in the input/output instruction word in the ROM The port number code section must be changed, but since there are generally multiple commands to activate seven input or output ports in the same control program, the corresponding command must be changed in the control program. I was spending a lot of time searching for which address it was in. In addition, if there are a large number of command words that need to be changed, human errors are likely to occur during the change process, and therefore a lot of time and money are spent on confirmation tests after changing the program, and it is necessary to write the program to ROM. There were problems such as the difficulty of changing the embedded machine language level.

さらに、従来の入出力制御装置VCおいては制(財)プ
ログラムをROMに組み込むため、制御プログラムの開
発試験段階において、入出力制御の手順や入出力の値が
正しいか否かを試験する場合、入力又は出力側脚プログ
ラムの全てについて完全にシミュレーション出来る特殊
な機器及びテストプログラム全基準するか、あるいは、
実際に制御プログラムが実装される入出力制御装置を用
いて、入力および出力側脚プログラムの7つ7つを動作
させて確認する、いわゆる実機テストを行なうことが必
要で、制御プログラム単独での確認試験にも非常に多く
の労力を必要としていた。
Furthermore, in the conventional input/output control device VC, since the control program is embedded in the ROM, it is necessary to test whether the input/output control procedure and input/output values are correct during the development test stage of the control program. , special equipment and test programs that can fully simulate all input or output leg programs, or
It is necessary to perform a so-called actual machine test in which seven input and output side leg programs are operated and confirmed using the input/output control device in which the control program is actually implemented, and the control program alone cannot be confirmed. Testing also required a great deal of effort.

この発明は上記のような従来の入出力制御装置の問題点
を解消するためになされたもので、入力又は出力ポート
番号の変更に伴なう制御プログラムの変更、及び、制御
プログラムの入出力創製の手順や入出力値の確認試験が
簡単、かつ、確実に行える入出力制御装置を得ることを
目的とする。
This invention was made in order to solve the problems of the conventional input/output control device as described above, and it is possible to change the control program due to changing the input or output port number, and to create input/output of the control program. The purpose of the present invention is to obtain an input/output control device that can easily and reliably perform confirmation tests on procedures and input/output values.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る入出力制御装置は、広義には、命令コー
ド及びポート番号でそれぞれ入力命令語及び出力命令語
を構成させて各ポートの起動を行うため、入力及び出力
命令語をそれぞれRAM領域においてコード及びポート
番号を分離可能にプログラム生成させるROM’i備え
ている。
In a broad sense, the input/output control device according to the present invention activates each port by configuring an input instruction word and an output instruction word using an instruction code and a port number, respectively. It is equipped with a ROM'i that allows programs to be separably generated by code and port number.

RAM領域内に入力命令サブルーチン及び出力命令サブ
ルーチンを生成する初期設定プログラムと。
an initialization program that generates an input command subroutine and an output command subroutine in a RAM area;

論理番号で与えられる入力又は出力ポート番号を物理的
な入力又は出力ポート番号に変換するためノ入出力ポー
ト番号データテーブルと、上記入力命令サブルーチン又
は出力命令サブルーチンに該入出力ポート番号データテ
ーブルから得られる物理的な入力又は出力ポート番号を
セットした後、該サブルーチンをコールする入力制御プ
ログラム及び出力制御プログラムと、をROM領域内に
設けたものである。
An input/output port number data table for converting an input or output port number given by a logical number into a physical input or output port number, and an input/output port number data table obtained from the input/output port number data table for the above input command subroutine or output command subroutine. An input control program and an output control program that call the subroutine after setting the physical input or output port number to be used are provided in the ROM area.

〔作 用〕[For production]

この発明においては、入出力?1iIJ 1lllll
装置が初期化されると初期設定プログラムが起動され、
RAM領域内に入力命令サブルーチン及び出力命令サブ
ルーチンを生成し、その後に発生する入力要求若しくは
出力要求に対して、それぞれ、入力制御プログラム若し
くは出力側間プログラムが起動され。
In this invention, input/output? 1iIJ 1llllll
When the device is initialized, the initial setting program is started and
An input command subroutine and an output command subroutine are generated in a RAM area, and an input control program or an inter-output side program is activated, respectively, in response to an input request or an output request that occurs thereafter.

論理番号で与えられた入力又は出力ポート番号を入出力
ポート番号データテーブルを参照して物理的な入力又は
出力ポート番号に変換せしめて上記入力命令サブルーチ
ンに含まれる入力命令語の入力ポート番号コード部若し
くは出力命令サブルーチンに含まれる出力命令語の出力
ポート番号コード部に埋め込み、然る後、該サブルーチ
ンをコールすることによって入力命令若しくは出力命令
全実行する。
The input port number code section of the input command word included in the input command subroutine is converted by referring to the input/output port number data table to convert the input or output port number given as a logical number into a physical input or output port number. Alternatively, it is embedded in the output port number code section of the output command word included in the output command subroutine, and then all input commands or output commands are executed by calling the subroutine.

〔笑施例〕[lol example]

tJcJ図はこの発明の一実施gA+である入出力制御
装置の制御プログラムの構成を示す。図において。
Figure tJcJ shows the configuration of a control program for an input/output control device which is one embodiment gA+ of the present invention. In fig.

(−b)は第1図に示したROM(コ)に記憶された制
御プログラムでROM領域プログラムというn3aはR
A M(、?)内に生成されるプログラムでRAM領f
iプログラムという、(ワ)及び(ざ)は、入出力制御
装置がリセットされた後、最初に実行される初期設定プ
ログラム、(デ)は入力側(財)プログラム、(10)
は出力制御プログラム、(l/)は予め本装置で使用さ
れる全ての入力又は出力ポートに割付けられた制御プロ
グラム上の論理番号を実際の物理的な入力又は出力ポー
ト番号に変換するための入出力ポート番号テーブルであ
シ、論理番号の上昇順に、その論理番号に対応する物理
的な入力又は出力ポート番号コードがセットされている
。又、(/2)は初期設定プログラム(り)によって、
入力命令コードとリターン命令コードが生成され、かつ
、入力制御プログラム(?)が実行される度に入力しよ
うとする入力ポート番号コードが生成されて成シ立つ入
力命令サブルーチン、(/、7)は初期設定プログラム
(jlによって出力命令コードとリターン命令コードが
生成されかつ出力側倒プログラム(10)が実行される
度に出力しようとする出力ポート番号コードが生成され
て成シ立つ出力命令サブルーチン。
(-b) is a control program stored in the ROM shown in FIG.
A program generated in M(,?) and RAM area f
(10) The i program is an initial setting program that is executed first after the input/output control device is reset, and (d) is an input side (goods) program.
is the output control program, and (l/) is the input for converting the logical numbers on the control program previously assigned to all input or output ports used in this device into actual physical input or output port numbers. In the output port number table, physical input or output port number codes corresponding to the logical numbers are set in ascending order of the logical numbers. Also, (/2) is set by the initial setting program (ri).
The input command subroutine (/, 7) is created by generating an input command code and a return command code, and generating an input port number code to be input every time the input control program (?) is executed. An output command subroutine that is realized by generating an output command code and a return command code by the initial setting program (jl) and by generating an output port number code to be output every time the output sidetracking program (10) is executed.

である。It is.

なお、W、コ図においては、この発明の詳細な説明する
ために必要な部分のみを記載しておシ、記載された各プ
ログラムの間にも入出力制御装置を作動させるために必
要な各種のプログラムが存在するが省略しである。又、
第一図では、入力制薗プログラム(?)及び出力制御プ
ログラム(/Q)は。
In addition, in figures W and C, only the parts necessary for a detailed explanation of this invention are described, and various information necessary for operating the input/output control device is also shown between each program described. There are programs for this, but they are omitted here. or,
In Figure 1, the input control program (?) and output control program (/Q) are.

それぞれ、7つしか記載していないが、全く同一か、又
は、入力又は出力しようとする入力又は出力ポートの論
理番号のセット処理における論理番号値のみが異なる入
出力制御プログラムが多数存在する。更に、第一図にお
ける破線矢印は入力命令サブルーチン(/コ)および出
力命令サブルーチン(/3)を構成する各コードがどの
プログラムによって生成されるかを示し、実線矢印は制
御プログラムの流れを示している。
Although only seven of these programs are listed, there are many input/output control programs that are completely the same or differ only in the logical number value in the process of setting the logical number of the input or output port to be input or output. Furthermore, the dashed arrows in Figure 1 indicate which programs generate the codes that make up the input command subroutine (/co) and the output command subroutine (/3), and the solid arrows indicate the flow of the control program. There is.

次に第1図及び第一図によシ動作を説明する。Next, the operation will be explained with reference to FIGS.

入出力制御装置がリセットされると、まず、初期設定プ
ログラム(り)はRA M(,7)内の特定番地に、入
力命令サブルーチン(/2)を形成すべく入力命令コー
ド及びリターン命令コードを書込む。次に、初期設定プ
ログラム(flはRAM(,71内の他の特定番地に出
力命令サブルーチン(/、7)?形成すべく出力命令コ
ード及びリターン命令コードを書込む。以上のような初
期設定動作が完了した後に、入力又は振方動作が必要に
なった時点で入力制御グログラム(デ)又は出力制御プ
ログラム(10)が起動される。
When the input/output control device is reset, the initial setting program (ri) first writes the input command code and return command code to a specific address in RAM (,7) to form the input command subroutine (/2). Write. Next, the initial setting program (fl writes the output command code and return command code to form the output command subroutine (/, 7) to another specific address in the RAM (, 71).The above initial setting operation After this is completed, the input control program (de) or the output control program (10) is activated when an input or swinging operation is required.

まず、入力動作について説明する。入出力制御装置内部
で入力要求が発生すると、入力制御プログラム(テ)に
制御が移る。ここでは、まず、入力しようとする入力ポ
ートの論理番号をセットし、この論理番号を基に、入出
力ポート番号データテーブル(//)を参照して、該論
理番号に対応する物理的な入力ポート番号を取出し、そ
れをRAM領域の入力命令サブルーチン(/コ)′1&
:構成する入力番号コード部に書込む。次に、入力命令
サブルーチン(/2)fコールしてRAM領域の入力命
令サブルーチン(/2)に制@を渡す。入力命令サブル
ーチン(ハ目では、入力命令コードと入力ポート番号コ
ードとから成る入力命令語が実行され、先に入力ポート
番号コードで指定された入力ポートから信号パスライン
(6)ヲ介してデータが外部から読込まれる。次にリタ
ーン命令が実行され、入力命令サブルーチンをコールし
た命令の次の命令(ROM領域の命令)へ制御が戻る。
First, the input operation will be explained. When an input request occurs within the input/output control device, control is transferred to the input control program (te). Here, first, set the logical number of the input port to be input, and based on this logical number, refer to the input/output port number data table (//) and select the physical input port corresponding to the logical number. Extract the port number and input it to the RAM area input command subroutine (/co)'1 &
:Write to the configured input number code section. Next, the input command subroutine (/2) f is called and control @ is passed to the input command subroutine (/2) in the RAM area. Input command subroutine (in item B), an input command word consisting of an input command code and an input port number code is executed, and data is first transmitted from the input port specified by the input port number code via the signal path line (6). It is read from the outside. Next, a return instruction is executed, and control is returned to the instruction (instruction in the ROM area) following the instruction that called the input instruction subroutine.

一方、出力動作の場合は、入出力制御装置内部で出力要
求が発生すると、出力制御プログラム(#7)K制御が
移る。ここでは、まず、出力しようとする出力ポートの
論理番号をセットし、この論理番号を基に、入出力ポー
ト番号データテーブル(//)を参照して、該論理番号
に対応する物理的な出力ポート番号を取出し、それをR
AM領域の出力命令サブルーチン(/3)ft構成する
出力ポート番号コード部に書込む。
On the other hand, in the case of output operation, when an output request occurs inside the input/output control device, control of the output control program (#7) K is transferred. Here, first, set the logical number of the output port to be output, and based on this logical number, refer to the input/output port number data table (//) and select the physical output corresponding to the logical number. Take the port number and put it in R
AM area output command subroutine (/3) ft Write to the output port number code section.

次に、出力命令サブルーチン(/J)をコールしてRA
M領域の出力命令サブルーチン(/3)に制御を渡す。
Next, call the output command subroutine (/J) to
Transfer control to the M area output command subroutine (/3).

出力命令サブルーチン(/3)では、出力命令コードと
出力ポート番号コードとからなる出力命令語が実行され
、先に出力ポート番号コードで指定された出力ポートに
信号パスライン(6)ヲ介してデータが外部へ出力され
る。次にリターン命令が実行され、出力命令サブルーチ
ンをコールした命令の次の命令(ROM領域の命令)へ
制御が戻る。
In the output command subroutine (/3), an output command consisting of an output command code and an output port number code is executed, and data is first sent to the output port specified by the output port number code via the signal path line (6). is output to the outside. Next, a return instruction is executed, and control is returned to the instruction (instruction in the ROM area) following the instruction that called the output instruction subroutine.

なお、第一図には記載されていないが、多数存在する他
の入力又は出力制御プログラムも上記と全く同じ動作を
する。
Although not shown in FIG. 1, many other input or output control programs operate in exactly the same manner as described above.

なお1以上の説明においては、入力又は出力ポート番号
の変更について説明したが、初期設定プログラム(ワ)
の処理内容の中のr RAM領域の入力命令サブルーチ
ン〔/2)に入力命令コードをセットする」の処理を「
入力側−をテストするプログラムに分岐する命令コード
をセットする。」という処理に変更し、かつ、[入力命
令サブルーチン(/2)にセットされている入力ポート
番号コードを汎用の出力機器、例えばプリンタに出力し
、かつ、汎用の入力機器1例えばキーボードから任意の
データを入力した後に入力命令サブルーチン(/2)の
リターン命令コード部分へ分岐する」といった簡単な入
力開園をテストするプログラムを追加し、更に、初期設
定プログラム(ff)の処理内容の中のf RAM領域
の出力命令サブルーチン(/J)に出力命令コードをセ
ットする」の処理を「出力制御をテストするプログラム
に分岐する命令コードにセットする」という処理に変更
し、かつ、「出力命令サブルーチン(/3)にセットさ
れる出力ポート番号コードおよびその時の出力データを
汎用の出力機器1例えばプリンタに出力した後に出力命
令サブルーチン(/3)のリターン命令コード部分に分
岐する」といった簡単な出力制御をテストするプログラ
ムを追加することにより、制御プログラムの入出力制御
の手順や入出力の眞が正しいか否かを確認することがで
きる。すなわち、上記のように構成することにより、入
力制園プログラム(テ)が実行されて入力命令サブルー
チン(/コ)がコールされる度に、その時の入力ポート
番号がプリンタ等に出力されると共にキーボード等から
任意のデータを入力することが出来、出力部制御プログ
ラム(10)が実行されて出力命令サブルーチン(/3
)がコールされる度に、その時の出力ポート番号と出力
データの内容がプリンタ等に出力されるので、制御プロ
グラムが実装される実際の入出力制御装置が無くとも、
CPU、メモリ、キーボードおよびプリンタを備え九汎
用の計算機1例えば普通のパーソナルコンピュータ等を
用いて、特別な試験用のプログラムを準備することなく
実機とほぼ等価な確認試験を容易に、かつ、短時間で実
施することができる。
In addition, in the explanation above, we explained about changing the input or output port number, but the initial setting program (wa)
Among the processing contents of ``r'', set the input instruction code to the input instruction subroutine [/2) in the RAM area''.
Set the instruction code to branch to the program that tests the input side. ”, and output the input port number code set in the input command subroutine (/2) to a general-purpose output device, such as a printer, and output any input port number code from the general-purpose input device 1, such as a keyboard. Added a program to test a simple input such as "branch to the return instruction code part of the input instruction subroutine (/2) after inputting data", and also added a program to test the opening of a simple input such as "branch to the return instruction code part of the input instruction subroutine (/2) after inputting data". The process of ``Set the output instruction code in the area's output instruction subroutine (/J)'' was changed to the process of ``Set the instruction code that branches to the program that tests output control.'' 3) Test simple output control such as "output the output port number code set in 3) and the output data at that time to a general-purpose output device 1, for example, a printer, and then branch to the return instruction code part of the output instruction subroutine (/3)." By adding a program that does this, it is possible to check whether the input/output control procedure and input/output truth of the control program are correct. In other words, by configuring as above, each time the input system program (te) is executed and the input command subroutine (/co) is called, the input port number at that time is output to the printer etc., and the input port number is output to the keyboard. Any data can be input from etc., the output section control program (10) is executed and the output command subroutine (/3
) is called, the output port number and output data contents at that time are output to a printer, etc., so even if there is no actual input/output control device on which the control program is implemented,
Using a general-purpose computer (1) equipped with a CPU, memory, keyboard, and printer, such as an ordinary personal computer, it is possible to easily and quickly perform a confirmation test that is almost equivalent to the actual machine without preparing a special test program. It can be carried out in

更に、入出力節1匈装置に、入力又は出力起動が行われ
ても何の動作もせず、かつ、プログラムエラーを発生し
ないダミーのポートを設けておけば、入出力ポート番号
データテーブルにおける論理番号に対応する入力又は出
力ポート番号をダミーのポートに相当するポート番号に
変更することにより、特定の入力又は出力ポートへの入
出力側(資)を無効にしたシ復帰させたシする事も可能
となる。
Furthermore, if a dummy port is provided in the input/output section 1 device that does not perform any operation even when input or output is activated, and does not cause a program error, the logical number in the input/output port number data table By changing the input or output port number corresponding to the dummy port to the port number corresponding to the dummy port, it is also possible to restore the input/output side (capital) to a specific input or output port after it has been disabled. becomes.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、制(資)プログラム
上で用いる入力又は出力ポート番号を論理番号として扱
い、該論理番号と物理的な入力又は出力ポート番号を対
応づける入出力ポート番号データテーブルを備えるとと
もに入出力命令語t−RAM領域に形成し、必要に応じ
て、入出力ポート番号データテーブルから物理的な力又
は出力ポート番号コードを得て入出力命令語の入力又は
出力ポート番号コード部に埋め込んだ後、入出力命令語
を実行するように構成したので入出力制御装置に使用さ
れている入力又は出力ポートの1つ又は複数のポート番
号を変更する必要が生じた場合は、入出力ポート番号デ
ータテーブルの該当する論理番号に対応するエントリの
物理的な入力又は出力ポート番号を書換えるだけで、入
力制御プログラム及び出力制御プログラムの数やそれら
が実際に記憶されているROM上のアドレスに全く無関
係に。
As described above, according to the present invention, the input or output port number used on the control program is handled as a logical number, and the input/output port number data associates the logical number with the physical input or output port number. A table is provided and input/output commands are formed in the t-RAM area, and if necessary, physical force or output port number codes are obtained from the input/output port number data table to obtain the input or output port number of the input/output command. After embedding it in the code part, if it becomes necessary to change the port number of one or more of the input or output ports used in the input/output control device because it is configured to execute the input/output command word, By simply rewriting the physical input or output port number of the entry corresponding to the corresponding logical number in the input/output port number data table, you can change the number of input control programs and output control programs and the ROM in which they are actually stored. completely unrelated to the address.

fftllallプログラムにおける入力又は出力ポー
ト番号の変更が可能となる。したがって、変更作業は短
時間で済み、従来のような変更後の確認試験も不用とな
シ、変更作業に伴うコストを低減できるとともに、信頼
性を低下させないで変更作業ができるという効果がある
It becomes possible to change the input or output port number in the fftllall program. Therefore, the modification work can be completed in a short time, there is no need for confirmation tests after the modification as in the past, and the cost associated with the modification work can be reduced, and the modification work can be carried out without reducing reliability.

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

第7図はこの発明及び従来技術双方に用いられる一般的
な入出力制御装置の構成図、第一図はこの発明による制
御プログラムの構成図、第3図は従来の制御プログラム
の構成図である。 図において、(ハはCPU、(21はROM、(,71
はRAM。 (II−/)〜(ダーn)は入力ポート、(k−/)〜
(s−m)は出力ポート、 (7]及び(71は初期設
定プログラム、(テ)は入力制御プログラム、Cl0)
は出力部1閣プログラム、 (//)は入出力ポート番
号データテーブル、(/コ)は入力命令サブルーチン、
(/、7)は出力命令サブルーチン、である。 第3図
FIG. 7 is a block diagram of a general input/output control device used in both the present invention and the prior art, FIG. 1 is a block diagram of a control program according to the present invention, and FIG. 3 is a block diagram of a conventional control program. . In the figure, (C is the CPU, (21 is the ROM, (,71
is RAM. (II-/)~(darn) is an input port, (k-/)~
(s-m) is the output port, (7] and (71 are the initial setting program, (te) is the input control program, Cl0)
is the output part 1 program, (//) is the input/output port number data table, (/ko) is the input command subroutine,
(/, 7) is an output command subroutine. Figure 3

Claims (2)

【特許請求の範囲】[Claims] (1)命令コード及びポート番号でそれぞれ入力命令語
及び出力命令語を構成させて各ポートの起動を行う入出
力制御装置において、上記入力及び出力命令語をそれぞ
れRAM領域において上記コード及びポート番号を分離
可能にプログラム生成させる手段を制御プログラム記憶
用のROMに内蔵したことを特徴とする入出力制御装置
(1) In an input/output control device that configures an input instruction word and an output instruction word using an instruction code and a port number, respectively, and activates each port, the input instruction word and the output instruction word are respectively stored in a RAM area and the above code and port number are configured. An input/output control device characterized in that a ROM for storing a control program has a built-in means for separably generating a program.
(2)上記プログラム生成手段は、入力命令コード及び
リターン命令コードを含む入力命令サブルーチンを上記
RAM領域に生成する初期設定プログラムと、出力命令
コード及びリターン命令コードを含む出力命令サブルー
チンを上記RAM領域に生成する初期設定プログラムと
、論理番号で与えられた入力ポート番号又は出力ポート
番号を物理的な入力ポート番号又は出力ポート番号にそ
れぞれ変換する入出力ポート番号データテーブルと、該
入出力ポート番号データテーブルから得られた物理的な
入力ポート番号を上記入力命令サブルーチンにセットし
た後、該入力命令サブルーチンをコールすることにより
上記入力命令語を実行する入力制御プログラムと、上記
入出力ポート番号データテーブルから得られた物理的な
出力ポート番号を上記出力命令サブルーチンにセットし
た後、該出力命令サブルーチンをコールすることにより
上記出力命令語を実行する出力制御プログラムと、を含
んでいる特許請求の範囲第1項記載の入出力制御装置。
(2) The program generating means generates an initial setting program that generates an input instruction subroutine including an input instruction code and a return instruction code in the RAM area, and an output instruction subroutine including an output instruction code and a return instruction code in the RAM area. An initial setting program to be generated, an input/output port number data table that converts an input port number or output port number given by a logical number to a physical input port number or output port number, and the input/output port number data table. After setting the physical input port number obtained from the input command subroutine to the input command subroutine, an input control program executes the input command word by calling the input command subroutine; Claim 1, further comprising: an output control program that executes the output command by calling the output command subroutine after setting the physical output port number assigned to the output command subroutine. The input/output control device described.
JP60100551A 1985-05-14 1985-05-14 Input output control device Pending JPS61259340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60100551A JPS61259340A (en) 1985-05-14 1985-05-14 Input output control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60100551A JPS61259340A (en) 1985-05-14 1985-05-14 Input output control device

Publications (1)

Publication Number Publication Date
JPS61259340A true JPS61259340A (en) 1986-11-17

Family

ID=14277077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60100551A Pending JPS61259340A (en) 1985-05-14 1985-05-14 Input output control device

Country Status (1)

Country Link
JP (1) JPS61259340A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008112303A (en) * 2006-10-30 2008-05-15 Fujitsu Ltd Storage virtualization switch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008112303A (en) * 2006-10-30 2008-05-15 Fujitsu Ltd Storage virtualization switch

Similar Documents

Publication Publication Date Title
EP0227749B1 (en) Fault tolerant data processing system and method therefor
Carter et al. Symbolic simulation for correct machine design
JP2730896B2 (en) Data processing device
US3510847A (en) Address manipulation circuitry for a digital computer
US3938101A (en) Computer system with post execution I/O emulation
US6415436B1 (en) Mechanism for cross validating emulated states between different emulation technologies in a dynamic compiler
JPS6220578B2 (en)
Guffin Microdiagnostics for the standard computer MLP-900 processor
JPH0447335B2 (en)
JPS6042966B2 (en) data processing system
JPS61259340A (en) Input output control device
JPS5833965B2 (en) Computer diagnostic method and device
Rolund et al. The 3B20D Processor & DMERT Operating System: 3B20D Central Processing Unit
US20050033533A1 (en) Method for verifying the calculator core of a microprocessor or a microcontroller
JPS6259825B2 (en)
JPS6253857B2 (en)
WO2000062162A2 (en) Method and system for updating user memory in emulator systems
JP2669863B2 (en) Simulation equipment
JP2856452B2 (en) Mask register control method
JP3067161B2 (en) Fuzzy arithmetic processing unit
JPS6053330B2 (en) Program writing method
JP2531112B2 (en) Information processing device
JPS5866112A (en) Computer system
JPH0576660B2 (en)
JPS6319040A (en) Information processor