JPS63158637A - Memory tracing system - Google Patents

Memory tracing system

Info

Publication number
JPS63158637A
JPS63158637A JP61307467A JP30746786A JPS63158637A JP S63158637 A JPS63158637 A JP S63158637A JP 61307467 A JP61307467 A JP 61307467A JP 30746786 A JP30746786 A JP 30746786A JP S63158637 A JPS63158637 A JP S63158637A
Authority
JP
Japan
Prior art keywords
memory
trace
condition
address
circuit
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
JP61307467A
Other languages
Japanese (ja)
Inventor
Koji Maki
牧 幸治
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 JP61307467A priority Critical patent/JPS63158637A/en
Publication of JPS63158637A publication Critical patent/JPS63158637A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To simplify the constitution of a circuit, and to prevent the expansion of the scale of the circuit by using the same address signal as that of a main storing memory for the address signal of a trace condition memory. CONSTITUTION:Because an address bus 19 from a micro-processor 11 is connected to the main storing memory 12 and to the trace condition memory 21, when an address appears in the address bus 19, the main storing memory 12 and the condition memory 21 are simultaneously selected, and from the trace condition memory 21, a trace condition data, corresponding to the said address, is outputted. The outputted trace condition data is inputted to a condition comparison circuit 22, and is compared with the state of the address bus 19, a data bus 18 and a control line 20, and when a condition coincidence is detected, a write-in instruction is given to a memory write-in control circuit 16, and a contents to be traced is written in a trace storing memory 17.

Description

【発明の詳細な説明】 〔概 要〕 マイクロプロセッサがアクセスする主記憶メモリと同一
アドレスにトレース条件を記憶したトレース条件メモリ
を有し、マイクロプロセッサのアクセス時の各信号条件
とトレース条件との一致検出によってそのときの各信号
条件をトレース蓄積メモリに記憶することによって、メ
モリトレースを行う。
[Detailed Description of the Invention] [Summary] It has a trace condition memory that stores trace conditions at the same address as the main memory accessed by the microprocessor, and matches each signal condition with the trace condition when accessed by the microprocessor. Memory tracing is performed by storing each signal condition at that time in a trace storage memory upon detection.

C産業上の利用分野〕 本発明はメモリをトレースする方式に係り、特にトレー
ス条件を記憶するメモリを設けることによって、回路規
模を縮減したメモリトレース方式%式% マイクロプロセッサを用いた電子計算機においては、マ
イクロプロセッサのソフトウェアのデバッグは、主とし
てメモリにおける変化を観測することによって、診断を
行えることが多い。
C. Industrial Application Field] The present invention relates to a memory tracing method, and in particular, to a memory tracing method that reduces the circuit size by providing a memory for storing trace conditions.In an electronic computer using a microprocessor, , Debugging of microprocessor software can often be diagnosed primarily by observing changes in memory.

この場合メモリにおける変化を観測するためのメモリト
レース方式としては、回路規模が小さいことと、ワード
単位にトレース条件を容易に変更して観測できるもので
あることが要望される。
In this case, a memory tracing method for observing changes in the memory is required to have a small circuit scale and to be able to easily change and observe trace conditions in word units.

〔従来の技術〕[Conventional technology]

第4図は従来のメモリトレース方式を示したものである
。同図において、11はマイクロプロセッサ、12は主
記憶メモリ、131〜13nはトレース条件一時記憶回
路、14 +〜14nは条件比較回路、15はオア回路
、16はメモリ書き込み制御回路、17はトレース蓄積
メモリ、18はデータバス、19はアドレスバス、20
は制御線である。
FIG. 4 shows a conventional memory tracing method. In the figure, 11 is a microprocessor, 12 is a main memory, 131 to 13n are trace condition temporary storage circuits, 14 + to 14n are condition comparison circuits, 15 is an OR circuit, 16 is a memory write control circuit, and 17 is a trace accumulation circuit. Memory, 18 data bus, 19 address bus, 20
is the control line.

また第5図は第4図の構成における各部の動作タイミン
グを示したものである。
Further, FIG. 5 shows the operation timing of each part in the configuration of FIG. 4.

第4図において、マイクロプロセッサ11は主記憶メモ
リ12に対し、アドレスバス19を介してアドレス指定
し、制御線20を介して制御信号を与えることによって
、データバス18を経てデータの読み書きを行って、所
望の動作を行うようになっている。
In FIG. 4, microprocessor 11 reads and writes data to main memory 12 via data bus 18 by addressing via address bus 19 and by providing control signals via control line 20. , to perform the desired operation.

いまマイクロプロセッサ11と主記憶メモリ12を被試
験部として、メモリトレースを行う場合には、トレース
条件一時記憶回路131〜13nに、それぞれの場合の
アドレス条件、データ条件、制御信号条件が記憶される
。条件比較回路141〜14nは、対応するトレース条
件一時記憶回路13、〜13nの内容と、アドレスバス
19.データバス18.制御線(資)における状態とを
比較し、条件が一致したとき一致検出信号を発生する。
When memory tracing is performed using the microprocessor 11 and the main memory 12 as parts under test, the address conditions, data conditions, and control signal conditions for each case are stored in the trace condition temporary storage circuits 131 to 13n. . The condition comparison circuits 141 to 14n compare the contents of the corresponding trace condition temporary storage circuits 13 to 13n and the address bus 19. Data bus18. It compares the status with the control line (source) and generates a match detection signal when the conditions match.

これによってオア回路15を経てメモリ書き込み制御回
路16に対してメモリ書き込み指令が行われ、これに応
じてメモリ書き込み制御回路16はトレース蓄積メモリ
17に対して、そのときのアドレスバス19.データバ
ス18゜制御線20の状態を記憶するように制御を行う
。このようにしてそのときのマイクロプロセッサ11の
メモリトレースが行われて、トレース蓄積メモリ17に
トレース内容が順次蓄積される。
As a result, a memory write command is issued to the memory write control circuit 16 via the OR circuit 15, and in response, the memory write control circuit 16 instructs the trace storage memory 17 to use the address bus 19. Control is performed so that the state of the data bus 18° control line 20 is stored. In this way, the memory trace of the microprocessor 11 at that time is performed, and the trace contents are sequentially stored in the trace storage memory 17.

第5図においては、アドレスバス19の信号であるアド
レス#1と、あるトレース条件一時記憶回路の出力であ
るトレース条件データ#1とが一致したとき、対応する
条件比較回路から一致検出信号が発生することが示され
ているが、一致検出はアドレスバスの条件だけでなく、
他の条件についても行うことができる。
In FIG. 5, when address #1, which is a signal on the address bus 19, and trace condition data #1, which is the output of a certain trace condition temporary storage circuit, match, a match detection signal is generated from the corresponding condition comparison circuit. However, match detection depends not only on the address bus conditions;
This can also be done for other conditions.

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

第4図に示された従来のメモリトレース方式においては
、複数のアドレスに対してトレースを行う場合には、第
4図にもけるトレース条件一時記憶回路と条件比較回路
の組を複数個必要とする。
In the conventional memory tracing method shown in FIG. 4, when tracing multiple addresses, multiple sets of the trace condition temporary storage circuit and condition comparison circuit shown in FIG. 4 are required. do.

従って多数のアドレスについてトレースを行うような場
合には、回路規模が増大することを避けられないという
問題があった。
Therefore, when tracing a large number of addresses, there is a problem in that the circuit scale inevitably increases.

C問題点を解決するための手段) 本発明はこのような従来技術の問題点を解決しようとす
るものであって、第1図にその原理的構成を示すように
、マイクロプロセッサ11が主記憶メモリ12をアクセ
スして動作する装置において、トレース条件メモリ21
と、条件比較回路nと、トレースM積メモリ17とを具
える。
Means for Solving Problem C) The present invention attempts to solve the problems of the prior art, and as shown in FIG. In a device that operates by accessing the memory 12, the trace condition memory 21
, a condition comparison circuit n, and a trace M product memory 17.

トレース条件メモリ21は、マイクロプロセッサ11と
主記憶メモリ12との間で授受される各信号状態をアド
レスごとに規定するトレース条件を、主記憶メモリ12
と同一のアドレスに記憶して、主記憶メモリ12のアド
レス指定に同期して出力する。
The trace condition memory 21 stores trace conditions that define each signal state exchanged between the microprocessor 11 and the main memory 12 for each address.
is stored at the same address as , and output in synchronization with the address designation of the main memory 12.

条件比較回路22は、マイクロプロセッサ11と主記憶
メモリ12との間で授受される各信号状態を、トレース
条件メモリ21のトレース条件出力と比較して、一致し
たときメモリ書き込み指令を発生する。
The condition comparison circuit 22 compares each signal state exchanged between the microprocessor 11 and the main memory 12 with the trace condition output of the trace condition memory 21, and when they match, generates a memory write command.

トレース蓄積メモリ17は、メモリ書き込み指令に応じ
て、マイクロプロセッサ11と主記憶メモリ12との間
で授受される各信号状態を順次記憶する。
The trace storage memory 17 sequentially stores each signal state exchanged between the microprocessor 11 and the main memory 12 in response to a memory write command.

〔作 用〕[For production]

本発明のメモリトレース方式では、トレース条件を記憶
するトレース条件メモリのアドレス信号として主記憶メ
モリと同一のアドレス信号を用いているので、マイクロ
プロセッサが任意の主記憶メモリを選択するのに同期し
て、選択された主記憶メモリに対応するトレース条件メ
モリが選択され、マイクロプロセッサと主記憶メモリと
の間で授受される各信号状態とトレース条件メモリから
読み出されたトレース条件との比較が行われて、条件一
致によって主記憶メモリとの間で授受される各信号状態
がトレース蓄積メモリに順次記憶されるので、主記憶メ
モリの1ワードごとにトレース条件を持ち、トレースを
行うことができる。
In the memory trace method of the present invention, the same address signal as that of the main memory is used as the address signal of the trace condition memory that stores trace conditions, so that the microprocessor can synchronize with the selection of any main memory. , a trace condition memory corresponding to the selected main memory is selected, and each signal state exchanged between the microprocessor and the main memory is compared with the trace condition read from the trace condition memory. Since each signal state exchanged with the main memory according to condition matching is sequentially stored in the trace storage memory, each word of the main memory can have a trace condition and can be traced.

〔実施例〕〔Example〕

第2図は本発明の一実施例を示したものであって、第4
図におけると同じ部分を同じ番号で示し、それらの機能
、動作は第4図の場合と同様である。
FIG. 2 shows one embodiment of the present invention.
The same parts as in the figure are indicated by the same numbers, and their functions and operations are the same as in the case of FIG.

21はトレース条件メモリ、22は条件比較回路である
21 is a trace condition memory, and 22 is a condition comparison circuit.

また第3図は第2図の構成における各部の動作タイミン
グを示したものである。
Further, FIG. 3 shows the operation timing of each part in the configuration of FIG. 2.

第2図において、マイクロプロセッサ11からのアドレ
スバス19は、主記憶メモリ12とトレース条件メモリ
21に接続されていて、アドレスバス19にアドレスが
現れると、主記憶メモリI2とトレース条件メモリ21
とは同時に選択されて、第3図に示すようにトレース条
件メモリ21からは、そのアドレスに対応するトレース
条件データが出力される。
In FIG. 2, the address bus 19 from the microprocessor 11 is connected to the main memory 12 and the trace condition memory 21, and when an address appears on the address bus 19, the address bus 19 from the microprocessor 11 is connected to the main memory I2 and the trace condition memory 21.
is selected at the same time, and trace condition data corresponding to that address is output from the trace condition memory 21 as shown in FIG.

出力されたトレース条件データは、条件比較回路22に
入力されて、アドレスバス19.データバス18、制御
線20の状態と比較される。条件比較回路22において
条件一致が検出されると、条件比較回路nはメモリ書き
込み制御回路16に対して書き込み指令を行う。
The output trace condition data is input to the condition comparison circuit 22, and the address bus 19. The states of the data bus 18 and control line 20 are compared. When condition matching is detected in the condition comparison circuit 22, the condition comparison circuit n issues a write command to the memory write control circuit 16.

これに応じてメモリ書き込み制御回路16はトレース蓄
積メモリ17に対して、そのときのアドレスバス19.
データバス18.制御線20の状態を記憶するように制
御を行う。このようにしてそのときのマイクロプロセッ
サ】1のメモリトレースが行われて、トレース蓄積メモ
リ17にトレース内容が順次蓄積される。
In response, the memory write control circuit 16 writes the trace storage memory 17 to the current address bus 19.
Data bus18. Control is performed so that the state of the control line 20 is stored. In this way, the memory trace of the current microprocessor 1 is performed, and the trace contents are sequentially stored in the trace storage memory 17.

第3図においては、アドレスバス19の信号であるアド
レス#1と、トレース条件メモリ21のある出力である
トレース条件データ#lとが一致したとき、条件比較回
路22から一致検出信号が発生し、これによってトレー
ス蓄積メモリ17に対してそのときのマイクロプロセッ
サ状態が書き込まれることが示されている。この場合一
致検出はアドレスバスの条件だけでなく、他の条件につ
いても行うことができることは、従来の方式と同様であ
る。
In FIG. 3, when address #1, which is a signal on address bus 19, and trace condition data #l, which is an output from trace condition memory 21, match, a match detection signal is generated from condition comparison circuit 22, and This indicates that the current microprocessor state is written to the trace storage memory 17. In this case, matching detection can be performed not only for address bus conditions but also for other conditions, as in the conventional method.

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

以上説明したように、本発明のメモリトレース方式によ
れば、複数のアドレスに対するメモリトレースが、トレ
ース条件メモリとして主記憶メモリと同量のメモリを持
つことによって容易に行われ、回路構成を簡略化し回路
規模の増大を防止することができる。この場合のアドレ
スは最大1ワ一ド単位まで通用することができ、トレー
ス条件をワード単位に任意に変更することができる。
As explained above, according to the memory tracing method of the present invention, memory tracing for multiple addresses is easily performed by having the same amount of memory as the main memory as the trace condition memory, which simplifies the circuit configuration. It is possible to prevent an increase in circuit scale. In this case, addresses can be used in units of one word at most, and trace conditions can be arbitrarily changed in units of words.

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

第1図は本発明の原理的構成を示す図、第2図は本発明
の一実施例を示す図、 第3図は第2図の構成における各部の動作タイミングを
示す図、 第4図は従来のメモリトレース方式を示す図、第5図は
第4図の構成における各部の動作タイミングを示す図で
ある。 11−マイクロプロセッサ 12−主記憶メモリ 131〜13n・−トレース条件一時記憶回路14、〜
14n・・−条件比較回路 15・・−オア回路 16−メモリ書き込み制御回路 17−  トレース蓄積メモリ I8−データパス 19・・・アドレスバス 20−制御線 21−)レース条件メモリ 22−m−条件比較回路
Fig. 1 is a diagram showing the principle configuration of the present invention, Fig. 2 is a diagram showing an embodiment of the invention, Fig. 3 is a diagram showing the operation timing of each part in the configuration of Fig. 2, and Fig. 4 is a diagram showing the operation timing of each part in the configuration of Fig. 2. FIG. 5 is a diagram showing the conventional memory trace method, and is a diagram showing the operation timing of each part in the configuration of FIG. 4. 11-Microprocessor 12-Main memory 131-13n--Trace condition temporary storage circuit 14, -
14n...-condition comparison circuit 15...-OR circuit 16-memory write control circuit 17-trace accumulation memory I8-data path 19...address bus 20-control line 21-) race condition memory 22-m-condition comparison circuit

Claims (1)

【特許請求の範囲】 マイクロプロセッサ(11)が主記憶メモリ(12)を
アクセスして動作する装置において、 マイクロプロセッサ(11)と主記憶メモリ(12)と
の間で授受される各信号状態をアドレスごとに規定する
トレース条件を主記憶メモリ(12)と同一のアドレス
に記憶して主記憶メモリ(12)のアドレス指定に同期
して出力するトレース条件メモリ(21)と、 マイクロプロセッサ(11)と主記憶メモリ(12)と
の間で授受される各信号状態を前記トレース条件メモリ
(21)のトレース条件出力と比較して一致したときメ
モリ書き込み指令を発生する条件比較回路(22)と、 該メモリ書き込み指令に応じてマイクロプロセッサ(1
1)と主記憶メモリ(12)との間で授受される各信号
状態を順次記憶するトレース蓄積メモリ(17)とを具
えてなることを特徴とするメモリトレース方式。
[Claims] In a device in which a microprocessor (11) accesses a main memory (12) to operate, each signal state exchanged between the microprocessor (11) and the main memory (12) is A trace condition memory (21) that stores trace conditions defined for each address at the same address as the main memory (12) and outputs them in synchronization with address designation of the main memory (12), and a microprocessor (11). a condition comparison circuit (22) that compares each signal state exchanged between the main memory (12) and the trace condition output of the trace condition memory (21) and generates a memory write command when they match; In response to the memory write command, the microprocessor (1
1) and a main memory (12).
JP61307467A 1986-12-22 1986-12-22 Memory tracing system Pending JPS63158637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61307467A JPS63158637A (en) 1986-12-22 1986-12-22 Memory tracing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61307467A JPS63158637A (en) 1986-12-22 1986-12-22 Memory tracing system

Publications (1)

Publication Number Publication Date
JPS63158637A true JPS63158637A (en) 1988-07-01

Family

ID=17969424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61307467A Pending JPS63158637A (en) 1986-12-22 1986-12-22 Memory tracing system

Country Status (1)

Country Link
JP (1) JPS63158637A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02159641A (en) * 1988-12-13 1990-06-19 Nec Corp Bit pattern trace circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02159641A (en) * 1988-12-13 1990-06-19 Nec Corp Bit pattern trace circuit

Similar Documents

Publication Publication Date Title
NO843895L (en) LOGIC CIRCUIT FOR AA PAUSED INTERRUPTION POINTS IN THE DATA PROCESSING UNIT
US5142673A (en) Bus monitor with dual port memory for storing selectable trigger patterns
JPS6334795A (en) Semiconductor storage device
JPS63158637A (en) Memory tracing system
JP3014424B2 (en) Test method for multiport memory
JPS59197946A (en) Memory device
JPS6153579A (en) Tester for function of logical circuit
JPH0194455A (en) System for accessing storage device
JPH0267977A (en) Memory testing apparatus
JPH0443310B2 (en)
JPH04359326A (en) History information recording system
JPS626341A (en) Information processor
JPH0668539B2 (en) Semiconductor memory test equipment
JPS60132249A (en) Data processor
JPH03226843A (en) Main storage device
JPH01318127A (en) System for switching memory bank
JPH04119440A (en) Memory controller
JPH0668540B2 (en) Semiconductor memory test equipment
JPH01112343A (en) Information processor
JPH04232537A (en) Trace system
JPS6320547A (en) Data processor
JPH03132851A (en) Write data degeneration circuit
JPS6134656A (en) Bus selecting device
JPH046482A (en) Semiconductor device
JPH06119258A (en) Trace marking circuit of common bus