JPH04102147A - Access control circuit - Google Patents

Access control circuit

Info

Publication number
JPH04102147A
JPH04102147A JP2220770A JP22077090A JPH04102147A JP H04102147 A JPH04102147 A JP H04102147A JP 2220770 A JP2220770 A JP 2220770A JP 22077090 A JP22077090 A JP 22077090A JP H04102147 A JPH04102147 A JP H04102147A
Authority
JP
Japan
Prior art keywords
data
signal
circuit
address
coincidence detection
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
JP2220770A
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 JP2220770A priority Critical patent/JPH04102147A/en
Publication of JPH04102147A publication Critical patent/JPH04102147A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PURPOSE:To make decoding hard and to prevent a memory block from being destroyed by the bugging or running-away of a program by permitting the access of the memory block or the like only when plural decided procedures are used. CONSTITUTION:When the write signal of a data to a specified address is outputted to an address bus 30, an address decoder circuit 1 makes a select signal 10 active and the data to be written is inputted from a data bus 31 to a coincidence detection circuit 2 as a first comparing data and compared with a second comparing data 13 from a data generation circuit 3. When the first and second comparing data are coincident, the coincidence detection circuit 2 outputs a coincidence detection signal 11. When both the select signal 10 and the coincidence detection signal 11 are made active, the data generation circuit 3 changes the contents of the second comparing signal 13 and after repeating these contents, the data generation circuit 3 makes an access permitting signal 12 active so as to permit the access of connected circuits. Thus, decoding is made difficult and the memory block can be prevented from being destroyed by the bugging and running away of the program.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、コンピュータシステムにおけるメモリ、Il
oなどのアクセス制御回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a memory in a computer system.
This relates to access control circuits such as O.

従来の技術 従来のコンピュータシステムにおけるメモリ、Iloな
どのアクセス制御について以下に説明する。
2. Description of the Related Art Access control of memory, Ilo, etc. in a conventional computer system will be described below.

第6図および第7図は従来のアクセス制御方式を説明す
る回路構成図およびその要部の具体的な例を示す回路で
ある。第6図において、100は−致検出回路、101
は一致検出回路100により制御されるR3回路、4は
アドレスデコーダ回路、5はR8回路101出力とアド
レスデコーダ回路4出力の論理積をとるANDゲート、
6はANDゲート5出力によりアクティブとなるメモリ
ブロックである。30はアドレス信号や各素子のアクセ
スのための制御信号からなるアドレスバス、31はデー
タ信号からなるデータバスであり、一致検出回路100
 、アドレスデコーダ回路4とメモリブロック6のAD
D端はアドレスバス30に接続され、メモリブロック6
のDATA端はデータバス31に接続されている。
FIGS. 6 and 7 are circuit configuration diagrams illustrating a conventional access control system and a circuit showing a specific example of its essential parts. In FIG. 6, 100 is a match detection circuit, 101
is an R3 circuit controlled by the coincidence detection circuit 100, 4 is an address decoder circuit, 5 is an AND gate that takes the logical product of the output of the R8 circuit 101 and the output of the address decoder circuit 4,
Reference numeral 6 denotes a memory block which becomes active by the output of the AND gate 5. 30 is an address bus consisting of address signals and control signals for accessing each element, 31 is a data bus consisting of data signals, and the coincidence detection circuit 100
, AD of address decoder circuit 4 and memory block 6
The D end is connected to the address bus 30 and the memory block 6
The DATA end of is connected to the data bus 31.

ここで、アドレスデコーダ回路4はメモリブロック6を
選択する信号がアドレスバス30上に示されたときに、
選択信号14をハイレベル(以後Hと記す)にする、し
かし、選択信号14はANDゲート5によりR8回N 
101から出力される許可信号112と論理積がとられ
るため、メモリブロック6は許可信号112がHで、か
つ選択信号14がHのときのみANDゲート5から出力
される選択信号15によりアクティブとなるようにその
動作が制限される。
Here, when the signal for selecting the memory block 6 is shown on the address bus 30, the address decoder circuit 4
The selection signal 14 is set to high level (hereinafter referred to as H). However, the selection signal 14 is
The memory block 6 is activated by the selection signal 15 output from the AND gate 5 only when the permission signal 112 is H and the selection signal 14 is H. Its operation is restricted.

次に、−敷積出回fi100、R8回路101、信号1
10 、111 、112について、第7図の具体的な
回路例を用いて説明する。第7図において、121は4
人力のNANDゲート、122 、123は負入力のA
NDゲートで、以上により一致検出回路100が構成さ
れている。また124 、125は2人力のN。
Next, - loading and unloading circuit fi100, R8 circuit 101, signal 1
10, 111, and 112 will be explained using the specific circuit example shown in FIG. In Figure 7, 121 is 4
Manual NAND gate, 122 and 123 are negative input A
The coincidence detection circuit 100 is constituted by the ND gate as described above. Also, 124 and 125 are N for two people.

Rゲートで、以上によりR3回N101が構成されてい
る。
In the R gate, R3 times N101 is configured as described above.

以下にその動作について説明する。一致検出回路100
は、第7図に示すように、アドレスバス3GのうちA1
2からA15までの4本のアドレス信号をN’ANDゲ
ート121で論理積をとり、その結果とさらにIloの
書き込み信号であるl0W(同図では負論理)と論理積
を取って信号110を得ている。一方、NANDゲート
121の出力とIloの読みだし信号であるl0R(同
図では負論理)と論理積を取って信号111を得ている
。この場合、A12からA15までの信号がHで示され
るアドレスに対して、Iloの書き込みを行なうと、N
ANDゲート121の出力がロウレベル(以後りと記す
)、IOWがアクティブとなりし、よって信号110は
H1信号111はLとなり、さらにNORゲ−) 12
4の出力はし、一方NORゲート125の出力はHとな
り、よって許可信号112はHとなる。
The operation will be explained below. Coincidence detection circuit 100
As shown in FIG. 7, A1 of the address bus 3G
The four address signals from 2 to A15 are ANDed by the N'AND gate 121, and the result is ANDed with the Ilo write signal l0W (negative logic in the figure) to obtain the signal 110. ing. On the other hand, a signal 111 is obtained by logically multiplying the output of the NAND gate 121 and I0R (negative logic in the figure), which is the readout signal of Ilo. In this case, when Ilo is written to the address where the signals A12 to A15 are H, N
The output of the AND gate 121 becomes low level (hereinafter referred to as "IOW"), IOW becomes active, so the signal 110 becomes H1, the signal 111 becomes L, and the NOR gate) 12
On the other hand, the output of NOR gate 125 becomes H, so the permission signal 112 becomes H.

またこの信号許可112は、IOWがHに戻り、信号1
1GがLになっても、信号111がともにしてあれば、
Hの!lまで毅持される。これにより、ANDゲート5
が開き、メモリブロック6は選択信号14によりアクテ
ィブとなる。
Also, this signal permission 112 means that IOW returns to H and signal 1
Even if 1G becomes L, if signal 111 remains together,
H's! Resolutely maintained up to l. As a result, AND gate 5
is opened, and the memory block 6 is activated by the selection signal 14.

また逆に、A12からA15までの信号がHで示される
アドレスに対して、Iloの読みだしを行なうと、NA
NDゲート121 の出力がり、IORがアクティブと
なりし、よって信号11Gはり、信号111はHとなり
、さらにNORゲート125の出力はLl一方、NOR
ゲート124の出力はHとなり、よって許可信号112
はLどなる。またこの信号許可112は、IORがHに
戻り、信号111がLになっても、信号11Gがともに
してあれば、Lのままで維持される。これにより、AN
Dゲート5が閉じ、選択信号14がアクティブとなって
も選択信号15はアクティブにならないので、メモリブ
ロック6はアクティブとはならず、そのアクセスが制限
される。
Conversely, when Ilo is read from an address where signals A12 to A15 are H, NA
The output of the ND gate 121 becomes high, the IOR becomes active, the signal 11G becomes high, the signal 111 becomes H, and the output of the NOR gate 125 becomes Ll, while the NOR
The output of the gate 124 becomes H, so the enable signal 112
yelled L. Further, even if the IOR returns to H and the signal 111 becomes L, the signal permission 112 remains at L if the signal 11G is also set. This results in AN
Even if the D gate 5 is closed and the selection signal 14 becomes active, the selection signal 15 does not become active, so the memory block 6 does not become active and its access is restricted.

発明が解決しようとする課題 しかしながら上記のような構成では、信号110または
信号111がアクティブとなるようなアドレスに対して
読みだしまたは書き込みを実施するだけでメモリブロッ
ク6のアクセスに対する制限を掛けたりはずしたりでき
るため、コンピュータシステムなどで、その使用者に対
してメモリブロック6のアクセスに関して制限を設け、
かつその使用方法を秘密にしても解読されやすい、また
、メモリブロック6の内容をプログラムのバグ、暴走な
どによる破壊から防ぎにくい。
Problems to be Solved by the Invention However, in the above configuration, access to the memory block 6 cannot be restricted or removed simply by reading or writing to an address where the signal 110 or the signal 111 becomes active. Therefore, in a computer system, etc., restrictions are placed on access to the memory block 6 by the user.
Moreover, even if the usage method is kept secret, it is easy to be decoded, and it is also difficult to prevent the contents of the memory block 6 from being destroyed by program bugs, runaways, etc.

本発明は、上記課題に鑑み、メモリブロックなどのアク
セスに間して、複数の定まった手順を用いなければ許可
しない構成とし、コンピュータシステムの使用者に対し
て、前記定まった手順を秘密にした場合、その内容が単
純で無いためにわかりに<<、かつ解読されにくく、ま
た、同様にその内容が単純で無いために、前記メモリプ
ロ・ツクをプログラムのバグ、暴走などによる破壊から
防ぐことが可能となるアクセス制御回路を提供すること
を目的とするものて・ある。
In view of the above problems, the present invention has a configuration in which access to a memory block, etc. is not permitted unless a plurality of predetermined procedures are used, and the predetermined procedures are kept secret from the user of the computer system. In this case, since the contents are not simple, it is difficult to understand << and difficult to decode, and similarly, because the contents are not simple, it is necessary to prevent the memory program from being destroyed by program bugs, runaways, etc. The purpose of the present invention is to provide an access control circuit that enables the following.

課鯖を解決するための手段 上記課題を解決するために本発明のアクセス制御回路は
、アドレス信号と制御信号から成るアドレスバスに接続
されたアドレスデコーダ回路と、データ信号から成るデ
ータバスに接続されてこのデータバスの信号を第1の比
較データとする一致検出回路と、前記−数構出回路に対
して第2の比較データを発生するデータ発生回路とを備
え、特定アドレスに対し書き込みを行うことで前記アド
レスデコーダ回路より出力される選択信号と、前記−数
構出回路より出力されて第1および第2の比較データが
一致していることを示す信号を前記データ発生回路に入
力し、前記データ発生回路は、前記特定アドレスに対し
て第2の比較データと同一の第1の比較データが書き込
まれる毎に、第2の比較データを変化させ、それをN回
(Nは2以上の整数とする)実施後に、他の回路を前記
システムが選択することを許可する信号を出力するよう
に構成したものである。
Means for Solving the Problems In order to solve the above problems, the access control circuit of the present invention has an address decoder circuit connected to an address bus consisting of address signals and control signals, and an address decoder circuit connected to a data bus consisting of data signals. A coincidence detection circuit that uses the signal of the lever data bus as first comparison data, and a data generation circuit that generates second comparison data for the minus number output circuit, and writes to a specific address. inputting a selection signal outputted from the address decoder circuit and a signal outputted from the minus number decoding circuit indicating that the first and second comparison data match to the data generation circuit; The data generation circuit changes the second comparison data every time the first comparison data that is the same as the second comparison data is written to the specific address, and changes the second comparison data N times (N is 2 or more). (integer)) is configured to output a signal that allows the system to select another circuit.

さらに、前記特定アドレスに対して第2の比較データと
異なったデータを書き込むと、前記データ発生回路を初
期状態に戻すようにも構成したものである。
Furthermore, when data different from the second comparison data is written to the specific address, the data generating circuit is returned to the initial state.

作用 この構成によって、利用者は、メモリプロ・ツクなどの
アクセスに関して、複数の定まった手順を用いなければ
許可されない構成となり、コンピュータシステムの使用
者に対して、前記定まった手順を秘密にした場合、その
内容が単純で無いためにわかりに<<、解読されにくい
、また、同様にその内容が単純で無いために、前記メモ
リブロックをプログラムのバグ、暴走などによる破壊か
ら防ぐことが可能となる。
Effect: With this configuration, users are required to follow multiple predetermined procedures to access memory programs, etc., and if the predetermined procedures are kept secret from the users of the computer system, , since its contents are not simple, it is difficult to understand<<, and it is difficult to decode, and similarly, because its contents are not simple, it is possible to prevent the memory block from being destroyed by program bugs, runaways, etc. .

実施例 以下本発明の一実施例について図面を参照しながら説明
する。
EXAMPLE An example of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例のアクセス制御回路を示す回
路構成図である。第1図において、1はアドレスデコー
ダ回路、2は一致検出回路、3はデータ発生回路であり
、データ発生回路3はアドレスデコーダ回路1から出力
される選択信号10と一致検出回路2から出力される一
致検出信号11によって制御され、アクセスの許可信号
12と比較データ13を出力する。3Gはアドレス信号
と制御信号から成るアドレスバス、31はデータ信号か
らなるデータバスであり、アドレスバス30はアドレス
デコーダ回路1に接続され、データバス31は一致検出
回路2に接続されている。
FIG. 1 is a circuit diagram showing an access control circuit according to an embodiment of the present invention. In FIG. 1, 1 is an address decoder circuit, 2 is a coincidence detection circuit, and 3 is a data generation circuit. It is controlled by a coincidence detection signal 11 and outputs an access permission signal 12 and comparison data 13. 3G is an address bus consisting of address signals and control signals, and 31 is a data bus consisting of data signals. The address bus 30 is connected to the address decoder circuit 1, and the data bus 31 is connected to the coincidence detection circuit 2.

以下その動作について説明する。アドレスデコーダ回R
1はアドレスバス30に特定アドレスに対するデータの
書き込み信号が出たときに、選択信号10をアクティブ
にする。一方、書き込むデータはデータバス31より一
致検出回路2に第1の比較データとして入力され、デー
タ発生口83からの第2の比較データ13と比較される
。もし第1と第2の比較データが一致していると、−数
構出回路2は一致検出信号11を出力する。データ発生
回路3は選択信号10と一致検出信号11がともにアク
ティブとなった場合、第2の比較信号13の内容を変化
させる。この内容をN回(Nは2以上の整数)繰り返し
た後、データ発生回路3はアクセス許可信号12をアク
ティブと1.て、それにつながる回路のアクセスを許可
する。
The operation will be explained below. Address decoder times R
1 makes the selection signal 10 active when a data write signal for a specific address is output to the address bus 30. On the other hand, the data to be written is input to the coincidence detection circuit 2 from the data bus 31 as first comparison data, and is compared with the second comparison data 13 from the data generation port 83. If the first and second comparison data match, the minus number generating circuit 2 outputs a match detection signal 11. The data generation circuit 3 changes the content of the second comparison signal 13 when both the selection signal 10 and the coincidence detection signal 11 become active. After repeating this content N times (N is an integer of 2 or more), the data generation circuit 3 activates the access permission signal 12 and activates 1. and allow access to the circuits connected to it.

第2図は前記アクセス制御される対象物の一例としてメ
モリブロックを採用したときの構成図の例を示す、第2
図において、4はアドレスデコーダ回路、5はANDゲ
ート、6はメモリブロック、14、15は選択信号であ
る。ここで第1図と同一番号のものは、第1図と同一内
容であることを示す。
FIG. 2 shows an example of a configuration diagram when a memory block is adopted as an example of the object to be access controlled.
In the figure, 4 is an address decoder circuit, 5 is an AND gate, 6 is a memory block, and 14 and 15 are selection signals. Here, the same numbers as in FIG. 1 indicate the same contents as in FIG. 1.

以下に、第2図のメモリブロックの動作について説明す
る。アドレスバス30にメモリブロック6が割り付けら
れたアドレスが出力されると、アドレスデコーダ回路4
は選択信号14をアクティブにする。このとき、許可信
号12がアクティブなら、ANDゲート5は開かれ、選
択信号15もアクティブとなり、メモリブロック6はア
クセス可能な状態となる。もしこのとき、許可信号12
がアクティブでないなら、ANDゲート5は閉じられ、
選択信号14の状態に関係なく選択信号15は常にノン
アクティブとなり、メモリブロック6はアクセス状態と
はならない、ここで、メモリブロック6とは、読みだし
専用メモリー(ROM)や読みだし/書き込み可能メモ
リー(RAM)またはそれらの複合体を意味する。
The operation of the memory block shown in FIG. 2 will be explained below. When the address allocated to the memory block 6 is output to the address bus 30, the address decoder circuit 4
makes the selection signal 14 active. At this time, if the permission signal 12 is active, the AND gate 5 is opened, the selection signal 15 is also active, and the memory block 6 becomes accessible. In this case, permission signal 12
is not active, 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 an access state. Here, the memory block 6 refers to read-only memory (ROM) or read/write memory. (RAM) or a complex thereof.

第3図は第1図のアクセス制御回路の具体的な一実施例
を示す回路図である。第3図において、40はNAND
ゲート、41はインバータで、これらによりアドレスデ
コーダ回路1が構成されている。
FIG. 3 is a circuit diagram showing a specific embodiment of the access control circuit shown in FIG. 1. In Figure 3, 40 is NAND
The gate 41 is an inverter, and these constitute the address decoder circuit 1.

42は74LS85などのICで代表される大小比較器
で、これにより一致検出回路2が構成されている。
42 is a magnitude comparator typified by an IC such as 74LS85, which constitutes the coincidence detection circuit 2.

43は74L S 163などのICで代表される同期
式のカウンタ、44はANDゲートで、これらによりデ
ータ発生回路3が構成されている。第3図において、第
1UjAと同一番号のものは、同一内容であることを示
す。
43 is a synchronous counter represented by an IC such as 74L S 163, and 44 is an AND gate, which constitute the data generation circuit 3. In FIG. 3, the same number as the first UjA indicates the same content.

次に、第3図のアクセス制御回路の動作を説明する。イ
ンバータ41にはアドレスバス30の信号のうち、Il
oへの書き込み信号であるIOWが入力される。この信
号は負論理で、アクティブな場合はLとなる。また、イ
ンバータ41の出力はANDゲート40の入力となって
いて、前記内容によりIloへの書き込みが行なわれる
と、Hが出力される。ANDゲート40のA9からA1
5までの他の入力は、アドレスバス30からの信号が接
続されている。したがって本実施例の場合、A9からA
15までのアドレス信号がすべてHで、かつIloへの
書き込みが行なわれると、選択信号10はアクティブと
なる。ただし、この選択信号10は図より負論理であり
、アクティブであるということはLを示す。
Next, the operation of the access control circuit shown in FIG. 3 will be explained. Of the signals on the address bus 30, the inverter 41
IOW, which is a write signal to o, is input. This signal has negative logic and becomes L when active. Further, the output of the inverter 41 is an input to the AND gate 40, and when the above content is written to Ilo, H is output. A9 to A1 of AND gate 40
The other inputs up to 5 are connected to signals from the address bus 30. Therefore, in the case of this embodiment, from A9 to A
When all address signals up to 15 are at H and writing to Ilo is performed, selection signal 10 becomes active. However, this selection signal 10 has a negative logic as shown in the figure, and being active indicates L.

一致検出回路2を構成する比較器42の一方の入力には
、データバス31からDO,DI、D2゜D3の4ビツ
トの信号が入力され、他方の入力には、データ発生口N
3からの比較信号13が入力されている。ここで、前記
DOからD3の信号と比較信号13とが等しければ、比
較器42は両入方が一致しているため一致検出信号11
としてHを出力する。もし、一致していなければ一致検
出信号11はLどなる。
One input of the comparator 42 constituting the coincidence detection circuit 2 receives the 4-bit signals DO, DI, D2 and D3 from the data bus 31, and the other input receives the data generation port N.
A comparison signal 13 from No. 3 is input. Here, if the signal from DO to D3 and the comparison signal 13 are equal, both inputs of the comparator 42 match, so the match detection signal 11
Outputs H as . If they do not match, the match detection signal 11 goes low.

データ発生回路3では、選択信号1oが同期式カウンタ
43のタロツク入力に入っている。また、−数枚出信号
11は同期式カウンタ43のクリア端子に入力されてい
る。同期式カウンタ43の動作は前記クロック入力に入
力される信号がLからHに変化するときに行なわれる。
In the data generation circuit 3, the selection signal 1o is input to the tarock input of the synchronous counter 43. Further, the -number output signal 11 is input to the clear terminal of the synchronous counter 43. The synchronous counter 43 operates when the signal input to the clock input changes from L to H.

したがって、選択信号1゜がLからHに変化するとき、
すなわち選択信号1゜がアクティブからノンアクティブ
になるときに、同期式カウンタ43のクリア端子に入力
される一致検出信号11がH(データバス31のDOか
らD3の信号と、比較信号13が一致)であれば、同期
式カウンタ43はインクリメントされる。3!1に、−
数枚出信号11がL(データバス31のDoからD3の
信号と、比較信号13が一致していない)であれば、同
期式カウンタ43はクリアされる。
Therefore, when the selection signal 1° changes from L to H,
That is, when the selection signal 1° changes from active to non-active, the coincidence detection signal 11 input to the clear terminal of the synchronous counter 43 becomes H (signals from DO to D3 of the data bus 31 match the comparison signal 13). If so, the synchronous counter 43 is incremented. 3!1, -
If the several-sheet output signal 11 is L (signals from Do to D3 of the data bus 31 and the comparison signal 13 do not match), the synchronous counter 43 is cleared.

本実施例では、同期式カウンタ43の出力QA。In this embodiment, the output QA of the synchronous counter 43.

QBを比較データ13として使用し、第3図のようにQ
Aを比較器42の82に、QBを81に接続している。
Using QB as comparison data 13, Q
A is connected to 82 of the comparator 42, and QB is connected to 81.

また、アクセスの許可信号12はANDゲート44によ
り同期式カウンタ43のQA、QB比出力ともにHの場
合にアクティブ(H)となるようになっている、すなわ
ち、同期式カウンタ43がクリアされた状態から3回イ
ンクリメントされると、許可信号12がアクティブとな
る。
Furthermore, the access permission signal 12 is set to be active (H) by an AND gate 44 when both the QA and QB ratio outputs of the synchronous counter 43 are H, that is, the synchronous counter 43 is in a cleared state. When the number is incremented three times, the permission signal 12 becomes active.

次に、アドレス信号、データ信号、そして同期式カウン
タ43などの動きを第4図を用いて説明する。第4図の
アドレス信号のハツチング部はアドレスデコーダ回路1
がアクティブとなるアドレス信号になっていることを示
すものである。それと同時にデータの書き込みが行なわ
れると、すなわちIOWがアクティブ(L)になると、
選択信号10もアクティブ(L)となる、第4図におい
ては、3回の書き込みが行なわれていることを示す、−
方、同期式カウンタ43はQA、QBそれぞれがLとな
っていて、クリア状態から始まっていることを示す。
Next, the operations of the address signal, data signal, synchronous counter 43, etc. will be explained using FIG. The hatched part of the address signal in Fig. 4 is the address decoder circuit 1.
This indicates that the address signal is active. At the same time, when data is written, that is, when IOW becomes active (L),
The selection signal 10 also becomes active (L), and in FIG. 4, it shows that writing has been performed three times.
On the other hand, in the synchronous counter 43, QA and QB are each at L, indicating that the process has started from a clear state.

第1回目の書き込みデータは、DoからD3iですべて
Lであり、比較信号13とデータが一致し5ているので
、比較器42は一致検出信号11として第4図に示すよ
うにHを出力する。そのため、選択信号10の後縁部a
で、同期式カウンタ43はインクリメントする。
The first write data is all L from Do to D3i, and since the data matches the comparison signal 13 and is 5, the comparator 42 outputs H as the coincidence detection signal 11 as shown in FIG. . Therefore, the trailing edge a of the selection signal 10
Then, the synchronous counter 43 is incremented.

第2回目の書き込みでは、同期式カウンタ43のQAか
B5すなわち比較器42のB2が1(どなっているので
、DOからB3までの信号のうちB2のみをHにすると
、比較信号13とデータが一致するので、比較器42は
一致検出信号11として第4図に示すようにHを出力す
る。そのため、選択信号10の後縁部すで、同期式カウ
ンタ43はインクリメントする。
In the second write, QA or B5 of the synchronous counter 43, that is, B2 of the comparator 42, is 1 (so, if only B2 of the signals from DO to B3 is set to H, the comparison signal 13 and the data Since they match, the comparator 42 outputs H as the match detection signal 11 as shown in FIG. 4. Therefore, the synchronous counter 43 increments at the trailing edge of the selection signal 10.

同様に第3回目の書き込みでは、DOからB3までの信
号のうちDlのみHとし、一致信号1oの後縁部Cで、
同期式カウンタ43はインクリメントしている。ここで
、同期式カウンタ43のQA。
Similarly, in the third write, only Dl of the signals from DO to B3 is set to H, and at the trailing edge C of the match signal 1o,
The synchronous counter 43 is incrementing. Here, QA of the synchronous counter 43.

QB出力がともにHとなるため、アクセス許可信号12
が第4図に示すようにdにおいてアクティブ(H)にな
っている。
Since both QB outputs become H, access permission signal 12
is active (H) at point d as shown in FIG.

次に、第5図は第4図と興なり1、書き込みデータを誤
った場合を示す、第5図において、第2回目の書き込み
で、DoもHとしたため比較データ13と不一致となり
、第5図に示すように選択信号10の後縁部すで同期式
カウンタ43はクリアされている。
Next, FIG. 5 shows the case where the write data is incorrect. In FIG. As shown in the figure, the synchronous counter 43 has already been cleared at the trailing edge of the selection signal 10.

以上のように本実論例によれば、3回のある定められた
データを特定アドレスに書き込むことにより、アクセス
許可信号12をアクティブにすることができ、以後メモ
リブロック6などに対するアクセスが可能となる。また
、前記3回の書き込み途中で書き込みデータをw4−)
な場合などは、データ発生回路3が誤ったデータを書き
込んだ時点でクリアされ、アクセス許可信号12はノン
アクティブのtまとなる。
As described above, according to this practical example, by writing certain data to a specific address three times, the access permission signal 12 can be activated, and access to the memory block 6 etc. can be made thereafter. Become. Also, write data w4-) in the middle of the above three writes.
In such a case, the access permission signal 12 is cleared when the data generation circuit 3 writes erroneous data, and the access permission signal 12 becomes inactive.

また、−度アクチイブになったアクセス許可信号12は
、誤ったデータを前記特定アドレスに書き込むことによ
り、クリアすることもできる。
Furthermore, the access permission signal 12 that has become active can be cleared by writing erroneous data to the specific address.

発明の効果 以上のように本発明によれば、メモリブロックなどのア
クセスに関して、複数の定まった手順を用いなければ許
可しない構成とし、コンピュータシステムの使用者に対
して、前記定まった手順を秘密にした場合、その内容が
単純で無いためにわかりにくくできる。また、同様にそ
の内容が単純で無いために、前記メモリブロックをプロ
グラムのバグ、暴走などによる破壊から防ぐことが可能
となるアクセス制御回路を実現できる。
Effects of the Invention As described above, according to the present invention, access to a memory block, etc. is not permitted unless a plurality of predetermined procedures are used, and the predetermined procedures are kept secret from users of the computer system. If so, the content may be difficult to understand because it is not simple. Furthermore, since the contents are not simple, it is possible to realize an access control circuit that can prevent the memory block from being destroyed due to program bugs, runaways, or the like.

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

第15i1は本発明のアクセス制御回路の一実施例を示
す回路構成図、第2図はアクセスが制限されるメモリブ
ロックなどに対する回路構成図、第3図は同アクセス制
御回路の具体的な一実施例を示す回路構成図、第45!
1および第5図は同アクセス制御回路の動作を示すタイ
ミング図、第6図および第7図は従来のアクセス制御回
路を示す回路構成図およびその要部の具体的な例を示す
回#!図である。 1.4・・・アドレスデコーダ回路、2・・・−数構出
回路、3・・・データ発生回路、30・・・アドレスバ
ス、31・・・データバス、5 、44.122 、1
23・・・ANDゲート、6・・・メモリブロック、4
0.121・・・NANDゲート、41・・・インバー
タ、42・・・比較器、43・・・同期式カウンタ、1
24 、125−N ORゲート、10−・・選択信号
、11・・・−数枚出信号、12・・・許可信号、13
・・・比較データ、14.15・・・選択信号。 代理人   森  本  義  弘 第3 41 − NAND’r”−ト 4/ −4ンハ′−タ 42−比帳ま 43− 同期式カクンダ 44 4yvゲーL
15i1 is a circuit configuration diagram showing one embodiment of the access control circuit of the present invention, FIG. 2 is a circuit configuration diagram for a memory block whose access is restricted, and FIG. 3 is a specific implementation of the access control circuit. Circuit configuration diagram showing an example, No. 45!
1 and 5 are timing diagrams showing the operation of the access control circuit, and FIGS. 6 and 7 are circuit configuration diagrams showing the conventional access control circuit and a specific example of its essential parts. It is a diagram. 1.4...Address decoder circuit, 2...-number configuration circuit, 3...Data generation circuit, 30...Address bus, 31...Data bus, 5, 44.122, 1
23...AND gate, 6...memory block, 4
0.121...NAND gate, 41...Inverter, 42...Comparator, 43...Synchronous counter, 1
24, 125-N OR gate, 10--selection signal, 11--several output signal, 12--permission signal, 13
...Comparison data, 14.15...Selection signal. Agent Yoshihiro Morimoto 3rd 41 - NAND'r"-to 4/ -4nha'-ta 42-Hichoma 43- Synchronous type kakunda 44 4yv game L

Claims (1)

【特許請求の範囲】 1、アドレス信号と制御信号から成るアドレスバスと、
データ信号から成るデータバスを構成要素とするシステ
ムにおいて、前記アドレスバスに接続されたアドレスデ
コーダ回路と、前記データバスに接続されて、データバ
スの信号を第1の比較データとする一致検出回路と、前
記一致検出回路に対して第2の比較データを発生するデ
ータ発生回路とを備え、特定アドレスに対し書き込みを
行うことで前記アドレスデコーダ回路より出力される選
択信号と、前記一致検出回路より出力されて第1および
第2の比較データが一致していることを示す信号を前記
データ発生回路に入力し、前記データ発生回路は、前記
特定アドレスに対して第2の比較データと同一の第1の
比較データが書き込まれる毎に、第2の比較データを変
化させ、それをN回(Nは、2以上の整数とする)実施
後に、他の回路を前記システムが選択することを許可す
る信号を出力するように構成したアクセス制御回路。 2、特定アドレスに対して、第2の比較データと異なっ
たデータを書き込むと、データ発生回路は初期状態に戻
ることを特徴とする請求項1記載のアクセス制御回路。
[Claims] 1. An address bus consisting of address signals and control signals;
In a system having a data bus consisting of data signals as a component, an address decoder circuit connected to the address bus, and a coincidence detection circuit connected to the data bus and using the data bus signal as first comparison data. , a data generation circuit that generates second comparison data for the coincidence detection circuit, and a selection signal output from the address decoder circuit by writing to a specific address, and a data generation circuit output from the coincidence detection circuit. and inputs a signal indicating that the first and second comparison data match to the data generation circuit, and the data generation circuit generates the same first comparison data as the second comparison data for the specific address. A signal that changes the second comparison data every time the second comparison data is written, and after performing this N times (N is an integer of 2 or more), allows the system to select another circuit. An access control circuit configured to output. 2. The access control circuit according to claim 1, wherein when data different from the second comparison data is written to the specific address, the data generation circuit returns to an initial state.
JP2220770A 1990-08-21 1990-08-21 Access control circuit Pending JPH04102147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2220770A JPH04102147A (en) 1990-08-21 1990-08-21 Access control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2220770A JPH04102147A (en) 1990-08-21 1990-08-21 Access control circuit

Publications (1)

Publication Number Publication Date
JPH04102147A true JPH04102147A (en) 1992-04-03

Family

ID=16756289

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2220770A Pending JPH04102147A (en) 1990-08-21 1990-08-21 Access control circuit

Country Status (1)

Country Link
JP (1) JPH04102147A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009271623A (en) * 2008-05-01 2009-11-19 Mega Chips Corp Semiconductor storage device and computer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009271623A (en) * 2008-05-01 2009-11-19 Mega Chips Corp Semiconductor storage device and computer system

Similar Documents

Publication Publication Date Title
US5056013A (en) In-circuit emulator
US5361371A (en) Microprocessor with reset execution from an arbitrary address
US5210847A (en) Noncacheable address random access memory
JPH0414385B2 (en)
SU1541619A1 (en) Device for shaping address
US5535379A (en) Timer apparatus capable of writing identical data to a plurality of timers built in a microcomputer
JPH04102147A (en) Access control circuit
US4888685A (en) Data conflict prevention for processor with input/output device
JPS60181851A (en) Partial writing control system
US5708842A (en) Apparatus for changing coefficients utilized to perform a convolution operation having address generator which uses initial count number and up/down count inputs received from external
EP0256134A1 (en) Central processing unit
JPH11176174A (en) Writing circuit of non-volatile memory and non-volatile memory
JPS6010334B2 (en) Priority selection device for multiple series memory
JPS60211554A (en) Data processing unit
JPS59184943A (en) Information processor
JP3441944B2 (en) Sequential access type semiconductor memory device
JP2763655B2 (en) Semiconductor integrated circuit
KR0163726B1 (en) Multi-ram-break-condition set circuit using external memory
JPH0786922A (en) Counter circuit
JPS5932819B2 (en) address control device
JP4021590B2 (en) Floating point arithmetic unit
JPS61269288A (en) Storage element module
JPS6235693B2 (en)
JPS626341A (en) Information processor
JPH0895801A (en) Interruption requesting circuit and processing method for interruption request