JPS642977B2 - - Google Patents

Info

Publication number
JPS642977B2
JPS642977B2 JP56214021A JP21402181A JPS642977B2 JP S642977 B2 JPS642977 B2 JP S642977B2 JP 56214021 A JP56214021 A JP 56214021A JP 21402181 A JP21402181 A JP 21402181A JP S642977 B2 JPS642977 B2 JP S642977B2
Authority
JP
Japan
Prior art keywords
register
information
debug information
micro
macro
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.)
Expired
Application number
JP56214021A
Other languages
Japanese (ja)
Other versions
JPS58114144A (en
Inventor
Yasuo Fujihira
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 JP56214021A priority Critical patent/JPS58114144A/en
Publication of JPS58114144A publication Critical patent/JPS58114144A/en
Publication of JPS642977B2 publication Critical patent/JPS642977B2/ja
Granted 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)

Description

【発明の詳細な説明】 本発明はデータ処理装置に係り、特にデバツグ
情報を格納するデバツグ情報格納方式に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data processing device, and more particularly to a debug information storage method for storing debug information.

従来デバツグ機能としては命令の推移を格納す
る機能、ハード状態を格納する機能が各々別々に
又はスイツチ等により初期設定することによりい
ずれか一方を利用できる形で存在し、前者はハー
ドが多大となり、後者は必要な情報が全ては取得
できない欠点があつた。
Conventionally, debugging functions include a function to store the instruction transition and a function to store the hardware status, either of which can be used separately or by initializing with a switch, etc.; the former requires a large amount of hardware; The latter had the drawback of not being able to obtain all the necessary information.

本発明の目的はデバツグに必要な情報をマクロ
なものとミクロなものとに分類し、時系列的に古
いものはマクロな情報で、新しいものはミクロな
情報で同一メモリに格納することによりハードを
ふやすことなくデバツグに必要な情報を取得する
ことである。
The purpose of the present invention is to classify the information necessary for debugging into macro information and micro information, and store the older information in the same memory as macro information and the newer information in the same memory. The objective is to obtain the information necessary for debugging without increasing the amount of time required.

即ち、本発明はデバツグに必要な情報がマクロ
なもの(例えばOPコード)とミクロなもの(マ
イクロ命令)という形で存在し、ミクロな情報は
1つのマクロな情報の範囲内で格納されていれば
良い点を利用し、その各々を格納する為のアドレ
ス用のレジスタを個々に持たせることにより、デ
バツグ情報を時系列的に取得できるようにしたも
のである。
That is, in the present invention, the information necessary for debugging exists in the form of macro information (for example, OP code) and micro information (micro instructions), and micro information must be stored within the scope of one macro information. By taking advantage of this advantageous feature and providing individual registers for addresses to store each piece of information, debugging information can be obtained in chronological order.

以下本発明を図面により詳細に説明する。 The present invention will be explained in detail below with reference to the drawings.

第1図は本発明の実施例である。 FIG. 1 shows an embodiment of the invention.

図において、IRはマクロなデバツグ情報を蓄
積するレジスタ、MRはミクロなデバツグ情報を
蓄積するレジスタ、MEMは情報格納用メモリ、
IBARはマクロなデバツグ情報を格納する場合の
情報格納用メモリアドレスを設定するレジスタ回
路、MBARはミクロなデバツグ情報を格納する
場合の情報格納用メモリアドレスを設定するレジ
スタ回路、MUXはマルチプレクサ回路、CONT
は制御回路、RRは出力回路である。
In the figure, IR is a register that stores macro debug information, MR is a register that stores micro debug information, MEM is a memory for storing information,
IBAR is a register circuit that sets a memory address for storing information when storing macro debug information, MBAR is a register circuit that sets a memory address for storing information when storing micro debug information, MUX is a multiplexer circuit, CONT
is the control circuit, and RR is the output circuit.

第1図において、情報格納用メモリMEMへは
格納すべきマクロ命令(OPコード)が蓄積され
ているレジスタIRの内容と、実行中のマイクロ
命令が蓄積されているレジスタMRの内容がマル
チプレツクス回路MUXを介して入力される。
In Figure 1, the contents of register IR, which stores macro instructions (OP codes) to be stored in information storage memory MEM, and the contents of register MR, which stores micro instructions being executed, are stored in a multiplex circuit. Input via MUX.

情報格納用メモリMEMのアドレス指定は、マ
クロ命令を格納する場合はレジスタIBARによ
り、又マイクロ命令を格納する場合はレジスタ
MRにより行われる。
The address of the information storage memory MEM is specified by register IBAR when storing macro instructions, and by register when storing micro instructions.
Conducted by MR.

情報格納用メモリMEMの格納情報は出力回路
RRに出力される。
The information stored in the information storage memory MEM is output to the output circuit.
Output to RR.

制御回路CONTは、1マクロ命令の終了信号
を受けるとレジスタIBARの内容をアドレスとし
て、情報格納用メモリMEMにレジスタIRの内容
を格納すると共にレジスタIBARを+1する。
When the control circuit CONT receives the end signal of one macro instruction, it stores the contents of the register IR in the information storage memory MEM using the contents of the register IBAR as an address, and also increments the register IBAR by one.

またその時レジスタIBARを+1した値をレジ
スタMBARにセツトする。
At that time, the value obtained by adding 1 to register IBAR is set in register MBAR.

マイクロ命令が開始されるとレジスタMBAR
の内容を情報格納用メモリMEMのアドレスとし
て、情報格納用メモリMEMにレジスタMRの内
容を格納する。
Register MBAR when microinstruction is started
The contents of the register MR are stored in the information storage memory MEM using the contents of the register MR as the address of the information storage memory MEM.

またその時レジスタMBARの内容を+1して
更新する。
At that time, the contents of register MBAR are updated by +1.

制御回路CONTからは格納される情報が、レ
ジスタIRの内容かレジスタMRの内容かを区別表
示するフラグ情報を情報格納用メモリMEMに入
力し、例えばレジスタIRの内容の場合は“1”
を、レジスタMRの内容の場合は“0”を入力す
る。
From the control circuit CONT, flag information is input to the information storage memory MEM to distinguish whether the information to be stored is the contents of the register IR or the contents of the register MR. For example, if it is the contents of the register IR, it is set to "1"
If it is the contents of register MR, input "0".

次に、制御回路CONTが次のマクロ命令の終
了信号を受けるとレジスタIBARの内容をアドレ
スとして、情報格納用メモリMEMにレジスタIR
の内容を格納すると共にIBARを+1する。
Next, when the control circuit CONT receives the end signal of the next macro instruction, it uses the contents of the register IBAR as an address and stores the register IR in the information storage memory MEM.
Stores the contents of and increments IBAR by 1.

この場合、先に格納されたマイクロ命令の格納
アドレス位置に次のマイクロ命令が格納されるこ
とになるが、先述したようにミクロな情報(マイ
クロ命令)は対応する1つのマクロな情報(マク
ロ命令)の範囲内で格納されていれば良いので、
何等差し支えない。
In this case, the next microinstruction will be stored at the storage address location of the previously stored microinstruction, but as mentioned earlier, the microinstruction (microinstruction) is replaced by one corresponding macroinstruction (macroinstruction ) as long as it is stored within the range of
I don't mind anything.

第2図は情報格納用メモリMEMへのマクロ命
令、マイクロ命令の格納状態を示す図である。
FIG. 2 is a diagram showing the storage state of macro instructions and micro instructions in the information storage memory MEM.

本実施例によれば情報格納用のメモリを2重に
持つ事なく簡単な制御回路とアドレスレジスタ
(IBAR又はMBAR)及びマルチプレクサ回路
(MUX)の追加のみでマクロ命令とマイクロ命
令を時系列的に格納できる効果がある。
According to this embodiment, macro instructions and micro instructions can be written in chronological order by simply adding a simple control circuit, an address register (IBAR or MBAR), and a multiplexer circuit (MUX) without having duplicate memory for information storage. It has the effect of being able to be stored.

第1図の例ではマクロ命令とマイクロ命令とを
格納する例であるが、マクロ命令、マイクロ命令
の他にそれぞれのアドレスを格納するようにして
もよいし、又各命令とアドレスの両方を格納する
ようにしてもよい。
In the example shown in Figure 1, macro instructions and micro instructions are stored, but in addition to macro instructions and micro instructions, each address may be stored, or both each instruction and address may be stored. You may also do so.

更に、同様の発明思想の下で、マクロな動作と
ミクロな動作の組み合わせに関して、IR、MRに
蓄積する情報を変えることにより(たとえばIR
にオペランドリード、ライト、命令リードという
メモリアクセスのフラグ情報をセツトし、詳細情
報をMRにセツトし、制御回路へは命令終了信号
のかわりにメモリアクセス終了信号を入れる)少
ない回路でデバツグに必要かつ十分な機能を提供
できる。
Furthermore, based on the same inventive idea, by changing the information stored in IR and MR regarding the combination of macro and micro operations (for example, IR
(Set flag information for memory access such as operand read, write, and instruction read in MR, set detailed information in MR, and input memory access end signal instead of instruction end signal to control circuit). Can provide sufficient functionality.

本発明によればマクロな情報とミクロな情報を
時系列的に格納することができ、少ない費用でデ
バツグに必要かつ十分な機能を提供できる効果が
ある。
According to the present invention, macro information and micro information can be stored in chronological order, and it is possible to provide necessary and sufficient functions for debugging at low cost.

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

第1図は本発明の実施例である。第2図は情報
格納用メモリMEMへのマクロ命令、マイクロ命
令の格納状態を示す図である。 図において、IRはマクロなデバツグ情報を蓄
積するレジスタ、MRはミクロなデバツグ情報を
蓄積するレジスタ、MEMは情報格納用メモリ、
IBARはマクロなデバツグ情報を格納する場合の
情報格納用メモリアドレスを設定するレジスタ回
路、MBARはミクロなデバツグ情報を格納する
場合の情報格納用メモリアドレスを設定するレジ
スタ回路、MUXはマルチプレクサ回路、CONT
は制御回路、RRは出力回路である。
FIG. 1 shows an embodiment of the invention. FIG. 2 is a diagram showing the storage state of macro instructions and micro instructions in the information storage memory MEM. In the figure, IR is a register that stores macro debug information, MR is a register that stores micro debug information, MEM is a memory for storing information,
IBAR is a register circuit that sets a memory address for storing information when storing macro debug information, MBAR is a register circuit that sets a memory address for storing information when storing micro debug information, MUX is a multiplexer circuit, CONT
is the control circuit, and RR is the output circuit.

Claims (1)

【特許請求の範囲】 1 順次実行されるマクロな動作のそれぞれが一
連のミクロな動作で構成されているデータ処理装
置におけるデバツグ情報格納方式において、 デバツグ情報格納用のメモリと、 マクロなデバツグ情報を格納する場合のアドレ
スを設定する第一のレジスタと、 ミクロなデバツグ情報を格納する場合のアドレ
スを設定する第二のレジスタと、 マクロなデバツグ情報とミクロなデバツグ情報
との一方を選択する第一のマルチプレクサと、 上記第一および第二のレジスタの一方を選択す
る第二のマルチプレクサとを設け、 マクロな動作の終了毎に、上記第一のマルチプ
レクサによつて選択されるマクロなデバツグ情報
を、上記メモリの上記第二のマルチプレクサによ
つて選択される第一のレジスタ内容のアドレスを
格納するとともに、該第一レジスタの内容を歩進
させ、且つ該歩進された値を前記第二レジスタに
セツトするようにし、 ミクロな動作の終了毎に、上記第一のマルチプ
レクサによつて選択されるミクロなデバツグ情報
を、上記メモリの上記第二のマルチプレクサによ
つて選択される第二のレジスタの内容のアドレス
に格納するとともに、該第二レジスタの内容を歩
進させるようにした事を特徴とするデバツグ情報
格納方式。
[Claims] 1. In a debug information storage method for a data processing device in which each sequentially executed macro operation is composed of a series of micro operations, there is provided a memory for storing debug information and a memory for storing macro debug information. A first register for setting an address for storing micro debug information, a second register for setting an address for storing micro debug information, and a first register for selecting either macro debug information or micro debug information. a multiplexer for selecting one of the first and second registers, and a second multiplexer for selecting one of the first and second registers, and each time a macro operation is completed, the macro debug information selected by the first multiplexer is storing the address of the contents of a first register selected by the second multiplexer of the memory, incrementing the contents of the first register, and transferring the incremented value to the second register; and at the end of each micro operation, the micro debug information selected by the first multiplexer is transferred to the contents of the second register selected by the second multiplexer of the memory. 1. A debug information storage method characterized in that the debug information is stored at the address of the second register and the contents of the second register are incremented.
JP56214021A 1981-12-26 1981-12-26 Debugging information storage system Granted JPS58114144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56214021A JPS58114144A (en) 1981-12-26 1981-12-26 Debugging information storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56214021A JPS58114144A (en) 1981-12-26 1981-12-26 Debugging information storage system

Publications (2)

Publication Number Publication Date
JPS58114144A JPS58114144A (en) 1983-07-07
JPS642977B2 true JPS642977B2 (en) 1989-01-19

Family

ID=16648955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56214021A Granted JPS58114144A (en) 1981-12-26 1981-12-26 Debugging information storage system

Country Status (1)

Country Link
JP (1) JPS58114144A (en)

Also Published As

Publication number Publication date
JPS58114144A (en) 1983-07-07

Similar Documents

Publication Publication Date Title
KR900003591B1 (en) Data processor devices
JPS6114535B2 (en)
KR910012925A (en) How to initialize and address the components of your personal computer system and memory
US4394729A (en) Jump return stack
US4128878A (en) System for excuting a program-call instruction in a computer
US20030084232A1 (en) Device and method capable of changing codes of micro-controller
KR950009271B1 (en) Information processing system
JPS642977B2 (en)
JPS6058487B2 (en) data processing equipment
JPS6148735B2 (en)
JPS6410854B2 (en)
JP2731047B2 (en) Program operand check method
JPS60134957A (en) Parallel operation processing device
JPS626341A (en) Information processor
JPS6121694Y2 (en)
JPS6320631A (en) Register selecting system
JPH039438A (en) Diagnostic circuit
JPS6049331B2 (en) Information processing device with read-only control storage section and rewritable control storage section
JPH01263819A (en) Integrated circuit
JPH02204843A (en) Execution history storage device
JPS5998253A (en) Microprogram controller
JPS59186048A (en) Microprogram control system
JPH03210636A (en) Microprogram controller
JPH0363835A (en) Firmware diagnostic device
JPH0417464B2 (en)