JPH05151090A - Access control circuit - Google Patents

Access control circuit

Info

Publication number
JPH05151090A
JPH05151090A JP31766091A JP31766091A JPH05151090A JP H05151090 A JPH05151090 A JP H05151090A JP 31766091 A JP31766091 A JP 31766091A JP 31766091 A JP31766091 A JP 31766091A JP H05151090 A JPH05151090 A JP H05151090A
Authority
JP
Japan
Prior art keywords
signal
circuit
address
data
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
Application number
JP31766091A
Other languages
Japanese (ja)
Inventor
Tetsuaki Morotomi
哲明 諸冨
Toru Nakanishi
徹 中西
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP31766091A priority Critical patent/JPH05151090A/en
Publication of JPH05151090A publication Critical patent/JPH05151090A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PURPOSE:To obtain the access control circuit which prevents the contents of a memory block in a computer system from being destroyed owing to a bug, a runaway, etc., of a program. CONSTITUTION:The coincidence signal 11 of a coincidence detecting circuit 2 which compares the select signal 10 from a 1st address decoder circuit 1 connected to an address bus 30, the signal of a data bus 31, and the signal of a data generating circuit 3 is applied to the data generating circuit 3 to allow access only for a constant time set by a timer circuit 20; even when the program runs away thereafter, the access is automatically disallowed to prevent the memory block from being destroyed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータシステム
におけるメモリー、I/Oなどのアクセス制御回路に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an access control circuit for a memory, I / O, etc. in a computer system.

【0002】[0002]

【従来の技術】近年、コンピュータの著しい普及につれ
てコンピュータシステムにおけるメモリー、I/Oなど
アクセス制御回路の高信頼性設計が要望されてきた。
2. Description of the Related Art In recent years, with the remarkable spread of computers, there has been a demand for highly reliable design of access control circuits such as memories and I / O in computer systems.

【0003】以下に従来のアクセス制御回路について図
面を参照しながら説明する。図6および図7に示すよう
に従来のアクセス制御回路は、一致検出回路100、セ
ット・リセット回路(以下、RS回路と略す)101、
第2のアドレスデコーダ回路4、ANDゲート5、メモ
リーブロック6、アドレス信号や各素子のアクセスのた
めの制御信号からなるアドレスバス30、データ信号か
らなるデータバス31で構成されている。
A conventional access control circuit will be described below with reference to the drawings. As shown in FIGS. 6 and 7, the conventional access control circuit includes a coincidence detection circuit 100, a set / reset circuit (hereinafter abbreviated as RS circuit) 101,
The second address decoder circuit 4, an AND gate 5, a memory block 6, an address bus 30 including an address signal and a control signal for accessing each element, and a data bus 31 including a data signal.

【0004】以上の構成要素よりなるアクセス制御回路
について、以下その各構成要素の関係と動作を説明す
る。
With respect to the access control circuit including the above components, the relationship and operation of each component will be described below.

【0005】まず、第2のアドレスデコーダ回路4は、
メモリーブロック6を選択する信号がアドレスバス30
上に示されたときに、選択信号14をHIGHレベル
(以下、Hと記す)にする。しかし、選択信号14はA
NDゲート5により許可信号112と論理積がとられる
ため、メモリーブロック6は許可信号112がHで、か
つ選択信号14がHのときのみアクティブとなるように
その動作が制限される。
First, the second address decoder circuit 4
The signal for selecting the memory block 6 is the address bus 30.
When shown above, the selection signal 14 is set to the HIGH level (hereinafter referred to as H). However, the selection signal 14 is A
Since the ND gate 5 performs a logical product with the permission signal 112, the operation of the memory block 6 is limited so that it is active only when the permission signal 112 is H and the selection signal 14 is H.

【0006】つぎに、図7に示すように一致検出回路1
00、RS回路101はそれぞれ4入力のNANDゲー
ト121と負入力のANDゲート122,123により
一致検出回路100を構成し、また2入力のNORゲー
ト124,125でRS回路101を構成しているが、
以下にその詳しい動作を説明すると、一致検出回路10
0はアドレスバス30のうち、A12からA15までの
4本のアドレス信号をNANDゲート121で論理積を
とり、その結果とさらにI/Oの書き込み信号であるI
OW(同図では負論理)と論理積をとって信号110を
得ている。一方NANDゲート121の出力とI/Oの
読みだし信号であるIOR(同図では負論理)と論理積
をとって信号111を得ている。この場合、A12から
A15までの信号がHで示されるアドレス信号の場合、
I/Oの書き込みを行うとNANDゲート121の出力
がLOWレベル(以下、Lと記す)、IOWがアクティ
ブとなりL、よって信号110はH、信号111はLと
なり、さらにNORゲート124の出力はL、一方NO
Rゲート125の出力はHとなり出力信号112はHと
なる。またこの信号112はIOWがHに戻り信号11
0がLになっても、信号111がともにLであればHの
ままで維持される。これにより、ANDゲート5が開
き、メモリーブロック6は選択信号14によりアクティ
ブとなる。
Next, as shown in FIG. 7, the coincidence detection circuit 1
00 and the RS circuit 101 configure the coincidence detection circuit 100 with the 4-input NAND gate 121 and the negative-input AND gates 122 and 123, respectively, and the RS circuit 101 with the 2-input NOR gates 124 and 125. ,
The detailed operation will be described below. The coincidence detection circuit 10
0 is a logical product of four address signals A12 to A15 in the address bus 30 by the NAND gate 121, and the result is I / O write signal I
The signal 110 is obtained by performing a logical product with OW (negative logic in the figure). On the other hand, the signal 111 is obtained by taking the logical product of the output of the NAND gate 121 and IOR (negative logic in the figure) which is a read signal of I / O. In this case, when the signals from A12 to A15 are address signals indicated by H,
When I / O is written, the output of the NAND gate 121 becomes LOW level (hereinafter referred to as L) and IOW becomes active L, so that the signal 110 becomes H, the signal 111 becomes L, and the output of the NOR gate 124 becomes L. , While NO
The output of the R gate 125 becomes H, and the output signal 112 becomes H. In addition, the signal 112 returns to IOW and the signal 11
Even if 0 becomes L, if both signals 111 are L, they remain H. As a result, the AND gate 5 is opened, and the memory block 6 is activated by the selection signal 14.

【0007】また逆に、A12からA15までの信号が
Hで示されるアドレス信号の場合にはI/Oの読みだし
を行うと、NANDゲート121の出力がL、IORが
アクティブとなりL、よって信号110はL、信号11
1はHとなりさらにNORゲート125の出力はL、一
方、NORゲート124の出力はHとなりよって信号1
12はLとなる。またこの信号112はIORがHに戻
り信号110がLになっても、信号111がともにLで
あればLのまま維持される。
On the contrary, when the signals from A12 to A15 are address signals indicated by H, when the I / O is read out, the output of the NAND gate 121 becomes L, the IOR becomes active, and L 110 is L, signal 11
1 becomes H and the output of the NOR gate 125 becomes L, while the output of the NOR gate 124 becomes H, so that the signal 1
12 is L. Further, this signal 112 is maintained at L as long as both signals 111 are at L even if IOR returns to H and the signal 110 becomes L.

【0008】これにより、ANDゲート5が閉じ、選択
信号14がアクティブとなってもメモリーブロック6は
アクティブとはならずそのアクセスが制限される。
As a result, even if the AND gate 5 is closed and the selection signal 14 is activated, the memory block 6 is not activated and its access is restricted.

【0009】[0009]

【発明が解決しようとする課題】しかしながら上記従来
の構成では、信号110、または信号111がアクティ
ブとなるようなアドレスに対して読みだし、または書き
込みを実施するだけでメモリーブロック6のアクセスに
対する制限をかけたりはずしたりできるため、コンピュ
ータシステムなどで、その使用者に対してメモリーブロ
ック6のアクセスに関して制限を設け、かつその使用方
法を秘密にしても解読されやすい。また、メモリーブロ
ック6の内容をプログラムのバグ、暴走などによる破壊
から防ぎにくいという問題点を有していた。
However, in the above-mentioned conventional configuration, the access to the memory block 6 is restricted only by reading or writing the address at which the signal 110 or the signal 111 becomes active. Since it can be turned on and off, it is easy to decipher even if a user places a restriction on access to the memory block 6 in a computer system and keeps the usage secret. In addition, there is a problem that it is difficult to prevent the contents of the memory block 6 from being destroyed by a program bug or runaway.

【0010】本発明は上記従来の問題点を解決するもの
で、メモリーブロック6などのアクセスに関して、複数
の定まった手順を用いなければ許可しない構成とし、コ
ンピュータシステムの使用者に対して定まった手順を秘
密にした場合、その内容が単純でないためにわかりにく
くかつ解読されにくい。また、同様にその内容が単純で
ないためにメモリーブロックをプログラムのバグ、暴走
などによる破壊から防ぐことが可能となる。さらにタイ
マー回路で定められた一定時間のみアクセスが許可され
るため、前記手順によりアクセスが許可されたのちにプ
ログラムが暴走しても一定時間経過後に自動的にアクセ
スが不許可となるために、メモリーブロックの内容をプ
ログラム暴走による破壊から防ぐことができるようなア
クセス制御回路を提供することを目的とする。
The present invention solves the above-mentioned problems of the prior art. The access to the memory block 6 or the like is configured to be permitted only if a plurality of fixed procedures are used, and the procedure is fixed for the user of the computer system. If is kept secret, it is difficult to understand and decipher because the contents are not simple. Also, similarly, since the contents are not simple, it is possible to prevent the memory block from being destroyed by a program bug or runaway. Furthermore, since access is permitted only for a fixed time set by the timer circuit, even if the program runs out of control after the access is permitted by the above procedure, the access is automatically disallowed after a certain period of time. An object of the present invention is to provide an access control circuit capable of preventing the contents of a block from being destroyed by a program runaway.

【0011】[0011]

【課題を解決するための手段】この目的を達成するため
に本発明のアクセス制御回路は、アドレス信号と制御信
号からなるアドレスバスに接続された第1のアドレスデ
コーダ回路と、データ信号からなるデータバスの信号を
第1の比較信号とする一致検出回路と、一致検出回路の
第2の比較信号を発生するデータ発生回路と、一定時間
の経過を検出するタイマー回路で構成し、特定アドレス
に対し書き込みを行うことで第1のアドレスデコーダ回
路より出力する選択信号と、一致検出回路より出力する
第1、および第2の比較信号が一致していることを示す
一致信号をデータ発生回路に入力し、データ発生回路
は、特定アドレスに対して第2の比較信号と同一の第1
の比較信号を書き込むごとに、第2の比較信号を変化さ
せ、それをN回(Nは、2以上の整数とする)実施後
に、タイマー回路で設定された時間の間のみ他の回路を
システムが選択することを許可する信号を出力するよう
に構成される。
In order to achieve this object, an access control circuit of the present invention comprises a first address decoder circuit connected to an address bus composed of an address signal and a control signal, and a data composed of a data signal. A match detection circuit that uses the bus signal as the first comparison signal, a data generation circuit that generates the second comparison signal of the match detection circuit, and a timer circuit that detects the elapse of a fixed time, and A match signal indicating that the select signal output from the first address decoder circuit by writing and the first and second comparison signals output from the match detection circuit match is input to the data generation circuit. , The data generation circuit has the same first address as the second comparison signal for the specific address.
Each time the second comparison signal is written, the second comparison signal is changed, and after performing it N times (N is an integer of 2 or more), the other circuits are operated only during the time set by the timer circuit. Are configured to output a signal that allows them to select.

【0012】さらに、特定アドレスに対して、第2の比
較信号と異なったデータを書き込んだ場合、データ発生
回路が初期状態に戻るような構成を有している。
Further, when the data different from the second comparison signal is written to the specific address, the data generating circuit returns to the initial state.

【0013】[0013]

【作用】本発明は上記した構成において、メモリーブロ
ックなどのアクセスに関して、複数の定まった手順を用
いなければ許可しない構成とし、コンピュータシステム
の使用者に対して、定まった手順を秘密にした場合その
内容が単純でないためにわかりにくく、解読されにく
い。また、同様にその内容が単純でないために、メモリ
ーブロックをプログラムのバグ、暴走などによる破壊か
ら防ぐことが可能となる。さらにタイマー回路で定めら
れた一定時間のみアクセスが許可されるため、前記手順
によりアクセスが許可されたのちにプログラムが暴走し
ても一定時間経過後に自動的にアクセスが不許可となる
ために、メモリーブロックの内容をプログラム暴走によ
る破壊から防ぐことができる。
According to the present invention, in the above-mentioned configuration, access to a memory block or the like is not permitted unless a plurality of fixed procedures are used, and when the fixed procedure is kept secret to the user of the computer system, It is difficult to understand and decipher because the content is not simple. Similarly, since the contents are not simple, it is possible to prevent the memory block from being destroyed due to a program bug, runaway, or the like. Furthermore, since access is permitted only for a fixed time set by the timer circuit, even if the program runs out of control after the access is permitted by the above procedure, the access is automatically disallowed after a certain period of time. The contents of the block can be prevented from being destroyed by the program runaway.

【0014】[0014]

【実施例】以下本発明の一実施例について、図面を参照
しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0015】図1に示すように本発明のアクセス制御回
路は、第1のアドレスデコーダ回路1、一致検出回路
2、データ発生回路3、タイマー回路20、アドレス信
号と制御信号からなるアドレスバス30、データ信号か
らなるデータバス31で構成されている。
As shown in FIG. 1, the access control circuit of the present invention comprises a first address decoder circuit 1, a match detection circuit 2, a data generation circuit 3, a timer circuit 20, an address bus 30 composed of an address signal and a control signal, The data bus 31 is composed of data signals.

【0016】以上の構成要素よりなるアクセス制御回路
について、以下その各構成要素の関係と動作を説明す
る。第1のアドレスデコーダ回路1は、アドレスバス3
0に特定のアドレスに対するデータの書き込み信号がで
たときに、選択信号10をアクティブにする。一方、書
き込むデータはデータバス31より一致検出回路2に第
1の比較信号16として入力し、データ発生回路3から
の第2の比較信号13と比較される。もし第1の比較信
号16と第2の比較信号13が一致していると、一致検
出回路2は一致信号11を出力する。データ発生回路3
は、選択信号10と一致信号11がともにアクティブと
なった場合、第2の比較信号13の内容を変化させる。
上記内容をN回(Nは2以上の整数)繰り返したのち、
データ発生回路3は第1のアクセス許可信号12をアク
ティブとし、タイマー回路20を起動する。タイマー回
路20からは、第2のアクセス許可信号21が出力し、
タイマー回路20に設定された時間の間、それにつなが
る回路のアクセスを許可する。
Regarding the access control circuit composed of the above components, the relationship and operation of each component will be described below. The first address decoder circuit 1 includes an address bus 3
When a data write signal for a specific address appears at 0, the selection signal 10 is activated. On the other hand, the data to be written is input from the data bus 31 to the coincidence detection circuit 2 as the first comparison signal 16 and compared with the second comparison signal 13 from the data generation circuit 3. If the first comparison signal 16 and the second comparison signal 13 match, the match detection circuit 2 outputs a match signal 11. Data generation circuit 3
Changes the content of the second comparison signal 13 when both the selection signal 10 and the coincidence signal 11 are activated.
After repeating the above contents N times (N is an integer of 2 or more),
The data generation circuit 3 activates the first access permission signal 12 and activates the timer circuit 20. The second access permission signal 21 is output from the timer circuit 20,
During the time set in the timer circuit 20, access to the circuits connected to the timer circuit 20 is permitted.

【0017】つぎに、図2にアクセス制御の一例とし
て、メモリーブロック6の構成例を示す。図において、
第2のアドレスデコーダ回路4と、ANDゲート5と、
メモリーブロック6とから構成されるが、ここで図1と
同一構成部品には同じ符号を付し、図2に示すメモリー
ブロック6の動作を説明する。
Next, FIG. 2 shows a configuration example of the memory block 6 as an example of access control. In the figure,
A second address decoder circuit 4, an AND gate 5,
Although it is composed of a memory block 6, the same components as those in FIG. 1 are designated by the same reference numerals, and the operation of the memory block 6 shown in FIG. 2 will be described.

【0018】アドレスバス30にメモリーブロック6が
割りつけられたアドレスが出力すると、第2のアドレス
デコーダ回路4は選択信号14をアクティブにする。こ
のとき第2のアクセス許可信号21がアクティブなら、
ANDゲート5は開かれ、選択信号15もアクティブと
なり、メモリーブロック6はアクセス可能な状態とな
る。もしこのとき、第2のアクセス許可信号21がアク
ティブでないなら、ANDゲート5は閉じられ、選択信
号14の状態に関係なく選択信号15は常にノンアクテ
ィブとなり、メモリーブロック6はアクセス状態とはな
らない。
When the address assigned to the memory block 6 is output to the address bus 30, the second address decoder circuit 4 activates the selection signal 14. At this time, if the second access permission signal 21 is active,
The AND gate 5 is opened, the selection signal 15 becomes active, and the memory block 6 becomes accessible. At this time, if the second access permission signal 21 is not active, the AND gate 5 is closed, the selection signal 15 is always inactive regardless of the state of the selection signal 14, and the memory block 6 is not in the access state.

【0019】ここで、メモリーブロック6とは、読みだ
し専用メモリー(ROM)や、読みだし/書き込み可能
メモリー(RAM)や、それらの複合体を意味する。
Here, the memory block 6 means a read-only memory (ROM), a read / writeable memory (RAM), or a combination thereof.

【0020】つぎに、図3に、図1のアクセス制御回路
の具体的な一実施例を示す。図3において、NANDゲ
ート40と、インバータ41で、第1のアドレスデコー
ダ回路1を構成し、74LS85などのICで代表され
る大小を比較する比較器42を用いて一致検出回路2を
構成し74LS163などのICで代表される同期式カ
ウンター43、ANDゲート44とで、データ発生回路
3を構成し、74LS221などのICで代表されるワ
ンショットタイマー回路45で、その時間を決定するた
めの抵抗R、コンデンサCを用いてタイマー回路20を
構成している。図3において、図1と同一構成部品に
は、同じ符号を付し、アクセス制御回路の動作を説明す
る。インバータ41にはアドレスバス30の信号のう
ち、I/Oへの書き込み信号であるIOWを入力する。
この信号は負論理で、アクティブな場合はLとなる。ま
た、インバータ41の出力は、NANDゲート40の入
力となっていて、前記内容により、I/Oへの書き込み
が行われると、Hが出力する。NANDゲート40の他
の入力には、アドレスバス30からの信号が接続され
る。よって本実施例の場合、A9からA15までのアド
レス信号がすべてHでかつI/Oへの書き込みが行われ
ると、選択信号10はアクティブとなる。ただし、この
選択信号10は図より負論理であり、アクティブである
ということはLを示している。
Next, FIG. 3 shows a specific embodiment of the access control circuit of FIG. In FIG. 3, the NAND gate 40 and the inverter 41 constitute the first address decoder circuit 1, and the comparator 42 for comparing the magnitudes represented by ICs such as 74LS85 constitutes the coincidence detection circuit 2 and 74LS163. A synchronous counter 43 typified by an IC such as the above and an AND gate 44 form a data generation circuit 3, and a one-shot timer circuit 45 typified by an IC such as the 74LS221, a resistor R for determining the time. , The capacitor C is used to form the timer circuit 20. 3, the same components as those in FIG. 1 are designated by the same reference numerals, and the operation of the access control circuit will be described. Of the signals of the address bus 30, IOW which is a write signal for I / O is input to the inverter 41.
This signal has a negative logic and becomes L when active. Further, the output of the inverter 41 is input to the NAND gate 40, and when the I / O is written according to the above contents, H is output. The signal from the address bus 30 is connected to the other input of the NAND gate 40. Therefore, in the case of the present embodiment, when all the address signals from A9 to A15 are H and writing to the I / O is performed, the selection signal 10 becomes active. However, the selection signal 10 has a negative logic as shown in the drawing, and the fact that it is active indicates L.

【0021】一致検出回路2を構成する比較器42の一
方の入力には、データバス31からD0,D1,D2,
D3の4ビットの信号が入力し、他の一方には、データ
発生回路3から第2の比較信号13が入力する。ここ
で、前記D0からD3の信号と、第2の比較信号13が
等しければ、比較器42は両入力が一致しているため一
致信号11としてHを出力する。もし、一致していなけ
れば一致信号11はLとなる。
From the data bus 31 to D0, D1, D2, one input of a comparator 42 constituting the coincidence detection circuit 2 is connected.
The 4-bit signal D3 is input, and the second comparison signal 13 from the data generation circuit 3 is input to the other one. Here, if the signals D0 to D3 and the second comparison signal 13 are equal, the comparator 42 outputs H as the coincidence signal 11 because both inputs coincide. If they do not match, the match signal 11 becomes L.

【0022】データ発生回路3では、選択信号10が同
期式カウンター43のクロック信号入力に入っている。
また、一致信号11は同期式カウンター43のクリア
(CL)端子に入力している。同期式カウンター43の
動作は、クロック信号入力端子に入力する信号のLから
Hに変化するときに行われる。よって、選択信号10が
LからHに変化するとき、すなわち選択信号10がアク
ティブからノンアクティブになるときに、同期式カウン
ター43のクリア端子に入力する一致信号11がH(デ
ータバス31のD0からD3の信号と、第2の比較信号
13が一致)であれば、同期式カウンター43はインク
リメントされる。逆に、一致信号11がL(データバス
31のD0からD3の信号と、第2の比較信号13が一
致していない)であれば、同期式カウンター43はクリ
アされる。
In the data generation circuit 3, the selection signal 10 is input to the clock signal input of the synchronous counter 43.
Further, the coincidence signal 11 is input to the clear (CL) terminal of the synchronous counter 43. The operation of the synchronous counter 43 is performed when the signal input to the clock signal input terminal changes from L to H. Therefore, when the selection signal 10 changes from L to H, that is, when the selection signal 10 changes from active to non-active, the coincidence signal 11 input to the clear terminal of the synchronous counter 43 is H (from D0 of the data bus 31). If the signal of D3 and the second comparison signal 13 match), the synchronous counter 43 is incremented. On the contrary, if the coincidence signal 11 is L (the signals D0 to D3 of the data bus 31 do not coincide with the second comparison signal 13), the synchronous counter 43 is cleared.

【0023】本実施例では、同期式カウンター43の出
力QA,QBを第2の比較信号13として使用し、QA
比較器42のB2に、QBをB1に接続している。ま
た、第1のアクセス許可信号12はANDゲート44を
用い、同期式カウンター43のQ A,QB出力がともにH
の場合にアクティブ(H)となるようになっている。す
なわち、同期式カウンター43がクリアされた状態から
3回インクリメントされると、第1のアクセス許可信号
12がアクティブとなる。
In this embodiment, the output of the synchronous counter 43 is
Power QA, QBIs used as the second comparison signal 13, and QATo
In B2 of the comparator 42, QBIs connected to B1. Well
In addition, the first access permission signal 12 causes the AND gate 44 to
Use, Q of the synchronous counter 43 A, QBBoth outputs are H
In the case of, it becomes active (H). You
That is, from the state where the synchronous counter 43 is cleared
When incremented three times, the first access permission signal
12 are active.

【0024】アクティブとなった第1のアクセス許可信
号12は、ワンショットタイマー回路45を起動し、
R,Cで定められた時間のみ第2のアクセス許可信号2
1を出力する。
The activated first access permission signal 12 activates the one-shot timer circuit 45,
The second access permission signal 2 only for the time determined by R and C
1 is output.

【0025】つぎに、アドレス信号、データ信号、そし
て同期式カウンター43などの動きを図4を用いて説明
する。図4のアドレス信号のハッチング部は、第1のア
ドレスデコーダ回路1がアクティブとなるアドレス信号
になっていることを示すものである。それと同時にデー
タの書き込みが行われると、すなわちIOWがアクティ
ブ(L)になると、選択信号10もアクティブ(L)と
なる。図4に示すアドレス信号は、3回の書き込みが行
われていることを示す。一方、同期式カウンター43は
A,QBそれぞれがLとなっている、すなわちクリア状
態から始まっている。
Next, the operation of the address signal, the data signal, and the synchronous counter 43 will be described with reference to FIG. The hatched portion of the address signal in FIG. 4 indicates that the first address decoder circuit 1 is an active address signal. At the same time, when data is written, that is, when the IOW becomes active (L), the selection signal 10 also becomes active (L). The address signal shown in FIG. 4 indicates that writing is performed three times. On the other hand, in the synchronous counter 43, each of Q A and Q B is L, that is, it starts from the clear state.

【0026】第1回目の書き込みデータは、D0からD
3まですべてLであり、第2の比較信号13とデータが
一致しているので比較器42は一致信号11としてHを
出力する(図4の11で示す)。そのため、選択信号1
0の後縁(a)部で、同期式カウンター43はインクリ
メントする。
The first write data is D0 to D
Since all 3 are L, and the data matches the second comparison signal 13, the comparator 42 outputs H as the match signal 11 (indicated by 11 in FIG. 4). Therefore, the selection signal 1
At the trailing edge (a) of 0, the synchronous counter 43 increments.

【0027】第2回目の書き込みでは、同期式カウンタ
ー43のQAがH、すなわち比較器42のB2がHとな
っているので、D0からD3までの信号のうちD2のみ
Hとし、第2の比較信号13とデータが一致しているの
で比較器42は一致信号11としてHを出力する。その
ため、選択信号10の後縁(b)部で、同期式カウンタ
ー43はインクリメントする。
In the second write, since Q A of the synchronous counter 43 is H, that is, B2 of the comparator 42 is H, only D2 of the signals from D0 to D3 is set to H, and Since the data matches the comparison signal 13, the comparator 42 outputs H as the match signal 11. Therefore, the synchronous counter 43 increments at the trailing edge (b) of the selection signal 10.

【0028】同様に第3回目の書き込みでは、D0から
D3までの信号のうちD1のみHとし、選択信号10の
後縁(c)部で、同期式カウンター43はインクリメン
トしている。ここで、同期式カウンター43のQA,QB
出力がともにHとなるため、第1のアクセス許可信号1
2が(図4の12)アクティブ(H)になっている(図
4の(d部))。
Similarly, in the third writing, only D1 of the signals from D0 to D3 is set to H, and the synchronous counter 43 is incremented at the trailing edge (c) of the selection signal 10. Here, Q A and Q B of the synchronous counter 43
Since both outputs become H, the first access permission signal 1
2 is active (H) (12 in FIG. 4) ((d part) in FIG. 4).

【0029】つぎに、図5に図4とは異なり、書き込み
データを誤った例を示す。図5において、第2回目の書
き込みで、D0もHとしたため第2の比較信号13と不
一致となり、図5(b)部で同期式カウンター43はク
リアされている。
Next, FIG. 5 shows an example in which write data is wrong, unlike FIG. In FIG. 5, since D0 is also set to H in the second write, the second comparison signal 13 does not match, and the synchronous counter 43 is cleared in FIG. 5B.

【0030】以上のように本実施例によれば、3回のあ
る定められたデータを特定アドレスに書き込むことによ
り、アクセス許可信号をアクティブにすることができ、
以後メモリーブロック6などに対するアクセスが可能と
なる。また、前記3回の書き込み途中で、書き込みデー
タを誤った場合などは、データ発生回路3が誤ったデー
タを書き込んだ時点でクリアされ、アクセス許可信号は
ノンアクティブのままとなる。
As described above, according to this embodiment, the access permission signal can be activated by writing the predetermined data three times to the specific address.
After that, it becomes possible to access the memory block 6 and the like. If the write data is erroneous during the above-mentioned three times of writing, it is cleared when the data generating circuit 3 writes the erroneous data, and the access permission signal remains inactive.

【0031】[0031]

【発明の効果】以上の実施例から明らかなように本発明
は、メモリーブロックなどのアクセスに関して、複数の
定まった手順を用いなければ許可しない構成とし、コン
ピュータシステムの使用者に対して、定まった手順を秘
密にした場合、その内容が単純でないためにわかりにく
くできる。また、同様にその内容が単純でないために、
メモリーブロックをプログラムのバグ、暴走などによる
破壊から防ぐことが可能となる。さらにタイマー回路で
定められた一定時間のみアクセスが許可されるため、前
記手順によりアクセスが許可されたのちにプログラムが
暴走しても、一定時間が経過後に自動的にアクセスが不
許可となるために、メモリーブロックの内容をプログラ
ム暴走による破壊から防ぐことが可能となるなど優れた
アクセス制御回路を実現できるものである。
As is apparent from the above embodiments, the present invention has a configuration in which access to a memory block or the like is not permitted unless a plurality of fixed procedures are used, and it is fixed to the user of the computer system. If the procedure is kept secret, it is difficult to understand because the content is not simple. Also, because its content is not simple,
It is possible to prevent the memory block from being destroyed by a program bug or runaway. Furthermore, since access is permitted only for a certain period of time determined by the timer circuit, even if the program runs out of control after the access is permitted by the above procedure, access will automatically be denied after a certain period of time elapses. It is possible to realize an excellent access control circuit, which can prevent the contents of a memory block from being destroyed by a program runaway.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例のアクセス制御回路のブロッ
ク図
FIG. 1 is a block diagram of an access control circuit according to an embodiment of the present invention.

【図2】同メモリーブロックの回路図[Figure 2] Circuit diagram of the same memory block

【図3】同アクセス制御回路の部分回路図FIG. 3 is a partial circuit diagram of the access control circuit.

【図4】同アクセス制御回路における動作タイミング図FIG. 4 is an operation timing chart in the access control circuit.

【図5】同アクセス制御回路における動作タイミング図FIG. 5 is an operation timing chart in the access control circuit.

【図6】従来のアクセス制御回路のブロック図FIG. 6 is a block diagram of a conventional access control circuit.

【図7】同アクセス制御回路の部分回路図FIG. 7 is a partial circuit diagram of the access control circuit.

【符号の説明】[Explanation of symbols]

1 第1のアドレスデコーダ回路 2 一致検出回路 3 データ発生回路 20 タイマー回路 30 アドレスバス 31 データバス 1 First Address Decoder Circuit 2 Match Detection Circuit 3 Data Generation Circuit 20 Timer Circuit 30 Address Bus 31 Data Bus

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】アドレス信号と制御信号からなるアドレス
バスと、データ信号からなるデータバスを構成要素と
し、前記アドレスバスに接続された第1のアドレスデコ
ーダ回路と、前記データバスの信号を第1の比較信号と
する一致検出回路と、前記一致検出回路の第2の比較信
号を発生するデータ発生回路と、一定時間の経過を検出
するタイマー回路で構成し、特定アドレスに対し書き込
みを行うことで前記第1のアドレスデコーダ回路より出
力する選択信号と、前記一致検出回路より出力する第
1、および第2の比較信号が一致していることを示す一
致信号を前記データ発生回路に入力し、前記データ発生
回路は、前記特定アドレスに対して第2の比較信号と同
一の第1の比較信号を書き込むごとに、第2の比較信号
を変化させ、それをN回(Nは、2以上の整数とする)
実施後に、前記タイマー回路で設定された時間の間のみ
他の回路を前記システムが選択することを許可する信号
を出力するように配されたアクセス制御回路。
1. A first address decoder circuit connected to the address bus, comprising an address bus composed of an address signal and a control signal and a data bus composed of a data signal as constituent elements, and a signal of the data bus being a first circuit. Of the coincidence detection circuit for generating the second comparison signal of the coincidence detection circuit, and a timer circuit for detecting the passage of a fixed time, and writing to a specific address. A select signal output from the first address decoder circuit and a match signal indicating that the first and second comparison signals output from the match detection circuit match each other are input to the data generation circuit, and The data generation circuit changes the second comparison signal every time the first comparison signal that is the same as the second comparison signal is written to the specific address, and changes the second comparison signal to N (N is an integer of 2 or more)
An access control circuit arranged to output a signal permitting the system to select another circuit only after a time set by the timer circuit after execution.
【請求項2】特定アドレスに対して第2の比較信号と異
なったデータを書き込んだ場合データ発生回路が初期状
態に戻るように配された請求項1記載のアクセス制御回
路。
2. The access control circuit according to claim 1, wherein the data generation circuit is arranged so as to return to an initial state when data different from the second comparison signal is written to the specific address.
JP31766091A 1991-12-02 1991-12-02 Access control circuit Pending JPH05151090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31766091A JPH05151090A (en) 1991-12-02 1991-12-02 Access control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31766091A JPH05151090A (en) 1991-12-02 1991-12-02 Access control circuit

Publications (1)

Publication Number Publication Date
JPH05151090A true JPH05151090A (en) 1993-06-18

Family

ID=18090617

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31766091A Pending JPH05151090A (en) 1991-12-02 1991-12-02 Access control circuit

Country Status (1)

Country Link
JP (1) JPH05151090A (en)

Similar Documents

Publication Publication Date Title
US7778074B2 (en) System and method to control one time programmable memory
JP2597153B2 (en) Write protector
US5704039A (en) Mask programmable security system for a data processor and method therefor
US5056013A (en) In-circuit emulator
JPH02500938A (en) microcomputer
US20040266027A1 (en) Method and system for fast data access using a memory array
US20020146025A1 (en) Arbiter device for multi-port memory and semiconductor device
US5535376A (en) Data processor having a timer circuit for performing a buffered pulse width modulation function and method therefor
JPH08124380A (en) Semiconductor memory and accessing method for semiconductor memory
US7054121B2 (en) Protection circuit for preventing unauthorized access to the memory device of a processor
GB2254456A (en) Micro-controller unit
US6260132B1 (en) Method and apparatus for secure address re-mapping
JPH05151090A (en) Access control circuit
US5555559A (en) Microprocessor capable of ensuring flexible recovery time for I/O device by inserting idle states
JPS6074059A (en) Access control system for storage device
US7174435B2 (en) Memory control circuit, memory device, and microcomputer
JPS59229662A (en) Common memory control circuit
JPS6329859A (en) Memory protection circuit
JPS6022774B2 (en) Input/output terminal control method
VGA et al. functional block diagram
JPH04102147A (en) Access control circuit
JP2004185060A (en) Microcomputer
JPS63250753A (en) Memory access checking system
JP3216200B2 (en) Data memory write control circuit
JPH03276346A (en) Memory card