[go: up one dir, main page]

JPS59161751A - Command running address recording device - Google Patents

Command running address recording device

Info

Publication number
JPS59161751A
JPS59161751A JP58034511A JP3451183A JPS59161751A JP S59161751 A JPS59161751 A JP S59161751A JP 58034511 A JP58034511 A JP 58034511A JP 3451183 A JP3451183 A JP 3451183A JP S59161751 A JPS59161751 A JP S59161751A
Authority
JP
Japan
Prior art keywords
instruction
address
run
area
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
JP58034511A
Other languages
Japanese (ja)
Inventor
Toshinori Kuwabara
桑原 敏憲
Tsuguo Momose
百瀬 次生
Kazuo Hibi
一夫 日比
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58034511A priority Critical patent/JPS59161751A/en
Publication of JPS59161751A publication Critical patent/JPS59161751A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment

Landscapes

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

Abstract

PURPOSE:To separate a program into a part which is already run and a part which is not run by recording automatically a run identification flag corresponding to an instruction address of a program to be recorded without deteriorating processing function. CONSTITUTION:Write data to an instruction run address recording device 100 is determined according to whether an instruction being executed by an information processor 1 is a branch instruction or not and by a branch success signal sent out through a bus 106. This data is sent out to an instruction run address storage part 8. Further, every time one instruction is executed by the processor 1, a low-order instruction address is selected by a record identification register 6 and comparing circuits 5a-5h, and an identification flag is stored in a two-bit storage area in the storage part 8 which is selected by said address. The contents of the storage part 8 are read out to a main storage device 2 by a bus 109 through the processor 1 on the basis of the flag, and the program is separated into a part which is already run and the part which is not run almost without deterioration in performance.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、情報処理装置内で処理した命令のアドレスを
記録する命令走行アドレス記録装置に関するものである
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to an instruction running address recording device for recording addresses of instructions processed within an information processing device.

〔従来技術〕[Prior art]

従来、走行命令アドレスを記録する機能として、記録対
象領域を指定する上・下限アドレス・レジスタと、実行
命令アドレスと核上・下限アドレス・レジスタとの比較
回路を有し、記録対象領域内の命令を実行した時、決め
られた割込みコードにてプログラム割込みを発生せしめ
、走行命令アドレスを記録実行する方式がある。しかし
ながら、この方式では記録対象領域内の個々の命令を実
行する毎に、割込み処理及び割込みの後のプログラムの
介入を要し、処理性能が著るしく劣化するという欠点が
あった。
Conventionally, the function of recording running instruction addresses includes upper and lower limit address registers that specify the recording target area, and a comparison circuit between the execution instruction address and the core upper and lower limit address registers, and the function is to record the commands in the recording target area. There is a method in which a program interrupt is generated using a predetermined interrupt code when the program is executed, and the running command address is recorded and executed. However, this method requires interrupt processing and program intervention after the interrupt each time an individual instruction within the recording target area is executed, resulting in a drawback that processing performance is significantly degraded.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、前記従来の如き欠点を解消し、処理性
能の劣化なく命令走行アドレスを記録できる命令走行ア
ドレス記録装置を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an instruction run address recording device which eliminates the above-mentioned conventional drawbacks and can record an instruction run address without degrading processing performance.

〔発明の概要〕[Summary of the invention]

本発明は、上・下限アドレス・レジスタにより指定した
記録対象領域内で実行される命令語のアドレス対応に、
未実行と実行を識別するフラグ(識別フラグ)を記録で
きるようOこ構成した記憶装置を設け、命令実行時、情
報処理装置で実行した命令アドレス対応に識別フラグを
該記憶装置に自動的に記録していき、既走行プログラム
部分と未走行プログラム部分の切り分けを可能としたも
のである。
The present invention provides address correspondence of instruction words to be executed within the recording target area specified by upper and lower limit address registers.
A storage device configured to record a flag (identification flag) for identifying execution and non-execution is provided, and when an instruction is executed, the identification flag is automatically recorded in the storage device corresponding to the address of the instruction executed by the information processing device. This makes it possible to separate the running program portion from the unrunning program portion.

〔発明の実施例〕[Embodiments of the invention]

第1図は本発明の実施例の構成図であり、破線で囲った
100の部分が本発明により付加した命令走行アドレス
記録装置を示す。命令走行アドレス記録装置100は、
記録すべきアドレス領域を指定する上限アドレス・レジ
スタ3a〜3h1下限アドレス・レジスタ4a〜4h、
アドレス比較回路5a〜5h、記録すべきブロックを指
定するレコード・ブロック識別レジスタ6、デコーダ7
および命令走行アドレス記憶部8から構成されている。
FIG. 1 is a block diagram of an embodiment of the present invention, and a portion 100 surrounded by a broken line indicates an instruction run address recording device added according to the present invention. The command running address recording device 100 is
Upper limit address registers 3a to 3h1 that specify address areas to be recorded; lower limit address registers 4a to 4h;
Address comparison circuits 5a to 5h, record block identification register 6 that specifies the block to be recorded, and decoder 7
and an instruction run address storage section 8.

命令走行アドレス記憶部8は複数のブロック(i、j)
に分割され、本実施例においては、i=0〜7、j−0
〜Fとして、8X16=128ブロツクに分割した例を
示す。8組の上・下限アドレス・レジスタ3a〜3h、
4a〜4hと比較回路5a〜5hはi=0〜7にそれぞ
れ対応し、レコード・ブロック識別レジスタ6はj−0
〜Fを識別するために用いられる。この8組の上・下限
アドレス・レジスタ3a〜3h、4a〜4hおよびレコ
ード・ブロック識別レジスタ6は、情報処理装置1を介
して、第2図に示す記録領域テーブル(通常、主記憶装
置2に置かれている)のデータをセット可能に構成され
ている。すなわち、本実施例では、被記録プログラムを
情報処理装置1にて実行する直前(こ、それぞれの被記
録プログラム固有のレコード・ブロック識別情報をレコ
ード・ブロック識別レジスタ6にセットすることにより
、16種類のプログラムの命令走行アドレス情報を記憶
部8に記録可能、又、8組の上・下限アドレス・レジス
タ3a〜3h、4a〜4hおよび比較回路5a〜5hを
有することにより、1つの被記録プログラムの記録領域
を、必要な場合、最大8記録領域に分割可能とするもの
である。
The instruction running address storage unit 8 has a plurality of blocks (i, j)
In this example, i=0 to 7, j-0
An example of dividing into 8×16=128 blocks is shown as ~F. 8 sets of upper and lower limit address registers 3a to 3h,
4a to 4h and comparison circuits 5a to 5h correspond to i=0 to 7, respectively, and the record block identification register 6 corresponds to j-0.
~Used to identify F. These eight sets of upper and lower limit address registers 3a to 3h, 4a to 4h and record block identification register 6 are stored in the recording area table shown in FIG. It is configured so that data can be set. That is, in this embodiment, immediately before the recorded program is executed in the information processing device 1 (by setting the record block identification information unique to each recorded program in the record block identification register 6, 16 types of The instruction running address information of a program can be recorded in the storage section 8, and by having eight sets of upper and lower limit address registers 3a to 3h, 4a to 4h and comparison circuits 5a to 5h, it is possible to record the instruction running address information of one recorded program. The recording area can be divided into a maximum of eight recording areas if necessary.

なお、上記機能を必要としない場合は、命令走行アドレ
ス記憶装置を分割する必要がなく、−組の」二・下限ア
ドレス・レジスタと比較回路のみで構成することも可能
である。
Incidentally, if the above function is not required, there is no need to divide the instruction running address storage device, and it is possible to configure it only with a set of "2" and "lower limit address registers" and a comparison circuit.

以下、第1図の動作を説明するが、本実施例における命
令の語長は2バイト4バイト及び6バイトの3種類ある
とし、このため、命令走行アドレス記録装置100は命
令アドレスの最下位ビットを除いて現実行命令アドレス
を受は取るとする。
The operation shown in FIG. 1 will be described below. In this embodiment, there are three types of instruction word lengths: 2 bytes, 4 bytes, and 6 bytes. Therefore, the instruction running address recording device 100 is It is assumed that the actual execution instruction address is received except for .

命令走行アドレス記録装置100は、情報処理、 装置
1から現在実行中の最下位ビットを除く命令アドレスを
母線101を介して受は取ると、その命令アドレスをX
、Yの2つの部分に分割し、上位X部分は母線102を
介して比較回路5a〜5hに送出する。比較回路5a〜
5hにおいて、該X部分が予じめ記録領域として上・下
限アドレス・レジスタ3a〜3h、4a〜4hに設定さ
れているアドレスL。−L7、Uo−U7と比較され、
L、<X<Ui(i=o〜7)の条件が成立した時、そ
の比較回路から母線104を介して命令走行アドレス記
憶部8のブロック・セレクト信号がσシ出され、該ブロ
ック(i)が選択される。又、レコード・ブロック識別
レジスタ6に設定されたプログラム固有値がデコーダ7
によりデコードされ、命令走行アドレス記憶部8のブロ
ック(j)が選択されている。
When the instruction running address recording device 100 receives the address of the instruction currently being executed excluding the least significant bit from the information processing device 1 via the bus 101, the instruction address recording device 100 records the instruction address as
, Y, and the upper X portion is sent to comparison circuits 5a to 5h via bus 102. Comparison circuit 5a~
5h, the address L whose X portion is previously set as a recording area in upper and lower limit address registers 3a to 3h and 4a to 4h. -L7, compared with Uo-U7,
When the condition of L, ) is selected. Also, the program specific value set in the record block identification register 6 is transmitted to the decoder 7.
The block (j) of the instruction run address storage section 8 is selected.

以上により、命令走行アドレス記憶部8のブロック(1
%  j)が選択される。該ブロック内アドレスは、母
線103を介して現実行命令アドレスの下位Y部分によ
り決定される。但し、本実施例における命令の語長は2
バイト、4バイト、6バイトの3種であるとしているた
め、現実行命令アドレスの最下位ビットは除かれている
。第3図は命令走行アドレス記憶部8の詳細図で、各ブ
ロック内は命令アドレス2バイト毎に2ビツトの記憶容
量が割り当てられている。従って、最下位ビットを除く
命令アドレスの下位アドレスYの分割位置(ビット数)
は1ブロツクの記憶容量によって決定される。第3図は
ブロック(0,0)内の記録例である。
As described above, block (1) of the instruction running address storage section 8
%j) is selected. The intra-block address is determined by the lower Y portion of the actually executed instruction address via the bus 103. However, the word length of the command in this example is 2.
Since there are three types: byte, 4 bytes, and 6 bytes, the least significant bit of the actual execution instruction address is excluded. FIG. 3 is a detailed diagram of the instruction running address storage section 8, in which a storage capacity of 2 bits is allocated for every 2 bytes of instruction address within each block. Therefore, the division position (number of bits) of the lower address Y of the instruction address excluding the least significant bit
is determined by the storage capacity of one block. FIG. 3 is an example of recording in block (0,0).

一方、命令走行アドレス記憶装置100への書き込みデ
ータは、情報処理装置1から母線105を介しての現実
行中の命令が分岐命令か否か、および母線106を介し
て送出される分岐成功信号により決定される。つまり、
分岐命令実行時は、セレクタ10により母線106の分
岐成功信号をセレクトし、分岐命令以外の時は1信号線
がセレクトされ、書き込みデータ信号として母線107
.108を介して命令走行アドレス記憶部8に送出され
る。このようにして、情報処理装置1が1命令実行する
毎に、レコードブロック識別レジヌタ6および比較回路
5a〜5hからの信号104によりセレクトされたブロ
ック内の下位命令アドレスYをこより選択された2ビツ
ト記憶域に、識別フラグが第3図の如く記憶されてゆく
。ここで、識別フラグは第4図に示すような意味を持つ
。第4図において、4バイト長命令における2段目の“
00”、6バイト長命令における2と3段目のオール゛
’ o o ”は、命令が4バイト、6バイトの場合、
当該ビット域が選択されないことによる。命令走行アド
レス記憶部8の内容は、母線109により情報処理装置
1を介して主記憶装置2Qこ読み出すことが可能である
On the other hand, data written to the instruction running address storage device 100 is determined based on whether or not the currently executed instruction is a branch instruction sent from the information processing device 1 via the bus 105 and a branch success signal sent via the bus 106. It is determined. In other words,
When a branch instruction is executed, the selector 10 selects the branch success signal on the bus 106, and when the instruction is not a branch instruction, 1 signal line is selected and the signal is sent to the bus 107 as a write data signal.
.. It is sent to the instruction running address storage section 8 via 108. In this way, each time the information processing device 1 executes one instruction, the lower instruction address Y in the block selected by the record block identification register 6 and the signal 104 from the comparison circuits 5a to 5h is selected by the selected 2 bits. The identification flag is stored in the storage area as shown in FIG. Here, the identification flag has a meaning as shown in FIG. In Figure 4, the second stage “” in a 4-byte length instruction
00'', all ``o o'' in the 2nd and 3rd stage in a 6-byte length instruction, if the instruction is 4 bytes or 6 bytes,
This is because the relevant bit area is not selected. The contents of the instruction run address storage section 8 can be read out from the main storage device 2Q via the information processing device 1 via the bus 109.

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

本発明によれば、はとんど性能劣化なしに、記録対象プ
ログラムの命令アドレス対応に走行識別フラグを自動的
に記録することにより、被記録対象プログラム走行時に
も既走行プログラム部分と未走行プログラム部分との切
り分けができ、性能劣化のないブログラノ、・デバッグ
機能を提供することができる。
According to the present invention, by automatically recording the running identification flag corresponding to the instruction address of the recording target program without deteriorating the performance, even when the recording target program is running, the running program part and the unrunning program part can be distinguished from each other even when the recording target program is running. It is possible to separate parts and provide blog/debug functions without performance deterioration.

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

第1図は本発明の一実施例の構成図、第2図は記録領域
テーブルの一例を示す図、第3図は第1図における命令
走行アドレス記憶部の記録例を示す図、第4図は識別ビ
ットの表現例を示す図である。 1・・・情報処理装置、 2・・主記憶装置、  3a
〜3h・・・下限アドレス・レジスタ、  4a〜4h
・」−限アドレス・レジスタ、  5a〜5h・・・比
較回路、6・・レコード・ブロック識別レジスタ、  
7・・デコーダ、  8・・・命令走行アドレス記憶部
、  9・・・インバータ、  10・・・セレクタ、
100・・命令走行アドレス記録装置。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing an example of a recording area table, FIG. 3 is a diagram showing a recording example of the instruction running address storage section in FIG. 1, and FIG. 2 is a diagram showing an example of representation of identification bits. FIG. 1... Information processing device, 2... Main storage device, 3a
~3h...lower limit address register, 4a~4h
- Limit address register, 5a to 5h... Comparison circuit, 6... Record block identification register,
7...Decoder, 8...Instruction running address storage unit, 9...Inverter, 10...Selector,
100... Instruction running address recording device.

Claims (1)

【特許請求の範囲】[Claims] (1)情報処理装置内で走行するプログラムの命令アド
レスを記録する装置において、記録すべき命令アドレス
領域を指定する上・下限アドレス・レジスタと、現在実
行中の命令アドレスが前記上・下限アドレス・レジスタ
で指定された領域内か否かを判定する比較回路と、命令
アドレス対応に、該当命令の実行・未実行を識別するフ
ラグ(識別フラグ)を記録する領域を有する命令走行ア
ドレス記憶部とを具備し、情報処理装置が1命令実行す
る毎に、その命令アドレスが指定領域内か否か前記比較
回路で判定し、指定領域内にあると、前記命令走行アド
レス記憶部内の該当命令アドレス領域に識別フラグを記
録することを特徴とする命令走行アドレス記録装置。
(1) In a device that records the instruction address of a program running in an information processing device, upper and lower limit address registers specify the instruction address area to be recorded, and the upper and lower limit address registers specify the instruction address area currently being executed. A comparison circuit that determines whether or not the area is within an area specified by a register, and an instruction run address storage section that has an area that records a flag (identification flag) that identifies execution/non-execution of the corresponding instruction corresponding to the instruction address. Each time the information processing device executes one instruction, the comparator circuit determines whether the instruction address is within the specified area, and if the instruction address is within the specified area, the corresponding instruction address area in the instruction running address storage section is An instruction running address recording device characterized by recording an identification flag.
JP58034511A 1983-03-04 1983-03-04 Command running address recording device Pending JPS59161751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58034511A JPS59161751A (en) 1983-03-04 1983-03-04 Command running address recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58034511A JPS59161751A (en) 1983-03-04 1983-03-04 Command running address recording device

Publications (1)

Publication Number Publication Date
JPS59161751A true JPS59161751A (en) 1984-09-12

Family

ID=12416279

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58034511A Pending JPS59161751A (en) 1983-03-04 1983-03-04 Command running address recording device

Country Status (1)

Country Link
JP (1) JPS59161751A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6375848A (en) * 1986-09-18 1988-04-06 Fujitsu Ltd Debugging history recording method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6375848A (en) * 1986-09-18 1988-04-06 Fujitsu Ltd Debugging history recording method

Similar Documents

Publication Publication Date Title
US6172906B1 (en) Increasing the memory performance of flash memory devices by writing sectors simultaneously to multiple flash memory devices
US5802347A (en) Emulator with function for detecting illegal access to special function register
JP2003501778A (en) Disk drive controller circuit and method for skipping defective and / or unwanted sectors
EP0098172B1 (en) Register control processing system
JPS59161751A (en) Command running address recording device
US4628450A (en) Data processing system having a local memory which does not use a directory device with distributed resident programs and a method therefor
US5434979A (en) Disk drive controller
JPS5823307A (en) Assigning method of alternative storage area for rotating type magnetic storage device
JPS6331809B2 (en)
JPS5826043B2 (en) Processor reset method
KR960001096B1 (en) Boot drive system
JPS59197946A (en) Memory device
JPH09114598A (en) Disk cache device
JP3130798B2 (en) Bus transfer device
JPS60134940A (en) Register selection method for information processing equipment
JPS60169946A (en) Task control method
JPS601672A (en) How to deal with defective blocks in magnetic disk drives
JPH0644193A (en) I/o register access system
KR100247971B1 (en) Method for interfacing between host and optical disk drive
JPH01300352A (en) Dump area instruction control method
JPH02136921A (en) Register access method
JPH0764858A (en) Cache memory
JPS6022381B2 (en) Memory address control method
JPH0191375A (en) Magnetic disk controller
JPS62209774A (en) Defective area replacement processing method for magnetic disk drives