JPH0424852A - Multi-port access system - Google Patents
Multi-port access systemInfo
- Publication number
- JPH0424852A JPH0424852A JP13004990A JP13004990A JPH0424852A JP H0424852 A JPH0424852 A JP H0424852A JP 13004990 A JP13004990 A JP 13004990A JP 13004990 A JP13004990 A JP 13004990A JP H0424852 A JPH0424852 A JP H0424852A
- Authority
- JP
- Japan
- Prior art keywords
- port
- register
- address
- decoder
- access
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
この発明は、複数のポートのうちの少なくとも1つをア
クセスするのに好適なマルチポートアクセス方式に関す
る。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a multiport access method suitable for accessing at least one of a plurality of ports.
(従来の技術)
従来、複数のポートを制御するには、各ポートに入出力
レジスタ(I/Oレジスタ)と同一レベルで入出力アド
レス(I/Oアドレス)を割付け、第2図に示すように
アドレス情報中に設けられたI/Oアドレスフィールド
によりI/Oレジスタと同様にしてポートを指定する方
式が適用されていた。この方式では、ポートの選択は、
アドレス情報中のI/Oアドレスフィールドの内容をア
ドレスデコーダがデコードすることにより行われる。(Prior art) Conventionally, in order to control multiple ports, an input/output address (I/O address) was assigned to each port at the same level as the input/output register (I/O register), and the A method of specifying a port using an I/O address field provided in address information in the same way as an I/O register was applied. In this method, port selection is
This is performed by an address decoder decoding the contents of the I/O address field in the address information.
(発明が解決しようとする課題)
上記した従来のポート選択方式では、プログラム中に、
アクセスすべきポートを判断し、ポート処理ルーチンを
判断したポート用に書換える(例えばI10アドレスフ
ィールドの内容をアクセスすべきポートを指定するよう
に書換える)処理が入っており、このためにh理速度が
低下する問題があった。また、処理速度を速くするため
に、ポート毎のプログラムを用意することも知られてい
るが、プログラム規模が大きくなって大容量のプログラ
ムメモリが必要となる問題があった。(Problem to be solved by the invention) In the conventional port selection method described above, during programming,
It includes a process that determines the port to be accessed and rewrites the port processing routine for the determined port (for example, rewrites the contents of the I10 address field to specify the port to be accessed). There was a problem with slowdown. It is also known to prepare a program for each port in order to increase the processing speed, but this has the problem of increasing the scale of the program and requiring a large capacity program memory.
この発明は上記事情に鑑みてなされたものでその目的は
、複数ポートのうちの少なくとも1つをアクセスする際
の制御が、各ポート毎にポート処理ルーチンを用意する
ことなく、しかも高速に行えるマルチポートアクセス方
式を提供することにある。This invention has been made in view of the above circumstances, and its purpose is to provide a multi-purpose multi-port system that can quickly control access to at least one of multiple ports without preparing a port processing routine for each port. The purpose is to provide a port access method.
[発明の構成コ
(課題を解決するための手段)
この発明は、複数のポートのうちアクセスすヘキ少なく
とも1つのポートを指定するためのポート指定データが
入出力ライト命令によってロードされるポートレジスタ
と、このポートレジスタの内容をデコードして、同レジ
スタで指定されるポートを選択するデコーダとを備え、
ポートレジスタの内容に応じてポート選択を行うよう1
こしたことを特徴とするものである。[Structure of the Invention (Means for Solving the Problems) This invention provides a port register into which port designation data for designating at least one port to be accessed among a plurality of ports is loaded by an input/output write instruction. , a decoder that decodes the contents of this port register and selects the port specified by the register,
1 to select the port according to the contents of the port register.
It is characterized by this.
(作用)
上記の構成によれば、ポートレジスタ(こ複数のポート
のうちのいずれにアクセスする力)を指定するポート指
定データを設定した後、ポートアクセス指定を行うと、
このポートアクセス指定でアクセスすべきポートを指定
しなくても、即ち共通のポートアクセス指定でも、ポー
トレジスタ1こ設定されているポート指定データをデコ
ーダ力(デコードするだけで正しくポート選択を行うこ
と力(できる。(Operation) According to the above configuration, when port access specification is performed after setting the port specification data that specifies the port register (the ability to access which of the plurality of ports),
Even if the port to be accessed is not specified in this port access specification, that is, even if a common port access specification is used, the port specification data set in one port register can be correctly selected simply by decoding the port specification data. (can.
(実施例)
第1図はこの発明、の一実施例に係るマルチボートアク
セス機構周辺のプロ・ツク構成図である。(Embodiment) FIG. 1 is a block diagram of a program around a multi-boat access mechanism according to an embodiment of the present invention.
同図において、11−1.1l−2−11−nはポート
であり、例えば同じ通信インタフェース機能を持つシリ
アル入出力インタフェース(SIO)である。ポート1
1−1〜11−nにはそれぞれ固有の値が割付けられて
おり、後述するポート指定データによって指定されるよ
うになっている。12は各種データの転送に供されるデ
ータバス、13はアドレス情報の転送に供されるアドレ
スバス13である。14はポート11−1〜11−nの
うちアクセスすべき1つのポートを指定するためのポー
ト指定データがデータバス12を介してロードされるレ
ジスタ(以下、ポートレジスタと称する)、15はアド
レスバス13を介して転送されるアドレス情報を取込む
ためのレシーノ(である。16はレシーバ15によって
取込まれたアドレス情報がポートアクセスを指定する情
報である場合に、ポートレジスタ14の内容(ポート指
定データ)をデコードしてポート11−1〜11−nを
選択するためのポート選択信号17−1〜17−nの1
つを真にするデコーダである。In the figure, 11-1.1l-2-11-n are ports, for example, serial input/output interfaces (SIO) having the same communication interface function. port 1
Each of 1-1 to 11-n is assigned a unique value, and is designated by port designation data, which will be described later. 12 is a data bus used for transferring various data, and 13 is an address bus 13 used for transferring address information. 14 is a register (hereinafter referred to as a port register) into which port designation data for specifying one port to be accessed among the ports 11-1 to 11-n is loaded via the data bus 12, and 15 is an address bus. 16 is a register for taking in the address information transferred via the receiver 13. When the address information taken in by the receiver 15 is information specifying port access, the contents of the port register 14 (port specification 1 of port selection signals 17-1 to 17-n for decoding data) and selecting ports 11-1 to 11-n.
This is a decoder that makes one true.
次に、第1図の構成の動作を説明する。Next, the operation of the configuration shown in FIG. 1 will be explained.
まず、図示せぬCPUからポートレジスタ14にポート
指定データをロード(書込む)するためのI10ライト
命令(入出力ライト命令)力(発行されると、同命令で
直接または間接に指定されるポート指定データがデータ
ノくス12に出力され、ポートレジスタ14にロードさ
れる。このポート指定データは、ポート11−1〜11
−nにそれぞれIII付番すられた値のうちのいずれか
1つを示すもので、例えばアクセスすべきポートの判断
結果1こより生成されるものである。First, an I10 write instruction (input/output write instruction) is issued to load (write) port specification data from the CPU (not shown) to the port register 14 (when issued, the port specified directly or indirectly by the same instruction is Specified data is output to the data node 12 and loaded into the port register 14. This port specified data is outputted to the data node 12 and loaded into the port register 14.
-n indicates one of the values numbered III, and is generated, for example, from the result of determining the port to be accessed.
次に、CPUからポート11−1〜11−nのも)ずれ
かをアクセスするための第2図1こ示したようなアドレ
ス情報を持つ入出力アクセス命令力(発行される。この
際のアドレス情報のI10アドレスフィールドには、ポ
ート11−1〜11−nに共通1こ111付番すられた
I10アドレス(以下、共通ポートアドレスと称する)
が設定されている。このアドレス情報はアドレスバス1
3を介してレジ−/<15+こ転送される。レシーバ1
5はアドレスノくス13を介して転送されたアドレス情
報を取込む。レジ−7<15によって取込まれたアドレ
ス情報のうちのI10アドレスフィールドを除く部分は
ポート11−1〜11−nに共通に導かれる。また上記
アドレス情報のうちのI10アドレスフィールドの部分
はデコーダ16に導がれる。Next, an input/output access command with address information as shown in FIG. 2 is issued in order to access any of the ports 11-1 to 11-n from the CPU. The I10 address field of the information contains an I10 address numbered 1-111 common to ports 11-1 to 11-n (hereinafter referred to as common port address).
is set. This address information is address bus 1
3, the register is transferred to /<15+. Receiver 1
5 takes in the address information transferred via the address node 13. The portion of the address information taken in by register 7<15, excluding the I10 address field, is commonly led to ports 11-1 to 11-n. Also, the I10 address field portion of the address information is guided to the decoder 16.
デコーダ16は、同デコーダ16に導かれたI10アド
レスフィールドの内容が共通ポートアドレスである場合
には、ポートレジスタ14に設定されているポート指定
データをデコードし、ポート指定データの示す値が割付
けられたポートIf−f (iは1〜nのいずれか)を
選択するためのポート選択信号17−1を生成出力する
。これにより、ポート11−1が選択される。デコーダ
16からのポート選択信号17−jによって選択された
ポート11−1は、レシーバ15を介して導かれるアド
レス情報中の機能指定フィールドの内容の示す動作を開
始する。もし、次に他のポートをアクセスしたい場合に
は、上記したポートレジスタ14へのポート指定データ
の設定および各ポートに共通のポートアクセスを行えば
よい。但し同一ポートを続けてアクセスする場合には、
ポート指定データの設定処理は不要となる。If the content of the I10 address field led to the decoder 16 is a common port address, the decoder 16 decodes the port designation data set in the port register 14 and assigns the value indicated by the port designation data. A port selection signal 17-1 for selecting the selected port If-f (i is one of 1 to n) is generated and output. As a result, port 11-1 is selected. The port 11-1 selected by the port selection signal 17-j from the decoder 16 starts the operation indicated by the contents of the function designation field in the address information led through the receiver 15. If it is desired to access another port next time, it is sufficient to set the port designation data in the port register 14 described above and perform a common port access to each port. However, if you access the same port continuously,
Port specification data setting processing becomes unnecessary.
なお、前記実施例では、ポートレジスタ14に設定され
るポート指定データによってポート11−1〜11−n
のうちの1つか指定されるものとして説明したが、これ
に限るものではない。例えばポート指定データの各ビッ
トをポート11−1〜11−nに割付けることにより、
ポートレジスタ14で同時に複数のポートを指定し、共
通ポートアドレスを持つポートアクセス指定アドレス情
報により同時に複数のポートをセットアツプすることが
可能となる。In the above embodiment, the ports 11-1 to 11-n are designated by the port designation data set in the port register 14.
Although the description has been made assuming that one of them is designated, the invention is not limited to this. For example, by assigning each bit of port designation data to ports 11-1 to 11-n,
It becomes possible to simultaneously designate a plurality of ports using the port register 14 and set up the plurality of ports simultaneously using port access designation address information having a common port address.
また、前記実施例では、SIOを対象とするポートアク
セスについて説明したが、本発明は510に限らず、同
一機能を持つI10装置を対象とするポートアクセスに
特に有効である。Further, in the embodiment described above, port access for SIO has been described, but the present invention is not limited to 510, but is particularly effective for port access for I10 devices having the same functions.
[発明の効果コ
以上詳述したようにこの発明によれば、入出力ライト命
令によってポート指定データが設定されるポートレジス
タと、このポートレジスタの内容をデコードしてポート
を選択するデコーダとを設け、ポート選択をアドレス情
報中のI10アドレスでなくてポートレジスタの内容に
より行う構成としたことにより、高速処理のためにポー
ト毎に専用のポート処理ルーチンを用意する必要が無く
なり、同一処理ルーチンが共用できるので、プログラム
の簡略化および小形化を図りながら高速処理を実現する
ことができる。[Effects of the Invention] As detailed above, according to the present invention, there is provided a port register in which port designation data is set by an input/output write command, and a decoder that decodes the contents of this port register and selects a port. By adopting a configuration in which port selection is performed based on the contents of the port register rather than the I10 address in the address information, there is no need to prepare a dedicated port processing routine for each port for high-speed processing, and the same processing routine can be shared. Therefore, it is possible to realize high-speed processing while simplifying and downsizing the program.
第1図はこの発明の一実施例に係るマルチポートアクセ
ス機構周辺のブロック構成図、第2図はI10アドレス
フィールドを持つアドレス情報のフォーマットを示す図
、第3図は従来方式におけるプログラム構造を示す図で
ある。
11−1〜11−n・・・ポート、12・・・データバ
ス、13・・・アドレスバス、14・・・ポートレジス
タ、15・・・レシーバ、16・・・デコーダ。
出願人代理人 弁理士 鈴江武彦
第
図FIG. 1 is a block diagram of the peripheral area of a multiport access mechanism according to an embodiment of the present invention, FIG. 2 is a diagram showing the format of address information having an I10 address field, and FIG. 3 is a diagram showing the program structure in the conventional method. It is a diagram. 11-1 to 11-n...Port, 12...Data bus, 13...Address bus, 14...Port register, 15...Receiver, 16...Decoder. Applicant's agent Patent attorney Takehiko Suzue
Claims (2)
つのポートを指定するためのポート指定データが入出力
ライト命令によってロードされるポートレジスタと、 このポートレジスタの内容をデコードして、同レジスタ
で指定されるポートを選択するデコーダとを具備し、 上記ポートレジスタの内容に応じてポート選択を行うよ
うにしたことを特徴とするマルチポートアクセス方式。(1) At least one of multiple ports to be accessed
The device comprises a port register into which port designation data for designating one port is loaded by an input/output write instruction, and a decoder that decodes the contents of this port register and selects the port designated by the register. A multi-port access method characterized by selecting a port according to the contents of a port register.
が割付けられており、、上記デコーダは上記特定入出力
アドレスが設定された入出力アドレスフィールドを持つ
ポートアクセス用のアドレス情報が与えられた場合に、
上記ポートレジスタの内容に応じてポート選択を行うよ
うにしたことを特徴とする第1請求項記載のマルチポー
トアクセス方式。(2) A common specific input/output address is assigned to the plurality of ports, and the decoder is given address information for port access that has an input/output address field in which the specific input/output address is set. In case,
2. The multi-port access method according to claim 1, wherein port selection is performed in accordance with the contents of said port register.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP13004990A JPH0424852A (en) | 1990-05-18 | 1990-05-18 | Multi-port access system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP13004990A JPH0424852A (en) | 1990-05-18 | 1990-05-18 | Multi-port access system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0424852A true JPH0424852A (en) | 1992-01-28 |
Family
ID=15024847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP13004990A Pending JPH0424852A (en) | 1990-05-18 | 1990-05-18 | Multi-port access system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0424852A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06181150A (en) * | 1992-11-21 | 1994-06-28 | Top Parts:Kk | Method and apparatus for formation of lead wire terminals for electrolytic capacitor |
JP2006247432A (en) * | 2006-06-23 | 2006-09-21 | Daiichi Shokai Co Ltd | Input/output controller in pachinko game machine |
-
1990
- 1990-05-18 JP JP13004990A patent/JPH0424852A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06181150A (en) * | 1992-11-21 | 1994-06-28 | Top Parts:Kk | Method and apparatus for formation of lead wire terminals for electrolytic capacitor |
JP2006247432A (en) * | 2006-06-23 | 2006-09-21 | Daiichi Shokai Co Ltd | Input/output controller in pachinko game machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0424852A (en) | Multi-port access system | |
US4618946A (en) | Dual page memory system having storage elements which are selectively swapped between the pages | |
JPH01125644A (en) | Data transfer equipment | |
JPS6289158A (en) | Address bus control system by plural processors | |
JPH01293456A (en) | Shared memory | |
JPS58215777A (en) | Storage control system | |
JPS60134940A (en) | Register selecting system of information processing device | |
KR910006792B1 (en) | Access memory expansion circuit of direcrt memory access controller | |
JPS58181134A (en) | Data transfer circuit | |
JPH03269650A (en) | Buffer storage | |
JPH04245556A (en) | Instruction memory | |
JPH06110828A (en) | Memory controller | |
JPS62209639A (en) | Memory modification writing circuit | |
JPH06214939A (en) | Dma controller | |
JPH0261749A (en) | Data transfer device | |
JPS6336346A (en) | Bank switching circuit | |
JPH10134013A (en) | Multi-cpu system | |
JPS6031646A (en) | Data processor | |
JPS6341966A (en) | Direct memory access transfer device | |
JPS62174844A (en) | Switching system for memory priority | |
JPS6186859A (en) | Bus selector | |
JPH04273332A (en) | Program load system | |
JPS63307529A (en) | Inter-arithmetic processing unit communication control system | |
JPS6226549A (en) | Memory circuit | |
JP2003186864A (en) | Microcomputer input/output terminal control device and electronic equipment provided with this microcomputer input/output terminal control device |