[go: up one dir, main page]

JPS63111547A - Memory control system - Google Patents

Memory control system

Info

Publication number
JPS63111547A
JPS63111547A JP61257817A JP25781786A JPS63111547A JP S63111547 A JPS63111547 A JP S63111547A JP 61257817 A JP61257817 A JP 61257817A JP 25781786 A JP25781786 A JP 25781786A JP S63111547 A JPS63111547 A JP S63111547A
Authority
JP
Japan
Prior art keywords
memory
parity
redundant
redundant bits
read
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
JP61257817A
Other languages
Japanese (ja)
Inventor
Yoshiko Yamaguchi
佳子 山口
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
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 filed Critical NEC Corp
Priority to JP61257817A priority Critical patent/JPS63111547A/en
Publication of JPS63111547A publication Critical patent/JPS63111547A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To realize the debug of a microprogram having no break instruction by utilizing a detecting function using redundant bits as a detecting function of a break point for debug of software. CONSTITUTION:A memory 8 stores previously a program to be debugged and the error checking redundant bits are added to this program for each read/write access given from a processor 1. These redundant bits are stored in a parity memory 7. A parity detecting circuit 4 detects the parity of the redundant bits of the memory 7. While the 2-bit parity control registers 5 and 6 are added and the left and right members of both registers 5 and 6 serve as two outputs of different multiplexers 12. Then the read/write state of the memory 7 is controlled by the output of the multiplexer 12.

Description

【発明の詳細な説明】 技術分野 本発明はメモリシリ御方式に関し、特にデータ処理装置
におけるプログラムのデバグのためのメモリ制御方式に
関する。
TECHNICAL FIELD The present invention relates to a memory serial control system, and more particularly to a memory control system for program debugging in a data processing device.

更釆反韮 従来のデータ処理装置におけるソフトウェアのデバクに
d3いては、フェッチストップの場合はブレーク命令を
用いるか、あるいはブレーク命令を有していないマイク
ロプログラム等の機械語系ではロジックアナライザやイ
ンサーキットエミュレータを用いるかの2方式がある。
When debugging software in conventional data processing equipment, d3 uses a break instruction for fetch stops, or uses a logic analyzer or in-circuit emulator for machine language systems such as microprograms that do not have break instructions. There are two methods:

また、リード/ライトアクセスストップの場合には、ロ
ジックアナライザやインサーキットエミュレータを用い
る方式のみがある。
Further, in the case of read/write access stop, there is only a method using a logic analyzer or an in-circuit emulator.

上述した従来のデータ処理装置におけるソフトウェアの
デバグにおいては、この様にブレーク命令を有する言語
系でフェッチストップを行う以外、ロジックアナライザ
やインサーキットエミュレータ等の別の機器を使用せざ
るを得ないという欠点がある。
When debugging software in the conventional data processing device mentioned above, a disadvantage is that other than performing fetch stop using a language system that has break instructions, it is necessary to use other equipment such as a logic analyzer or in-circuit emulator. There is.

発明の目的 本発明はエラーチェックビットである冗長ビットによる
検出機能をソフトウェアのデバグのためのブレークポイ
ントの検出機構として利用したものであり、その目的と
するところは、ブレーク命令を有していないマイクロブ
グラム等のデバクにJ3いて、ロジックアナライザやイ
ンサーキットエミュレータ等の機器を用いることなくデ
バグを可能としたメモリ制御方式を提供とすることにあ
る。
Purpose of the Invention The present invention utilizes a detection function using redundant bits, which are error check bits, as a breakpoint detection mechanism for software debugging. The purpose of the present invention is to provide a memory control method that enables debugging of programs such as J3 without using devices such as logic analyzers and in-circuit emulators.

発明の構成 本発明によれば、プログラムのアクセス単位毎にエラー
チェック用の冗長ビットを付加してメモリに書込み、メ
モリ読出し指示に応答して前記冗長ビットをチェックす
るようにしたメモリの制御方式であって、前記冗長ビッ
トの内容を所定規則に従って変更可能な冗長ビット変更
手段と、この冗長ビット変更手段により変更設定された
冗長ビットをメモリに書込コと共にこの書込まれた冗長
ビットを読出し制御する冗長ビット読出し害込み手段と
、読出された冗長ビットをチェックするチェック手段と
を設け、前記メモリの所定アドレスの冗長ビットを読出
して前記冗長ビット変更手段により変更せしめてこれを
再度前記メモリの前記所定アドレスへ書込んでおき、前
記メモリに格納されているプログラムを順次実行制御し
つつ前記冗長ビットをチェックするようにしたことを特
徴とするメモリ制御方式が1qられる。
According to the present invention, there is provided a memory control method in which a redundant bit for error checking is added to each access unit of a program and written to the memory, and the redundant bit is checked in response to a memory read instruction. a redundant bit changing means capable of changing the contents of the redundant bit according to a predetermined rule; and a control for writing the redundant bit changed and set by the redundant bit changing means into a memory and reading the written redundant bit. redundant bit readout and damage means for reading out the redundant bits, and checking means for checking the read redundant bits, the redundant bits at a predetermined address of the memory are read out, the redundant bit changing means changes the redundant bits, and the redundant bits are changed by the redundant bit changing means. A memory control system 1q is characterized in that the redundant bits are checked while writing to a predetermined address and sequentially controlling the execution of programs stored in the memory.

実施例 以下、図面を用いて本発明の実施例について詳細に説明
する。
Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の実廠例のブロック図であり、メモリ8
には予めデバグ対象のプログラムが格納されており、こ
のプログラムには、処理装置1がらの読出し書込みのア
クセス単位毎にエラーチェック用の冗長ビットが付加さ
れているものとし、この冗長ビットはパリティ用メモリ
7に格納きれている。
FIG. 1 is a block diagram of a practical example of the present invention, in which the memory 8
A program to be debugged is stored in advance in the program, and a redundant bit for error checking is added to this program for each read/write access unit from the processing unit 1. This redundant bit is used for parity. Memory 7 is full.

パリティ生成回路3は偶数パリティ生成様能を有し、そ
の生成出力は直接マルチプレクサ9の1人力となると共
にインバータ31により反転されて奇数パリティとなっ
てマルチプレクサ9の他入力となる。このマルチプレク
サ9はフリップフロップ2の出力とそのインバータ21
による反転出力とにより制御されており、処理装置1よ
りの指令によりこのフリップフロップ2はセットされる
The parity generation circuit 3 has the ability to generate an even parity, and its generated output is directly inputted to the multiplexer 9 and is inverted by the inverter 31 to become odd parity, which becomes another input to the multiplexer 9. This multiplexer 9 connects the output of the flip-flop 2 and its inverter 21.
The flip-flop 2 is controlled by an inverted output from the processing device 1, and the flip-flop 2 is set by a command from the processing device 1.

パリティ検出回路4はパリティ用メモリ7の冗長ビット
のパリティ検出を行うn能を有しており、この検出結果
がアンドゲート10を介して処理装置1へ通知可能とさ
れている。このアンドゲート10のゲート信号がマルチ
プレクサ11の出力であり、このゲート信号の状態によ
り、パリティ検出結果が処理装置1へ通知されるが否か
が制御されるようになっている。
The parity detection circuit 4 has the ability to perform parity detection on the redundant bits of the parity memory 7, and can notify the processing device 1 of the detection result via the AND gate 10. The gate signal of this AND gate 10 is the output of the multiplexer 11, and whether or not the parity detection result is notified to the processing device 1 is controlled depending on the state of this gate signal.

一方、夫々2ビツト構成のパリティ制御レジスタ5及び
6が設けられており、両レジスタの左項のビットがマル
チプレクサ11の2人力とされている。また、両レジス
タ5及び6の6項のビットは別のマルチプレクサ12の
2人力となっており、このマルチプレクサ12の出力に
よりパリティ用メモリ7の読出し書込み状態が制御され
る。
On the other hand, parity control registers 5 and 6 each having a 2-bit configuration are provided, and the bits on the left side of both registers are used as the two inputs of the multiplexer 11. Further, the sixth bit of both registers 5 and 6 is controlled by another multiplexer 12, and the read/write state of the parity memory 7 is controlled by the output of this multiplexer 12.

両マルチプレクサ11.12は処理装置1がらのリード
/ライト指令により制御されるもので、このリード/ラ
イト指令を反転すべく、夫々のマルチプレクサ11及び
12に対応してインバータ111及び121が設けられ
ている。
Both multiplexers 11 and 12 are controlled by read/write commands from the processing device 1, and inverters 111 and 121 are provided corresponding to the multiplexers 11 and 12, respectively, in order to invert these read/write commands. There is.

フリップフロップ2が1?′の状態にセットされていれ
ば、パリティ生成回路3は奇数パリティ生成の機能を果
し、フリップフロップ2h(“0′′にセットされてい
れば、偶数パリティ生成の機能を果すものとする。また
、処理装置1がリード動作を指示している場合には、パ
リティ制御レジスタ5(リード用)の内容がマルチプレ
クサ11及び12により夫々有効となり、その内容の左
項のビットが1″の場合、パリティ検出回路4の出力が
アンドゲート10を介して処理装置1へ通知され、O1
1の場合はアンドゲート10が閉となることから通知さ
れない。このレジスタ5の右項ビットが゛1パの場合に
は、パリティ用メモリ7から冗長ビットの読出しが行わ
れ、0′′の場合にはメモリ7への冗長ビットの書込み
が行われる。
Flip-flop 2 is 1? If set to the state ``0'', the parity generation circuit 3 functions to generate odd parity, and if the flip-flop 2h is set to ``0'', it functions to generate even parity. Further, when the processing device 1 instructs a read operation, the contents of the parity control register 5 (for read) are enabled by the multiplexers 11 and 12, respectively, and if the left-hand bit of the contents is 1'', The output of the parity detection circuit 4 is notified to the processing device 1 via the AND gate 10, and O1
In the case of 1, no notification is given because the AND gate 10 is closed. When the right-hand bit of this register 5 is 1, the redundant bit is read from the parity memory 7, and when it is 0'', the redundant bit is written to the memory 7.

処理装置1がライト動作を指示している場合には、パリ
ティ制御レジスタ6(ライト用)の内容がマルチプレク
サ11及び12により有効となり、上述したリード動作
指示のときと同様に制御されることになる。
When the processing device 1 instructs a write operation, the contents of the parity control register 6 (for write) are validated by the multiplexers 11 and 12, and are controlled in the same way as when instructing the read operation described above. .

第2図は第1図のブロックの動作手順を示すフローチャ
ートであり、メモリ8に予め格納されているプログラム
のデバグのためのアクセスストップの例を用いた流れ図
である。このフローチャー1〜においては、2ビツトの
パリティ制御レジスタ5.6の各内容を共に(x、y)
で表現して示しており、左項Xはパリティ検出をチェッ
クするかチェックしないかのいずれかであり、それぞれ
記号C,Nで表す。また、6項yはメモリ内に書込むか
読出すかのいずれかであり、それぞれ記号W。
FIG. 2 is a flowchart showing the operation procedure of the blocks in FIG. 1, and is a flowchart using an example of access stop for debugging a program stored in the memory 8 in advance. In this flowchart 1~, each content of the 2-bit parity control register 5.6 is set to (x, y).
The left term X indicates whether parity detection is checked or not, and is represented by symbols C and N, respectively. Further, the sixth term y is either written into the memory or read, and each is represented by the symbol W.

Rで表す。Represented by R.

ステップ21において、パリティ生成を奇数パリティ生
成とすべく、フリップフロップ2が“1”にセットされ
る。そして、ステップ22において、リード用パリティ
制御レジスタ5を(N、R)にセットして、パリティ検
出結果を処理装置1へ通知しない状態としつつパリティ
用メモリ7を読出しモード状態とするのである。ステッ
プ23において、この状態で処理装置1からのアドレス
指定によりブレークポイントとなるべきブレークアドレ
スに相当する冗長ビットを読出し、この冗長ビットを奇
数パリティ生成に設定されているパリティ生成部にて奇
数パリティに変更設定する。しかる後に、ステップ24
にてライト用パリティ制御レジスタ6を(N、R)にセ
ットし、処理装置1からのライト指示により、この奇数
パリティに変更された冗長ビットをメモリ7の同一のア
ドレスへ再書込みする。
In step 21, flip-flop 2 is set to "1" so that parity generation is odd parity generation. Then, in step 22, the read parity control register 5 is set to (N, R), and the parity memory 7 is placed in a read mode state while the parity detection result is not notified to the processing device 1. In step 23, in this state, a redundant bit corresponding to the break address that should be a breakpoint is read out according to the address specification from the processing device 1, and the redundant bit is converted to odd parity by the parity generator set to generate odd parity. Change settings. After that, step 24
The write parity control register 6 is set to (N, R), and the redundant bits changed to odd parity are rewritten to the same address in the memory 7 in response to a write instruction from the processing device 1.

しかる後に、ステップ25において、両レジスタ5及び
6を共に<N、R)にセットして、以下のステップ26
〜29においてアクセスストップの種類の判定を行う。
After that, in step 25, both registers 5 and 6 are set to <N, R), and the following step 26 is performed.
In steps 29 to 29, the type of access stop is determined.

リードアクセスストップの場合はリード用のパリティ制
御レジスタ5を、ライトアクセスストップの場合はライ
ト用のパリティ制御レジスタ6を、またリードライトア
クセスストップの場合は両レジスタ5.6を夫々(C。
In the case of a read access stop, the read parity control register 5 is set; in the case of a write access stop, the write parity control register 6 is set; and in the case of a read/write access stop, both registers 5 and 6 are set (C).

R)にセットする。R).

この設定のもとで、ステップ30に示す如く、メモリ8
に格納されている被デバグプログラムを順次流して実行
すると、予めブレークアドレスとして設定しておいたア
ドレスに格納されているメモリ内容をアクセスしようと
したとき、パリティ検出回路により奇数パリティにセッ
トされていた冗長ビットが検出される。これがアンドゲ
ート10を介して処理装置1へ通知され、ブレークポイ
ントの割込みを発生させることができる。これにより、
制御がそのアドレスに渡ったことを知ることができ、プ
ログラム検証であるデバグとして使用することが可能と
なるのである。
Under this setting, as shown in step 30, the memory 8
When the program to be debugged stored in the debugged program is sequentially executed, when attempting to access the memory contents stored at the address previously set as a break address, the parity detection circuit has set it to odd parity. Redundant bits are detected. This is notified to the processing device 1 via the AND gate 10, and a breakpoint interrupt can be generated. This results in
It is possible to know that control has passed to that address, and it can be used for debugging, which is program verification.

発明の効果 双上の如く、本発明によれば、従来の冗長ピッ[へによ
るパリティエラー検出機能をソフトウェアのデバグのた
めの検出機能として利用することにより、ブレーク命令
を有さないマイクロプログラム等のデバグが、ロジック
アナライザやインサーキットエミュレータ等の特別の機
器を用いることなく容易に可能となるという効果がある
Effects of the Invention As described above, according to the present invention, by using the conventional parity error detection function using redundant pins as a detection function for software debugging, microprograms etc. that do not have break instructions can be This has the effect that debugging can be easily performed without using special equipment such as a logic analyzer or an in-circuit emulator.

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

第1図は本発明の詳細な説明するためのブロック図、第
2図は第1図の動作を示すフローチャートである。 主要部分の符号の説明 1・・・・・・処理装置 2・・・・・・メモリ
FIG. 1 is a block diagram for explaining the present invention in detail, and FIG. 2 is a flowchart showing the operation of FIG. 1. Explanation of symbols of main parts 1...Processing device 2...Memory

Claims (1)

【特許請求の範囲】[Claims] プログラムのアクセス単位毎にエラーチェック用の冗長
ビットを付加してメモリに書込み、メモリ読出し指示に
応答して前記冗長ビットをチェックするようにしたメモ
リの制御方式であって、前記冗長ビットの内容を所定規
則に従って変更可能な冗長ビット変更手段と、この冗長
ビット変更手段により変更設定された冗長ビットをメモ
リに書込むと共にこの書込まれた冗長ビットを読出し制
御する冗長ビット読出し書込み手段と、読出された冗長
ビットをチェックするチェック手段とを設け、前記メモ
リの所定アドレスの冗長ビットを読出して前記冗長ビッ
ト変更手段により変更せしめてこれを再度前記メモリの
前記所定アドレスへ書込んでおき、前記メモリに格納さ
れているプログラムを順次実行制御しつつ前記冗長ビッ
トをチェックするようにしたことを特徴とするメモリ制
御方式。
A memory control method in which redundant bits for error checking are added and written to memory for each program access unit, and the redundant bits are checked in response to a memory read instruction, the contents of the redundant bits being A redundant bit changing means that can be changed according to a predetermined rule; a redundant bit reading/writing means that writes the redundant bit changed and set by the redundant bit changing means into the memory and reads and controls the written redundant bit; and checking means for checking the redundant bits at a predetermined address of the memory, the redundant bits at a predetermined address of the memory are read out, changed by the redundant bit changing means, and written again to the predetermined address of the memory. A memory control method characterized in that the redundant bits are checked while sequentially controlling the execution of stored programs.
JP61257817A 1986-10-29 1986-10-29 Memory control system Pending JPS63111547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61257817A JPS63111547A (en) 1986-10-29 1986-10-29 Memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61257817A JPS63111547A (en) 1986-10-29 1986-10-29 Memory control system

Publications (1)

Publication Number Publication Date
JPS63111547A true JPS63111547A (en) 1988-05-16

Family

ID=17311536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61257817A Pending JPS63111547A (en) 1986-10-29 1986-10-29 Memory control system

Country Status (1)

Country Link
JP (1) JPS63111547A (en)

Similar Documents

Publication Publication Date Title
CN103430158B (en) Use Execution Single Step to Diagnose Coding
JPS63111547A (en) Memory control system
JPS5939052B2 (en) Information processing device and method
JPS62164140A (en) Testing of data processing system
JPS6339050A (en) Address bus test circuit
JPH03105630A (en) Error correcting system
JP2684966B2 (en) I/O processor debug unit
JPH0315948A (en) Address bus test system
JPS59202546A (en) Debugging device
JPS6282438A (en) Control system for interruption of debug in information processor
JPS5995658A (en) Program development assisting device
JPH01231134A (en) Artificial fault generating system for information processor
JPS5936853A (en) Operation processor
JPS59151247A (en) Testing device of information processing device
JPH064333A (en) Break point setting device
JPS59229658A (en) Information processor
JPS6167146A (en) Pseudo fault generating system
JPS63300330A (en) Debugging method for firmware
JPH0353654B2 (en)
JPH0635760A (en) Buffer device with tracing function
JPH0277946A (en) Microprogram coverage measurement method
JPH04367902A (en) Programmable controller
JPH096685A (en) Memory device and its error test method
JPS6091458A (en) Program debug device of microprocessor
JPS60132249A (en) Data processor