[go: up one dir, main page]

JPS60205639A - Address stopping circuit - Google Patents

Address stopping circuit

Info

Publication number
JPS60205639A
JPS60205639A JP59061762A JP6176284A JPS60205639A JP S60205639 A JPS60205639 A JP S60205639A JP 59061762 A JP59061762 A JP 59061762A JP 6176284 A JP6176284 A JP 6176284A JP S60205639 A JPS60205639 A JP S60205639A
Authority
JP
Japan
Prior art keywords
signal
stop
address
parity
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
JP59061762A
Other languages
Japanese (ja)
Inventor
Takaaki Yokoi
孝明 横井
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP59061762A priority Critical patent/JPS60205639A/en
Publication of JPS60205639A publication Critical patent/JPS60205639A/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/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To define optional addresses as stop addresses at the same time by reading an instruction in an address where a stop is expected to be made, writing a parity bit and detecting a parity error, and the generating a stop signal. CONSTITUTION:Instructions are read out of program memory 1 with a step operation signal l when a program which uses 1 as an address stop ready signal (m) is executed. Read data (g) is sent to a parity checking circuit 4 and when it is defined as a stop address, a parity error signal (h) goes up to 1. The signal lis 0, so the parity error signal (h) is sent to an FF7 and stored at the rise of a read signal (i) and a stop signal (j) is outputted. Further, the signal l is 1 and the stop signal (m) is 1 in step operation; when an instruction is read out, the parity error signal (h) holds the stop signal (j) at 1 without fail, thereby stopping the execution of the program. When a restart signal (k) is generated, the program is executed by one step.

Description

【発明の詳細な説明】 発明の属する技術分野 本発明は、プログラム制御される機器、特に、情報処理
装置のアドレスストップ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to program-controlled equipment, particularly to an address stop circuit for an information processing apparatus.

従来技術の説明 従来、アドレスストップ回路は、プログラムの実行を停
止させるアドレスを記憶するアドレスレジスタとプログ
ラムの実行アドレスと前記アドレスレジスタに記憶され
た内容とを比較し、一致したときにプログラムの実行を
停止させる停止信号を発生する比較回路とから構成され
るのが一般的である。
Description of the Prior Art Conventionally, an address stop circuit compares an address register that stores an address to stop execution of a program with the execution address of the program and the content stored in the address register, and when they match, stops the execution of the program. It is generally comprised of a comparator circuit that generates a stop signal to stop the motor.

しかしながら、上記構成による場合には、複数の停止ア
ドレスを定義可能とするには定義するアドレスの数と同
数のアドレスレジスタおよび比較回路が必要となり、従
って、高価となる欠点があった。
However, in the case of the above configuration, in order to be able to define a plurality of stop addresses, the same number of address registers and comparison circuits as the number of addresses to be defined are required, which has the disadvantage of being expensive.

発明の目的 本発明は従来の上記事情に鑑みてなされたものであシ、
従って本発明の目的は上述の欠点を除去し、アドレスレ
ジスタおよび比較回路を必要とせず、任意のアドレスに
対して停止アドレスであることを同時に定義可能とする
新規なアドレスストップ回路を提供することにある。
Purpose of the Invention The present invention has been made in view of the above-mentioned conventional circumstances.
Therefore, an object of the present invention is to eliminate the above-mentioned drawbacks, and to provide a novel address stop circuit that does not require an address register or a comparison circuit, and can simultaneously define any address as a stop address. be.

発明の構成 上記目的を達成する為に、本発明に係るアドレスストッ
プ回路は、書き換え可能でパリティビットを有するプロ
グラムメモリと、発生するパリティ信号を制御可能なパ
リティ発生回路と、前記プログラムメモリから読み出さ
れたデータの正当性を検査し異常のときにパリティエラ
ー信号を発生するパリティエラー信号と、前記パリティ
エラー信号を記憶する記憶回路とを具備して構成され、
プログラムの実行停止アドレスであることを前記プログ
ラムメモリ内にパリティエラーが発生するデータとして
定義することを特徴とする。
Structure of the Invention In order to achieve the above object, an address stop circuit according to the present invention includes a program memory which is rewritable and has a parity bit, a parity generation circuit which can control a generated parity signal, and a parity signal read from the program memory. a parity error signal that checks the validity of the data and generates a parity error signal in the event of an abnormality, and a storage circuit that stores the parity error signal;
The present invention is characterized in that a program execution stop address is defined as data in which a parity error occurs in the program memory.

3、発明の詳細な説明 次に本発明をその好ましい一実施例について図面を参照
しながら具体的に説明する。
3. Detailed Description of the Invention Next, a preferred embodiment of the present invention will be specifically described with reference to the drawings.

第1図は本発明に係るアドレスストップ回路の一実施例
を示すブロック構成図である。図において、本発明の一
実施例は、書き換え可能でパリティピットを有するプロ
グラムメモリ1、パリティ発生回路2、停止アドレスセ
ットモード信号dと書き込み信号Cの論理和をとる第1
の論理和ゲート3、パリティチェック回路4、バリティ
エラー信号りとステップモード信号lの論理和をとる第
2の論理和ゲート5、記憶回路(フリップ70ツブ)7
、および再スタート信号にとアドレス停止可信号mの負
論理の論理和をとる論理積ゲート6から構成されている
FIG. 1 is a block diagram showing an embodiment of an address stop circuit according to the present invention. In the figure, one embodiment of the present invention includes a program memory 1 that is rewritable and has parity pits, a parity generation circuit 2, and a first
an OR gate 3, a parity check circuit 4, a second OR gate 5 that ORs the parity error signal and the step mode signal l, and a memory circuit (flip 70 block) 7.
, and an AND gate 6 which calculates the logical sum of the restart signal and the negative logic of the address stop enable signal m.

第1K1停止アドレスをセットする動作を説明する。The operation of setting the first K1 stop address will be explained.

停止アドレスのセットは、セットすべきアドレスの内容
を一度読み出し、同一内容を再書き込みすることにより
行なわれる。即ち、停止アドレスをセットする場合には
、停止アドレスセットモード信号dは「φ」であシ、再
書き込みするときに外部から書き込みアドレス信号書き
込みデータbおよび負論理の書き込み信号Cが与えられ
る。このとき、停止アドレスセットモード信号dがl」
であるために、パリティ発生回路2に接続されているパ
リティ発生モード信号eは書き込み信号Cと同一となる
The stop address is set by once reading the contents of the address to be set and rewriting the same contents. That is, when setting a stop address, the stop address set mode signal d is set to "φ", and when rewriting, a write address signal, write data b, and a negative logic write signal C are applied from the outside. At this time, the stop address set mode signal d is "1".
Therefore, the parity generation mode signal e connected to the parity generation circuit 2 is the same as the write signal C.

パリティ発生回路2は、パリティ発生モード信号eが「
1」の場合には偶数パリティを、またパリティ発生モー
ド信号eがゆ」の場合には奇数パリティをパリティ信号
fとして発生する。このために、停止アドレスセットモ
ード信号dが印」の場合には奇数パリティとして発生し
たパリティ信号fがプログラムメモリIK書き込まれる
。すなわち、停止アドレスとして定義したアドレスの命
令を読み出したときにパリテイエ2−となるように書き
込まれる。
The parity generation circuit 2 is configured so that the parity generation mode signal e is “
If the parity generation mode signal e is 1, an even parity is generated, and if the parity generation mode signal e is 1, an odd parity is generated as the parity signal f. For this reason, when the stop address set mode signal d is "indicator", the parity signal f generated as an odd parity is written into the program memory IK. That is, when the instruction at the address defined as the stop address is read out, it is written so that it becomes parity 2-.

次に、プログラム実行時の動作を説明する。Next, the operation during program execution will be explained.

まず、ステップ動作信号lは■」、アドレス停止可信号
mは「1」とするプログラムを実行するときには、第1
に命令をプログラムメモリ1から読み出す。このとき、
読み出しアドレスとしてのアドレス信号aおよび負論理
の読み出し信号1が外部よシ与えられる。プログラムメ
モリ1から読み出した命令である読み出しデータgは、
外部に送出されると同時に1パリテイチ工ツク回路4に
送られる。このとき、停止アドレスとして定義されてい
ない場合にはパリティエラー信号りは印」となシ、停止
アドレスとして定義されている場合にはパリティエラー
信号りが「1」となる。
First, when executing a program in which the step operation signal l is set to "■" and the address stop enable signal m is set to "1", the first
The instruction is read from program memory 1. At this time,
Address signal a as a read address and negative logic read signal 1 are externally applied. The read data g, which is an instruction read from the program memory 1, is
At the same time as being sent to the outside, it is sent to the 1-parity check circuit 4. At this time, if the address is not defined as a stop address, the parity error signal becomes "1", and if it is defined as a stop address, the parity error signal becomes "1".

前述のように、ステップ動作信号lが印」であるために
、パリティエラー信号りと同一信号が記憶回路(7リツ
プフロツプ)7に接続され、読み出し信号1の立ち上り
で7リツプフロツプ7に記憶され、停止信号jとして出
力される。
As mentioned above, since the step operation signal l is the mark, the same signal as the parity error signal is connected to the storage circuit (7 lip-flop) 7, and is stored in the 7 lip-flop 7 at the rising edge of the read signal 1, and the chip is stopped. It is output as signal j.

次VC%再スタート信号には負論理のパルス信号で、再
スタート信号が発生すると記憶回路(フリップ70ツブ
)7はリセットされ、次に停止アドレスとして定義され
た命令を読み出すまで停止することなくプログラムが実
行される。
The next VC% restart signal is a negative logic pulse signal, and when the restart signal is generated, the memory circuit (flip 70 tube) 7 is reset, and the program does not stop until the next instruction defined as the stop address is read. is executed.

次いで、ステップ動作を説明する。ステップ動作の場合
には、ステップ動作信号lが「1」、アドレス停止可信
号mが「1」である。パリティチェック回路4から出力
されるパリティエラー信号りがステップ動作信号lと第
2の論理和ゲート5で論理和となっているために、命令
を読み出すと必らず停止信号jが口」どなシ、命令を読
み出す毎にプログラムは実行を停止する。従って、再ス
タート信号kが発生したときにプログラムを1ステツプ
実行することになる。
Next, the step operation will be explained. In the case of a step operation, the step operation signal l is "1" and the address stop enable signal m is "1". Since the parity error signal outputted from the parity check circuit 4 is ORed with the step operation signal l and the second OR gate 5, when an instruction is read out, the stop signal j is always output. The program stops execution each time an instruction is read. Therefore, when the restart signal k is generated, the program is executed one step.

次に、アドレス停止可信号mが朗の場合忙は、記憶回路
(フリップ70ツブ)7は常にリセットされているので
停止信号jは「φ」であル、プログラムは停止すること
なく実行される。
Next, if the address stop enable signal m is active, the memory circuit (flip 70 block) 7 is always reset, so the stop signal j is "φ", and the program is executed without stopping. .

発明の効果 以上のように、本発明によれば、パリティ発生回路の動
作モードを制御し、停止させたいアドレスの命令を読み
出した時にパリティエラーとなるようにパリティビット
を書き込み、パリティエラーを検出したときに、停止信
号を発生させることKよシ、任意の複数のアドレスを停
止アドレスとして定義可能であ夛、かつアドレスレジス
タおよび比較回路が不要なアドレスストップ回路を構成
できる。
Effects of the Invention As described above, according to the present invention, the operating mode of the parity generation circuit is controlled, a parity bit is written so that a parity error occurs when an instruction at an address to be stopped is read, and a parity error is detected. In some cases, instead of generating a stop signal, any number of addresses can be defined as stop addresses, and an address stop circuit that does not require an address register or a comparison circuit can be constructed.

また、プログラムメモリの異常によるパリティエラーが
発生した場合にもプログラムの実行は停止するために、
本来のパリティチェック機能が失われることもない。
In addition, program execution will also stop if a parity error occurs due to an abnormality in the program memory.
The original parity check function is not lost.

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

第1図は本発明の一実施例を示すブロック構成図である
。 1・・・プログラムメモリ、2・・・パリティ発生回路
、3・・・第1の論理和ゲート、4・・・パリティチェ
ック回路、5・・・第2の論理和ゲート、6・・・論理
積ゲート、7・・・記憶回路(フリップフロップ)、a
・・・アドレス信号、b・・・書き込みデータ、C・・
・書き込み信号、d・・・停止アドレスセットモード信
号、e・・・パリティエラ−信号、f・・・パリティ信
号、g・・・読み出しデータ、h・・・パリティエラー
信号、1・・・読み出し信号、j・・・停止信号、k・
・・再スタート信号、l・・・ステップモード信号、m
・・・アドレス停止可信号 特許出願人 日本電気株式会社 代 理 人 弁理士 熊谷雄太部
FIG. 1 is a block diagram showing one embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Program memory, 2... Parity generation circuit, 3... First OR gate, 4... Parity check circuit, 5... Second OR gate, 6... Logic Product gate, 7...Memory circuit (flip-flop), a
...Address signal, b...Write data, C...
・Write signal, d: Stop address set mode signal, e: Parity error signal, f: Parity signal, g: Read data, h: Parity error signal, 1: Read signal , j...Stop signal, k...
...Restart signal, l...Step mode signal, m
...Address Stop Signal Patent Applicant NEC Corporation Representative Patent Attorney Yutabe Kumagai

Claims (1)

【特許請求の範囲】[Claims] 書き換え可能でパリティピットを有するプログ2ムメモ
リと、発生するパリティ信号を制御可能なパリティ発生
回路と、前記プログ2ムメモリから読み出されたデータ
の正当性を検査し異常のときにパリティエラー信号を発
生するパリティチェック回路と、前記パリティエラー信
号を記憶する記憶回路とを構成要素とし、プログラムの
実行停止アドレスであることを前記プログラムメモリ内
にパリテイエ2−が発生するデータとして定義すること
を特徴としたアドレスストップ回路。
A program memory that is rewritable and has a parity pit, a parity generation circuit that can control the generated parity signal, and a parity generation circuit that inspects the validity of data read from the program memory and generates a parity error signal in the event of an abnormality. and a storage circuit that stores the parity error signal, and is characterized in that a program execution stop address is defined as data at which a parity error 2- occurs in the program memory. Address stop circuit.
JP59061762A 1984-03-29 1984-03-29 Address stopping circuit Pending JPS60205639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59061762A JPS60205639A (en) 1984-03-29 1984-03-29 Address stopping circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59061762A JPS60205639A (en) 1984-03-29 1984-03-29 Address stopping circuit

Publications (1)

Publication Number Publication Date
JPS60205639A true JPS60205639A (en) 1985-10-17

Family

ID=13180472

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59061762A Pending JPS60205639A (en) 1984-03-29 1984-03-29 Address stopping circuit

Country Status (1)

Country Link
JP (1) JPS60205639A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5485366A (en) * 1992-01-10 1996-01-16 Mitsubishi Denki Kabushiki Kaisha Sequence controller including error correction and method therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5485366A (en) * 1992-01-10 1996-01-16 Mitsubishi Denki Kabushiki Kaisha Sequence controller including error correction and method therefor

Similar Documents

Publication Publication Date Title
KR920005163A (en) Semiconductor memory device
JPS60205639A (en) Address stopping circuit
JPS62242258A (en) Storage device
JP2731047B2 (en) Program operand check method
JPS6161299A (en) Storage device
JPS623520B2 (en)
JPS6152758A (en) Memory error detecting device
JP2600376B2 (en) Memory controller
JP2001167002A (en) Method and device for controlling write/read for electronic disk device
JPS6365547A (en) Integrated circuit with built-in memory
JPS5870500A (en) Semiconductor storing circuit
JPS6261974B2 (en)
JPS62166449A (en) History storage device for logical unit
JPS6325380B2 (en)
JPS6054059A (en) Storage device
JPS58175200A (en) Checking system of storage system
JPS641817B2 (en)
JPS5847798B2 (en) Storage device
JPH03126147A (en) Test system for external storage device
JPS5936853A (en) Operation processor
JPH0357015A (en) Electronic disk subsystem
JPH0315948A (en) Address bus test system
JPS63177240A (en) Memory diagnostic control method
JPH01116854A (en) Memory read error preventing system
JPH0683718A (en) Fault detecting circuit