JPH03137753A - Access controller - Google Patents

Access controller

Info

Publication number
JPH03137753A
JPH03137753A JP1274885A JP27488589A JPH03137753A JP H03137753 A JPH03137753 A JP H03137753A JP 1274885 A JP1274885 A JP 1274885A JP 27488589 A JP27488589 A JP 27488589A JP H03137753 A JPH03137753 A JP H03137753A
Authority
JP
Japan
Prior art keywords
internal
access
enable
address
output
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
JP1274885A
Other languages
Japanese (ja)
Inventor
Kenichiro Ono
研一郎 小野
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP1274885A priority Critical patent/JPH03137753A/en
Publication of JPH03137753A publication Critical patent/JPH03137753A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the access of respective internal device in accordance with a decoding condition by deciding access to the arbitrary internal device from the internal device which becomes a common address in accordance with respective internal enable flag and decoding result. CONSTITUTION:A decoder 10 decodes address information of an address bus 15 in accordance with different decoding conditions and outputs decoding output signals 18 and 19 to AND gates 12-14 constituting an address decision means. An enable flag register 11 respectively stores the enable flag for setting registers 26-28 to be the internal devices enabling and outputs enable signals 20-22 to the gates 12-14. Out of chip selection outputs 23-25, the output 23 is outputted to the register 26 by the logical operation of the signal 20 and the signal 18, and the output 25 is outputted to the register 28 by the logical operation of the signal 22 and the signal 18. When the outputs 23-25 are in an 'H' level, a system becomes a selection state and it becomes a direct state when they are in an 'L' level.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、電子機器等をコントロールするフロセッサ
内部に構築された内部デバイスへのアクセス、を決定処
理するアクセス制御装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an access control device that determines and processes access to internal devices built inside a processor that controls electronic equipment and the like.

〔従来の技術) 従来、LSI・スタンダードセル・ゲートアレイ等のI
C内部のデバイスをアクセスする場合には、第3図に示
されるようなアクセス制御回路により、内部デバイスと
なる各レジスタへのアクセスを決定していた。
[Conventional technology] Conventionally, I of LSI, standard cell, gate array, etc.
When accessing a device inside C, access to each register serving as an internal device was determined by an access control circuit as shown in FIG.

第3図は従来のアクセス制御回路の一例を説明する回路
ブロック図であり、80はデコーダで、アドレスバス(
An)81をデコードし、その状態によりデコード出力
83またはデコード出力84を作成し、その出力状態で
レジスタ85またはレジスタ86をアクセスするかどう
かを決定していた。なお、82はデータバス(Dn)で
ある。
FIG. 3 is a circuit block diagram illustrating an example of a conventional access control circuit, in which 80 is a decoder and an address bus (
An) 81 is decoded, a decode output 83 or a decode output 84 is created depending on its state, and whether or not to access the register 85 or register 86 is determined based on the output state. Note that 82 is a data bus (Dn).

〔発明が解決しようとする課題) しかしながら、上記従来例では1filのデコートされ
たアドレスに対して1つのI10デバイスしかアクセス
できないため、下記(1) 、  (2) に示す問題
点があった。
[Problems to be Solved by the Invention] However, in the conventional example described above, since only one I10 device can be accessed for one fil of decoded addresses, there are problems as shown in (1) and (2) below.

(1)デコード可能な領域は限られているので、IC中
に新たなIOデバイスを追加しようとしてもI10空間
が不足してしまう事態が発生する。
(1) Since the decodable area is limited, even if an attempt is made to add a new IO device to the IC, the I10 space may run out.

(2)ICの1部の機能に不具合があって、その機能を
別のICで置き換えようとすると、アドレスの変更が伴
い、ソフトウェアを変更するために相当の時間を要し、
システム開発負担が増大してしまう。
(2) If there is a malfunction in one part of the IC and you try to replace that function with another IC, it will involve changing the address and it will take a considerable amount of time to change the software.
The burden of system development increases.

この発明は、上記の問題点を解決するためになされたも
ので、プロセッサ内部に構築された各内部デバイスを使
用するかどうかを判別するイネーブルフラグを各内部デ
バイスに対応して個別に設けることにより、同一アドレ
スに対して割り振られた異なった複数のI10デバイス
に対応するイネーブルフラグを判別しながらアクセス可
能性を一括して判定できるアクセス制御装置を得ること
を目的とする。
This invention was made to solve the above problems, and by providing an enable flag for each internal device to determine whether or not to use each internal device built inside the processor. An object of the present invention is to provide an access control device that can collectively determine accessibility while determining enable flags corresponding to a plurality of different I10 devices allocated to the same address.

〔課題を解決するための手段〕 この発明に係るアクセス制御装置は、各内部デバイスへ
のアクセスを指示するアドレス情報を解読するデコーダ
と、共通アドレスとなる複数の内部デバイスに対するア
クセスを決定する内部イネーブルフラグを個別に記憶す
るフラグレジスタと、このフラグレジスタに記憶された
各内部イネーブルフラグおよびデコーダのデコード結果
に応じて共通アドレスとなる複数の内部デバイスから任
意の内部デバイスへのアクセスを決定する決定手段とを
設けたものである。
[Means for Solving the Problems] An access control device according to the present invention includes a decoder that decodes address information that instructs access to each internal device, and an internal enable that determines access to a plurality of internal devices that have a common address. A flag register that individually stores flags, and a determining means that determines access to any internal device from a plurality of internal devices that serve as a common address according to each internal enable flag stored in this flag register and the decoding result of a decoder. It has been established that

〔作用〕[Effect]

この発明においては、各内部デバイスへのアクセスを指
示するアドレス情報が入力されると、デコーダがアクセ
ス要求されたアドレス情報を種々の条件でデコードし、
そのデコード結果を決定手段に出力する。一方、フラグ
レジスタには各内部デバイスをイネーブルとするかどう
かを示すイネーブルフラグが各内部デバイスに対応して
設定されており、このイネーブルフラグ設定状態とアド
レスデコード結果に基づいて共通アドレスとなる複数の
内部デバイスからアクセスする内部デバイスを決定する
ことを可能とする。
In this invention, when address information instructing access to each internal device is input, the decoder decodes the address information requested for access under various conditions,
The decoding result is output to the determining means. On the other hand, an enable flag indicating whether to enable each internal device is set in the flag register corresponding to each internal device, and based on the enable flag setting state and the address decoding result, multiple It is possible to determine the internal device to be accessed from the internal device.

〔実施例〕〔Example〕

第1図はこの発明の一実施例を示すアクセス制御装置の
構成を説明するブロック図であり、10はデコーダで、
アドレスバス(An)15のアドレス情報を異なるデコ
ード条件に従って解読し、例えばデコード出力信号18
またはデコード出力信号19をアドレス決定手段を構成
するアンドゲート12〜14へ出力する。
FIG. 1 is a block diagram illustrating the configuration of an access control device showing an embodiment of the present invention, in which 10 is a decoder;
The address information on the address bus (An) 15 is decoded according to different decoding conditions, e.g.
Alternatively, the decode output signal 19 is output to AND gates 12 to 14 constituting address determining means.

11はイネーブルフラグレジスタで、内部デバイスとな
る複数のレジスタ26〜28をイネーブルとするための
イネーブルフラグ(データバス17により指示される)
を個別に記憶し、上記アンドゲート12〜14に対して
イネーブル信号20〜22を図示のごとく出力する。
Reference numeral 11 denotes an enable flag register, which is an enable flag for enabling multiple registers 26 to 28 which are internal devices (instructed by data bus 17).
are individually stored, and enable signals 20-22 are outputted to the AND gates 12-14 as shown.

23〜25はチップセレクト出力で、チップセレクト出
力23はイネーブル信号20とデコード出力信号18と
の論理演算によりレジスタ26に出力され、チップセレ
クト出力24はイネーブル信号21とデコード出力信号
19との論理演算によりレジスタ27に出力され、チッ
プセレクト出力25はイネーブル信号22とデコード出
力信号18との論理演算によりレジスタ28に出力され
る。なお、チップセレクト出力23〜25がrH,レベ
ルの場合にセレクト状態となり、「L」レベルの場合に
デイセレクト状態となる。
23 to 25 are chip select outputs, the chip select output 23 is output to the register 26 by a logical operation between the enable signal 20 and the decode output signal 18, and the chip select output 24 is output by a logical operation between the enable signal 21 and the decode output signal 19. The chip select output 25 is output to the register 28 by a logical operation between the enable signal 22 and the decode output signal 18. Note that when the chip select outputs 23 to 25 are at the rH level, the select state is entered, and when the chip select outputs 23 to 25 are at the "L" level, the day select state is entered.

このように構成されたアクセス制御装置において、各内
部デバイスへのアクセスを指示するアドレス情報がデコ
ーダ10に人力されると、デコーダ1oがアクセス要求
されたアドレス情報を種々の条件でデコードし、そのデ
コード結果(デコード出力信号18.デコード出力信号
19)を決定手段を構成するアンドゲート12〜14に
出力する。
In the access control device configured as described above, when address information instructing access to each internal device is manually inputted to the decoder 10, the decoder 1o decodes the address information requested for access under various conditions and decodes the address information. The results (decode output signal 18 and decode output signal 19) are output to AND gates 12 to 14 constituting the determining means.

一方、フラグレジスタ(この実施例ではイネーブルフラ
グレジスタ11)には各内部デバイスをイネーブルとす
るかどうかを示すイネーブルフラグが各内部デバイスに
対応して設定されており、このイネーブルフラグ設定状
態とアドレスデコード結果に基づいて共通アドレスとな
る複数の内部デバイスからアクセスする内部デバイスを
決定する。
On the other hand, in the flag register (enable flag register 11 in this embodiment), an enable flag indicating whether to enable each internal device is set corresponding to each internal device, and this enable flag setting state and address decoding Based on the result, the internal device to be accessed from multiple internal devices having a common address is determined.

具体的には、アドレスバス15がデコーダ10でデコー
ドされ、デコード出力信号18がセレクトされ、r)(
Jレベル状態の時、あらかじめイネーブルフラグレジス
タ11のチップセレクト信号16が「H」で、かつデー
タバスコアのデータビットDOがrHJレベルで、デー
タビットD2がr L Jレベルならイネーブル信号2
0はrH,レベルとなり、イネーブル信号22は「L」
レベルとなっているので、アンドゲート12とアンドゲ
ート14の論理結果は、共通の同一アドレスがセレクト
された状態でもそれぞれrH」レベルまたは「L」レベ
ルといった具合に異なるので、チップセレクト出力23
に対応するレジスタ26はアクセス可能となるが、チッ
プセレクト出力25に対応するレジスタ28はアクセス
不可となる。
Specifically, address bus 15 is decoded by decoder 10, decoded output signal 18 is selected, and r)(
When in the J level state, if the chip select signal 16 of the enable flag register 11 is "H" in advance, the data bit DO of the data bus core is at the rHJ level, and the data bit D2 is at the rLJ level, the enable signal 2 is activated.
0 is rH, level, and enable signal 22 is “L”
Since the logic results of the AND gates 12 and 14 are different, such as "rH" level or "L" level, even when the same common address is selected, the chip select output 23
The register 26 corresponding to the chip select output 25 becomes accessible, but the register 28 corresponding to the chip select output 25 becomes inaccessible.

このように、デコード出力信号19がセレクトされても
、イネーブルフラグレジスタ11のイネーブル出力21
の状態により、チップセレクト出力24がセレクト状態
か、デイセレクト状態に設定され、その結果、レジスタ
27のアクセス不可またはアクセス可が決定される。
In this way, even if the decode output signal 19 is selected, the enable output 21 of the enable flag register 11
Depending on the state, the chip select output 24 is set to the selected state or the day select state, and as a result, it is determined whether the register 27 is inaccessible or accessible.

第2図はこの発明の他の実施例を示すアクセス制御装置
の構成を説明するブロック図であり、40.60はIC
で、各ICがアドレスバス31およびデータバス32に
並列接続されている。
FIG. 2 is a block diagram illustrating the configuration of an access control device showing another embodiment of the present invention, and 40.60 is an IC
Each IC is connected to an address bus 31 and a data bus 32 in parallel.

41.61はデコーダで、アドレスバス31上のアドレ
ス情報を解読する。42.62はイネーブルフラグレジ
スタで、内部デバイスとなる複数のレジスタ52.53
およびレジスタ72.73をイネーブルとするためのイ
ネーブルフラグ(データバス17により指示される)を
個別に記憶し、アンドゲート48.49およびアンドゲ
ート6B、69に対してイネーブル信号46.47およ
びイネーブル信号66.67を図示のごとく出力する。
A decoder 41.61 decodes address information on the address bus 31. 42.62 is an enable flag register, and multiple registers 52.53 are internal devices.
and enable flags (indicated by data bus 17) for enabling registers 72, 73, and enable signals 46, 47 and enable signals for AND gates 48, 49 and AND gates 6B, 69. 66.67 is output as shown.

50.51はチップセレクト出力で、アンドゲート48
,49からレジスタ52.53に図示のごとく出力され
る。
50.51 is the chip select output, AND gate 48
, 49 to registers 52 and 53 as shown.

70.71はチップセレクト出力で、アンドゲート68
,69からレジスタ72.73に図示のごとく出力され
る。
70.71 is the chip select output, and gate 68
, 69 to registers 72 and 73 as shown.

なお、デコード出力信号44.64およびデコード出力
信号45.65におけるデコード条件は同一であり、チ
ップセレクト化443.63のセレクト条件も同一であ
る。
Note that the decoding conditions for the decode output signal 44.64 and the decode output signal 45.65 are the same, and the selection conditions for the chip selection 443.63 are also the same.

以下、動作について説明する。The operation will be explained below.

あらかじめイネーブルフラグレジスタ42もしくはイネ
ーブルフラグレジスタ62のチップセレクト信号43ま
たはチップセレクト信号63が「H」レベル状態でデー
タバス32のデータビットDOが「H」で、データビッ
トD2が「L」レベルならば、イネーブル信号46が「
H」レベルに、また、イネーブル信号66が「L」レベ
ルに保持されている時、アドレスバス31がデコーダ4
1またはデコーダ61でデコード出力信号44またはデ
コード出力信号64がセレクトされた「H」レベル状態
時には、I C40のチップセレクト出力50はrH,
レベルに決定され、IC60のチップセレクト出カフQ
はr L Jレベルに決定される。このように、同一ア
ドレスがセレクトされた場合であっても、あらかじめセ
ットされたイネーブルフラグレジスタ42またはイネー
ブルフラグレジスタ62の状態によりアンドゲート48
またはアンドゲート62の出力状態が異なり、アンドゲ
ート出力となるチップセレクト出力5oに接続されるレ
ジスタ52はアクセス可能となるが、アンドゲート出力
となるチップセレクト出カフ0に接続されるレジスタ7
2はアクセス不可と制限されることになる。
If the chip select signal 43 or the chip select signal 63 of the enable flag register 42 or the enable flag register 62 is in the "H" level state in advance, the data bit DO of the data bus 32 is "H", and the data bit D2 is "L" level. , the enable signal 46 is “
When the enable signal 66 is held at the “H” level and the enable signal 66 is held at the “L” level, the address bus 31 is held at the decoder 4
1 or when the decode output signal 44 or the decode output signal 64 is selected by the decoder 61 and is in the "H" level state, the chip select output 50 of the IC 40 is rH,
IC60 chip select output cuff Q
is determined to be r L J level. In this way, even if the same address is selected, the AND gate 48
Alternatively, the output state of the AND gate 62 is different, and the register 52 connected to the chip select output 5o which becomes the AND gate output becomes accessible, but the register 7 connected to the chip select output cuff 0 which becomes the AND gate output.
2 will be restricted from access.

このように、別々のIC40,60においても同一アド
レスに割り振られた異なった内部デバイスを別個にアク
セス可能となり、例えばICの一部の機能に不具合が発
生して、その機能を別のICで置き換える必要が生じた
場合、アドレス変換処理が不要であり、稼働しているソ
フトウェアのコンパチビリティを保証できる。
In this way, different internal devices allocated to the same address can be accessed separately even in separate ICs 40 and 60. For example, if a malfunction occurs in a part of the function of the IC, that function can be replaced with another IC. If the need arises, address translation processing is not required and compatibility of the running software can be guaranteed.

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

以上説明したように、この発明は各内部デバイスへのア
クセスを指示するアドレス情報を解読するデコーダと、
共通アドレスとなる複数の内部デバイスに対するアクセ
スを決定する内部イネーブルフラグを個別に記憶するフ
ラグレジスタと、このフラグレジスタに記憶された各内
部イネーブルフラグおよびデコーダのデコード結果に応
じて共通アドレスとなる複数の内部デバイスから任意の
内部デバイスへのアクセスを決定する決定手段とを設け
たので、同一アドレスとなる内部デバイスを複数配設し
て、デコード条件に応じて各内部デバイスをアクセスす
ることができる。従って、同一アドレス空間に数多くの
異なる内部デバイスを選択するアクセスが可能となる。
As explained above, the present invention includes a decoder that decodes address information instructing access to each internal device;
A flag register that individually stores internal enable flags that determine access to multiple internal devices that serve as a common address, and a flag register that individually stores internal enable flags that determine access to multiple internal devices that serve as a common address, and Since the determining means for determining access from an internal device to an arbitrary internal device is provided, it is possible to arrange a plurality of internal devices having the same address and access each internal device according to decoding conditions. Therefore, it is possible to selectively access a large number of different internal devices in the same address space.

また、同一アドレスに割り振られた内部デバイスのイネ
ーブルフラグを2以上セットすることにより、対応する
各内部デバイスに対して同時にデータを書ぎ込む処理が
可能となる等の優れた効果を奏する。
Further, by setting two or more enable flags for internal devices allocated to the same address, excellent effects such as simultaneous writing of data to each corresponding internal device are achieved.

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

第1図はこの発明の一実施例を示すアクセス制御装置の
構成を説明するブロック図、第2図はこの発明の他の実
施例を示すアクセス制御装置の構成を説明するブロック
図、第3図は従来のアクセス制御回路の一例を説明する
回路ブロック図である。 図中、10はデコーダ、11はイネーブルフラグレジス
タ、12〜14はアンドゲート、26〜28はレジスタ
である。 第1図 N2図 IC1ノ40 12〜14・アンドゲート
FIG. 1 is a block diagram explaining the configuration of an access control device showing one embodiment of the invention, FIG. 2 is a block diagram explaining the structure of an access control device showing another embodiment of the invention, and FIG. FIG. 1 is a circuit block diagram illustrating an example of a conventional access control circuit. In the figure, 10 is a decoder, 11 is an enable flag register, 12 to 14 are AND gates, and 26 to 28 are registers. Figure 1 N2 Figure IC1 No. 40 12~14・AND gate

Claims (1)

【特許請求の範囲】[Claims] プロセッサの内部データバスに対して複数の内部デバイ
スが接続されてデータ処理を実行する電子デバイスにお
いて、各内部デバイスへのアクセスを指示するアドレス
情報を解読するデコーダと、共通アドレスとなる複数の
内部デバイスに対するアクセスを決定する内部イネーブ
ルフラグを個別に記憶するフラグレジスタと、このフラ
グレジスタに記憶された各内部イネーブルフラグおよび
前記デコーダのデコード結果に応じて共通アドレスとな
る複数の内部デバイスから任意の内部デバイスへのアク
セスを決定する決定手段とを具備したことを特徴とする
アクセス制御装置。
In an electronic device in which multiple internal devices are connected to the internal data bus of a processor to perform data processing, there is a decoder that decodes address information that instructs access to each internal device, and multiple internal devices that have a common address. A flag register that individually stores internal enable flags that determine access to the internal device, and a common address depending on each internal enable flag stored in this flag register and the decoding result of the decoder. 1. An access control device comprising: determining means for determining access to.
JP1274885A 1989-10-24 1989-10-24 Access controller Pending JPH03137753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1274885A JPH03137753A (en) 1989-10-24 1989-10-24 Access controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1274885A JPH03137753A (en) 1989-10-24 1989-10-24 Access controller

Publications (1)

Publication Number Publication Date
JPH03137753A true JPH03137753A (en) 1991-06-12

Family

ID=17547895

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1274885A Pending JPH03137753A (en) 1989-10-24 1989-10-24 Access controller

Country Status (1)

Country Link
JP (1) JPH03137753A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008225662A (en) * 2007-03-09 2008-09-25 Tohoku Univ Data writing method, and writing control device and arithmetic unit using the method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008225662A (en) * 2007-03-09 2008-09-25 Tohoku Univ Data writing method, and writing control device and arithmetic unit using the method

Similar Documents

Publication Publication Date Title
US4028675A (en) Method and apparatus for refreshing semiconductor memories in multi-port and multi-module memory system
US5802541A (en) Method and apparatus in a data processing system for using chip selects to perform a memory management function
US5826093A (en) Dual function disk drive integrated circuit for master mode and slave mode operations
US4649471A (en) Address-controlled automatic bus arbitration and address modification
KR100344132B1 (en) A device for a computer memory interface, a portable mobile computer and a method for fetching program instructions and performing a data write / read request on the computer
US5623697A (en) Bridge between two buses of a computer system with a direct memory access controller having a high address extension and a high count extension
JPS6389961A (en) Semaphore circuit
US5748982A (en) Apparatus for selecting a user programmable address for an I/O device
JPH03137753A (en) Access controller
JPS6330658B2 (en)
JP2590704B2 (en) Parallel processor LSI
JPH02136921A (en) Register access system
JPS60134940A (en) Register selecting system of information processing device
KR0162763B1 (en) Apparatus and method for implementing the configuration space of a pci device using mux
JPS62217483A (en) Memory device
JPS59139427A (en) Information processing device
JP2000132491A (en) Method and system for device control
JPH0277866A (en) Multiprocessor
JP2002318779A (en) Device, and access method for its register
JPH0310335A (en) Emulation chip
JPH06110828A (en) Memory controller
JPH04305784A (en) Microcomputer
JPH0784937A (en) Microprocessor connecting circuit of peripheral circuit
JPS61195438A (en) Information processor
JPS63244237A (en) Information processor