JPH0434182B2 - - Google Patents

Info

Publication number
JPH0434182B2
JPH0434182B2 JP62020175A JP2017587A JPH0434182B2 JP H0434182 B2 JPH0434182 B2 JP H0434182B2 JP 62020175 A JP62020175 A JP 62020175A JP 2017587 A JP2017587 A JP 2017587A JP H0434182 B2 JPH0434182 B2 JP H0434182B2
Authority
JP
Japan
Prior art keywords
port
data
bit
bus
trace
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 - Lifetime
Application number
JP62020175A
Other languages
Japanese (ja)
Other versions
JPS63188245A (en
Inventor
Kenichiro Kuno
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP62020175A priority Critical patent/JPS63188245A/en
Publication of JPS63188245A publication Critical patent/JPS63188245A/en
Publication of JPH0434182B2 publication Critical patent/JPH0434182B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、インサーキツト・エミユレータにお
いて1チツプマイクロセツサの入出力ポート(以
下I/Oポートという)をトレースする方法に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for tracing input/output ports (hereinafter referred to as I/O ports) of a one-chip microprocessor in an in-circuit emulator.

[従来の技術] 従来より数多くのマイクロプロセツサが開発さ
れ、その開発支援装置として、各マイクロプロセ
ツサに適合するインサーキツト・エミユレータが
製品化されている。最近のマイクロプロセツサの
傾向として、中央処理(以下CPUと略す)機能
のみならず周辺I/O機能をもチツプの中に組み
込んだ形の1チツプマイクロプロセツサが盛んに
開発されている。
[Prior Art] Many microprocessors have been developed in the past, and in-circuit emulators suitable for each microprocessor have been commercialized as development support devices. As a recent trend in microprocessors, single-chip microprocessors that incorporate not only central processing (hereinafter referred to as CPU) functions but also peripheral I/O functions are being actively developed.

[発明が解決しようとする問題点] しかしながら、従来のものでは以下のような問
題点があつた。
[Problems to be Solved by the Invention] However, the conventional method has the following problems.

4ビツトあるいは8ビツトの1チツプマイクロ
プロセツサには通常複数の汎用パラレルI/Oポ
ートが具備されているが、従来のインサーキツ
ト・エミユレータではバスのトレース機能を主体
とするため、特にI/Oポートの状態を含めてト
レースするものはほとんど無いのが現状である。
A 4-bit or 8-bit single-chip microprocessor is usually equipped with multiple general-purpose parallel I/O ports, but conventional in-circuit emulators mainly have bus tracing functions, so Currently, there is almost nothing to trace, including the state of

また、一部のボート・インサーキツト・エミユ
レータでは、I/Oポートトレースを実現してい
るけれども複数のポートから1ポートを指定して
トレースするものであつて、着目するポートが複
数のポートに渡る場合には実用性がない。
In addition, some boat circuit emulators realize I/O port tracing, but if you specify one port from multiple ports to trace, and the port of interest spans multiple ports. has no practical utility.

更にまた、外部ロジツクトレース用のプローブ
を接続しているインサーキツト・エミユレータも
あるが、トレースするポートへのプローブ接続や
トレースポート変更の際の取り外しには非常に手
間がかかるという難点がある。
Furthermore, there are in-circuit emulators that connect probes for external logic tracing, but they have the disadvantage that it takes a lot of effort to connect the probes to the ports to be traced and to remove them when changing the trace ports.

なお、本来は総べてのポートデータを同時にト
レースすることが望ましいが、そのためには全ポ
ートのビツト数分のトレースメモリのビツト幅拡
張が必要となる。したがつて、このような全ポー
トデータ同時トレースは、メモリの効率的な利用
の観点に立てば実現性に乏しいものと言わざるを
得ない。
Although it is originally desirable to trace all port data at the same time, it is necessary to expand the bit width of the trace memory by the number of bits of all ports. Therefore, it must be said that such simultaneous tracing of all port data is not very practical from the viewpoint of efficient memory usage.

本発明は、このような問題点を解消するもの
で、使用者が着目しているI/Oポートを一定の
設定数内で任意に指定しておくことにより、最小
限のトレースメモリビツト幅拡張で各バスサイク
ルごとの指定I/Oポートの状態を他のバストレ
ース表示と同時にトレース表示することができる
I/Oポートトレース方法を提供することにあ
る。
The present invention solves these problems by allowing the user to specify the I/O port of interest within a certain set number, thereby expanding the trace memory bit width to a minimum. An object of the present invention is to provide an I/O port tracing method that can display the status of a designated I/O port for each bus cycle simultaneously with other bus traces.

[問題点を解決するための手段] このような目的を達成するために、本発明は、
インサーキツト・エミユレータ内に搭載されるマ
イクロプロセツサの各I/Oポートからターゲツ
トシステムへ接続されるバスライン上のデータを
個別に複数個のデータラツチにラツチし、 I/Oポートビツトを選択するコードが格納さ
れたRAMを前記ラツチ後に一定周期でスキャン
して前記I/Oポートビツト選択コードを読み出
し、このコードに基づき前記ラツチされているポ
ートデータから1ビツトずつ取り出してシフトレ
ジスタに取り込み、 次のバスサイクルまでに複数ビツト分のポート
データを抽出する。
[Means for solving the problems] In order to achieve such an object, the present invention has the following features:
Stores code that individually latches data on the bus line connected from each I/O port of the microprocessor installed in the in-circuit emulator to the target system into multiple data latches, and selects the I/O port bit. After the latching, the I/O port bit selection code is read by scanning the latched RAM at regular intervals, and based on this code, each bit is extracted from the latched port data and loaded into the shift register until the next bus cycle. Extract multiple bits of port data.

[作用] 各バスサイクルでバストレースデータをサンプ
リングするタイミングに同期して全I/Oポート
データを一旦ラツチする。ここで最大mビツトの
ポートデータだけを抽出してトレースするとき、
I/Oポートビツトを選択するコードを収納する
容量mのメモリを用意しておき、ラツチ後に一定
周期でこのメモリのアドレスを自動スキヤンす
る。メモリより出力されるコードデータによつて
各周期でラツチされているポートデータから任意
の1ビツトを取り出す。
[Operation] All I/O port data is once latched in synchronization with the timing of sampling bus trace data in each bus cycle. Here, when extracting and tracing only the maximum m bits of port data,
A memory with a capacity m for storing a code for selecting an I/O port bit is prepared, and after latching, the addresses of this memory are automatically scanned at a constant cycle. An arbitrary bit is taken out from the port data latched in each cycle by the code data output from the memory.

そして次のバスサイクルのトレースサンプリン
グタイムまでにmビツト分のポートデータを抽出
することにより、指定された任意のI/Oポート
データを1バスサイクル遅れた形でトレースする
ことができる。
By extracting m bits of port data by the trace sampling time of the next bus cycle, any specified I/O port data can be traced with a delay of one bus cycle.

[実施例] 以下図面を参照して本発明を詳細に説明する。[Example] The present invention will be described in detail below with reference to the drawings.

第1図は本発明に係るI/Oポートトレース方
法を実現するための装置の一実施例を示す要部構
成図である。図において、1はインサーキツト・
エミユレータでの解析対象である1チツプのター
ゲツト・マイクロプロセツサである。ここでは、
4組の8ビツト汎用I/Oポート(Pa,Pb,
Pc,Pd)が内蔵されているマイクロプロセツサ
を例にとつて示してある。各I/Oポートは、そ
れぞれ8ビツト構成のI/OポートバスB1ない
しB4に接続された双方向性のバツフア2a,2
b,2c,2dを経由して図示しないターゲツ
ト・システムに接続される。
FIG. 1 is a block diagram of essential parts of an embodiment of a device for implementing the I/O port tracing method according to the present invention. In the figure, 1 is the incircuit.
This is a one-chip target microprocessor that is analyzed by the emulator. here,
Four sets of 8-bit general-purpose I/O ports (Pa, Pb,
A microprocessor with a built-in processor (Pc, Pd) is shown as an example. Each I/O port has bidirectional buffers 2a and 2 connected to I/O port buses B1 to B4 each having an 8-bit configuration.
It is connected to a target system (not shown) via lines b, 2c, and 2d.

3a,3b,3c,3dはそれぞれデータラツ
チで、前記I/OポートバスBaないしBdにそれ
ぞれ個別に接続され、各バスサイクルのトレース
サンプリング信号BUSCLKにてその時点の全ポ
ートデータをラツチするものである。
Data latches 3a, 3b, 3c, and 3d are each individually connected to the I/O port buses Ba to Bd, and are used to latch all port data at that time in response to the trace sampling signal BUSCLK of each bus cycle. .

バスロツクBUSCLKは、マイクロプロセツサ
1から出力されるリード信号(RD)またはライ
ト信号(WR)の発生に関連した信号で、ゲート
4において生成される。
The bus lock BUSCLK is a signal related to the generation of a read signal (RD) or a write signal (WR) output from the microprocessor 1, and is generated at the gate 4.

5は4ビツトのカウンタで、バスクロツク
BUSCLKで超動され、一定周期Tcのスキヤンク
ロツクSCANCLKを計数する。スキヤンクロツ
クはシステム側から供給される。
5 is a 4-bit counter, which is a bus clock.
BUSCLK is used to count the scan clock SCANCLK with a constant period Tc. The scan clock is supplied from the system side.

カウンタ出力のLSB(最下位ビツト)はシフト
レジスタ9のクロツク入力に接続され、上位3ビ
ツトはレジスタフアイル6の読み出し時のアドレ
スとして使用される。
The LSB (least significant bit) of the counter output is connected to the clock input of the shift register 9, and the upper 3 bits are used as an address when reading the register file 6.

レジスタフアイル6は、RAM(ランダム・ア
クセス・メモリ)を使用した8ビツトx8構成の
メモリであり、ポートを選択する5ビツトコード
をシステム側バスより任意に8ポート分プログラ
ムしておくことができるものである。このRAM
6に対するライト信号WR、書き込みアドレス
WR―ADRSおよび書き込みデータWR―DATA
は、共にシステム側から与えられる。RAMより
読み出されたデータのうち上位2ビツトD3,D4
はデコーダ7に送られ、デコータ7はこれをデコ
ーダして4つのデータラツチ3a,3b,3c,
3dに対し、その出力をイネーブルとする信号、
換言すればラツチ出力選択信号、を生成する。
The register file 6 is an 8-bit x 8-configured memory using RAM (random access memory), and allows the 5-bit code for selecting ports to be programmed for 8 ports arbitrarily from the system bus. be. This RAM
Write signal WR for 6, write address
WR-ADRS and write data WR-DATA
are both given from the system side. Upper 2 bits D3, D4 of data read from RAM
is sent to the decoder 7, which decodes it and outputs it to four data latches 3a, 3b, 3c,
3d, a signal that enables its output;
In other words, a latch output selection signal is generated.

データセレクタ8は、RAMから与えられる出
力データの下位3ビツトD0,D1,D2に基づい
て、データラツチから出力された8ビツトのデー
タのうちから指定ビツトだけを抽出してシフトレ
ジスタ9に送るものである。
The data selector 8 extracts only the specified bit from the 8-bit data output from the data latch and sends it to the shift register 9, based on the lower 3 bits D0, D1, and D2 of the output data given from the RAM. be.

シフトレジスタ9は、データセレクタ8から入
力されるシリアルデータをカウンタ5より与えら
れるシフトクロツクSFTCLKにより取り込み、
取り込んだ8ビツトパラレル出力はシステム側へ
送出される。
The shift register 9 takes in the serial data input from the data selector 8 using the shift clock SFTCLK given from the counter 5.
The captured 8-bit parallel output is sent to the system side.

システム側では、他のバス情報と共にこの8ビ
ツトデータをサンプリングしてトレースメモリに
取り込むことができるようになつている。
On the system side, this 8-bit data can be sampled and taken into the trace memory along with other bus information.

このような構成における動作を第2図のタイム
チヤートを参照して次に説明する。マイクロプロ
セツサ1から出力されるI/Oポートバスのバス
データは、ゲート4により生成された BUSCLK信号(第2図のロ)によつてサンプ
リングされ、各I/Oポートデータが同時に4つ
のデータラツチ3a,3b,3c,3dにラツチ
される。またこのBUSCLK信号によりカウンタ
5が起動され、第2図ハに示す周期Tcの
SCANCLKの計数が開始する。カウンタ出力の
上位3ビツトはレジスタフアイル6のスキヤンア
ドレスA0,A1,A2(同図ホ)として使用される。
The operation in such a configuration will be explained next with reference to the time chart of FIG. The bus data of the I/O port bus output from the microprocessor 1 is sampled by the BUSCLK signal (b in Figure 2) generated by the gate 4, and each I/O port data is simultaneously sent to four data latches. 3a, 3b, 3c, and 3d. The counter 5 is also activated by this BUSCLK signal, and the period Tc shown in Fig. 2C is
SCANCLK counting starts. The upper three bits of the counter output are used as scan addresses A0, A1, and A2 of the register file 6 (FIG. 6(E)).

したがつて、レジスタフアイル6からはリード
データ出力D0,D1,D2,D3,D4で表されるポ
ート指定コードPRi(i=0,1,...,7)が、
第2図ヘに示すように2・Tcの周期で順次送出
される。
Therefore, from the register file 6, the port designation code PRi (i=0, 1,..., 7) represented by the read data output D0, D1, D2, D3, D4 is as follows.
As shown in FIG. 2, the signals are sent out sequentially at a cycle of 2·Tc.

この出力データのうちの上位2ビツトD4,D3
はラツチ選択信号であり、デコーダ7によりデコ
ードされ4つのラツチのうちのいずれか一つを選
択することになる。
The upper 2 bits of this output data D4, D3
is a latch selection signal, which is decoded by the decoder 7 to select one of the four latches.

一方データセレクタ8は、レジスタフアイル6
から出力されるデータの下位3ビツトD2,D1,
D0により指定される値により、選択されたラツ
チの8ビツト出力のうちの1ビツトを選択して、
これをシフトレジスタ9に送る。
On the other hand, the data selector 8 is connected to the register file 6.
The lower 3 bits of the data output from D2, D1,
Select one bit of the 8-bit output of the selected latch according to the value specified by D0,
This is sent to the shift register 9.

要するに、各周期にてそれぞれのコードによつ
て選択された1ビツトのポートデータPNi(i=
0,1,...,7)が順次シフトレジスタ9に入力
されてゆく。8パルスのシフトクロツク
SFTCLKが発生した後のシフトレジスタ内には、
RAM内にプログラムした8種のポートのポート
データが順に並べられた形となる。
In short, 1-bit port data PNi (i=
0,1,. .. .. , 7) are sequentially input to the shift register 9. 8 pulse shift clock
Inside the shift register after SFTCLK occurs,
The port data of the eight types of ports programmed in RAM are arranged in order.

そこで次のバスサイクル(N+1)のバスクロ
ツクBUSCLKのタイミングでこれをサンプリン
グすることにより、任意のI/Oポートトレース
が可能となる。ただし、トレースされたI/Oポ
ートデータは、他のバストレースデータより必ず
1バスサイクル分遅れたものとなつているので、
トレース結果表示の際の補正を必要とする。ま
た、このマイクロプロセツサの最小バスサイクル
タイムをTbminとすると、 8x2Tc<Tbmin となるTcを選ぶ必要があり、RAMアクセスタイ
ム等の遅延のためにこの仕様を確保できない場合
にはウエイト(WAIT)ステートを挿入するた
めの回路などを追加する必要がある。
Therefore, by sampling this at the timing of the bus clock BUSCLK of the next bus cycle (N+1), it becomes possible to trace any I/O port. However, traced I/O port data is always delayed by one bus cycle from other bus trace data, so
Requires correction when displaying trace results. Also, if the minimum bus cycle time of this microprocessor is Tbmin, it is necessary to select Tc such that 8x2Tc<Tbmin, and if this specification cannot be secured due to delays such as RAM access time, wait (WAIT) state is selected. It is necessary to add a circuit for inserting the .

なお、実施例で示したI/Oポート数、データ
ラツチの個数などはこれに限定されるものではな
く、任意に増減し得ることは言うまでもない。た
だし増減した場合にはそれに伴う各部の変更が必
要となるが、そのような変更は本発明を逸脱する
ものではない。
It goes without saying that the number of I/O ports, the number of data latches, etc. shown in the embodiments are not limited to these, and can be increased or decreased as desired. However, if there is an increase or decrease, it will be necessary to change each part accordingly, but such changes do not depart from the scope of the present invention.

[発明の効果] 以上詳細に説明したように、本発明によれば、
マイクロプロセツサに用意された多くのI/Oポ
ートの中から、ユーザがトレースを必要とする一
定数のポートデータを抽出してトレースすること
ができるようにしたため、トレースメモリのビツ
ト構成の拡張を最小限に迎えることができ、トレ
ース結果を表示するソフトウエアもバスサイクル
の補正のみの簡単なもので実現することができる
効果がある。
[Effects of the Invention] As explained in detail above, according to the present invention,
To enable the user to extract and trace a certain number of port data that require tracing from among the many I/O ports provided in the microprocessor, we expanded the bit configuration of the trace memory. This has the advantage that it can be achieved with a simple software that displays trace results by only correcting bus cycles.

また、トレースするI/Oポートの指定をイン
サーキツト・エミユレータのコマンド設定によつ
て行うことができるため、従来の外部プローブの
接続による方法と比べて確実で効率の良い設定が
可能となる。
Furthermore, since the I/O port to be traced can be specified by command setting of the in-circuit emulator, more reliable and efficient setting is possible compared to the conventional method of connecting an external probe.

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

第1図は本発明に係るI/Oポートトレース方
法を実現するための装置の一実施例を示す要部構
成図、第2図は動作を説明するためのタイムチヤ
ートである。 1……ターゲツト・マイクロプロセツサ、2
a,2b,2c,2d……バツフア、3a,3
b,3c,3d……データラツチ、4……ゲー
ト、5……カウンタ、6……レジスタフアイル、
7……デコーダ、8……データセレクタ、9……
シフトレジスタ。
FIG. 1 is a main part configuration diagram showing an embodiment of an apparatus for implementing the I/O port tracing method according to the present invention, and FIG. 2 is a time chart for explaining the operation. 1...Target microprocessor, 2
a, 2b, 2c, 2d...Batsuhua, 3a, 3
b, 3c, 3d...data latch, 4...gate, 5...counter, 6...register file,
7...Decoder, 8...Data selector, 9...
shift register.

Claims (1)

【特許請求の範囲】 1 インサーキツト・エミユレータにおいて、 インサーキツト・エミユレータ内に搭載される
マイクロプロセツサの各I/Oポートからターゲ
ツトシステムへ接続されるバスライン上のデータ
を個別に複数個のデータラツチにラツチし、 I/Oポートビツトを選択するコードが格納さ
れたメモリを前記ラツチ後に一定周期でスキヤン
して前記I/Oポートビツト選択コードを読み出
し、このコードに基づき前記ラツチされているポ
ートデータから1ビツトずつ取り出してシフトレ
ジスタに取り込み、 次のバスサイクルまでに複数ビツト分のポート
データを抽出する ことにより、指定された任意のI/Oポートデー
タを1バスサイクル遅れた形でトレースできるよ
うにしたことを特徴とするI/Oポートトレース
方法。
[Claims] 1. In an in-circuit emulator, data on a bus line connected from each I/O port of a microprocessor mounted in the in-circuit emulator to a target system is individually latched into a plurality of data latches. Then, after the latching, the memory in which the code for selecting the I/O port bits is stored is scanned at regular intervals to read out the I/O port bit selection code, and based on this code, one bit at a time is selected from the latched port data. By taking out the data, loading it into the shift register, and extracting multiple bits of port data by the next bus cycle, it is now possible to trace any specified I/O port data with a delay of one bus cycle. Characteristic I/O port tracing method.
JP62020175A 1987-01-30 1987-01-30 Method for tracing i/o port Granted JPS63188245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62020175A JPS63188245A (en) 1987-01-30 1987-01-30 Method for tracing i/o port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62020175A JPS63188245A (en) 1987-01-30 1987-01-30 Method for tracing i/o port

Publications (2)

Publication Number Publication Date
JPS63188245A JPS63188245A (en) 1988-08-03
JPH0434182B2 true JPH0434182B2 (en) 1992-06-05

Family

ID=12019840

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62020175A Granted JPS63188245A (en) 1987-01-30 1987-01-30 Method for tracing i/o port

Country Status (1)

Country Link
JP (1) JPS63188245A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0713806A (en) * 1993-06-22 1995-01-17 Nec Corp Bus tracing device for microprocessor

Also Published As

Publication number Publication date
JPS63188245A (en) 1988-08-03

Similar Documents

Publication Publication Date Title
KR100214435B1 (en) Synchronous burst-access memory
EP0378426B1 (en) Data transfer using bus address lines
US5201036A (en) Data processor having wait state control unit
US4873671A (en) Sequential read access of serial memories with a user defined starting address
US6216191B1 (en) Field programmable gate array having a dedicated processor interface
JPS61253555A (en) Transaction analyzer
JP2002323995A (en) Trace circuit
JP2762138B2 (en) Memory control unit
US5093902A (en) Memory control apparatus for accessing an image memory in cycle stealing fashion to read and write videotex signals
US6230263B1 (en) Data processing system processor delay instruction
GB2060961A (en) Data processing system having memory modules with distributed address information
JPH0434182B2 (en)
JP2005141532A (en) System debugging device
JPH05173986A (en) Programmable controller
JP2615050B2 (en) Semiconductor memory
EP4099176A1 (en) Semiconductor device
US6292861B1 (en) Processor having interface with bus arbitration circuit
JPS59178667A (en) Memory device
JP3528198B2 (en) Computer system
US20020069311A1 (en) Bus control device
JPH064398A (en) Information processing equipment
JP3281898B2 (en) Memory mounted semiconductor device and memory test method
JPH0430052B2 (en)
JP2814543B2 (en) Signal selection transmission circuit and its task processing method
JPS61201362A (en) Weight cycle introduction circuit