JPH01248260A - Input/output address converting system - Google Patents
Input/output address converting systemInfo
- Publication number
- JPH01248260A JPH01248260A JP7451088A JP7451088A JPH01248260A JP H01248260 A JPH01248260 A JP H01248260A JP 7451088 A JP7451088 A JP 7451088A JP 7451088 A JP7451088 A JP 7451088A JP H01248260 A JPH01248260 A JP H01248260A
- Authority
- JP
- Japan
- Prior art keywords
- output
- input
- address
- cpu
- physical
- 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
Abstract
Description
【発明の詳細な説明】
〔発明の目的〕
(産業上の利用分野)
本発明は、・ぐ−ソナルコンビュータに用いて好適な入
出力アドレス変換方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to an input/output address conversion method suitable for use in a personal computer.
(従来の技術)
従来のコンピュータシステムにおけるCPUと入力カブ
バイスとの接続構成例を第2図に示す。(Prior Art) FIG. 2 shows an example of a connection configuration between a CPU and an input cube vice in a conventional computer system.
図にお匹て、21はCPU、22は入出力アドレスを入
出力選択信号に変換するアドレスデコーダ。In the figure, 21 is a CPU, and 22 is an address decoder that converts an input/output address into an input/output selection signal.
23は入出力デバイス、24はCPUIが出力するアド
レス(上位)が伝播するライン25は下位アドレスが伝
播するラインで、入出力空間を定めるために必要なビッ
ト数をもつ。26は、cPU21からの入出力アクセス
であることを示す入出力アクセス定義信号が伝播するラ
イン、27はライン25.26を伝播する信号をデコー
ドすることによって得られる入出力選択信号、28はデ
ータバスである。Reference numeral 23 denotes an input/output device, 24 a line 25 through which an address (upper) output by the CPUI is propagated, a line through which a lower address is propagated, and has the number of bits necessary to define the input/output space. 26 is a line on which an input/output access definition signal indicating input/output access from the cPU 21 is propagated, 27 is an input/output selection signal obtained by decoding the signal propagated on lines 25 and 26, and 28 is a data bus It is.
(発明が解決しようとする問題点)
上記従来例に従えば、CPU上で動作するソフトウェア
からみた入出力アドレスはハードウェアによって固定さ
れてbる。従って、ソフトウェアの移植性が低く、他機
種と互換をとるうえで問題があった。(Problems to be Solved by the Invention) According to the above-mentioned conventional example, the input/output addresses seen from the software running on the CPU are fixed by the hardware. Therefore, the portability of the software was low, and there were problems in making it compatible with other models.
本発明は上記事情に基づbてなされたものであシ、CP
Uから見た入出力アドレスを可能することにより、動作
するソフトウェアの移植性を高め、且つ他機種との互換
をとることのできる入出力アドレス変換方式を提供する
ことを目的とする。The present invention has been made based on the above circumstances.
It is an object of the present invention to provide an input/output address conversion method that can increase the portability of operating software and ensure compatibility with other models by allowing input/output addresses seen from the U.
(問題点を解決するための手段)
本発明は上記目的を実現するため、入出力デバイスアク
セスのだめの制御回路を、CPUが出力する論理入出力
アドレスを物理アドレスに変換するだめに、論理入出力
アドレスに対応する物理入出力アドレスを格納するメモ
リと、CPUが出力するアドレスと上記メモリ出力であ
る変換された物理入出力アドレスのいずれか一方をCP
Uが出力するサイクル定義信号によう選択出力するセレ
クタと、上記CPUならびにセレクタ出力に従がう物理
入出力アドレスから入出力選択信号を生成するデコーダ
で構成したものである。(Means for Solving the Problems) In order to achieve the above object, the present invention has a control circuit for input/output device access that converts a logical input/output address outputted by a CPU into a physical address. A memory that stores the physical input/output address corresponding to the address, and a CPU that stores either the address output by the CPU or the converted physical input/output address that is the memory output.
It is composed of a selector that selects and outputs a cycle definition signal outputted by U, and a decoder that generates an input/output selection signal from the physical input/output address that follows the CPU and selector output.
(作用)
人出アクセス時、CPUにより生成される論理アドレス
に従かいメモリをアクセスして物理入出力アドレスを得
、セレクタへ供給する。これがデコーダにニジデコード
され、入出力選択信号を得る。セレクタの制御はCPU
から得られるサイクル定義信号をデコードすることによ
りなされる。(Function) At the time of access, the memory is accessed according to the logical address generated by the CPU to obtain the physical input/output address, and the obtained physical input/output address is supplied to the selector. This is decoded by a decoder to obtain an input/output selection signal. Selector control is by CPU
This is done by decoding the cycle definition signal obtained from.
入出力アクセスでない場合はCPUから出力されるアド
レスがそのままバスに接続されるアドレスとなる。If it is not an input/output access, the address output from the CPU becomes the address directly connected to the bus.
このことにより、論理アドレスと、物理アドレスが分離
され、CPUから見える入出力アドレスを可変とするこ
とが出来、ソフトウェアの移植性を高め、従来機との互
換維持が容易に達成できる。As a result, logical addresses and physical addresses are separated, and the input/output addresses visible to the CPU can be made variable, increasing the portability of software and easily maintaining compatibility with conventional machines.
(実施例)
以下、図面を使用して本発明実施例につbて詳細に説明
する。第1図は本発明の実施例を示すブロック図である
。図において、1はCPU、Jは入出力デバイスである
。3はCPUIが生成する上位アドレスが伝播するライ
ン、4は下位アドレスが伝播するラインであシ、これら
が合成され論理入出力アドレスとなる。5は物理入出力
アドレスが伝播するラインである。6は論理入出力アド
レスを物理入出力アドレスに変換するRAMである。7
はライン4,5を伝播する信号のいずれか一方を選択す
るセレクタである。8はセレクタの出力でバスに接続さ
れる下位アドレスが伝播するライン、9は1からのアク
セスがハードであるか入出力であるか、またはメモリか
入出力であるかを示すサイクル定義信号が伝播するライ
ン、10は入出力アクセスであることを示す入出力アク
セス定義信号が伝播するラインである。11はサイクル
定義信号を解読するデコーダ、12は物理入出力アドレ
スから選択信号を生成するデコーダである。13は入出
力選択信号が伝播するラインでちる。14はRAM6に
対するライト信号を生成する制御回路である。15はラ
イト信号が伝播するライン、16はデータバス、17は
データバス16とRAM6を接続するためのバッファで
ある。(Example) Hereinafter, an example of the present invention will be described in detail using the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a CPU and J is an input/output device. 3 is a line on which the upper address generated by the CPUI is propagated, and 4 is a line on which the lower address is propagated, and these are combined to form a logical input/output address. 5 is a line through which physical input/output addresses are propagated. 6 is a RAM that converts logical input/output addresses into physical input/output addresses. 7
is a selector that selects either one of the signals propagating through lines 4 and 5. 8 is the output of the selector and the line on which the lower address connected to the bus is propagated, and 9 is the line on which the cycle definition signal indicating whether the access from 1 is hard, input/output, or memory or input/output is propagated. Line 10 is a line on which an input/output access definition signal indicating input/output access is propagated. A decoder 11 decodes a cycle definition signal, and a decoder 12 generates a selection signal from a physical input/output address. 13 is a line through which an input/output selection signal is propagated. 14 is a control circuit that generates a write signal for the RAM 6. 15 is a line through which a write signal is propagated, 16 is a data bus, and 17 is a buffer for connecting the data bus 16 and the RAM 6.
以下、本発明実施例の動作につbて詳細に説明する。R
AM6には物理入出力アドレスが格納され、ここで論理
入出力アドレスが物理入出力アドレスに変換される。2
つのアドレスのビット幅は同一であシ、即ち、論理入出
力アドレス空間と物理入出力アドレス空間の大きさは等
しIA、RAM6の内容はCPUIからデータバス16
、バッファ17を通してs RAM6へのライト信号生
成回路14の出力信号(ライン15)の制御にょシ書き
込まれる。Hereinafter, the operation of the embodiment of the present invention will be explained in detail. R
A physical input/output address is stored in AM6, and a logical input/output address is converted into a physical input/output address here. 2
The bit widths of the two addresses are the same, that is, the sizes of the logical input/output address space and the physical input/output address space are the same, and the contents of IA and RAM6 are transferred from the CPU to the data bus 16.
, are written into the RAM 6 through the buffer 17 under the control of the output signal (line 15) of the write signal generation circuit 14.
入出力アクセス時にはCPUJからの下位アドレス(論
理入出力アドレス;ライン4)にょシ読み出された物理
入出力アドレス(ライン5)がセレクタ7を通してバス
へ接続される下位アドレス(ライン8)と々シ、これを
アドレスデコーダ12にニジデコードして入出力選択信
号(ライン13)を得る。入出力アクセスでないときは
cpilからの下位アドレスが、セレクタ7全通してバ
スに接続される下位アドレスとなる。セレクタ7の制御
はCPUIからのサイクル定義信号(ライン9)をデコ
ーダ1によりブコードすることにより得た入出力アクセ
ス定義信号(ライン10 )による。During input/output access, the lower address (logical input/output address; line 4) from the CPUJ and the read physical input/output address (line 5) are transferred to the lower address (line 8) connected to the bus through the selector 7. , this is decoded by the address decoder 12 to obtain an input/output selection signal (line 13). When it is not an input/output access, the lower address from cpil becomes the lower address connected to the bus through the entire selector 7. The selector 7 is controlled by an input/output access definition signal (line 10) obtained by decoding the cycle definition signal (line 9) from the CPUI by the decoder 1.
以上説明の様に本発明に従えば、論理アドレスを物理ア
ドレスと分離することで、入出力アクセスを行うソフト
ウェアをハードウェアから独立させることができる。こ
れにより、ソフトウェアの移植性向上、そして他機種上
のソフトウェアのエミュレーシランが可能になる。According to the present invention as described above, by separating logical addresses from physical addresses, software that performs input/output access can be made independent from hardware. This improves software portability and enables emulation of software on other models.
第1図は本発明の実施例を示すブロック図。
第2図は従来構成例を示すブロック図である。
1・・・CPU、j?・・・入出力デバイス、6・・・
RAM。
7・・・セレクタ、11.12・・・デコーダ、17・
・・バッファ。
第1図
第2図FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a block diagram showing an example of a conventional configuration. 1...CPU, j? ...I/O device, 6...
RAM. 7...Selector, 11.12...Decoder, 17.
··buffer. Figure 1 Figure 2
Claims (1)
ュータシステムにおいて、CPUが出力する論理入出力
アドレスに対応する物理入出力アドレスを格納するメモ
リと、CPUが出力するアドレスと上記メモリ出力であ
る変換された物理入出力アドレスのいずれか一方をCP
Uが出力するサイクル定義信号により選択出力するセレ
クタと、上記CPUならびにセレクタ出力に従がう物理
入出力アドレスから入出力選択信号を生成するデコーダ
とを具備し、入出力デバイスアクセス時、上記メモリを
介して論理入出力アドレスを等しいビット数から成る物
理入出力アドレスに変換し、CPUから見える入出力ア
ドレスを可変とすることを特徴とする入出力アドレス変
換方式。In a computer system in which a CPU and multiple input/output devices are connected, there is a memory that stores physical input/output addresses corresponding to logical input/output addresses output by the CPU, and a memory that stores physical input/output addresses corresponding to logical input/output addresses output by the CPU, and a memory that stores the addresses output by the CPU and the converted memory outputs. Either one of the physical input/output addresses
It is equipped with a selector that selects and outputs according to the cycle definition signal outputted by U, and a decoder that generates an input/output selection signal from the physical input/output address according to the CPU and selector output, and when accessing the input/output device, the memory is An input/output address conversion method characterized by converting a logical input/output address into a physical input/output address consisting of an equal number of bits through a CPU, thereby making the input/output address visible to a CPU variable.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7451088A JPH01248260A (en) | 1988-03-30 | 1988-03-30 | Input/output address converting system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7451088A JPH01248260A (en) | 1988-03-30 | 1988-03-30 | Input/output address converting system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01248260A true JPH01248260A (en) | 1989-10-03 |
Family
ID=13549394
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7451088A Pending JPH01248260A (en) | 1988-03-30 | 1988-03-30 | Input/output address converting system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01248260A (en) |
-
1988
- 1988-03-30 JP JP7451088A patent/JPH01248260A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101488119B (en) | Address interpretation method, apparatus and single-board | |
| JP3931593B2 (en) | Data writing circuit | |
| JPS5812187A (en) | Information processor | |
| JP3255429B2 (en) | Memory interface circuit | |
| JP2522063B2 (en) | Single-chip micro computer | |
| JPH0224748A (en) | Address switching circuit | |
| JP2002318779A (en) | Device, and access method for its register | |
| KR950003884B1 (en) | Personal computer bus interface circuit | |
| JPS63271567A (en) | Asymmetric tightly coupled multiprocessor system | |
| JPH04112251A (en) | Microcomputer | |
| JPH01219930A (en) | Indirect addressing interrupt control circuit device | |
| JP2622553B2 (en) | Microcomputer | |
| JPH0266627A (en) | Parallel instruction executing processor | |
| JPS6265149A (en) | Memory management unit rewriting method | |
| JPH05313995A (en) | Memory control method | |
| JPH06208539A (en) | High-speed data transfer system | |
| JPH03211641A (en) | Address designation method for memory device | |
| JPS6360427B2 (en) | ||
| KR970049719A (en) | Dual instruction processing decoder with buffer stage | |
| JPH0540726A (en) | Gathering control method for weight buffer | |
| JP2000076127A (en) | Byte read access method for controller | |
| JPH03266159A (en) | Input/output controller | |
| JPH04192058A (en) | Data transfer storage device | |
| JPS608971A (en) | Central processing unit | |
| JPH0816478A (en) | Vector data processor |