JPS61241843A - Information processor - Google Patents

Information processor

Info

Publication number
JPS61241843A
JPS61241843A JP60083932A JP8393285A JPS61241843A JP S61241843 A JPS61241843 A JP S61241843A JP 60083932 A JP60083932 A JP 60083932A JP 8393285 A JP8393285 A JP 8393285A JP S61241843 A JPS61241843 A JP S61241843A
Authority
JP
Japan
Prior art keywords
register
contents
memory area
boundary
address
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
JP60083932A
Other languages
Japanese (ja)
Inventor
Toshirou Harui
治居 敏朗
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 JP60083932A priority Critical patent/JPS61241843A/en
Publication of JPS61241843A publication Critical patent/JPS61241843A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging 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

PURPOSE:To prevent the generation of undesired interruption and to shorten a debug processing time by saving the contents of a designated register to a designated memory area for each step in a debug mode and producing an interruption only said saving action reaches the boundary of the memory area. CONSTITUTION:In a debug mode a control circuit 7 checks a mask register 4 after execution of each instruction and adds the number of used memory areas to an address register 2 by an arithmetic circuit 5 after saving the contents of a designated register to a memory area designated by the register 2 to replace the register 2. Then the contents of the register 2 and a boundary register 3 are compared with each other. If the value of the register 2 is smaller than that of the register 3, the next instruction is executed. If the contents of the register 2 is equal to or larger than those of the register 3, the circuit 7 produces an interruption to give information to the shoftware.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラムのデバッグに有効な回路を持つ情報
処理装置だ関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device having a circuit effective for debugging programs.

〔従来の技術〕[Conventional technology]

一般に、プログラムの開発時には、プログラムt−1ス
テツプずつ実行させる機能と、プログラム実行中の任意
の時点で中央処理装置の内部レジスタを表示する機能と
、特定のレジスタがプログラム開発者が指定する値にな
った時プログラムの実行を停止させる機能等を必要とす
る。
Generally, when developing a program, there is a function to execute the program t-1 steps at a time, a function to display the internal registers of the central processing unit at any point during program execution, and a function to set specific registers to values specified by the program developer. It is necessary to have a function that stops program execution when this happens.

従来、これらの機能をサポートするハードウェアとして
、プログラムの1ステツプ毎に割込み全発生する機能の
み持たせ、中央処理装置の内部レジスタを読み出して、
特定の値と比較し、表示することは、1ステツプ毎の割
込み全処理するプログラムが実行していた。
Conventionally, hardware that supports these functions has only had the function of generating all interrupts for each step of the program, reading the internal registers of the central processing unit,
The comparison with a specific value and the display were performed by a program that handled all interrupts for each step.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このような従来の方法では、1ステツプ毎に割込みが発
生するため1割込処理時間が1ステツプ毎に必要となり
、デバッグ処理に時間がかかり、また内部レジスタの操
作のため釦、デバッグ処理プログラムも複雑になるとい
う欠点がある。
In such conventional methods, an interrupt occurs for each step, so one interrupt processing time is required for each step, which takes time for debugging, and also requires buttons and debug processing programs to operate internal registers. The disadvantage is that it is complicated.

本発明の目的は、このような欠点を解決し、デバッグ処
理時間を短縮しその処理プログラム金簡単化した情報処
理装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an information processing apparatus that solves these drawbacks, shortens debug processing time, and simplifies its processing program.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の構成は、数値データを記憶するレジスタファイ
ルと、このレジスタファイル内の任意の2つのレジスタ
を選択するレジスタ選択回路と、このレジスタ選択回路
によって選択された2つのレジスタの内容に対して演算
する演算回路と、これら各回路の動作手順を制御する制
御回路とを持つ情報処理装置において、前記レジスタフ
ァイル内には、レジスタの内容を退避するためのメモリ
領域の開始番地を持つアドレスレジスタと、前記メモリ
領域の境界を指定する境界レジスタと、退避するレジス
タを指定するためのマスクレジスタとを備え、プログラ
ムデバッグの時に前記制御回路の制御により、命令の1
ステップ実行の最後に前記マスクレジスタによって指定
されるレジスタの内容を前記メモリに退避し、前記メモ
リ領域の境界に達した時に割込みを発生すること全特徴
とする。
The configuration of the present invention includes a register file that stores numerical data, a register selection circuit that selects any two registers in this register file, and an operation on the contents of the two registers selected by this register selection circuit. In the information processing device, the register file includes an address register having a starting address of a memory area for saving the contents of the register; It includes a boundary register that specifies the boundary of the memory area and a mask register that specifies the register to be saved, and when debugging a program, one of the instructions is controlled by the control circuit.
The present invention is characterized in that the contents of the register specified by the mask register are saved in the memory at the end of step execution, and an interrupt is generated when the boundary of the memory area is reached.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。図
において、1はレジスタファイル、2は退避するメモリ
アドレスを指定するアドレスレジスタ、3は退避される
メモリ領域の境界を指定する境界レジスタ、4は退避す
るレジスタを指定するマスクレジスタ、5は演算回路、
6はレジスタファイル内のレジスタを選択する選択回路
、7は中央処理装置の動作を制御する制御回路である。
FIG. 1 is a block diagram showing one embodiment of the present invention. In the figure, 1 is a register file, 2 is an address register that specifies the memory address to be saved, 3 is a boundary register that specifies the boundary of the memory area to be saved, 4 is a mask register that specifies the register to be saved, and 5 is an arithmetic circuit. ,
6 is a selection circuit that selects a register in the register file, and 7 is a control circuit that controls the operation of the central processing unit.

ソフトウェアのデバッグ時に1ステツプ毎のレジスタの
内容を知りたい時、プログラマは、内容を知りたいレジ
スタの番号をすべてマスクレジメタ4に設定し、デバッ
グ用に使用できるメモリ領域の開始番地金アドレスレジ
スタ2に、また、レジスタ退避用メモリ領域の境界アド
レス、すなわち、実行したい命令ステップ数に、1ステ
ツプ毎【必要なレジスタ退避領域の数をかけた数に、開
始番地を加えたアドレス値を境界レジスタ3に設定した
後、デバッグモードにする。制御回路7は、デバッグモ
ードに設定された時、各命令実行の最後にマスクレジス
タ4t−調べ、指定されたレジスタの内容を1アドレス
レジスタ2によって指定されたメモリ領域に退避した後
演算回路5により使用したメモリ領域の敷金アドレスレ
ジスタ2に加えてこのアドレスレジスタ2を更新する。
When debugging software, when the programmer wants to know the contents of registers for each step, the programmer sets all the numbers of the registers whose contents he wants to know in the mask register 4, and writes them in the starting address register 2 of the memory area that can be used for debugging. In addition, set the boundary address of the memory area for register saving, that is, the address value of the number of instruction steps to be executed, multiplied by the number of register saving areas required for each step, plus the start address, in boundary register 3. After that, switch to debug mode. When set to debug mode, the control circuit 7 checks the mask register 4t at the end of each instruction execution, saves the contents of the specified register to the memory area specified by the 1 address register 2, and then uses the arithmetic circuit 5 to check the mask register 4t. This address register 2 is updated in addition to the security deposit address register 2 of the used memory area.

その後アドレスレジスタ2と境界レジスタ3の内容を比
較し、アドレスレジスタ2の値の方が小さければ、次の
命令の実行ステップに移る。アドレスレジスタ2の値が
境界レジスタ3の内容に等しいか、アドレスレジスタの
内容の方が大きい場合に制御回路7は割込みを発生し、
ソフトウェアに通知する。
Thereafter, the contents of address register 2 and boundary register 3 are compared, and if the value of address register 2 is smaller, the process moves to the next instruction execution step. If the value of the address register 2 is equal to the content of the boundary register 3 or the content of the address register is greater, the control circuit 7 generates an interrupt;
Notify the software.

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

以上説明したように、本発明は、レジスタファイル内に
レジスタを退避する領域を指定するレジスタと、その境
界を指定するレジスタと、退避するレジスタを指定する
レジスタを設け、デバッグ時には1ステツプ毎に指定さ
れたレジスタの内容を指定されたメモリ領域に退避し、
メモリ領域の境界に達した時のみ割込みを発生させるよ
うにすることにより、不必要な割込みの発生を抑え、デ
バッグ処理に要する時間を短縮するという効果がある。
As explained above, the present invention provides a register in a register file that specifies the area where registers are saved, a register that specifies the boundaries of the area, and a register that specifies the register to save. saves the contents of the specified register to the specified memory area,
Generating an interrupt only when the boundary of the memory area is reached has the effect of suppressing the occurrence of unnecessary interrupts and shortening the time required for debugging processing.

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

第1図は本発明の!l/j処理装置の一実施例のブロッ
ク図である。図において、1・旧・・レジスタファイル
、2・・・・・・アドレスレジスタ、3・・・・・・境
界レジスタ% 4・・・・・・マスクレジスタ、5・・
・・・・演算回路、6・・・・・・選択回路% 7・・
・・・・制御回路、である。
Figure 1 shows the features of the present invention! 1 is a block diagram of one embodiment of an l/j processing device. FIG. In the figure, 1.Old...Register file, 2..Address register, 3..Boundary register% 4..Mask register, 5..
...Arithmetic circuit, 6...Selection circuit% 7...
...control circuit.

Claims (1)

【特許請求の範囲】[Claims] 数値データを記憶するレジスタファイルと、このレジス
タファイル内の任意の2つのレジスタを選択するレジス
タ選択回路と、このレジスタ選択回路によって選択され
た2つのレジスタの内容に対して演算する演算回路と、
これら各回路の動作手順を制御する制御回路とを持つ情
報処理装置において、前記レジスタファイル内には、レ
ジスタの内容を退避するためのメモリ領域の開始番地を
持つアドレスレジスタと、前記メモリ領域の境界を指定
する境界レジスタと、退避するレジスタを指定するため
のマスクレジスタとを備え、プログラムデバッグの時に
前記制御回路の制御により、命令の1ステップ実行の最
後に前記マスクレジスタによって指定されるレジスタの
内容を前記メモリに退避し、前記メモリ領域の境界に達
した時に割込みを発生することを特徴とする情報処理装
置。
A register file that stores numerical data, a register selection circuit that selects any two registers in the register file, and an arithmetic circuit that operates on the contents of the two registers selected by the register selection circuit.
In an information processing device having a control circuit that controls the operation procedure of each of these circuits, the register file includes an address register having a starting address of a memory area for saving the contents of the register, and a boundary between the memory areas. and a mask register to specify a register to be saved, and under the control of the control circuit during program debugging, the contents of the register specified by the mask register at the end of one step execution of an instruction are provided. An information processing apparatus characterized in that the information processing apparatus saves the information in the memory, and generates an interrupt when the boundary of the memory area is reached.
JP60083932A 1985-04-19 1985-04-19 Information processor Pending JPS61241843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60083932A JPS61241843A (en) 1985-04-19 1985-04-19 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60083932A JPS61241843A (en) 1985-04-19 1985-04-19 Information processor

Publications (1)

Publication Number Publication Date
JPS61241843A true JPS61241843A (en) 1986-10-28

Family

ID=13816370

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60083932A Pending JPS61241843A (en) 1985-04-19 1985-04-19 Information processor

Country Status (1)

Country Link
JP (1) JPS61241843A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7849243B2 (en) * 2008-01-23 2010-12-07 Intel Corporation Enabling flexibility of packet length in a communication protocol
US8325768B2 (en) 2005-08-24 2012-12-04 Intel Corporation Interleaving data packets in a packet-based communication system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8325768B2 (en) 2005-08-24 2012-12-04 Intel Corporation Interleaving data packets in a packet-based communication system
US8885673B2 (en) 2005-08-24 2014-11-11 Intel Corporation Interleaving data packets in a packet-based communication system
US7849243B2 (en) * 2008-01-23 2010-12-07 Intel Corporation Enabling flexibility of packet length in a communication protocol

Similar Documents

Publication Publication Date Title
JPH0728670A (en) Information processor
JPS61241843A (en) Information processor
JPS60124746A (en) Data processing unit
JPS58200349A (en) Microprogram controller
JPS61241844A (en) Information processor
JP2674873B2 (en) Step execution operation method of program development support device
JPS5835648A (en) Program execution controlling system
JP3001526B1 (en) Interrupt processing circuit and interrupt debugging method
JPH071478B2 (en) Micro program controller
JPH04167146A (en) Address tracing system for information processor
JPS5848154A (en) One-step control system for program
JPH0588878A (en) Lisp instruction executing system
JPS6143347A (en) Simulation method of vector instruction
JPS61166631A (en) Microprogram control processor
JPH05127945A (en) Program execution situation analysis system
JPS6398034A (en) Shadow memory system
JPH03175539A (en) Debugging microprocessor
JPH05334098A (en) Method and device for interruption control
JPS613251A (en) Program debugging mechanism of processor
JPH02304634A (en) Processor system
JPH0553831A (en) Computer unit with interrupting function
JPS6361341A (en) Program debugging device
JPH03262049A (en) System for debugging device driver by interruption
JPS6349941A (en) Arithmetic processing unit
JPH0230049B2 (en)