JPH0562786B2 - - Google Patents
Info
- Publication number
- JPH0562786B2 JPH0562786B2 JP61166981A JP16698186A JPH0562786B2 JP H0562786 B2 JPH0562786 B2 JP H0562786B2 JP 61166981 A JP61166981 A JP 61166981A JP 16698186 A JP16698186 A JP 16698186A JP H0562786 B2 JPH0562786 B2 JP H0562786B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- devices
- comparator
- hardware
- addresses
- 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.)
- Expired - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/06—Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
- G06F12/0615—Address space extension
- G06F12/063—Address space extension for I/O modules, e.g. memory mapped I/O
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
Description
【発明の詳細な説明】
〔概要〕
マイクロコンピユータにより複数のI/O装置
を制御するシステムにおいて、通常のI/Oアド
レス空間用のアドレスデコード回路以外に、ハー
ドウエアの固有アドレスを設定する手段と、ソフ
トウエアにより、その固有アドレスを動的に選択
する手段を設けることにより、I/Oアドレス空
間における同一のアドレスに、多数のI/O装置
を接続できるようにしている。[Detailed Description of the Invention] [Summary] In a system in which a plurality of I/O devices are controlled by a microcomputer, there is provided a means for setting a unique address for hardware in addition to an address decoding circuit for a normal I/O address space. By providing means for dynamically selecting the unique address using software, a large number of I/O devices can be connected to the same address in the I/O address space.
本発明は、例えば金融機関向け端末装置等に用
いられるマイクロコンピユータ・システムにおい
て、I/O装置に割り当てられたアドレスをデコ
ードするI/Oアドレスデコード方式に関するも
のである。
The present invention relates to an I/O address decoding method for decoding addresses assigned to I/O devices in microcomputer systems used, for example, in terminal devices for financial institutions.
第4図は従来方式の例を示す。 FIG. 4 shows an example of the conventional method.
最近の金融機関向け端末装置等では、多くのオ
プシヨンI/O(入出力)装置が接続できるよう
になつており、これらのI/O装置は、端末装置
が内蔵するマイクロコンピユータによつて制御さ
れるようになつている。 Many optional I/O (input/output) devices can be connected to recent terminal devices for financial institutions, and these I/O devices are controlled by the microcomputer built into the terminal device. It is becoming more and more like this.
各I/O装置は、I/Oアドレス空間における
固有のアドレスを持ち、第4図に示すようにマイ
クロコンピユータが出力するアドレスを、I/O
装置毎のアドレスデコーダ30によつてデコード
し、I/Oチツプセレクトなどの信号としてい
る。 Each I/O device has a unique address in the I/O address space, and as shown in Figure 4, the address output by the microcomputer is
It is decoded by the address decoder 30 of each device and used as an I/O chip select signal.
端末装置等のシステムに接続されるI/O装置
の数が少ない場合には問題はないが、I/O装置
の接続が多くなるにつれて、I/Oアドレス空間
が不足してくるため、アドレス領域の不足によつ
て、接続できるI/O装置が制限されるという問
題が発生している。アドレスバスにおけるアドレ
ス信号のビツト数を増やせば、アドレス空間を拡
張できるが、アドレスバスの拡張は、ハードウエ
アの大改造を伴うため困難である。
There is no problem when the number of I/O devices connected to the system, such as terminal devices, is small, but as the number of I/O devices connected increases, the I/O address space becomes insufficient, so the address area A problem has arisen in that the I/O devices that can be connected are limited due to the lack of I/O devices. The address space can be expanded by increasing the number of bits of the address signal in the address bus, but expansion of the address bus is difficult because it involves major modification of the hardware.
本発明は上記問題点の解決を図り、簡単な回路
を各I/O装置のアドレスデコード部に付加する
ことにより、実質的にI/O割り付け空間を大き
くする手段を提供することを目的としている。 The present invention aims to solve the above-mentioned problems and provides a means for substantially increasing the I/O allocation space by adding a simple circuit to the address decoding section of each I/O device. .
第1図は本発明のI/Oアドレスデコード方式
の原理ブロツク図を示す。
FIG. 1 shows a principle block diagram of the I/O address decoding method of the present invention.
第1図において、10はI/Oアドレス空間に
割り付けられたアドレスの上位ビツトをデコード
する固定アドレスデコード回路、11は同じI/
Oアドレス空間の範囲に割り付けられる各I/O
装置グループを選択する値が動的に設定されるソ
フトウエア用レジスタ、12は同じI/Oアドレ
ス空間の範囲に割り付けられる各I/O装置グル
ープ毎に異なる設定値が設定されるハードウエア
固有アドレス設定部、13はソフトウエア用レジ
スタ11の内容とハードウエア固有アドレス設定
部12の設定値とを比較するコンパレータ、14
は固定アドレスデコード回路10の出力とコンパ
レータ13との出力の論理積をとるアンド回路、
15はアドレスバス、16はデータバスを表す。 In FIG. 1, 10 is a fixed address decoding circuit that decodes the upper bits of the address allocated to the I/O address space, and 11 is the same I/O address decoding circuit.
Each I/O allocated to a range of O address space
A software register in which a value for selecting a device group is dynamically set; 12 is a hardware-specific address in which a different setting value is set for each I/O device group allocated to the same I/O address space range; A setting section 13 is a comparator 14 that compares the contents of the software register 11 and the setting value of the hardware specific address setting section 12.
is an AND circuit that takes the AND of the output of the fixed address decoding circuit 10 and the output of the comparator 13;
15 represents an address bus, and 16 represents a data bus.
固定アドレスデコード回路10は、所定のI/
Oアドレス空間に割り付けられたI/O装置のア
ドレスのうち、あらかじめ定められた上位の何ビ
ツトかのアドレスをデコードする回路で、アドレ
スが一致すると“1”を出力する。 Fixed address decoding circuit 10
This circuit decodes a predetermined number of upper bits of the address of the I/O device allocated to the O address space, and outputs "1" when the addresses match.
本発明の場合、そのアドレスの上位ビツトで表
されるI/Oアドレス空間の範囲に、複数のI/
O装置グループを重複して割り付けるために、例
えばデイツプスイツチ等によるハードウエア固有
アドレス設定部12が設けられる。ハードウエア
固有アドレス設定部12には、その重複したアド
レスに割り付けられたI/O装置のグループを区
別するための値が、I/O装置の設置時にセツト
される。 In the case of the present invention, there are multiple I/O addresses within the range of the I/O address space represented by the upper bits of the address.
In order to redundantly allocate O device groups, a hardware-specific address setting section 12 using, for example, a dip switch is provided. A value for distinguishing groups of I/O devices assigned to the duplicate addresses is set in the hardware specific address setting section 12 when the I/O devices are installed.
マイクロコンピユータを動作させるソフトウエ
アにより、使用するI/O装置を選択する場合に
は、そのI/Oアドレス空間におけるアドレスを
送出する前に、データバス16を介して、その
I/O装置グループの割り付け番号、即ち、ハー
ドウエア固有アドレス設定部12が保持する値
を、ソフトウエア用レジスタ11に書き込む。ソ
フトウエア用レジスタ11に、ハードウエア固有
アドレス設定部12が保持する値がセツトされる
と、コンパレータ13の出力は“1”となる。 When selecting an I/O device to be used by the software that operates the microcomputer, it selects the I/O device group via the data bus 16 before sending out the address in the I/O address space. The allocation number, that is, the value held by the hardware specific address setting unit 12 is written into the software register 11. When the value held by the hardware specific address setting section 12 is set in the software register 11, the output of the comparator 13 becomes "1".
以後、従来と同様にアドレスバス15を介し
て、そのI/O装置にアクセスすると、固定アド
レスデコード回路10によるデコード結果と、コ
ンパレータ13の出力とが、共に“1”であるの
で、アンド回路14の出力は“1”となる。これ
をI/O装置グループを選択するI/Oグループ
セレクト信号とすることにより、所望するI/O
装置にアクセスすることができることとなる。 Thereafter, when the I/O device is accessed via the address bus 15 as in the conventional case, the decoding result by the fixed address decoding circuit 10 and the output of the comparator 13 are both "1", so the AND circuit 14 The output of is "1". By using this as an I/O group select signal that selects an I/O device group, desired I/O
You will be able to access the device.
第2図は本発明の作用を説明するための図であ
る。
FIG. 2 is a diagram for explaining the operation of the present invention.
例えば、1000番地(16進数)から10FF番地ま
でのI/Oアドレス空間を考える。I/O装置A
1,A2,…のグループについては、第1図に示
すハードウエア固有アドレス設定部12の設定値
を予め“00”とする。I/O装置B1,B2,…
のグループについては、ハードウエア固有アドレ
ス設定部12の設定値を“01”とする。また他の
I/O装置C1,C2,…のグループについて
は、ハードウエア固有アドレス設定部12の設定
値を“02”とする。なお、同じグループのI/O
装置(A1,A2,…)、(B1,B2,…)、(C
1,C2,…)の各アドレスは、グループ内では
各々重複しないものとする。 For example, consider an I/O address space from address 1000 (hexadecimal) to address 10FF. I/O device A
For the groups 1, A2, . . . , the setting value of the hardware specific address setting section 12 shown in FIG. 1 is set to "00" in advance. I/O devices B1, B2,...
For the group, the setting value of the hardware specific address setting section 12 is set to "01". Furthermore, for the other groups of I/O devices C1, C2, . . . , the setting value of the hardware specific address setting section 12 is set to "02". In addition, I/O of the same group
Devices (A1, A2,...), (B1, B2,...), (C
It is assumed that the addresses (1, C2, . . . ) do not overlap within the group.
ソフトウエア用レジスタ11に、ソフトウエア
により“00”を書き込めば、1000番地から10FF
番地までのアドレスに対し、I/O装置A1,A
2,…のグループが選択されることになる。ま
た、ソフトウエア用レジスタ11に“01”を書き
込めば、I/O装置B1,B2,…のグループが
選択される。同様に“02”により、I/O装置C
1,C2,…のグループが選択される。 If “00” is written to software register 11 by software, 10FF will be written from address 1000.
I/O devices A1 and A
Groups 2, . . . will be selected. Furthermore, if "01" is written in the software register 11, the group of I/O devices B1, B2, . . . is selected. Similarly, by "02", I/O device C
Groups 1, C2, . . . are selected.
以上のように、1000番地から10FF番地までを
多重化して使用できるので、アドレスバスを拡張
することなく、実質的にI/Oアドレスを割り付
ける空間を拡大できることとなる。 As described above, since addresses from 1000 to 10FF can be multiplexed and used, the space to which I/O addresses can be allocated can be expanded without expanding the address bus.
第3図は本発明の一実施例を示している。 FIG. 3 shows an embodiment of the invention.
第3図において、10A,10Bは上位アドレ
スデコーダであつて、第1図に示す固定アドレス
デコード回路10に相当するものである。11
A,11Bは第1図図示ソフトウエア用レジスタ
11である。また、13A,13Bおよび14
A,14Bは、それぞれ第1図図示コンパレータ
13およびアンド回路14に対応する。 In FIG. 3, 10A and 10B are upper address decoders, which correspond to the fixed address decoding circuit 10 shown in FIG. 11
A and 11B are software registers 11 shown in FIG. Also, 13A, 13B and 14
A and 14B correspond to the comparator 13 and the AND circuit 14 shown in FIG. 1, respectively.
20A,20Bは、各I/O装置毎または各
I/O装置のグループ毎に設けられるI/Oアド
レスデコード回路である。21A,21Bはソフ
トウエア用レジスタ11A,11Bに割り付けら
れたアドレスをデコードするアドレスデコーダで
ある。22A,22Bはデイツプスイツチであつ
て、第1図に示すハードウエア固有アドレス設定
部12に相当する。 20A and 20B are I/O address decoding circuits provided for each I/O device or each group of I/O devices. Address decoders 21A and 21B decode addresses assigned to software registers 11A and 11B. Reference numerals 22A and 22B are deep switches, which correspond to the hardware specific address setting section 12 shown in FIG.
23A,24Aおよび23B,24Bは、それ
ぞれアドレスバス15の下位ビツトをデコードす
る下位アドレスデコーダである。 23A, 24A and 23B, 24B are lower address decoders that decode lower bits of the address bus 15, respectively.
デイツプスイツチ22Aは、I/Oアドレスデ
コード回路20Aを有するI/O装置を接続する
ときに、例えば常に“00”の値を出力するように
セツトされる。一方、デイツプスイツチ22Bに
は、“01”がセツトされる。 The dip switch 22A is set, for example, to always output a value of "00" when connecting an I/O device having the I/O address decoding circuit 20A. On the other hand, "01" is set in the deep switch 22B.
ソフトウエア用レジスタ11Aおよびソフトウ
エア用レジスタ11Bは、同じアドレスを持つ。
即ち、アドレスデコーダ21A、アドレスデコー
ダ21Bは、同じアドレスをデコードする。 Software register 11A and software register 11B have the same address.
That is, address decoder 21A and address decoder 21B decode the same address.
図示省略したマイクロコンピユータが、アドレ
スバス15により、ソフトウエア用レジスタ11
A,11Bのアドレスを指定し、データバス16
を介して“00”を書き込むと、コンパレータ13
Aの出力が、“1”になる。また、そのアドレス
を指定し、“01”を書き込むと、コンパレータ1
3Aの出力が“0”になり、コンパレータ13B
の出力が、“1”に切り換わる。 A microcomputer (not shown) connects the software register 11 via the address bus 15.
Specify the addresses of A and 11B and connect the data bus 16.
Writing “00” through comparator 13
The output of A becomes "1". Also, if you specify that address and write “01”, comparator 1
The output of 3A becomes “0” and comparator 13B
The output of is switched to "1".
上位アドレスデコーダ10A,10Bは、それ
ぞれアドレスバス15の上位8ビツトを同じくデ
コードするが、コンパレータ13A,13Bの出
力が異なるので、アンド回路14A,14Bの出
力が、共に“1”になることはない。 Upper address decoders 10A and 10B each decode the upper 8 bits of address bus 15 in the same way, but since the outputs of comparators 13A and 13B are different, the outputs of AND circuits 14A and 14B will never both become "1". .
アンド回路14Aの出力が“1”になつたと
き、下位アドレスデコーダ23A,24Aは、ア
ドレスバス15の例えば下位8ビツトをデコード
し、内部のI/Oアドレスをそれぞれ識別する。 When the output of the AND circuit 14A becomes "1", the lower address decoders 23A and 24A decode, for example, the lower 8 bits of the address bus 15, and identify the internal I/O addresses, respectively.
下位アドレスデコーダ23B,24Bは、アン
ド回路14Bの出力が“1”になつたとき、I/
Oアドレスデコード回路20Bに属する内部の
I/Oアドレスをそれぞれ識別する。 When the output of the AND circuit 14B becomes "1", the lower address decoders 23B and 24B input the I/
Each internal I/O address belonging to the O address decoding circuit 20B is identified.
以上説明したように、本発明によれば、簡単な
回路を付加することにより、同じI/Oアドレス
空間に、複数の異なるI/O装置を割り付けるこ
とができるので、アドレス領域の不足により装置
の接続が制限されるという問題を解決することが
できる。
As explained above, according to the present invention, it is possible to allocate a plurality of different I/O devices to the same I/O address space by adding a simple circuit. This can solve the problem of limited connectivity.
第1図は本発明の原理ブロツク図、第2図は本
発明の作用説明図、第3図は本発明の一実施例、
第4図は従来方式の例を示す。
図中、10は固定アドレスデコード回路、11
はソフトウエア用レジスタ、12はハードウエア
固有アドレス設定部、13はコンパレータ、14
はアンド回路、15はアドレスバス、16はデー
タバスを表す。
FIG. 1 is a principle block diagram of the present invention, FIG. 2 is an explanatory diagram of the operation of the present invention, and FIG. 3 is an embodiment of the present invention.
FIG. 4 shows an example of the conventional method. In the figure, 10 is a fixed address decoding circuit, 11
is a software register, 12 is a hardware specific address setting section, 13 is a comparator, 14
15 represents an AND circuit, 15 represents an address bus, and 16 represents a data bus.
Claims (1)
置を制御するシステムにおいて、 同じI/Oアドレス空間の範囲に割り付けられ
るI/O装置のグループ毎に異なる設定値が設定
されるハードウエア固有アドレス設定手段12
と、 上記マイクロコンピユータにより、上記I/O
装置のグループ毎の異なる設定値に対応する値が
データバスを介して動的に設定されるソフトウエ
ア用レジスタ11と、 上記ハードウエア固有アドレス設定手段12が
保持する設定値と上記ソフトウエア用レジスタ1
1に設定された値とを比較するコンパレータ13
と、 上記I/Oアドレス空間の範囲に割り付けられ
たアドレスをデコードする固定アドレスデコード
回路10と、 上記コンパレータ13による比較結果および上
記固定アドレスデコード回路10によるデコード
結果に基づいて、上記I/O装置の1つを選択す
る信号を出力する手段14とを備えたことを特徴
とするI/O装置アドレスデコード方式。[Claims] 1. In a system in which a plurality of I/O devices are controlled by a microcomputer, hardware in which different setting values are set for each group of I/O devices allocated to the same I/O address space range. Unique address setting means 12
And, the above I/O is performed by the above microcomputer.
A software register 11 in which values corresponding to different setting values for each device group are dynamically set via a data bus, and a setting value held by the hardware-specific address setting means 12 and the software register. 1
Comparator 13 that compares with the value set to 1
and a fixed address decoding circuit 10 that decodes addresses allocated to the range of the I/O address space, and based on the comparison result by the comparator 13 and the decoding result by the fixed address decoding circuit 10, the I/O device An I/O device address decoding method comprising: means 14 for outputting a signal for selecting one of the I/O device addresses.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16698186A JPS6324343A (en) | 1986-07-16 | 1986-07-16 | I/o address decoding system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16698186A JPS6324343A (en) | 1986-07-16 | 1986-07-16 | I/o address decoding system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6324343A JPS6324343A (en) | 1988-02-01 |
| JPH0562786B2 true JPH0562786B2 (en) | 1993-09-09 |
Family
ID=15841189
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16698186A Granted JPS6324343A (en) | 1986-07-16 | 1986-07-16 | I/o address decoding system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6324343A (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02253460A (en) * | 1989-03-28 | 1990-10-12 | Nec Eng Ltd | Control system |
| US5561821A (en) * | 1993-10-29 | 1996-10-01 | Advanced Micro Devices | System for performing I/O access and memory access by driving address of DMA configuration registers and memory address stored therein respectively on local bus |
| JPH07183926A (en) * | 1993-12-24 | 1995-07-21 | Uchu Tsushin Kiso Gijutsu Kenkyusho:Kk | QPSK preamble signal generator |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58223831A (en) * | 1982-06-23 | 1983-12-26 | Nec Corp | Selecting system of input and output device |
| JPS60122449A (en) * | 1983-12-07 | 1985-06-29 | Mitsubishi Electric Corp | Input and output controller of address variable system |
-
1986
- 1986-07-16 JP JP16698186A patent/JPS6324343A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6324343A (en) | 1988-02-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS61211758A (en) | Multiprocessor system | |
| US6609170B1 (en) | Method and apparatus for BIOS control of electrical device address/identification assignments | |
| JPH0519183B2 (en) | ||
| US6401152B1 (en) | Method and apparatus for automatically adjusting electrical device address identifications and data routing for a group of electrical devices | |
| JPS6324343A (en) | I/o address decoding system | |
| JPS645341B2 (en) | ||
| JPS63195748A (en) | Memory mapped controller for computer system | |
| KR930004901B1 (en) | Memory control unit of computer system by using dynamic ram | |
| JPH04241047A (en) | Address extension system | |
| JPH11238029A (en) | Io mapping method/system for system bus | |
| JP2622553B2 (en) | Microcomputer | |
| JPH0121383Y2 (en) | ||
| JPS622337A (en) | Memory extending system | |
| KR100291938B1 (en) | Fast initialization circuit of the same structure dependent device | |
| JP3315145B2 (en) | Memory address allocation method for microprocessor system | |
| JPH04168545A (en) | Interface circuit | |
| JPH0370052A (en) | Address translation circuit, memory controller, information processor, and recorder | |
| JPS59144930A (en) | microcomputer | |
| JPS6398736A (en) | Address control circuit | |
| JPH06259369A (en) | Information processor | |
| JPS60129854A (en) | Address bus controller | |
| JPH03219342A (en) | Programmable address conversion system | |
| JPH0368046A (en) | Memory access system | |
| JPH04177439A (en) | Single chip microcomputer | |
| KR19990032037A (en) | Isa System with Plug and Play Capability of Multiple Logic Units |