JPH05250266A - Wrong memory write protecting device - Google Patents

Wrong memory write protecting device

Info

Publication number
JPH05250266A
JPH05250266A JP4048203A JP4820392A JPH05250266A JP H05250266 A JPH05250266 A JP H05250266A JP 4048203 A JP4048203 A JP 4048203A JP 4820392 A JP4820392 A JP 4820392A JP H05250266 A JPH05250266 A JP H05250266A
Authority
JP
Japan
Prior art keywords
write
signal
storage means
ram
data
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
JP4048203A
Other languages
Japanese (ja)
Inventor
Shinsaku Jinnai
晋作 陣内
Hiroki Katano
博喜 加田野
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 JP4048203A priority Critical patent/JPH05250266A/en
Publication of JPH05250266A publication Critical patent/JPH05250266A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent held data from being destroyed by wrong write into a RAM at a controller provided with a processor. CONSTITUTION:This device is provided with a control means 201, RAM 202 composed of (x)X(n) bits, RAM 203 composed of (x)X1 bits for storing write inhibit information to the RAM 202 while being arranged in the same address space as the RAM 202, register 204 to control read/write to each RAM and a chip select signal, and gate means to invalidate data access to each RAM and a write signal to a write inhibited address.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、読み出し書き込み可能
記憶装置内保持データが誤った書き込みアクセスによっ
て破壊されることから保護する必要のあるシステムにお
ける、メモリ誤書き込み保護装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory erroneous write protection device in a system in which it is necessary to protect data held in a readable / writable storage device from being destroyed by erroneous write access.

【0002】[0002]

【従来の技術】図3は、従来の読み出し書き込み可能記
憶装置(以下、RAMという)に対するメモリ誤書き込
み保護装置の構成例である。図中の101はマイクロプ
ロセッサ等で構成される制御部、102はRAMチップ
ごとに誤書き込み保護を設定するレジスタ、103〜1
06はRAM、107〜110は各RAMチップ対応に
ライト信号を出力するORゲート、111〜114はレ
ジスタ102内の各RAMチップ対応に誤書き込み保護
を設定するプロテクションビット、123,115,1
16,117はそれぞれ制御部101からのライト信
号,アドレスバス,データバス,選択信号バス、118
は誤書き込み保護を設定するレジスタ102に対する選
択信号、119〜122は各RAMチップに対する選択
信号、124〜127は誤書き込み保護制御信号、12
8〜131は各RAMチップへのライト信号を示す。
2. Description of the Related Art FIG. 3 shows an example of the structure of a memory erroneous write protection device for a conventional readable / writable storage device (hereinafter referred to as RAM). In the figure, 101 is a control unit including a microprocessor, 102 is a register for setting erroneous write protection for each RAM chip, and 103 to 1
Reference numeral 06 is a RAM, 107 to 110 are OR gates for outputting a write signal for each RAM chip, 111 to 114 are protection bits for setting erroneous write protection for each RAM chip in the register 102, 123, 115, 1
Reference numerals 16 and 117 denote a write signal from the control unit 101, an address bus, a data bus, a selection signal bus, and 118, respectively.
Is a selection signal for the register 102 for setting erroneous write protection, 119 to 122 are selection signals for each RAM chip, 124 to 127 are erroneous write protection control signals, 12
Reference numerals 8 to 131 denote write signals to each RAM chip.

【0003】誤書き込み保護は、制御部101の選択信
号118によってレジスタ102を選択し、データバス
116を介して、レジスタ102のプロテクションビッ
ト111〜114の任意のビットに“1”を書き込むこ
とによって行なう。通常、各RAMチップ103〜10
6は、ライト信号128〜131の立ち上がりで、デー
タバス116上のデータをアドレスバス115で指示さ
れたエリアに保持する。一方、プロテクションビット1
11〜114に“1”が書き込まれた場合、誤書き込み
保護制御信号124〜127が“H”レベルとなり、O
Rゲート107〜110の出力である各RAMチップ1
03〜106へのライト信号128〜131は、制御部
101からのライト信号123の状態に関係なく“H”
レベルが維持され、RAMチップへの書き込みが不可能
な状態となる。したがって、誤書き込み保護を設定され
たRAMチップへ制御部101から誤ってライトアクセ
スがなされた場合でも、保持データは保護される。
The erroneous write protection is performed by selecting the register 102 by the selection signal 118 of the control unit 101 and writing "1" to any bit of the protection bits 111 to 114 of the register 102 via the data bus 116. .. Normally, each RAM chip 103-10
6 holds the data on the data bus 116 in the area designated by the address bus 115 at the rising edge of the write signals 128 to 131. On the other hand, protection bit 1
When "1" is written in 11 to 114, the erroneous write protection control signals 124 to 127 become "H" level and O
Each RAM chip 1 which is the output of the R gates 107 to 110
The write signals 128 to 131 to 03 to 106 are "H" regardless of the state of the write signal 123 from the control unit 101.
The level is maintained, and writing to the RAM chip becomes impossible. Therefore, even if the control unit 101 erroneously performs write access to the RAM chip for which the erroneous write protection is set, the held data is protected.

【0004】[0004]

【発明が解決しようとする課題】上記のような従来の誤
書き込み保護回路の構成では、誤書き込み保護範囲はR
AMチップ対応となるため、誤書き込み設定をする範囲
が小さい場合でも1つのRAMチップのサイズ分の記憶
エリアを誤書き込み保護せざるを得ず、そのRAMチッ
プの残ったエリアを作業エリアとして使用できないた
め、RAMの使用上の無駄、および使用方法の制限が発
生していた。また、プロテクト範囲がRAMチップサイ
ズを単位にブロック分けされてしまうため、一部の保持
データを変更する場合でも、変更希望アドレスを含むR
AMチップ全体の誤書き込み保護を解除せざるを得ず、
保持データの信頼性を低下させていた。
In the configuration of the conventional erroneous write protection circuit as described above, the erroneous write protection range is R.
Since it is compatible with the AM chip, even if the range in which erroneous writing is set is small, the storage area for the size of one RAM chip must be protected by erroneous writing, and the remaining area of that RAM chip cannot be used as a work area. Therefore, the RAM is wasted and the usage is limited. Further, since the protection range is divided into blocks based on the RAM chip size, even if a part of the held data is changed, the R including the change desired address is included.
There is no choice but to cancel the erroneous write protection of the entire AM chip,
It reduced the reliability of the retained data.

【0005】本発明は上記課題を解決するもので、使用
効率が高く、誤書き込み保護による使用制限が発生しな
いRAMエリアを持つことが可能で、かつ、保持データ
の信頼性の高いメモリ誤書き込み保護装置を提供するこ
とを目的とする。
The present invention solves the above-mentioned problems. It is possible to have a RAM area which is highly efficient in use and has no usage restriction due to erroneous write protection, and which is highly reliable in holding data. The purpose is to provide a device.

【0006】[0006]

【課題を解決するための手段】本発明は上記目的を達成
するために、本来のデータ保持領域であるx×nビット
構成の第1の記憶手段に加え、第1の記憶手段と同一ア
ドレス空間に配置され、第1の記憶手段への書き込み許
可/禁止情報を記憶するx×1ビット構成の第2の記憶
手段、制御部によって設定可能な1個のレジスタと、該
レジスタの設定値と制御部からのリード信号,ライト信
号、および第1の記憶手段への選択信号の組み合わせに
よって、制御部の第1の記憶手段、および第2の記憶手
段へのアクセス状態を制御するゲート手段と、制御部、
第1の記憶手段、および第2の記憶手段からの出力デー
タの衝突を回避するためのトライステートゲート手段
と、第1の記憶手段の書き込み禁止アドレスへの書き込
み信号を無効にするゲート手段を備えた構成を有する。
In order to achieve the above object, the present invention, in addition to the first storage means having an x.times.n bit structure which is an original data holding area, has the same address space as the first storage means. Second storage means of x × 1 bit configuration for storing write permission / prohibition information to the first storage means, one register that can be set by the control unit, and the set value and control of the register. A gate means for controlling an access state to the first storage means and the second storage means of the control section by a combination of a read signal, a write signal from the control section, and a selection signal to the first storage section; Department,
Tristate gate means for avoiding collision of output data from the first storage means and the second storage means, and gate means for invalidating the write signal to the write-inhibited address of the first storage means It has a different configuration.

【0007】[0007]

【作用】上記構成において、RAMに対する誤書き込み
保護をワード単位で設定可能なため、任意のサイズで、
必要アドレスのみを、ブロック数に制限無く、誤書き込
み保護エリアと設定でき、書き込み許可エリアとして使
用できないRAMエリアを皆無にできる。また、誤書き
込み保護エリア内の保持データの書き換えの必要性が発
生した場合、必要アドレスのみを誤書き込み保護から解
除できるので、従来例のようなRAMチップ単位での誤
書き込み保護エリア解除による保護データの信頼性低下
を回避することができる。加えて、被書き込み保護アド
レスと書き込み保護データの保持アドレスが完全に一致
しているので、管理が容易で、かつ、制御部によるその
書き込み保護データ確認が容易となる。
In the above structure, since erroneous write protection for the RAM can be set in word units, it is possible to
Only the necessary address can be set as the erroneous write protection area without limiting the number of blocks, and the RAM area that cannot be used as the write enable area can be eliminated. Further, when it is necessary to rewrite the held data in the erroneous write protection area, only the necessary address can be released from the erroneous write protection. It is possible to avoid a decrease in reliability. In addition, since the write protected address and the held address of the write protected data are completely the same, management is easy and the write protection data can be easily confirmed by the control unit.

【0008】[0008]

【実施例】以下、図1を用いて本発明におけるメモリ誤
書き込み保護装置の一実施例について説明する。図中の
201はマイクロプロセッサ等で構成される制御部、2
02はx×nビット構成RAM(以降、RAM202と
いう)、203はRAM202と同一アドレス空間に配
置されているx×1ビット構成RAM(以降、RAM2
03という)204はレジスタ、205はインバータ、
206〜209,211,212,236は2入力OR
ゲート、210は2入力ANDゲート、213,214
はトライステートゲート、215はラッチ回路、21
8,219,220,221はそれぞれデータバス,ア
ドレスバス,データバス最下位ビット信号,誤書き込み
保護制御信号、222はクロック信号、223,22
8,229,235はそれぞれ1次ライト信号,2次ラ
イトA信号,2次ライトB信号、3次ライトA信号、2
24,230,231,232はそれぞれ1次リード信
号,2次リードA信号,2次リードB信号,3次リード
B信号、225,234はそれぞれ1次選択信号,2次
選択信号、226,227はそれぞれレジスタ信号,反
転レジスタ信号、233はラッチ回路215のラッチデ
ータ、237はラッチクロック信号、238はレジスタ
選択信号を表す。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the memory erroneous write protection device according to the present invention will be described below with reference to FIG. Reference numeral 201 in the figure denotes a control unit composed of a microprocessor, 2
Reference numeral 02 is an xxn bit configuration RAM (hereinafter referred to as RAM 202), 203 is an xx 1 bit configuration RAM (hereinafter referred to as RAM 2) arranged in the same address space as the RAM 202.
03) 204 is a register, 205 is an inverter,
206-209, 211, 212, and 236 are two-input OR
Gate, 210 is a 2-input AND gate, 213, 214
Is a tri-state gate, 215 is a latch circuit, 21
8, 219, 220 and 221 are a data bus, an address bus, a data bus least significant bit signal, an erroneous write protection control signal 222, and a clock signal 223 and 22, respectively.
Reference numerals 8, 229 and 235 denote a primary write signal, a secondary write A signal, a secondary write B signal, a tertiary write A signal, and 2 respectively.
24, 230, 231, 232 are primary read signals, secondary read A signals, secondary read B signals, tertiary read B signals, and 225, 234 are primary selection signals, secondary selection signals, 226, 227, respectively. Indicates a register signal, an inverted register signal, 233 indicates latch data of the latch circuit 215, 237 indicates a latch clock signal, and 238 indicates a register selection signal.

【0009】RAM202、およびRAM203はリー
ド信号,ライト信号、および選択信号が、すべて“L”
レベルでアクティブ状態となる。RAM書き込み動作
時、選択信号が“L”レベルのとき、ライト信号の立ち
上がりでデータバス218上、および誤書き込み保護制
御信号221上のデータがアドレスバス219で指示さ
れたエリアにそれぞれ保持される。また、アドレスバス
219で指示されたエリアに保持されているRAM中の
データは、選択信号とリード信号の双方が“L”レベル
の期間に、データバス218と誤書き込み保護制御信号
221上へそれぞれ出力される。レジスタ204は、レ
ジスタ選択信号238が“L”レベルの期間の1次ライ
ト信号223の立ち上がりで、データバス最下位ビット
信号220の状態を取り込み、レジスタ信号226とし
て出力する。制御部201は、RAM202、およびR
AM203へのアクセスを制御するために、レジスタ2
04に、“H”レベル、または“L”レベルを設定す
る。
In the RAM 202 and RAM 203, the read signal, the write signal, and the selection signal are all "L".
It becomes active at the level. In the RAM write operation, when the selection signal is at "L" level, the data on the data bus 218 and the error write protection control signal 221 are held in the areas designated by the address bus 219 at the rising edge of the write signal. Further, the data in the RAM held in the area designated by the address bus 219 is transferred to the data bus 218 and the erroneous write protection control signal 221 while the selection signal and the read signal are both at the “L” level. Is output. The register 204 captures the state of the data bus least significant bit signal 220 at the rising of the primary write signal 223 while the register selection signal 238 is at “L” level, and outputs it as the register signal 226. The control unit 201 includes a RAM 202 and R
Register 2 to control access to the AM 203
The "H" level or the "L" level is set to 04.

【0010】まず、RAM202へのライトアクセスに
ついて説明する。この場合、図2の状態1に示すよう
に、制御部201は、レジスタ204を“L”レベルに
設定しておく。また、制御部201は、“L”レベルの
1次選択信号225、および1次ライト信号223を出
力し、1次リード信号224は“H”レベルに保持す
る。1次ライト信号223とレジスタ信号226が入力
される。2入力ORゲート206は、“L”レベルの2
次ライトA信号228を出力し、2本ある入力端子のう
ちいずれかの1入力、または、2入力の双方が“H”レ
ベルとなる。2入力のORゲート207,208,20
9はすべて、“H”レベルの2次ライトB信号229、
2次リードA信号230、および2次リードB信号23
1をそれぞれ出力する。また、“L”レベルの1次選択
信号225が直接選択信号入力端子に入力されるRAM
203と、1次選択信号225と“L”レベルのレジス
タ信号226が入力される2入力ORゲート211の出
力信号である2次選択信号234が入力されるRAM2
02の両RAMともにアクティブ状態となる。“L”レ
ベルの2次ライトA信号228が2入力ANDゲート2
10に入力されることによって、その出力である3次リ
ードB信号232は“L”レベルとなり、3次リードB
信号232がリード信号入力端子に入力されているRA
M203は、リードアクセス状態となる。このため、R
AM203からアドレスバス219で指示されたエリア
の保持データが誤書き込み保護制御信号221として出
力される。該誤書き込み保護制御信号221は、不安定
状態をなくすため、初期状態が“H”レベルのラッチ回
路215に制御部201からのクロック信号222と2
次ライトA信号の228の2入力ORゲート236の出
力237をラッチクローク信号として、ラッチされ、ラ
ッチデータ233として出力される。そして、ラッチデ
ータ233と2次ライトA信号228が入力された2入
力ORゲート212の出力である、3次ライトA信号2
35が、RAM202のライト信号端子に入力される。
ここでRAM202は、前述のように“L”レベルの2
次選択信号234が入力され、アクティブ状態にあるの
で、3次ライトA信号235が“L”レベルとなれば、
RAM202はライトアクセス状態となる。さて、2次
ライトA信号228は“L”レベルなので、ラッチデー
タ233が“L”レベルのときにのみ有効な“L”レベ
ルの3次ライトA信号235が出力され、RAM202
はライトアクセス状態となる。しかし、ラッチデータ2
33が“H”レベルのときは、3次ライトA信号235
は否有効状態の“H”レベルを維持するため、たとえ、
制御部201が、RAM202に対してライトアクセス
しても、そのアクセスは無効となる。すなわち、制御部
201からRAM202へライトアクセスがなされた場
合、RAM202への書き込みアドレスと全く同一のア
ドレスに保持されたRAM203内の書き込み許可/禁
止情報が読み出され、該情報が“L”レベルのとき書き
込み許可状態で、“H”レベルのとき書き込み禁止状
態、換言すれば、誤書き込み保護状態となる。ここで、
RAM203から出力された誤書き込み保護制御信号2
21はトタイステートゲート213,214を介してデ
ータバス218の最下位ビットに接続されており、制御
部201からの1次ライト信号223が“L”レベルか
つ、レジスタ204の設定値が“L”レベルとなるこの
場合は、2次ライトB信号229、および2次リードB
信号231が“H”レベルになり、トライステートゲー
ト213,214の出力はハイインピーダンス状態とな
り、制御部201からRAM202へ出力されたデータ
バス218上のデータと誤書き込み保護制御信号との衝
突は回避される。
First, the write access to the RAM 202 will be described. In this case, as shown in state 1 of FIG. 2, the control unit 201 sets the register 204 to the “L” level. Further, the control unit 201 outputs the “L” level primary selection signal 225 and the primary write signal 223, and holds the primary read signal 224 at the “H” level. The primary write signal 223 and the register signal 226 are input. The 2-input OR gate 206 is a low-level 2 gate.
The next write A signal 228 is output, and one of the two input terminals or both of the two inputs become the “H” level. Two-input OR gates 207, 208, 20
9 are all "H" level secondary write B signals 229,
Secondary read A signal 230 and secondary read B signal 23
1 is output respectively. Also, the RAM in which the "L" level primary selection signal 225 is directly input to the selection signal input terminal
RAM 2 to which the secondary selection signal 234, which is the output signal of the 2-input OR gate 211, to which the 203, the primary selection signal 225 and the "L" level register signal 226 are input
Both RAM No. 02 are active. The “L” level secondary write A signal 228 receives the 2-input AND gate 2
By being input to 10, the output of the tertiary read B signal 232 becomes “L” level, and the tertiary read B signal 232 becomes
RA in which the signal 232 is input to the read signal input terminal
M203 is in a read access state. Therefore, R
The data held in the area designated by the address bus 219 is output from the AM 203 as an erroneous write protection control signal 221. The erroneous write protection control signal 221 is supplied to the latch circuit 215 whose initial state is “H” level in order to eliminate the unstable state.
The output 237 of the 2-input OR gate 236 of the next write A signal 228 is latched as a latch cloak signal and output as latch data 233. Then, the tertiary write A signal 2 which is the output of the 2-input OR gate 212 to which the latch data 233 and the secondary write A signal 228 are input.
35 is input to the write signal terminal of the RAM 202.
Here, the RAM 202 has the "L" level 2 as described above.
Since the next selection signal 234 is input and is in an active state, if the tertiary write A signal 235 becomes "L" level,
The RAM 202 is in a write access state. Since the secondary write A signal 228 is at the “L” level, the effective “L” level tertiary write A signal 235 is output only when the latch data 233 is at the “L” level.
Enters the write access state. However, the latch data 2
When 33 is at "H" level, the tertiary write A signal 235
To maintain the "H" level in the non-valid state,
Even if the control unit 201 makes a write access to the RAM 202, the access is invalid. That is, when the control unit 201 makes a write access to the RAM 202, the write permission / prohibition information in the RAM 203, which is held at the same address as the write address to the RAM 202, is read and the information is at the “L” level. At this time, the write-enabled state, and at the “H” level, the write-protected state, in other words, the erroneous write-protected state. here,
Wrong write protection control signal 2 output from RAM 203
Reference numeral 21 is connected to the least significant bit of the data bus 218 via the totie state gates 213 and 214, the primary write signal 223 from the control unit 201 is at "L" level, and the set value of the register 204 is "L". In this case, the secondary write B signal 229 and the secondary read B signal
The signal 231 becomes the “H” level, the outputs of the tri-state gates 213 and 214 become the high impedance state, and the collision between the data on the data bus 218 output from the control unit 201 to the RAM 202 and the erroneous write protection control signal is avoided. To be done.

【0011】次に、RAM203へのライトアクセスに
ついて説明する。この場合、図2の状態2に示すよう
に、制御部201は、レジスタ204を“H”レベルに
設定しておく。また、前述のRAM202へのライトア
クセス同様、制御部201は、禁止状態“L”レベルの
1次選択信号225、および1次ライト信号223を出
力し、1次リード信号224は“H”レベルに保持す
る。レジスタ信号226はインバータ205を介し
“L”レベルの反転レジスタ信号227となり、該反転
レジスタ信号227と1次ライト信号223が入力され
る2入力ORゲート207は、“L”レベルの2次ライ
トB信号229を出力し、2本ある入力端子のうちいず
れかの1入力、または、2入力双方が“H”レベルとな
る、2入力ORゲート206,208,209はすべ
て、“H”レベルの2次ライトA信号228、2次リー
ドA信号230、および2次リードB信号231をそれ
ぞれ出力する。また、“L”レベルの1次選択信号22
5が直接選択信号入力端子に入力されるRAM203は
アクティブ状態となるが、1次選択信号225と“H”
レベルのレジスタ信号226が入力される2入力ORゲ
ート211の出力信号である2次選択信号234が入力
されるRAM202は非アクティブ状態となる。“L”
レベルの2次ライトB信号229をRAM203のライ
ト信号とすることによって、RAM203はライトアク
セス状態となり、かつ、同じ2次ライトB信号229を
トライステートゲート213へのイネーブル信号とする
ことによって、制御部201が出力したデータバス21
8上の最下位ビット信号220を、アドレスバス219
で指示されたエリアに誤書き込み保護制御データとして
保持することができる。
Next, the write access to the RAM 203 will be described. In this case, as shown in the state 2 of FIG. 2, the control unit 201 sets the register 204 to the “H” level. Further, similarly to the write access to the RAM 202 described above, the control unit 201 outputs the primary selection signal 225 and the primary write signal 223 of the prohibited state “L” level, and the primary read signal 224 is set to the “H” level. Hold. The register signal 226 becomes an “L” level inverted register signal 227 via the inverter 205, and the two-input OR gate 207 to which the inverted register signal 227 and the primary write signal 223 are input is an “L” level secondary write B. The 2-input OR gates 206, 208, and 209, which output the signal 229 and have either one input or two inputs of the two input terminals at the “H” level, are all at the “H” level of the 2 level. Next write A signal 228, secondary read A signal 230, and secondary read B signal 231 are output respectively. Further, the "L" level primary selection signal 22
5 is directly input to the selection signal input terminal, the RAM 203 becomes active, but the primary selection signal 225 and "H"
The RAM 202 to which the secondary selection signal 234, which is the output signal of the 2-input OR gate 211 to which the level register signal 226 is input, is inactivated. "L"
By setting the secondary write B signal 229 of the level as the write signal of the RAM 203, the RAM 203 enters the write access state, and the same secondary write B signal 229 is used as the enable signal to the tri-state gate 213, whereby the control unit Data bus 21 output by 201
8 least significant bit signal 220 on the address bus 219
It can be held as erroneous write protection control data in the area designated by.

【0012】次に、RAM202へのリードアクセスに
ついて説明する。この場合、図2の状態3に示すよう
に、制御部201は、レジスタ204を“L”レベルに
設定しておく。また、制御部201は、“L”レベルの
1次選択信号225、および1次リード信号224を出
力し、1次ライト信号223は“H”レベルに保持す
る。1次リード信号224とレジスタ信号226が入力
される、2入力ORゲート208は“L”レベルの2次
リードA信号230を出力し、2本ある入力端子のうち
いずれかの1入力、または、2入力双方が“H”レベル
となる、2入力ORゲート206,207,209はす
べて、“H”レベルの2次ライトA信号228、2次ラ
イトB信号229、および2次リードB信号231をそ
れぞれ出力する。また、“L”レベルの1次選択信号2
25が直接選択信号入力端子に入力されるRAM203
と、1次選択信号225と“L”レベルのレジスタ信号
226が入力される2入力ORゲート211の出力信号
である2次選択信号234が入力されるRAM202の
両RAMともにアクティブ状態となる。“L”レベルの
2次リードA信号230がリード信号入力端子に入力さ
れるRAM202は、リードアクセス状態となり、アド
レスバス219で指示されたアドレスのRAM202内
保持データをデータバス218上に出力する。ここで、
トライステートゲート213,214へのイネーブル信
号でもある2次ライトB信号229、および2次リード
B信号231は、双方ともに“H”レベルなので、トラ
イステートゲート213,214はともに非イネーブル
状態となり、データバス218とRAM203との接続
は遮断されており、RAM203の出力データは、デー
タバス218へ影響を与えない。
Next, read access to the RAM 202 will be described. In this case, as shown in the state 3 of FIG. 2, the control unit 201 sets the register 204 to the “L” level. Further, the control unit 201 outputs the “L” level primary selection signal 225 and the primary read signal 224, and holds the primary write signal 223 at the “H” level. The 2-input OR gate 208, to which the primary read signal 224 and the register signal 226 are input, outputs the “L” level secondary read A signal 230 and outputs one of the two input terminals, or All of the 2-input OR gates 206, 207, 209 whose both two inputs are at the “H” level output the “H” level secondary write A signal 228, the secondary write B signal 229, and the secondary read B signal 231. Output each. Also, the "L" level primary selection signal 2
RAM 203 in which 25 is directly input to the selection signal input terminal
Then, both RAMs of the RAM 202 to which the secondary selection signal 234, which is the output signal of the 2-input OR gate 211 to which the primary selection signal 225 and the "L" level register signal 226 are input, are activated. The RAM 202 to which the “L” level secondary read A signal 230 is input to the read signal input terminal enters the read access state and outputs the data held in the RAM 202 at the address designated by the address bus 219 onto the data bus 218. here,
Since both the secondary write B signal 229 and the secondary read B signal 231 which are also enable signals to the tri-state gates 213 and 214 are “H” level, both the tri-state gates 213 and 214 are in the non-enabled state, The connection between the bus 218 and the RAM 203 is cut off, and the output data of the RAM 203 does not affect the data bus 218.

【0013】次にRAM203へのリードアクセスにつ
いて説明する。この場合、図2の状態4に示すように、
制御部201は、レジスタ204を“H”レベルに設定
しておく。また、制御部201は、RAM202へのリ
ードアクセスの場合と同様に、“L”レベルの1次選択
信号225、および1次リード信号224を出力し、1
次ライト信号223は“H”レベルに保持する。レジス
タ信号226はインバータ205を介し“L”レベルの
反転レジスタ信号227となり、該反転レジスタ信号2
27と1次リード信号224が入力される2入力ORゲ
ート209は、“L”レベルの2次リードB信号231
を出力し、2本の入力端子のうちいずれかの1入力、ま
たは、2入力双方が“H”レベルとなる、2入力ORゲ
ート206,207、および208はすべて、“H”レ
ベルの2次ライトA信号228、2次ライトB信号22
9、および2次リードA信号230をそれぞれ出力す
る。また、“L”レベルの1次選択信号225が直接選
択信号入力端子に入力されるRAM203はアクティブ
状態となるが、1次選択信号225と“H”レベルのレ
ジスタ信号226が入力される2入力ORゲート211
の出力信号である2次選択信号234が入力されるRA
M202は非アクティブ状態となる。“L”レベルの2
次リードB信号231が2入力ANDゲート210に入
力されることによって、その出力である3次リードB信
号232は“L”レベルとなり、該3次リードB信号2
32がリード信号入力端子に入力されているRAM20
3は、リードアクセス状態となる。このため、RAM2
03から、アドレスバス219で指示されたアドレスの
保持データが誤書き込み保護制御信号221として出力
される。このときトライステートゲート214は“L”
レベルの2次リードB信号231をイネーブル入力とす
ることによってイネーブル状態となっており、RAM2
03から出力された誤書き込み保護制御信号221は、
トライステートゲート214を介し、データバス218
上のデータバス最下位ビット信号220として、制御部
201に読み込まれる。このとき、RAM202は前述
のように非アクティブ状態であるので、データ衝突は回
避できる。
Next, the read access to the RAM 203 will be described. In this case, as shown in state 4 of FIG.
The control unit 201 sets the register 204 to the “H” level. Further, the control unit 201 outputs the “L” level primary selection signal 225 and the primary read signal 224, as in the case of the read access to the RAM 202, and
The next write signal 223 is held at "H" level. The register signal 226 becomes the “L” level inversion register signal 227 via the inverter 205, and the inversion register signal 2
The 2-input OR gate 209 to which 27 and the primary read signal 224 are input is the secondary read B signal 231 of “L” level.
Is output, and one of the two input terminals, or both of the two inputs are set to the “H” level, the two-input OR gates 206, 207, and 208 are all of the “H” level secondary. Write A signal 228, secondary write B signal 22
9 and secondary read A signal 230 are output respectively. Further, the RAM 203 to which the "L" level primary selection signal 225 is directly input to the selection signal input terminal is in an active state, but the primary selection signal 225 and the "H" level register signal 226 are input to two inputs. OR gate 211
RA to which the secondary selection signal 234 which is the output signal of
M202 becomes inactive. "L" level 2
By inputting the next read B signal 231 to the 2-input AND gate 210, the output of the third read B signal 232 becomes “L” level, and the third read B signal 2
RAM 20 in which 32 is input to the read signal input terminal
3 is in a read access state. Therefore, RAM2
From 03, the data held at the address designated by the address bus 219 is output as the erroneous write protection control signal 221. At this time, the tri-state gate 214 is "L"
When the secondary read B signal 231 of the level is set as the enable input, it is in the enable state.
The erroneous write protection control signal 221 output from
Data bus 218 through tristate gate 214
The data bus least significant bit signal 220 is read by the control unit 201. At this time, since the RAM 202 is in the inactive state as described above, the data collision can be avoided.

【0014】このように本実施例によるとRAM1と、
RAM1への書き込み禁止情報を記憶するRAM2と、
RAM1,2を制御するレジスタと、RAM1,2への
ゲート手段を備えているので、RAMへの誤書き込みに
よって保持データが破壊されるのを防止する。
As described above, according to this embodiment, the RAM 1 and
RAM2 for storing write-protection information to RAM1,
Since the registers for controlling the RAMs 1 and 2 and the gate means for the RAMs 1 and 2 are provided, it is possible to prevent the held data from being destroyed by erroneous writing to the RAMs.

【0015】[0015]

【発明の効果】以上の実施例から明らかなように本発明
のメモリ誤書き込み保護装置によれば、プロセッサから
のライト信号,リード信号,選択信号、およびレジスタ
への設定値の組み合わせによって、データメモリの誤書
き込み保護エリアをワード単位で自由に設定/解除でき
るので、データメモリ内の必要アドレスのみを、誤書き
込み保護エリアに設定でき、書き込み許可エリアとして
使用できないRAMエリアを皆無にできるので、RAM
の使用効率を向上させることができる利点があり、一時
的に、誤書き込み保護を解除し、保持内容を変更する場
合等でも、変更を必要とするアドレスのみを誤書き込み
保護エリアから解除できるので、従来例のようなRAM
チップ単位での誤書き込み保護エリア解除による保護デ
ータの信頼性低下を回避することができる利点がある。
また、データメモリのデータ幅を拡張することなく、書
き込み許可/禁止情報を、書き込み/禁止情報メモリに
保持可能なため、ハードウェアに対する負担が軽く構成
できる利点がある。また、データメモリのアドレスと書
き込み/禁止情報メモリのアドレスが完全に一致してい
るので、管理が容易な利点がある。
As is apparent from the above embodiments, according to the memory erroneous write protection device of the present invention, the data memory can be obtained by combining the write signal from the processor, the read signal, the selection signal, and the set value to the register. Since the erroneous write protection area of can be freely set / released in word units, only the necessary address in the data memory can be set as the erroneous write protection area, and the RAM area that cannot be used as the write permission area can be eliminated.
There is an advantage that you can improve the usage efficiency of, and even if you temporarily release the erroneous write protection and change the held content, you can release only the address that needs to be changed from the erroneous write protection area. RAM like the conventional example
There is an advantage that it is possible to avoid a decrease in the reliability of the protection data due to the release of the erroneous write protection area on a chip basis.
Further, since the write enable / disable information can be held in the write / disable information memory without expanding the data width of the data memory, there is an advantage that the load on the hardware can be lightened. Further, since the address of the data memory and the address of the write / prohibition information memory are completely the same, there is an advantage that management is easy.

【0016】なお、メモリ誤書き込み保護用のプロテク
ションビット1ビットに対し、複数ワードのメモリ誤書
き込み保護範囲を割り付けることによって、ブロック単
位でのメモリ誤書き込み保護が可能であるということは
言うまでもない。
It is needless to say that the memory erroneous write protection can be performed in block units by allocating a memory erroneous write protection range of a plurality of words to one protection bit for memory erroneous write protection.

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

【図1】本発明の実施例におけるメモリ誤書き込み保護
装置の構成図
FIG. 1 is a configuration diagram of a memory erroneous write protection device according to an embodiment of the present invention.

【図2】図2内のRAM202,203の入力信号条件
を説明する補足図
FIG. 2 is a supplementary diagram explaining input signal conditions of RAMs 202 and 203 in FIG.

【図3】従来のメモリ誤書き込み保護回路の構成図FIG. 3 is a block diagram of a conventional memory erroneous write protection circuit.

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

201 制御部 202 x×nビット構成RAM 203 x×1ビット構成RAM 204 レジスタ 205 インバータ 206,207,208,209,211,212,2
36 2入力ORゲート 210 2入力ANDゲート 213,214 トライステートゲート 215 ラッチ回路
201 control unit 202 x × n bit configuration RAM 203 x × 1 bit configuration RAM 204 register 205 inverters 206, 207, 208, 209, 211, 212, 2
36 2-input OR gate 210 2-input AND gate 213, 214 Tri-state gate 215 Latch circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プロセッサ等を含む制御手段と、x×n
ビット構成で、前記制御手段によって読み出し書き込み
可能な第1の記憶手段と、前記第1の記憶手段への書き
込み許可/禁止情報を記憶するx×1ビット構成の読み
出し可能な第2の記憶手段と、前記制御手段によって設
定可能なレジスタと、前記制御手段からのリード信号,
ライト信号、および前記第1の記憶手段の選択信号、お
よび前記レジスタの設定値の組み合わせによって、前記
制御手段からの前記第1の記憶手段、および前記第2の
記憶手段へのアクセス状態を制御するゲート手段と、前
記制御手段の出力データと前記第2の記憶手段の出力デ
ータの衝突を回避するためのゲート手段と、前記第1の
記憶手段の書き込み禁止アドレスへのライト信号を無効
にするゲート手段を備え、前記第1の記憶手段へのライ
トアクセスと同時に前記第2の記憶手段に保持されたデ
ータを読み出し、該読み出しデータの値によって前記第
1の記憶手段へのライト信号を制御するようにしたメモ
リ誤書き込み保護装置。
1. A control means including a processor and the like, and x × n.
A first storage means having a bit structure which is readable and writable by the control means; and a second readable storage means having an x × 1 bit structure which stores write enable / disable information for the first storage means. A register that can be set by the control means, a read signal from the control means,
The access state from the control means to the first storage means and the second storage means is controlled by a combination of a write signal, a selection signal of the first storage means, and a set value of the register. Gate means, gate means for avoiding a collision between output data of the control means and output data of the second storage means, and a gate for invalidating a write signal to a write-inhibited address of the first storage means Means for reading the data held in the second storage means at the same time as the write access to the first storage means, and controlling the write signal to the first storage means according to the value of the read data. Write error protection device.
【請求項2】 第2の記憶手段を前記制御手段によって
読み出し書き込み可能とし、前記第1の記憶手段と前記
第2の記憶手段を同一アドレス空間に配置し、前記制御
手段からデータバス幅を前記第1の記憶手段のデータ幅
より拡張することなく、前記第1の記憶手段に対して
は、通常データを、前記第2の記憶手段に対しては、前
記第1の記憶手段と同一アドレスに前記第1の記憶手段
のアドレスに対応した書き込み許可/禁止情報を書き込
み可能とし、前記制御手段から、前記第1の記憶手段に
保持された通常データ、および前記第2の記憶手段内に
保持された前記第1の記憶手段に対する書き込み許可/
禁止情報を読み出し可能にした請求項1記載のメモリ誤
書き込み保護装置。
2. A second storage means is readable and writable by the control means, the first storage means and the second storage means are arranged in the same address space, and the data bus width is set from the control means. Without expanding the data width of the first storage means, the normal data is stored in the first storage means, and the normal data is stored in the second storage means at the same address as that of the first storage means. The write permission / prohibition information corresponding to the address of the first storage means is made writable, and is held by the control means in the normal data held in the first storage means and in the second storage means. Write permission to the first storage means /
The memory erroneous write protection device according to claim 1, wherein the prohibition information can be read.
JP4048203A 1992-03-05 1992-03-05 Wrong memory write protecting device Pending JPH05250266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4048203A JPH05250266A (en) 1992-03-05 1992-03-05 Wrong memory write protecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4048203A JPH05250266A (en) 1992-03-05 1992-03-05 Wrong memory write protecting device

Publications (1)

Publication Number Publication Date
JPH05250266A true JPH05250266A (en) 1993-09-28

Family

ID=12796831

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4048203A Pending JPH05250266A (en) 1992-03-05 1992-03-05 Wrong memory write protecting device

Country Status (1)

Country Link
JP (1) JPH05250266A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08235026A (en) * 1995-03-01 1996-09-13 Nec Corp Cpu operation abnormality detection system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08235026A (en) * 1995-03-01 1996-09-13 Nec Corp Cpu operation abnormality detection system

Similar Documents

Publication Publication Date Title
US5175840A (en) Microcomputer having a PROM including data security and test circuitry
JPH05250266A (en) Wrong memory write protecting device
JPS6278643A (en) Semiconductor integrated circuit
JPS6329859A (en) Memory protection circuit
JPH01123342A (en) Writing protecting circuit for memory
JPH04268934A (en) Device for protecting memory from miswriting
KR930011347B1 (en) Circuit for preventing mis-conduct of non-volatile memory by power input/output signal
JP2988426B2 (en) Storage device
JP2619671B2 (en) Memory control circuit
JPS6250863B2 (en)
JPS58208999A (en) Memory device
JPH023164A (en) Dual port memory
JP3232109B2 (en) Memory write protect circuit
JP2535833B2 (en) Integrated circuit
JPH06187520A (en) Ic memory card
JP2944080B2 (en) Memory content protection circuit
JPS62165253A (en) Lsi incorporated non-volatile memory
JPH05128009A (en) Device for protecting miswriting
JPS62251857A (en) Memory control system
JPS60246450A (en) Memory protecting device
JPH06103171A (en) Storage
JPH08137757A (en) Semiconductor integrated circuit device
JPS61121146A (en) Memory protection system
JPH01201750A (en) Microprocessor system
JPS63266562A (en) Semiconductor integrated circuit