[go: up one dir, main page]

JPS5991558A - Method for testing program - Google Patents

Method for testing program

Info

Publication number
JPS5991558A
JPS5991558A JP57202385A JP20238582A JPS5991558A JP S5991558 A JPS5991558 A JP S5991558A JP 57202385 A JP57202385 A JP 57202385A JP 20238582 A JP20238582 A JP 20238582A JP S5991558 A JPS5991558 A JP S5991558A
Authority
JP
Japan
Prior art keywords
parity
instruction
storage device
processor
mode
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
JP57202385A
Other languages
Japanese (ja)
Inventor
Teruyoshi Mita
三田 照義
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57202385A priority Critical patent/JPS5991558A/en
Publication of JPS5991558A publication Critical patent/JPS5991558A/en
Pending legal-status Critical Current

Links

Classifications

    • 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)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 (イ)発明の技術分野 本発明は、少なくともプロセッサと、該プロセッサ上で
動作するプログラム全格納する読み書き可能な記憶装置
とを含んで構成されるデータ処理装置において、記憶装
置の記憶容量を増大せしめることなくブレークポイント
割込を発生可能にしたプログラム試験方式に関する7 (ロ)従来技術と問題点 従来技術では、ブレークポイン)を指定された場合、指
定されたアドレスに格納されている命令(Ib)金別込
発生命令(dW工)に置換し、指定された蛋地から命令
の−J:行全開始し、先に置換した命令(SWI)i実
行した結果、割込が発生し、割込が認識された時点で先
に置換された番地はs w 工6令に1d侠される番地
及び置換される命令(より)全記憶する領域が必要とな
る欠点がある。
Detailed Description of the Invention (a) Technical Field of the Invention The present invention relates to a data processing device that includes at least a processor and a read/write storage device that stores all programs that run on the processor. 7 Concerning a program test method that makes it possible to generate breakpoint interrupts without increasing the memory capacity of the device (b) Prior art and problems In the prior art, when a breakpoint is specified, it is stored at the specified address. Replace the instruction (Ib) with the instruction (dW), start the entire -J: line of the instruction from the specified point, and as a result of executing the previously replaced instruction (SWI) i, When an interrupt occurs and the interrupt is recognized, the address replaced first is sw.The disadvantage is that it requires an area to store the entire address and the replaced instruction. .

第1図は、上記従来方式におけるメモリマツプを示す図
である。
FIG. 1 is a diagram showing a memory map in the conventional method.

図中、Cは通常の運用プログラムが格納される領域、a
は試験グログラムが格納さnる領域、bは置換されるア
ドレスおよび命令全記憶する領域、mXnはブレークポ
イントアドレス、LDA。
In the figure, C is an area where normal operation programs are stored, and a
is an area where the test program is stored, b is an area where all addresses and instructions to be replaced are stored, and mXn is a breakpoint address, LDA.

LDBは置換きれた命令である。このように従来方式に
おいては、541図図示領域すが必要となるため、全体
の記憶容赦が増大するか、またはブレークポイント2指
定OT能、/i−故(置換されるアドレス及び加令を記
憶する領域により制限される)に山]]限を与えなけれ
ばならない欠点があった。
LDB is an instruction that has been replaced. In this way, in the conventional method, 541 diagrammatic areas are required, which increases the overall memory capacity, or increases the ability to specify breakpoint 2, /i-(memorizes the address and addition to be replaced). However, there was a drawback in that it had to be limited by the area in which it would be used.

(・9 発明の目的 本発明の目的は、ブレークポイントを指定された番地や
命令を、被試験プログラム領域外に格納するだめの領域
を不要とし、従来方式と等価なプログラム試験手段全提
供することにある。
(・9 Purpose of the Invention The purpose of the present invention is to eliminate the need for an area outside the program area under test to store addresses and instructions where breakpoints are specified, and to provide all program testing means equivalent to the conventional method. It is in.

に)発明の構成 上記目的を達成するために本発明は、少なくとも、プロ
セッサと、該プロセッサ上で動作するプログラム全格納
する読み書き可能な記憶装置とを含んで構成されるデー
タ処理装置において、上記記憶装置に少なくともlビッ
トのパリティピットを付加するとともに、上記プロセッ
サによってアクセス可能とされ当該データ処理装置が運
用モードにあるか試験モードにあるかを指示する情報を
保持するモード指示手段と、上記プロセッサによってア
クセス可能とされ上記記憶装置へ書込まれるべきパリテ
ィピットの反転を指示する情報を保持するパリティ反転
指示手段と、上記パリティ反転指示手段により制御され
上記記憶装置へ書込まれるパリティピントを発生するパ
リティ発生手段と、上記記憶装置から読出されたパリテ
ィピット全チェックするパリティチェック手段と、上記
プロセッサによっ−Cアクセス可能とされ上記モード指
示手段の出力と上記パリティチェック手段の出力とにも
とづして当り亥データ処理装置がブレークポイント割込
状態にあることを指示する情報を作成し保持するブレー
クポイント割込指示手段とをそなえ、試験モード状態に
おいて、上記記憶装置上の被試験命令アドレス位置のパ
リティピットを反転することにより、当該被試験命令ア
ドレス位置にてブレークポイント割込全発生せしめるよ
う構成したことを特徴とする。
B) Structure of the Invention In order to achieve the above object, the present invention provides a data processing device that includes at least a processor and a readable/writable storage device that stores all the programs that run on the processor. mode indicating means for adding a parity pit of at least l bits to the device, and for holding information that is accessible by the processor and instructs whether the data processing device is in an operational mode or a test mode; parity inversion instruction means that holds information instructing the inversion of parity pits that are accessible and to be written to the storage device; and a parity that is controlled by the parity inversion instruction means and generates a parity pit to be written to the storage device. generating means; parity checking means for checking all parity pits read from the storage device; breakpoint interrupt instruction means for creating and retaining information indicating that the data processing device is in a breakpoint interrupt state; The present invention is characterized in that by inverting the parity pit, all breakpoint interrupts are generated at the address position of the instruction under test.

けや 発明の実施例 第2図は実施例におけるメモリマツプを示す図、第3図
は本発明による実施例のデータ処理装置のブロック1図
である。第3図において、3は例えばM O6800な
どの名称で市販されているマイクログロセソサMPU1
示し、アドレスiAo −、アータハスDO−’7等の
端子がある。Jは本発明金天施するための外部レジスタ
群を示し、公知の方法により、ノリノブ70ノブl−1
,1−2にMPU3から供給される1i7報を書き込む
ことができる。1−1は運用モードと試験モードを切替
えるフリップフロップを示す、ノリツブフロップ1−2
は、メモリのパリティピント部2−1に書込むべきパリ
ティ−符号全発生するパリティ発生と♀2−3にAND
ゲートニー5を経由して結合し、パリティ発生器2−3
から発生される信号の極性全反転させるだめの7リノプ
フロツプを示す。ANDゲート1−6.1−7は、フリ
ップフロップj、−1のQ1可とメモリ2−2および2
−1から読み出した情報から読み出し検査信号2−10
(5発生するパリティチェック回路2−4と結合される
。1−3.1−4はそれぞれブレークポイント割込、メ
モリ障害を示す状態情報全保持するだめのフリップ70
ツブを示し7、ノリノブフロップ1−4(7)Qカ” 
1 ’(7)場合テ信−q 2−10 y):“1#と
なるとフリップフロップ1−3が1″となり、フリップ
70ツブ1−1の互が゛ユ″の場合に信号2−10がJ
″となると7リノプフロノグ1−4が“1″となる保結
朦される。信号2−10は、ゲート1−5の出力がl″
の場合、パリティビット部2−1 t7c4へんだ番地
音読み出した時゛1″となる5デたiJ P U 3の
割込み市り1卸端子NM1にも結合される。2−8はメ
モリ2−2への1に報パス線、2−9はメモリからの読
み出し・1青報綴で都り、パスアンプ2−6.2−7を
経由してMPU3から、外部レジスタを含め、読み易き
かり能であるよう溝成さnている。
Keya Embodiment of the Invention FIG. 2 is a diagram showing a memory map in the embodiment, and FIG. 3 is a block diagram of a data processing apparatus in the embodiment according to the present invention. In FIG. 3, 3 is a microgrocer MPU1 commercially available under the name M O6800, etc.
There are terminals such as address iAo- and Arthas DO-'7. J indicates a group of external registers for applying the present invention;
, 1-2 can write the 1i7 information supplied from the MPU 3. 1-1 shows a flip-flop that switches between operational mode and test mode, Noritsubu flop 1-2
is the parity code to be written in the parity focus section 2-1 of the memory, and the parity generation that all the codes are generated, and the AND of ♀2-3.
Connected via gate knee 5 and parity generator 2-3
7 shows a 7-linopflop that completely inverts the polarity of the signal generated from the circuit. AND gate 1-6.1-7 connects Q1 of flip-flop j,-1 and memories 2-2 and 2.
Read test signal 2-10 from the information read from -1
(1-3.1-4 are connected to the parity check circuit 2-4 which generates 5.1-3.1-4 are flip 70 which are used to hold all state information indicating breakpoint interrupts and memory failures, respectively.
7, Norinob flop 1-4 (7) Qka”
1'(7), the signal -q 2-10 y): When it becomes 1#, the flip-flops 1-3 become 1", and when the flip-flops 1-1 are both "y", the signal 2-10 is J
'', the output of the gate 1-5 is set to 1.
In this case, when the address tone in the parity bit part 2-1 t7c4 is read, the 5 bits which become "1" are also connected to the interrupt input terminal NM1 of the iJPU 3. 2-8 is also connected to the interrupt input terminal NM1 of the iJPU 3. 2 to 1 is the information path line, 2-9 is read from the memory, 1 information is read, and from the MPU 3 via the path amplifier 2-6, 2-7, including the external register, easy to read clue. The grooves are designed to be effective.

運用モードではクリップフロップ1−1のQt゛O″に
する1宵報をM P U 3より出力しておく。
In the operation mode, the MPU 3 outputs an evening signal that sets the Qt'O'' of the clip-flop 1-1.

これによりメモリを読み出した時に誤りが検出さ7’ 
l−4f″1#にする。これによりンステム信頼度を保
証できる。
This will prevent errors from being detected when reading the memory.7'
l-4f″1#. This ensures system reliability.

試1倹モードではクリップフロップ1−1のQを公知の
方法によりパl#にする・情報と、ノリノブフロップ1
−2金゛1“にする1H報とをM P U 3より出力
してよ?キ、・42図に示す番地mとnに対して、それ
ぞれ読み出し全行ない、その同一情報−iMPU3より
出力し、メモリ2−2に書込むと同時に、パリティビッ
ト部2−1にパリティ発生器2−3の出力(第2図のP
)t−書き込んでおく。
In the trial 1 thrift mode, the Q of the clip flop 1-1 is set to PAL# by a known method.
- Output the 1H report that changes the gold to 1" from the MPU 3.K. - Read all lines for addresses m and n shown in Figure 42, respectively, and output the same information from the iMPU 3. , the output of the parity generator 2-3 (P in FIG. 2) is written into the parity bit section 2-1.
)t-Write it down.

このプログラムは第2図のaに示される領域に格納され
る試験プログラムによって実行される。この状態で被試
験プログラム領域Cの中にあるm又はn番地の命令を実
行するためにMPU3が該番地よりメモリを読み出すと
、パリティチェック回路2−4は、出力線2−10をl
″にする。これにより割込みが発生し、さらにノリツブ
フロップl−1のQが°’l”、Q、が0#のため、ノ
リツブフロップ1−3だけが“1#となる。その結果、
試験プログラムは、ノリツブフロップl−3,1−4を
読み込むことにより、メモリ障害でなく、ブレークポイ
ント割込であるIk知ることができる。
This program is executed by a test program stored in the area shown in FIG. 2A. In this state, when the MPU 3 reads the memory from address m or n in order to execute the instruction at address m or n in the program area under test C, the parity check circuit 2-4 causes the output line 2-10 to
This causes an interrupt to occur, and since the Q of Noritsubu flop l-1 is 'l' and Q is 0#, only Noritsubu flops 1-3 become '1#.'As a result, ,
By reading the Noritub flops l-3 and 1-4, the test program can know that Ik is a breakpoint interrupt rather than a memory failure.

被試験プログラムのm又はn番地に書込まれていた命令
コード自体を書き直していないため、当該命令をMP 
03で実行しても、被試験プログラム全破壊した事には
ならないし、従来方式による置換された命令を復元し、
実行するだめの、余分の領域(第1図のb)自体も不要
となる。またbが不要のため、ブレークポイント指定数
に制限はなくなる。
Since the instruction code written at address m or n of the program under test has not been rewritten, the instruction is
Even if it is executed in 03, it does not mean that the program under test is completely destroyed, and the instructions replaced by the conventional method are restored.
The extra area (b in FIG. 1) for execution is also no longer necessary. Also, since b is not required, there is no limit to the number of breakpoints specified.

(へ)発明の効果 本発明によれば、第1図(従来方式)の領域bV′i全
く不要となるため、メモリ容置を削減することが出来る
ばかりでナク、ブレークポイントを指定可能な故は、被
試験プログラムの全ステップ5top  まで広げるこ
とができる。さらに、実施例では示されないが、すでに
指定したブレークポイントを解除する場合には、該当す
る番地を読み出し、フリップフロップ1−2全″0#に
した状態で再書込み全実施すれば良く、試験プログラム
自体を単純化することができる。
(f) Effects of the Invention According to the present invention, the area bV′i in FIG. can be extended to 5 top steps in the program under test. Furthermore, although not shown in the example, in order to cancel a breakpoint that has already been specified, it is sufficient to read the corresponding address, set all flip-flops 1-2 to 0#, rewrite and execute the entire test program. itself can be simplified.

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

第1図は従来方式におけるメモリマツプを示す図、第2
図は実施例におけるメモリマツプを示す図、第3図は本
発明による実施例のデータ処理装置のブロック図である
。 第3図において、1−1〜1−4はクリップフロップ、
2−1はメモリのパリティビット部、2−2はメモIJ
、2−3はパリティ発生器、2−4ハハリテイチ工ツク
回路、3はマイクロプロセッ114ζυ斗1 茅I図 第2 +2
Figure 1 shows the memory map in the conventional method, Figure 2 shows the memory map in the conventional method.
This figure shows a memory map in an embodiment, and FIG. 3 is a block diagram of a data processing device in an embodiment according to the present invention. In FIG. 3, 1-1 to 1-4 are clip flops;
2-1 is the parity bit part of the memory, 2-2 is the memory IJ
, 2-3 is a parity generator, 2-4 is a hardware circuit, and 3 is a microprocessor.

Claims (1)

【特許請求の範囲】[Claims] 少なくとも、プロセッサと、該プロセッサ上で動作する
プログラム全格納する読み書きり能な記憶装置とを含ん
で構成されるデータ処理装置において、上記記憶装置に
少なくとも1ビツトのパリティピット金付力Hするとと
もに、上記プロセッサによってアクセス可能とされ当該
データ処理装置が運用モードにあるか試験モードにある
かを指示する+! @’c保持するモード指示手段と、
上記プロセッサによってアクセス可能とされ上記記憶装
置へ書込まれるべきパリティビットの反転を指示する情
報を保持するパリティ反転指示手段と、上記パリティ反
転指示手段により制御され上記記憶装置へ書込まれるパ
リティビットを発生するパリティ発生手段と、上記記憶
装置から続出されたパリティビットをチェックするパリ
ティチェック手段と、上記プロセッサによってアクセス
可能とされ上記モード指示手段の出力と上記パリティチ
ェック手段の出力とにもとづいて当該データ処理装置が
ブレークポイント割込状態にあることを指示する情報を
作成し保持するブレークポイント割込指示手段と全そな
え、試験モード状態に2いて、上記記憶装置上の被試験
命令アドレス位置のパリティビットを反転することによ
り、当該被試験命令アドレス位置にてブレークポイント
割込を発生せしめるよう構成したことを特徴とするプロ
グラム試験方式。
In a data processing device including at least a processor and a read/write storage device for storing all programs running on the processor, at least one bit of parity pit is attached to the storage device, and the processor +!, which can be accessed by +! and indicates whether the data processing device is in operational mode or test mode. mode instruction means for holding @'c;
parity inversion instruction means that is accessible by the processor and holds information that instructs the inversion of parity bits to be written to the storage device; parity generation means for generating parity; parity check means for checking parity bits successively output from the storage device; A breakpoint interrupt instruction means for creating and holding information indicating that the processing unit is in a breakpoint interrupt state is provided, and when the processing unit is in a test mode state, a parity bit at the address position of the instruction under test on the storage device is provided. A program testing method characterized in that a breakpoint interrupt is generated at the address position of the instruction under test by inverting the instruction.
JP57202385A 1982-11-18 1982-11-18 Method for testing program Pending JPS5991558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57202385A JPS5991558A (en) 1982-11-18 1982-11-18 Method for testing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57202385A JPS5991558A (en) 1982-11-18 1982-11-18 Method for testing program

Publications (1)

Publication Number Publication Date
JPS5991558A true JPS5991558A (en) 1984-05-26

Family

ID=16456612

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57202385A Pending JPS5991558A (en) 1982-11-18 1982-11-18 Method for testing program

Country Status (1)

Country Link
JP (1) JPS5991558A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04211833A (en) * 1990-02-06 1992-08-03 Nec Corp External interruption simulating system
JPH0573356A (en) * 1991-09-11 1993-03-26 Agency Of Ind Science & Technol Debug back-up method
DE10214093B4 (en) * 2001-04-02 2007-02-08 Toshiba Machine Co., Ltd. Method of protecting molds of an injection molding machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04211833A (en) * 1990-02-06 1992-08-03 Nec Corp External interruption simulating system
JPH0573356A (en) * 1991-09-11 1993-03-26 Agency Of Ind Science & Technol Debug back-up method
DE10214093B4 (en) * 2001-04-02 2007-02-08 Toshiba Machine Co., Ltd. Method of protecting molds of an injection molding machine

Similar Documents

Publication Publication Date Title
JPS5991558A (en) Method for testing program
JPH04112344A (en) Database pseudo update method
JP2578182B2 (en) Data processing device and data processing system
JPS58154043A (en) Information processor
JPS59197946A (en) Memory device
JPS5870500A (en) Semiconductor storing circuit
JPH0219933A (en) Memory circuit controller
JPH0326416B2 (en)
JPH02281341A (en) Write data confirming method for debugging
JPH01156834A (en) Check circuit diagnostic device
JPH0266668A (en) Data tracing method for multi-processor bus
JPS60549A (en) Memory test method
JPS6093508A (en) Inputting and outputting method of process signal
JPH0324640A (en) Debugging system for information processor
JPS58181152A (en) Debugging system of data processing device
JPS60147849A (en) Method for debugging microprograms
JPS6365547A (en) Integrated circuit with built-in memory
JPS641817B2 (en)
JPH04312135A (en) Trace circuit
JPS63170756A (en) Main memory initialization method
JPH02187843A (en) Data holding type memory device
JPH01274251A (en) Activity history memory
JPS598062A (en) State resetting system of information processor
CZ277931B6 (en) Circuit arrangement of memories for emulation purposes
JPS60116052A (en) Bad data repair method