JPS6084638A - Memory card - Google Patents

Memory card

Info

Publication number
JPS6084638A
JPS6084638A JP58192721A JP19272183A JPS6084638A JP S6084638 A JPS6084638 A JP S6084638A JP 58192721 A JP58192721 A JP 58192721A JP 19272183 A JP19272183 A JP 19272183A JP S6084638 A JPS6084638 A JP S6084638A
Authority
JP
Japan
Prior art keywords
code
memory
address
writing
program
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
JP58192721A
Other languages
Japanese (ja)
Inventor
Naohito Osono
大園 直仁
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP58192721A priority Critical patent/JPS6084638A/en
Publication of JPS6084638A publication Critical patent/JPS6084638A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0763Error or fault detection not based on redundancy by bit configuration check, e.g. of formats or tags

Abstract

PURPOSE:To find an illegal instruction is executed by writing a specific code at a specific address position, and interrupting a CPU when a program runaway occurs and this code is read out. CONSTITUTION:When memory chips 5 are reset and initialized, the specific code, e.g. code for indicating an internal interruption is written during resetting in the specific address of each memory chip 5 from a code writing circuit 6, and then the chips are initialized after the writing is completed. A program is written in addresses except the addresses wherein said specific code is written. If the program runs away, said specific code is read out and an interruption to the CPU is initiated to detect the runaway of the program. The code of the code writing circuit 6 is not fixed, but set optionally from the outside.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明はメモリカードに関し、特にプログラム暴走に
対処できるように構成されたメモリカードに関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a memory card, and particularly to a memory card configured to cope with program runaway.

〔従来技術〕[Prior art]

aλ1図は従来のメモリカードのイ”n成例を示すブロ
ック図であって、(1)はアドレス決定回路、(2)は
アドレス及びデータバス、(3)はアドレス選択回路、
(41はメモリチック選択回路、(51)、(52L 
=−(5n)はそれぞれメモリチックで、綜合してメモ
リチック(5)として示す。図に示す例では、n個のメ
モリチック(5)とメモリチック選択回路(4)及びア
ドレス決定回路(1)とアドレス選択回路(31により
1個のメモリカードを構成している。このようなメモリ
カードが複θ個アドレス及びデータバス(2)に接続さ
れている。
Figure aλ1 is a block diagram showing an example of a conventional memory card, in which (1) is an address determination circuit, (2) is an address and data bus, (3) is an address selection circuit,
(41 is a memory tick selection circuit, (51), (52L
=-(5n) are each a memory tick, and are collectively shown as a memory tick (5). In the example shown in the figure, one memory card is composed of n memory ticks (5), a memory tick selection circuit (4), an address determination circuit (1), and an address selection circuit (31). A memory card is connected to multiple θ address and data buses (2).

特定のメモリカードの特にのチップの特定のアドレス位
置にアクセスする場合、アドレス及びデータバス(2)
にはメモリカードを選択するビントバターン、メモリチ
ップを選択するビットパターン及びメモリチック内のア
ドレスを示すビットパターンを合せて作成したアドレス
信号をアドレス及びデータバス(2)のアドレス位置部
にのせて送出する。1だ、メモリカードから読出された
ワード又はメモリカードに書込むべきワードはアドレス
及びデータバス(21のデータ部にのせて送出される。
When accessing a specific address location of a specific chip of a specific memory card, the address and data bus (2)
In this case, an address signal created by combining a bit pattern for selecting a memory card, a bit pattern for selecting a memory chip, and a bit pattern for indicating an address within a memory tick is placed on the address position part of the address and data bus (2) and sent out. do. 1, the word read from the memory card or the word to be written to the memory card is sent out on the data portion of the address and data bus (21).

其他、メモリカードに褐込みを行うかメモリカードから
続出しを行うかを示すREAJJ/WRITE命令等の
命令もアドレス及びデータバス(2)の中の命令線部で
伝送される。
In addition, commands such as the REAJJ/WRITE command, which indicates whether to brown the memory card or to continue reading from the memory card, are also transmitted on the command line portion of the address and data bus (2).

アドレス及びデータバス(2)に接続されている複数の
メモリカードによって構成される記憶装置15に対応す
るCPU(図示せず)がアドレス及びデータバス(2)
に接続されている。
A CPU (not shown) corresponding to a storage device 15 constituted by a plurality of memory cards connected to the address and data bus (2) is connected to the address and data bus (2).
It is connected to the.

アドレス決定回路(1)は当該メモリカードを示すビッ
トターンケ作って、これをアドレス選択回路(3)に与
える。アドレス選択回路(3)ではアドレス及びデータ
バス(2)のアドレス部にのせられたアドレス信号のう
ちのメモリカードを選択するビットターンをアドレス決
定回路(1)から与えられるビットパターンと比較し、
両者が一致すれば当該メモリカードがアクセスされたも
のとして、メモリチップ選択回路(41の動作を勇催に
する。メモリナツツ選択回路(4)はアドレス及びデー
タバス+21のアドレス部にのせられたアドレス信号の
うちのメモリチノf@s択するビットパターンによりJ
H?されたメモリチツf′だけを動作可能にする。メモ
リチソf′+51には、アドレス及びデータバス(2)
のアドレス部にのせられたアドレス信刊のうちメモリチ
ック(51内のアドレスを示すビットパターンが力えら
れて7タ[望のワードにアクセスされる。命令線部で与
えられるREAD/WRI TE命令に従って当該ワー
1rが読出され又は当該ワードの位(1qに屑込みが行
われる。
The address determining circuit (1) creates a bit turn indicating the memory card in question and supplies this to the address selecting circuit (3). The address selection circuit (3) compares the bit turn for selecting a memory card of the address signal placed on the address portion of the address and data bus (2) with the bit pattern given from the address determination circuit (1),
If the two match, it is assumed that the memory card has been accessed and the memory chip selection circuit (41) is activated.The memory chip selection circuit (4) receives the address signal placed on the address section of the address and data bus +21. J depending on the bit pattern selected from the memory chino f@s
H? Only the memory chip f' that has been updated is made operational. The memory chip f'+51 has an address and data bus (2)
The bit pattern indicating the address in the memory tick (51) of the address message placed on the address section of the memory tick is input and the desired word is accessed.READ/WRITE command given in the command line section. Accordingly, the word 1r is read out or the word 1q is filled with waste.

ところで、メモリナツツ(5)を構成するIIAMは揮
発性メモリであるため、またん電θ1jljtとなり次
に′電源が再投入されたような場合は従来の記憶が消滅
して、メモリナツツの記1;ψ、内容は全く意味のない
ものになっている。このような場合には、電諒を再投入
した後、すべてのメモリナツツ=i IJ上セツトくす
べてのビットを論理「0」の状態にする)だ上で必要な
プログラムを書込む。この書込みを行うことをイニシャ
ライズと称し、普通の場合には不揮発性メモリに格納し
であるプログラムをメモリナツツに書込むことによって
イニシヤライズを行う。
By the way, IIAM that constitutes Memory Natsu (5) is a volatile memory, so if the power is turned off again and the power is turned on again, the conventional memory will disappear and Memory Natsu's record 1; ψ , the content is completely meaningless. In such a case, after turning on the power again, write the necessary program on all memory bits (set all bits to logic "0"). This writing is called initialization, and in normal cases, initialization is performed by writing a program that is stored in a nonvolatile memory into a memory nut.

従来のメモリカードは、以上のように構成されているの
で、メモリカードにゾログラム’C’fh己憶しておき
、このノログラムラ6し出してデータ処理を実行する場
合、読出したゾログラムの命令文に(”J等かの原因で
符号誤りが発生した為、不正な命令となり、この不正命
令によりゾログラムが書かれてない番地や、データが重
かれている領域などを続出して、この続出したコードを
命令コードと誤認して実行し、その結果ノログラムが暴
走した場合、いつ、どこから暴走したのかわからないと
いう欠点があ゛った。
Conventional memory cards are configured as described above, so when you store a zologram 'C'fh on the memory card and output this zologram 6 to perform data processing, the command statement of the read zologram is (Because a code error occurred due to "J" etc., it became an invalid instruction, and due to this invalid instruction, addresses where no zologram was written, areas where data was heavy, etc.) were generated one after another. If a code is mistakenly recognized as an instruction code and executed, resulting in a runaway of the nologogram, it is difficult to know when or where the runaway occurred.

〔発明の植装」 この発明は上記のような従来のものの欠点を除去するた
めになされたもので、この発明ではメモリナツツをリセ
ットしてイニシャライズする機会を利用し、その特定の
アドレス位1rイに特定のコード全111込み、クログ
ラム暴走が発生してこの特定のコードが読出された時は
、たとえはCPU VC’fFIJ込をかける(すなわ
ち、内部割込を実行する)等の処理全実行することによ
り、不正命令を実行したことを発見できるようにしたも
のである。
[Installation of the Invention] This invention was made in order to eliminate the drawbacks of the conventional ones as described above, and in this invention, by using the opportunity to reset and initialize the memory nut, When a program runaway occurs and this specific code is read, all processes must be executed, such as applying CPU VC'fFIJ input (i.e., executing an internal interrupt). This makes it possible to discover that an unauthorized command has been executed.

〔発明の実施例〕 以fこの発明の実が11例全図面について説明する。[Embodiments of the invention] Hereinafter, 11 examples of the fruits of this invention will be explained with reference to all the drawings.

紀2図はこの発明の一実施例り示ずブロック図で、第1
図と同一符号は同−又は相当部分を示しく6)はコード
書込回路である。
Figure 2 is a block diagram (not shown) of one embodiment of this invention.
The same reference numerals as in the figure indicate the same or corresponding parts. 6) is a code writing circuit.

さきに説明したようにメモリナツツ(5)ヲリセノ[・
シてイニシャライズするとき、リセット時に各メモリナ
ツツ(51の71!定のアドレス位置にコード、J込回
路(61から相ホのコート(だとえQ」内部割込全指示
するコード)を書込み、この汎込みか終った後にイニシ
ャライズ全実行し、上61月、′f定のコード全す)込
んだアドレス位置を除外したアドレス位(4にクログラ
ム’f: 書込んでゆくのである。
As explained earlier, memory nuts (5) woriseno[・
When initializing the program, write the code to each memory address (51 to 71!) and the J-circuit (code that instructs all internal interrupts from 61 to 61), and After the generalization is completed, initialization is executed, and the address location (4) excluding the address location where the 'f fixed code is written is written.

このようにしておくと、不正命令の実行によってクログ
ラムが暴走した時上記特Wのコードが読出されることに
なり、この特定のコードが上述の例のようにCPU−\
の割込を命令するコードである場合は、CPLIへの割
込が11われで、クログラム暴走を検出することができ
る。
By doing this, when the program runs out of control due to the execution of an illegal instruction, the code of the special W mentioned above will be read, and this specific code will be sent to the CPU-\
If the code instructs an interrupt, the program runaway can be detected by interrupting the CPLI.

なお、コード書込回路から書込む特定のコードはCPU
への割込み命令に限らず、ゾログラム暴走を検出できる
ような処理を命令するコードであれはよろしく、また、
コード書込回路(61のコードを固定のものとせず、外
部から任意に設′itできるようにしてもよい。
Note that the specific code written from the code writing circuit is
In addition to interrupt instructions, any code that instructs processing that can detect zologram runaway is welcome.
The code of the code writing circuit (61) may not be fixed, but may be arbitrarily set from the outside.

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

以上のようにこの発明によれは、クログラム実行時に、
誤ってプログラムで使用している・頭載以外の領域から
読出したコードを命令コードとして実行した場合にも直
ちに発見できるという効果がある。
As described above, according to this invention, when executing the program,
This has the advantage that even if a code used in a program or read from an area other than the header is executed as an instruction code by mistake, it can be detected immediately.

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

8+!1図は従来のメモリカード全示すブロック図、第
2図はこの発明の一実ガn例を示すブロック図である。 (1)・・・アドレス決定回路、(21・・・アドレス
及びデータバス、(31・・・アドレス選択回路、(4
)・・・メモリチノノ選択回路、(5)・・メモリチノ
ヲ、(6:・・・コード書込回路。 尚、各図中同一符号は同−又は相当部分を示す。 代理人 大 岩 増 雄 手続補正書(自発) 昭和97年り月/Z1」 特許庁長官殿 さ 1、事件の表示 ’l−1,願昭 58−192721
号2、発明の名称 、、、:E:リヵート。 3、補正をする者 代表者片由仁へ部 4、代理人 (1)明細書の「特許請求の範囲」の欄7、添付書類の
目録 (1)訂正した特許請求の範囲 ・・・・・・・・・・
・・・・・ 1通(以上) 別 紙 2、’l’4?♂I’ 請求の1lil;囲(1)ブロ
クラムを記憶するメモリチップを複数個有するメモリカ
ードにおいて、コート書込回路を設は上記メモリチップ
をリセットしてイニシャライズする機会をオリ用し、各
メモリチップの特定のアドレス位置に上自己コード宵込
回路かしあらかじめ5tめるコードを岩込んだ後、上記
特定のアドレス位INを除く上d己メモリチップの部分
にプログラムを簀込んで上記メモリチップをイニシャラ
イズする手段と、上記あらかじめ定めるコードが読出さ
れたとき当該コードによって指示される命令を実行する
手段とを備えたことを特徴とするメモリカート。 (2)あらかじめ定めるコードは内部割込命令等暴走を
検出できる処坤命令コードであることを特徴とする特W
F 請求のイ11λ囲第1川i己載りメモリカード。
8+! FIG. 1 is a block diagram showing the entire conventional memory card, and FIG. 2 is a block diagram showing an example of the present invention. (1)...address determination circuit, (21...address and data bus, (31...address selection circuit, (4
)...Memory chinono selection circuit, (5)...Memory chinowo, (6:...Code writing circuit. In addition, the same reference numerals in each figure indicate the same or equivalent parts. Agent: Masuo Oiwa Procedure correction Letter (spontaneous) 1987/Z1” Mr. Commissioner of the Patent Office 1, Indication of the case 'l-1, No. 58-192721
No. 2, Title of the invention: E: Ricart. 3.To the representative of the person making the amendment, Katayuni 4.Representative (1) "Claims" column 7 of the specification; List of attached documents (1) Revised scope of patent claims...・・・・・・
... 1 copy (or more) Attachment 2, 'l'4? ♂I'1liil; Enclosure (1) In a memory card having a plurality of memory chips for storing blocks, a code writing circuit is installed, taking the opportunity to reset and initialize the memory chips, and write each memory chip. After inserting 5t code in advance into a specific address position of the above-mentioned address position, store the program in the part of the above-mentioned memory chip except for the above-mentioned specific address position IN, and then install the above-mentioned memory chip. A memory cart comprising: means for initializing; and means for executing an instruction instructed by the predetermined code when the predetermined code is read. (2) A special W characterized in that the predetermined code is a processing instruction code that can detect runaway internal interrupt instructions, etc.
F Claim 11λ 1st river I self-loaded memory card.

Claims (2)

【特許請求の範囲】[Claims] (1)ゾログラムを記憶するメモリチツfk”FM数個
有するメモリカードにおいて、コード書込回路を設は上
記メモリチップをリセットしてイニシャライズする機会
を利用し、各メモリチ・ノゾの特定のアドレス位置に上
記コード書込回路からあらかじめ定めるコードを書込ん
だ後、上記特定のアドレス位置を除く上記メモリチップ
の部分にゾログラムに?j込んで上記メモリチップをイ
ニシャライズする手段と、上記あらかじめ定めるコード
が読出された。とき当該コードによって指示される命令
を実行する手段とを備えたことを%徴とするメモリカー
ド。
(1) In a memory card that has several memory chips fk"FM that store zolograms, set up a code writing circuit and use the opportunity to reset and initialize the above memory chips to write the above code to a specific address position of each memory chip. After writing a predetermined code from a code writing circuit, means for initializing the memory chip by writing a zologram into a portion of the memory chip excluding the specific address position, and reading out the predetermined code. and means for executing instructions instructed by the code.
(2)あらかじめ定めるコードは内部割込全指示するコ
ードであることを特徴とする特許請求の範囲第1項記載
のメモリカード。
(2) The memory card according to claim 1, wherein the predetermined code is a code that instructs all internal interrupts.
JP58192721A 1983-10-15 1983-10-15 Memory card Pending JPS6084638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58192721A JPS6084638A (en) 1983-10-15 1983-10-15 Memory card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58192721A JPS6084638A (en) 1983-10-15 1983-10-15 Memory card

Publications (1)

Publication Number Publication Date
JPS6084638A true JPS6084638A (en) 1985-05-14

Family

ID=16295956

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58192721A Pending JPS6084638A (en) 1983-10-15 1983-10-15 Memory card

Country Status (1)

Country Link
JP (1) JPS6084638A (en)

Similar Documents

Publication Publication Date Title
US8397042B2 (en) Secure memory interface
KR970011207B1 (en) Method and apparatus for a register providing atomic access to set and clear individual bits of shared registers without software interlock
KR0138697B1 (en) Microcomputer
US6282644B1 (en) Apparatus and method for storing BIOS data of computer system
JPS59231650A (en) Software protection processing system
JPS6084638A (en) Memory card
KR100525537B1 (en) Applied Program Bungle Detection Apparatus and Method by Interrupt
EP0864983A2 (en) Computer system including memory adress management circuit for protecting memory from illegal writing
JPS6074059A (en) Access control system for storage device
JP4114004B2 (en) Semiconductor integrated circuit
JPS595496A (en) Memory protect system
JPS60112148A (en) Memory device
JPH01123342A (en) Writing protecting circuit for memory
JPH06103171A (en) Storage
JPH0434185B2 (en)
JPS6073762A (en) Memory protective system
JPH0944413A (en) Page boundary testing method
JP2000207235A (en) Information processor
JP2000057055A (en) Control method and device for write access to storage means used for digital data processing circuit
JP2581057B2 (en) Evaluation microcomputer
JP3373535B2 (en) Address translation method for electronic computers
JPS60258654A (en) Semiconductor memory
JPS62160555A (en) Storage protecting device of storage circuit
JPH0496157A (en) Main memory data protective circuit
JPH01261760A (en) Computer system