JP4880355B2 - Bus monitor circuit - Google Patents
Bus monitor circuit Download PDFInfo
- Publication number
- JP4880355B2 JP4880355B2 JP2006137097A JP2006137097A JP4880355B2 JP 4880355 B2 JP4880355 B2 JP 4880355B2 JP 2006137097 A JP2006137097 A JP 2006137097A JP 2006137097 A JP2006137097 A JP 2006137097A JP 4880355 B2 JP4880355 B2 JP 4880355B2
- Authority
- JP
- Japan
- Prior art keywords
- fifo
- memory
- data
- read
- write
- 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 - Fee Related
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、観測対象(バスモニタ対象)となるシステムバスの状態をモニタ出力するバスモニタ回路に関する。 The present invention relates to a bus monitor circuit that monitors and outputs the state of a system bus that is an observation target (bus monitor target).
この種の従来技術の一例(例えば、特許文献1参照)を図10に示す。このバストレーサは、システムバスA’上のデータを入力としてトレース条件が成立した監視対象のシステムバスA’のデータ取込み制御信号となるトレース・イネーブル信号B’と転送フェーズ信号C’を出力するトレースコントロール回路2’と、トレースコントロール回路2’のトレース条件を設定するトレースモードReg4’と、トレースコントロール回路2’からの転送フェーズ信号C’を受けて動作を開始し、システムバスA’のデータを入力としてトリガ条件成立時にシステムバスA’のトレース停止制御信号となる割込み信号H’とトリガ条件成立信号D’を出力するトリガコントロール回路1’と、トリガコントロール回路1’のトリガ条件を設定するトリガモードReg3’と、システムバスA’上のデータを格納するメモリ6’と、メモリ6’の格納データをローカルバスE’へ出力させる読出し制御等のバストレース全体の制御を行うMPU5’と、トレースコントロール回路2’からのトレース・イネーブル信号Bにより、外部とのデータ授受を行うためのコミュニケーションコントローラ7’で構成される。
An example of this type of prior art (see, for example, Patent Document 1) is shown in FIG. This bus tracer receives the data on the system bus A ′ as an input, and outputs a trace enable signal B ′ and a transfer phase signal C ′ as a data acquisition control signal for the monitored system bus A ′ that satisfies the trace condition. In response to the
トレースコントロール回路2’は、トレースモードReg4’に設定されたトレース条件とシステムバスA’上のデータが一致すると、転送フェーズ信号C’を出力してトリガコントロール回路1を動作させると共に、トレース・イネーブル信号B’を出力してメモリ6へのシステムバスA’のデータ格納(書込み)を開始する。動作が開始されたトリガコントロール回路1’は、トリガモードReg3’に設定されたトリガ条件と一致するシステムバスA’上のデータを監視し、一致するシステムバスA’上のデータを検出するとトリガ条件成立信号D’と割込み信号H’を出力する。
When the trace condition set in the trace mode Reg4 ′ matches the data on the system bus A ′, the
トリガ条件成立信号D’が入力されたトレースコントロール回路2’は、トレース・イネーブル信号B’の出力を停止し(ディセーブル状態とし)、メモリ6’へのシステムバスA’データの格納を停止する。また、割込み信号H’が入力されたMPU5’は割込み信号H’を受け付けて、システムバスデータの取込みが終了したことを判定し、メモリ6’に格納されたトレース後のシステムバスAデータの読出し制御を開始する。メモリ6’から読み出されたトレース後のシステムバスデータはコミュニケーションコントローラ7’を介してバストレーサ外部へ出力される。
The
この種の従来技術の他の例(例えば、特許文献2参照)を図11に示す。このパケット分布選定方式では、a,bの2チャンネルに対応して、入力端子1a,1bとパケット受信インターフェイス2a,2bとフィルタ回路3a,3bとタイムスタンプ付加回路4a,4bとFIFO5a,5bとDMA制御回路6a,6bを備え、a,bの2チャンネル共通にタイミング制御回路7とCPU8とメモリ9とI/O制御回路10と外部演算処理装置11を設けている。
Another example of this type of prior art (see, for example, Patent Document 2) is shown in FIG. In this packet distribution selection method, the
パケット受信インターフェイス回路2a,2bは、入力端子1a,1bからのパケットを受信し、観測対象とするパケット情報をフィルタ回路3a,3bで選択すると共に、シーケンス番号などの開始トリガおよび終了トリガに基づいてパケット情報を取り出す。フィルタ回路3a,3bから出力されるパケットはシーケンス番号のみが取り出され、タイムスタンプ付加回路4a,4bでタイムスタンプ情報として到着時刻が付加され、シーケンス番号とタイムスタンプからなる情報がFIFO5a,5bに順次書き込まれる。FIFO5a,5bに書き込まれた情報は、DMA制御回路6a,6bによってメモリ9に蓄積され、CPU8による読み出し制御によりI/O制御回路10を介して外部に接続される外部演算処理装置11などに出力される。尚、2a〜6a,2b〜6b間での処理は2チャンネル並行して処理され、メモリ9にはa,bの2チャンネルを時分割で書き込む。
The packet
しかしながら、上述した従来の技術では、トレース・トリガ条件またはフィルタ条件により選択された全てのデータが一度メモリへ格納されるので、メモリに格納されるデータがトレース・トリガ条件またはフィルタ条件により収集されたデータであっても、集積回路内部の複数のシステムバスの状態を観測する場合、メモリに格納されるデータは増大するし、トレース・トリガ条件またはフィルタ条件で選択されたデータは欠損(漏れ)なく外部等へ出力する必要があり、メモリは、収集される最大のデータ量を格納できるだけの容量を持たなければならなくなるため、収集されたデータを書き込むメモリの容量が大きくなり回路規模が増加するという第1の問題点がある。 However, in the conventional technique described above, all data selected by the trace trigger condition or filter condition is stored once in the memory, so the data stored in the memory is collected by the trace trigger condition or filter condition. Even if it is data, when observing the state of multiple system buses inside the integrated circuit, the data stored in the memory increases, and the data selected by the trace trigger condition or filter condition does not disappear (leak) It is necessary to output to the outside, etc., and the memory must have a capacity that can store the maximum amount of data to be collected, so that the capacity of the memory for writing the collected data increases and the circuit scale increases. There is a first problem.
また、メモリに格納されたシステムバスデータを出力するため手段として、CPU,DAM制御回路を使用するため、メモリへの書込み/読出し制御が複雑になり回路規模が増加するし、CPU,DMA制御回路自体の回路規模が大きいため、これらの回路を使用することでも回路規模が増加するという第2の問題点がある。 Further, since the CPU and DAM control circuit are used as means for outputting the system bus data stored in the memory, the write / read control to the memory becomes complicated, the circuit scale increases, and the CPU and DMA control circuit. Since the circuit scale of itself is large, there is a second problem that the circuit scale increases even when these circuits are used.
システムバスデータまたはパケット入力の収集するための制御回路となるトレースコントロール回路・トリガコントロール回路またはフィルタ回路が、観測対象となるシステムバスまたはパケット入力1つ1つに設けられ個別に動作するため、観測対象が複数のシステムバスまたはパケット入力の場合、個々の観測対象の収集データ量はトレース・トリガ条件またはフィルタ条件により削減される。 The trace control circuit, trigger control circuit, or filter circuit that is a control circuit for collecting system bus data or packet input is provided for each system bus or packet input to be observed and operates individually. When the target is a plurality of system buses or packet inputs, the amount of collected data for each observation target is reduced by the trace trigger condition or the filter condition.
しかし、最終的に出力される収集データ量は複数の観測対象システムバスまたはパケット入力の個々の収集データの総和となるので、収集データを格納するためのメモリの容量が増大し回路規模が増加するし、最終的に出力される複数の観測対象の収集データは、個々のトレース・トリガ条件またはフィルタ条件で収集されたデータを集めただけのデータであるため[観測対象−観測対象]間の関係が不明確で、観測対象AでシステムバスデータA’またはパケット入力A’が発生(検出)時の観測対象BのシステムバスデータB’またはパケット入力B’の状態を収集データから得る場合、解析が煩雑になるという第3の問題点がある。 However, since the amount of collected data that is finally output is the sum of individual collected data of a plurality of observation target system buses or packet inputs, the capacity of the memory for storing collected data increases and the circuit scale increases. However, since the collected data of the multiple observation targets that are finally output is simply the data collected under the individual trace trigger conditions or filter conditions, the relationship between [observation target-observation target] Is unclear and the system bus data A ′ or packet input A ′ is generated (detected) in the observation target A, and the state of the system bus data B ′ or packet input B ′ in the observation target B is obtained from the collected data. There is a third problem that becomes complicated.
そこで、本発明の目的は、観測対象バス数の増加により発生するバスモニタ回路の規模増加,集積回路外部へのバスモニタ外部端子の増加,モニタ能力低下の問題を改善し、CPU,DMA制御回路を介することなく高速、且つ最小限の外部端子により、集積回路内部の複数のバス状態を集積回路外部へモニタ出力するバスモニタ回路を提供することにある。 SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to improve the problems of an increase in the size of a bus monitor circuit, an increase in the number of bus monitor external terminals external to an integrated circuit, and a decrease in monitoring capability caused by an increase in the number of observation target buses. An object of the present invention is to provide a bus monitor circuit that monitors and outputs a plurality of bus states inside an integrated circuit to the outside of the integrated circuit with high speed and minimum external terminals without going through the circuit.
本発明のバスモニタ回路は、少なくも一つの観測対象となるシステムバスの状態をモニタ出力するバスモニタ回路において、設定されたフィルタ条件とトリガ条件に適ったデータをシステムバスから抽出するバスデータ検出部(図1の1)と、バスデータ抽出データを記憶するためにシステムバスと1対1対応のメモリ(図1の31)を有するFIFO部(図1の3)と、FIFOライトイネーブル信号を生成してバスデータ抽出データと共にFIFO部に出力するFIFOライト制御部(図1の2)と、FIFOリードイネーブル信号を生成してFIFO部に出力するFIFOリード制御部(図1の6)を備え、FIFO部(図1の3)にはメモリと1対1対応に、FIFOライトイネーブル信号が入力するとメモリライトイネーブル信号とメモリライトアドレスを生成してメモリに出力するメモリライト制御部(図1の32)と、FIFOリードイネーブル信号が入力するとメモリリードアドレスを生成してメモリに出力し、またメモリのリード・エンプティ状態を示すFIFOエンプティ・フラグ信号と、メモリが次に読み出されるとリードエンプティ状態となるリード・オルモスト・エンプティ状態を示すFIFOオルモスト・エンプティ・フラグ信号をFIFOリード制御部出力するメモリリード制御部(図1の33)を設け、FIFOリード制御部(図1の6)は、FIFOエンプティ・フラグ信号およびFIFOオルモスト・エンプティ・フラグ信号により、エンプティ状態を示していないメモリに対するFIFOリードイネーブル信号のみをアクティブ状態とすることを特徴とする。 The bus monitor circuit of the present invention is a bus monitor circuit that monitors and outputs the state of a system bus to be observed at least one of the objects to be monitored. Unit (1 in FIG. 1), a FIFO unit (3 in FIG. 1) having a memory (31 in FIG. 1) corresponding to the system bus for storing bus data extraction data, and a FIFO write enable signal A FIFO write control unit (2 in FIG. 1) that generates and outputs to the FIFO unit together with the bus data extraction data, and a FIFO read control unit (6 in FIG. 1) that generates a FIFO read enable signal and outputs it to the FIFO unit. The FIFO unit (3 in FIG. 1) has a one-to-one correspondence with the memory. When a FIFO write enable signal is input, a memory write enable signal and a memory write address are generated and output to the memory. When the rewrite control unit (32 in FIG. 1) and the FIFO read enable signal are input, the memory read address is generated and output to the memory, the FIFO empty flag signal indicating the memory read empty state, and the memory A memory read control unit (33 in FIG. 1) is provided to output a FIFO almost empty flag signal indicating a read-almost-empty state when it is read. The FIFO read control unit (FIG. 1) is provided. No. 6) is characterized in that only the FIFO read enable signal for the memory not indicating the empty state is made active by the FIFO empty flag signal and the FIFO almost empty flag signal.
また、FIFOライト制御部(図1の2)は、バスデータ検出部から入力するトリガ条件検出信号に対して、設定されたリンク情報に従って異なるシステムバス対応のフィルタ・トリガ一致データの組合せ制御または選択制御を行い、メモリに対するシステムバス抽出データの書込み開始と書込み終了を制御するためのリンク制御信号を生成するリンク制御回路(図1の23)と、FIFO部からのFIFOオーバーフロー制御信号とリンク制御回路からのリンク制御信号を生成条件として、バスデータ検出部から入力するフィルタ条件検出信号により、FFIFOライトイネーブル信号を生成するライトイネーブル生成回路(図1の22)を備えたことを特徴とする。
The FIFO write control unit (2 in FIG. 1) controls or selects a combination of filter / trigger match data corresponding to different system buses according to the set link information in response to the trigger condition detection signal input from the bus data detection unit. A link control circuit (23 in FIG. 1) for performing control and generating a link control signal for controlling the start and end of writing of system bus extraction data to the memory, and the FIFO overflow control signal and link control circuit from the
また、メモリライト制御部(図1の32)は、生成するライトポインタ値とメモリリードアドレスの比較結果、およびメモリライトイネーブル信号,FIFOリードイネーブル信号により、メモリのデータライトフル状態を検出するとFIFOフルフラグ信号をメモリに書き込むことを特徴とする。 When the memory write control unit (32 in FIG. 1) detects the data write full state of the memory from the comparison result of the generated write pointer value and the memory read address, the memory write enable signal, and the FIFO read enable signal, the FIFO full flag is detected. A signal is written in a memory.
更に、バスモニタ回路は、メモリから読み出されたFIFOリードデータに対してシステムバス固有の識別データを付加するバス識別コード付加回路(図1の4)と、FIFOリードイネーブル信号によりバス識別コード付加回路の出力を多重してバスモニタ出力とするデータ多重制御部(図1の5)を設けたことを特徴とする。 Further, the bus monitor circuit adds a bus identification code addition circuit (4 in FIG. 1) for adding identification data unique to the system bus to the FIFO read data read from the memory, and adds a bus identification code by the FIFO read enable signal. A data multiplexing control unit (5 in FIG. 1) is provided which multiplexes the output of the circuit and outputs the bus monitor output.
本発明の第1の効果は、FIFO部のメモリのリード制御を司るFIFOリードイネーブル信号が、エンプティ状態にないメモリに対してのみ連続したアクティブ状態を継続し、エンプティ状態のメモリのリード制御がスキップされるため、エンプティ状態にないメモリのライト制御に対するリード制御の割合を常に最大とするリード制御が可能となり、メモリの容量を確定する、メモリの抽出データの滞留時間(期間)が削減され、バスモニタ回路の規模を削減できるということである。また、エンプティ状態のメモリはスキップされるリード制御のため、観測対象システムバスの抽出データが連続してモニタ出力され、観測者はモニタ出力より観測対象となるシステムバスの抽出データを容易に観測することが可能であり、観測対象となるシステムバスのデータ収集を改善できる。 The first effect of the present invention is that the FIFO read enable signal that controls the read control of the memory of the FIFO unit continues the active state only for the memory that is not in the empty state, and the read control of the memory in the empty state is skipped. As a result, the read control that always maximizes the ratio of the read control to the write control of the memory that is not in the empty state is possible, and the retention time (period) of the extracted data of the memory, which determines the memory capacity, is reduced. This means that the scale of the monitor circuit can be reduced. In addition, because the empty memory is read control that is skipped, the extracted data of the observation target system bus is continuously output to the monitor, and the observer can easily observe the extraction data of the target system bus from the monitor output. It is possible to improve the data collection of the system bus to be observed.
本発明の第2の効果は、バスデータ検出部で検出された観測対象となる複数のシステムバスの抽出データと共に、メモリのオーバーフロー情報がモニタ出力され、観測者はモニタ出力されたオーバーフロー情報を観測することで、複数の観測対象システムバスのバスデータ取込み状態を確認することが可能となり、抽出される筈の観測対象システムバスデータの取りこぼしが発生した期間(事象)を、モニタ出力から容易に特定することが可能となり、バスモニタ回路のモニタ能力(効率)を改善できるということである。また、観測対象となるシステムバスの検出・抽出条件であるフィルタ条件,トリガ条件をモニタ出力より適切な条件に容易に(再)設定することが可能となる。 The second effect of the present invention is that the overflow information of the memory is output to the monitor together with the extracted data of the plurality of system buses to be observed detected by the bus data detection unit, and the observer observes the overflow information output by the monitor. By doing so, it becomes possible to check the bus data acquisition status of multiple observation target system buses, and easily identify the period (event) in which the extracted observation target system bus data was missed from the monitor output This means that the monitoring capability (efficiency) of the bus monitor circuit can be improved. In addition, it is possible to easily (re) set filter conditions and trigger conditions, which are detection / extraction conditions for the system bus to be observed, to appropriate conditions from the monitor output.
本発明の第3の効果は、観測対象となる複数のシステムバス毎に設定されるトリガ条件を1つの観測対象システムバスに対するトリガ検出条件とするだけでなく、観測対象システムバスAのデータ抽出(モニタ出力)を観測対象システムバスBのデータ検出で開始し、同様に観測対象システムバスAのデータ抽出(モニタ出力)の停止を観測対象システムバスCのデータ検出で停止する、トリガ条件の組み合わせと選択による異なる観測対象のシステムバス間の相関関係による、観測対象システムバスのデータ抽出と抽出するデータの絞り込みが行えるため、バスモニタ回路で抽出する観測対象システムバスのデータ量を削減することが可能になるということである。このことからも、FIFO部のメモリ容量が削減され、システム集積回路におけるバスモニタ回路の規模を削減でき、また、観測対象システムバスのモニタ出力から不必要なデータ出力が制限されるため、バスモニタ回路による観測対象システムバスのモニタ能力(効率)を改善する効果も得られ、高度な観測手段を提供することが可能となる。 The third effect of the present invention is that not only the trigger condition set for each of the plurality of system buses to be observed is set as the trigger detection condition for one observation system bus, but also the data extraction of the observation system bus A ( (Monitor output) is started by data detection of the observation target system bus B, and similarly, the combination of trigger conditions is stopped to stop the data extraction (monitor output) of the observation target system bus A by data detection of the observation target system bus C. Since the data of the target system bus can be extracted and the data to be extracted can be narrowed down based on the correlation between the different target system buses by selection, the data volume of the target system bus extracted by the bus monitor circuit can be reduced. Is to become. This also reduces the memory capacity of the FIFO unit, reduces the scale of the bus monitor circuit in the system integrated circuit, and restricts unnecessary data output from the monitor output of the system bus to be monitored. An effect of improving the monitoring capability (efficiency) of the observation target system bus by the circuit is also obtained, and it becomes possible to provide an advanced observation means.
本発明の第4の効果は、CPU,DMAコントローラ等の複雑な回路を使用することなく、FIFOとFIFOのリード/ライトを制御する回路でバスモニタ回路を構成するため、システム集積回路におけるバスモニタ回路の規模を削減でき、ひいては、ハードウェアのみで構成され、観測対象となる複数のシステムバスの収集データを自動的に出力するバスモニタ回路のため、ソフトウェア等を作成する工数を削減することが可能となる。 The fourth effect of the present invention is that the bus monitor circuit is configured by a circuit that controls the reading and writing of the FIFO and FIFO without using a complicated circuit such as a CPU or a DMA controller. The scale of the circuit can be reduced, and as a result, it is a bus monitor circuit that consists only of hardware and automatically outputs the collected data of multiple system buses to be observed. It becomes possible.
本発明の第5の効果は、観測対象となる複数のシステムバスの抽出データが一時格納されるメモリのリード制御に、エンプティ状態にないメモリに対してのみ連続したアクティブ状態を継続するFIFOリードイネーブル信号が用いられるため、メモリからのFIFOリードデータの多重化を容易に行うことが可能となり、データ多重制御部の回路規模を削減できるということである。 The fifth effect of the present invention is a FIFO read enable in which a continuous active state is continued only for a memory that is not in an empty state for read control of a memory in which extracted data of a plurality of system buses to be observed are temporarily stored. Since signals are used, it is possible to easily multiplex the FIFO read data from the memory, and to reduce the circuit scale of the data multiplexing control unit.
以下、本発明の実施の形態について図面を参照して詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[構成の説明]
(1)概要説明
図1は本発明のバスモニタ回路の実施例1を示す。このバスモニタ回路は、集積回路内部の観測対象(バスモニタ対象)となる複数のシステムバスの状態を集積回路外部へモニタ出力する回路であって、バスデータ検出部1,FIFOライト(Write)制御部2,FIFO部3,n個のバス識別コード付加回路4,データ多重制御部5およびFIFOリード(Read)制御部6を備えている。
[Description of configuration]
(1) Outline Description FIG. 1 shows a first embodiment of a bus monitor circuit of the present invention. This bus monitor circuit is a circuit that monitors and outputs the status of a plurality of system buses to be observed (bus monitor target) inside the integrated circuit to the outside of the integrated circuit. The bus
バスデータ検出部1は、入力され観測対象となるn本のシステムバス(1)〜(n)上で送受信されるデータを監視して、システムバス毎に検出・抽出条件として設定されたフィルタ条件,トリガ(スタート・トリガ,ストップ・トリガ)条件に適ったデータをシステムバス(1)〜(n)上で送受信されるデータから抽出する。そして、抽出されたデータをシステムバス抽出データAとして、データ抽出に用いた検出・抽出条件の検出信号(検出・抽出設定条件検出信号といい、各n本のフィルタ条件検出信号Dとトリガ条件検出信号Eから成る)と共にFIFOライト制御部2へ出力する。
The bus
FIFOライト制御部2は、バスデータ検出部1の後段に位置し、システムバス抽出データA毎にタイムスタンプ情報を付加し、FIFOライトデータBとしてFIFO部3に出力する。タイムスタンプ情報とは、システムバス抽出データAの有無に関係なくフリーでカウントアップするカウンタのカウント値をいい、フィルタ条件検出信号D,トリガ条件検出信号Eと、FIFO部3からのFIFOフルフラグ信号Iをイネーブル信号としてシステムバス抽出データAと共にラッチされる。
The FIFO write
また、FIFOライト制御部2は、バスデータ検出部1からのフィルタ条件検出信号D,トリガ条件検出信号Eと、FIFO部3からのFIFOオーバーフロー制御信号Fにより、各FIFOライトデータBに対応したFIFOライトイネーブル信号Gを生成してFIFO部3へ出力する。後述のように、トリガ条件検出信号Eはシステムバス対応に検出され、またFIFOライトイネーブル信号Gはシステムバス対応に生成されるが、一つのシステムバスに対するトリガ条件検出信号Eを他のシステムバスに対するトリガ条件検出信号EとリンクさせたFIFOライトイネーブル信号Gとすることもできる。
Also, the FIFO
FIFO部3は、FIFOライト制御部2の後段に位置し、システムバス(1)〜(n)に対応して設けられたn個のメモリ31を内蔵しており、メモリ31には、FIFOライトデータBがメモリライトイネーブル信号J1、FIFOフルフラグ信号Iがメモリライトイネーブル信号J2により、システムバス対応に独立して順次書き込む書込み制御により格納される。FIFOフルフラグ信号Iは、FIFO部3へのライトエラー発生状態を示すオーバーフロー情報として、メモリ31のデータ書込み状態を示す。
The
FIFO部3のn個のメモリ31に格納されたFIFOライトデータBとFIFOフルフラグ信号Iは、FIFOリード制御部6からのFIFOリードイネーブル信号Pにより、メモリ31毎に読み出されFIFOリードデータCとしてデータ多重制御部5へ出力される。
The FIFO write data B and the FIFO full flag signal I stored in the
なお、FIFO部3はメモリライトイネーブル信号J1,FIFOエンプティ・フラグ(Memory Empty Flag)信号NおよびFIFOオルモスト・エンプティ・フラグ(FIFO Almost Empty Flag)信号OをFIFOリード制御部6へ出力する。FIFOエンプティ・フラグ信号Nは、メモリに読み出すべきデータが無い状態(エンプティ)になったときに出力され、FIFOオルモスト・エンプティ・フラグ信号Oは、次にデータが読み出されるとエンプティになるときに出力される。
The
FIFOリード制御部6は、FIFO部3の後段に位置し、FIFO部3からのメモリライトイネーブル信号J1と、FIFOエンプティ・フラグ信号Nと、FIFOオルモスト・エンプティ・フラグ信号OおよびFIFOリード制御部6で生成されるFIFOリードイネーブル信号Pにより、FIFO部3のメモリ31のデータリード状態を先読み検出し、エンプティ状態にないメモリ31に対してのみアクティブとなる、FIFOリードイネーブル信号Pを生成してFIFO部3へ出力する。この場合、エンプティ状態になるメモリ31に対してはFIFOリードイネーブル信号Pをスキップする。
The FIFO read
バス識別コード付加回路4は、FIFO部3の後段に位置し、FIFO部3のメモリ31から読み出されたFIFOリードデータCに対してシステムバス固有の識別データを付加する。この付加は、後段のデータ多重制御部5で多重されモニタ出力される、システムバス抽出データの識別を容易にするためである。尚、多重されるシステムバス抽出データがアドレス等により容易に識別可能であれば本回路は削除される。
The bus identification
データ多重制御部5は、バス識別コード付加回路4の後段に位置し、FIFOリード制御部6からのFIFOリードイネーブル信号Pにより、システムバス毎のFIFOリードデータCをFIFOリード制御部6からのFIFOリードイネーブル信号Pにより多重し、バスモニタ出力として集積回路外部へ出力する。
The data
以上説明したように、本発明のバスモニタ回路は、バスデータ検出部1で観測対象となる複数のシステムバス毎に抽出されたシステムバス抽出データAに、FIFOライト制御部2でタイムスタンプ情報、FIFO部3でオーバーフロー情報を付加して、FIFOライト制御部2から出力されるFIFOライトイネーブル信号Gを基にFIFO部3のメモリ31に書き込むライト制御を行なう。
As described above, the bus monitor circuit of the present invention uses the FIFO
そして、メモリ31に書き込まれたタイムスタンプ情報,オーバーフロー情報が付加されたシステムバス抽出データを読み出すリード制御を、FIFOリード制御部6から出力されるFIFOリードイネーブル信号Pにより行う。更に、FIFO部3の後段に位置するバス識別コード付加回路4でメモリ31から読み出されたFIFOリードデータCに対して固有の識別コードを付加して、データ多重制御部5おいてFIFOリードイネーブル信号Pにより、FIFOリードデータCを多重し、集積回路内部の観測対象となる複数のシステムバスの状態のモニタ出力として、集積回路外部へバスモニタ出力する。
Then, read control for reading the system bus extraction data to which the time stamp information and overflow information written in the
(2)詳細説明
以下に、FIFOライト制御部2,FIFO部3およびFIFOリード制御部6それぞれの詳細について説明する。
(2) Detailed Description Details of the FIFO
FIFOライト制御部2は、ラッチ・タイムスタンプ(Latch & Time Stamp)付加回路21,ライトイネーブル(Write Enable)生成回路22,リンク(Link)制御回路23で構成される。
The FIFO write
ラッチ・タイムスタンプ付加回路21は、バスデータ検出部1からのフィルタ条件検出信号D,トリガ条件検出信号Eと、FIFO部3からのFIFOフルフラグ信号Iをイネーブル条件にして、バスデータ検出部1からのシステムバス抽出データAと、内部生成するタイムスタンプ情報をラッチし、n本のFIFOライトデータBをFIFO部3へ出力する。
The latch time
リンク制御回路23は、バスデータ検出部1からのn本のトリガ条件検出信号Eの入力に対して、設定されたリンク情報に従って組合せ制御または選択制御を行い、FIFO部3のメモリ31に対するシステムバス抽出データの書込み開始と、書込み終了を制御するためのリンク制御信号Hを生成してライトイネーブル生成回路22に出力する。
The
ライトイネーブル生成回路22は、FIFO部3からのn本のFIFOオーバーフロー制御信号Fとリンク制御回路23からのリンク制御信号Hを生成条件として、バスデータ検出部1からのフィルタ条件検出信号Dにより、FIFO部3におけるライト制御に用いられるn本のFFIFOライトイネーブル信号Gを生成する。
The write enable
FIFO部3は、観測対象となるn個のシステムバスに対応して設けられたn個のメモリ31,n個のメモリライト制御回路32およびn個のメモリリード制御回路33で構成される。もっとも、図1では、図面の煩雑化を回避するために、1組のメモリライト制御回路32とメモリリード制御回路33のみを示している。
The
メモリ31は、FIFOライトデータBを記憶するシステムバス抽出データメモリと、FIFOフルフラグ信号Iを記憶するオーバーフロー情報メモリから成る。FIFOフルフラグ信号Iとは、FIFO部3へのライトエラー発生状態を示すオーバーフロー情報として、n個のメモリ31のデータ書込み状態を示す信号をいう。
The
メモリライト制御回路32は、ライト制御回路321,オーバーフロー制御回路322およびメモリフル(Memory Full)検出回路323で構成される。
The memory
ライト制御回路321は、FIFOライト制御部2からのFIFOライトイネーブル信号Gをイネーブル条件、FIFOフルフラグ信号Iを生成条件として、ライトポインタ値Lおよびメモリリードイネーブル信号J1を生成する。ライトポインタ値Lはメモリリード制御回路33、メモリライトイネーブル信号J1はメモリ31のシステムバス抽出データメモリ,メモリリード制御回路33およびFIFOリード制御部6に出力される。
The
オーバーフロー制御回路322は、FIFOライト制御部2からのFIFOライトイネーブル信号Gをイネーブル条件、FIFOフルフラグ信号Iを生成条件として、FIFOオーバーフロー制御信号F,メモリライトイネーブル信号J2およびメモリライトアドレスKを生成する。FIFOオーバーフロー制御信号FはFIFOライト制御部2のライトイネーブル生成回路22、メモリライトイネーブル信号J2はメモリ31のオーバーフロー情報メモリ、メモリライトアドレスKはメモリ31のシステムバス抽出データメモリおよびオーバーフロー情報メモリにそれぞれ出力される。
The
メモリフル検出回路323は、ライトポインタ値Lとメモリリード制御部33からのメモリリードアドレスMの比較結果、およびメモリライトイネーブル信号J1,FIFOリード制御部6からのFIFOリードイネーブル信号Pの状態により、メモリ31のデータライトフル状態を検出してFIFOフルフラグ信号IをFIFOライト制御部2へ出力する。
The memory
メモリリード制御部33は、リード制御回路331,メモリエンプティ(Memory Empty)検出回路332およびメモリ・オルモスト・エンプティ(Memory Almost Empty)検出回路333で構成される。
The memory read
リード制御回路331は、FIFOリード制御部6からのFIFOリードイネーブル信号Pをイネーブル条件に、メモリリードアドレスMを生成してメモリ31とメモリライト制御部32へ出力する。
The
メモリエンプティ検出回路332は、ライトポインタ値LとメモリリードアドレスMの比較結果、およびメモリライトイネーブル信号J1,FIFOリードイネーブル信号Pの状態により、メモリ31のデータリードエンプティ状態を検出してFIFOエンプティ・フラグ信号NをFIFOリード制御部6へ出力する。
The memory
メモリ・オルモスト・エンプティ検出回路333は、同様にしてメモリ31のデータリード・オルモスト・エンプティ状態を検出してFIFOオルモスト・エンプティ・フラグ信号OをFIFOリード制御部6へ出力する。このように、ライトポインタ値Lはメモリ31のフル状態,エンプティ状態,オルモスト・エンプティ状態の検出に用いられる。また、メモリリードイネーブル信号J1はFIFOライトデータBのシステムバス抽出データメモリへの書込みに用いられるのみならず、メモリ31のエンプティ状態とオルモスト・エンプティ状態の検出のためにも使用される。
Similarly, the memory / almost /
尚、メモリライト制御部32と、メモリリード制御部33は、図2に示すように、n個のメモリ31a〜31nと1対1対応に設けられ、n本のFIFOライトイネーブル信号Gと、n本のFIFOリードイネーブル信号Pにより、メモリ31a〜31n毎に独立して、n本のFIFOライトデータBのライト制御、およびリード制御によるn本のFIFOリードデータCの出力が行われ、FIFOフルフラグ信号I,FIFOエンプティフラグ信号N,FIFOオルモスト・エンプティ・フラグ信号Oもメモリ31a〜31n毎にそれぞれn本出力される。
As shown in FIG. 2, the memory
そして、メモリ31がフル状態時に、FIFOライトイネーブル信号GによるFIFOライトデータBの書き込みが行われると、FIFOライトデータBの書込みエラー発生を示すオーバーフロー情報がメモリ31のオーバーフロー情報メモリに上書きされるオーバーライト制御が行われる。
When the FIFO write data B is written by the FIFO write enable signal G when the
また、メモリ31a〜31nのシステムバス抽出データメモリ,オーバーフロー情報メモリに格納された、FIFOライトデータB,オーバーフロー情報は、n本のFIFOリードイネーブル信号Pにより、エンプティ状態にないFIFOに対してのみリード制御が行われ、FIFOリードしデータCとしてデータ多重制御部5へ出力される。
The FIFO write data B and overflow information stored in the system bus extraction data memory and overflow information memory of the memories 31a to 31n are read only to the FIFO which is not in an empty state by n FIFO read enable signals P. Control is performed, the FIFO is read, and data C is output to the data multiplexing
FIFOリード制御部6は、リードイネーブル生成回路61およびFIFO状態検出回路62で構成される。
The FIFO read
FIFO状態検出回路62は、FIFO部3からのFIFOエンプティフラグ信号N,FIFOオルモスト・エンプティ・フラグ信号OおよびFIFOライトイネーブル信号J1と、FIFOリード制御部6のリードイネーブル生成回路61からのFIFOリードイネーブル信号Pを常時監視し、FIFOライトイネーブル信号J1およびFIFOリードイネーブル信号Pにより、リード/ライト制御された後のメモリ31のデータ読出し状態をリード/ライト制御される前・後で先読み検出・検出する。
The FIFO
リードイネーブル生成回路61は、FIFO状態検出回路62からのメモリ31全てのデータ読出し状態を示すFIFO状態検出信号Qにより、エンプティ状態でないメモリ31に対してのみアクティブ状態となり、エンプティ状態のメモリ31に対してはディセイブル状態である、FIFOリードイネーブル信号Pを生成して、FIFO部3のメモリライト制御部32,メモリリード制御部33とデータ多重制御部5とFIFO状態検出回路62へ出力する。
The read enable
このように、FIFOリード制御部6は、エンプティ状態にないメモリ31に対してのみアクティブ状態が連続するn本のFIFOリードイネーブル信号Pを全てのメモリ31がエンプティ状態となるまで継続してFIFO部3へ出力するようにしたため、n個のメモリ31のデータ読出し状態を、エンプティ状態にないメモリ31対して行われるリード制御が一巡する毎に先読み検出結果から判定し、次リード制御を行うエンプティ状態にないメモリ31を識別することで、エンプティ状態のメモリ31へのリードがスキップされ、エンプティ状態にないメモリ31に対してのみリード制御を行うことができる。
As described above, the FIFO read
[動作の説明]
次に、以上のように構成された本バスモニタ回路の動作について、FIFOへの抽出データ書込みと、FIFOの書込みデータ読出しの場合に分けて説明する。
[Description of operation]
Next, the operation of the bus monitor circuit configured as described above will be described separately for the case of writing extracted data to the FIFO and reading the write data of the FIFO.
(1)FIFOへの抽出データ書込み
先ず、バスデータ検出部1は、観測対象となるn本のシステムバス(1)〜(n)上で送受信されるバスデータを監視し、入力に対して検出条件として設定されるフィルタ条件と一致したバスデータを検出し、さらに抽出条件として設定されるトリガ条件に一致したバスデータを検出することで、フィルタ条件により検出されたバスデータの抽出開始(スタートトリガ条件)と抽出停止(ストップトリガ条件)を制御する。そして、各n本のシステムバス抽出データA,フィルタ条件検出信号Dおよびトリガ条件検出信号EをFIFOライト制御部2へ出力する。FIFOへの抽出データ書込み動作は、FIFOライト制御部2とFIFO部3のメモリライト制御部32により行われる。
(1) Writing extracted data to FIFO First, the bus
FIFOライト制御部2において、内部に設けられたラッチ・タイムスタンプ付加回路21は、バスデータ検出部1からのn本のフィルタ条件検出信号D,n本のトリガ条件検出信号Eと、FIFO部3のメモリフル検出回路323からのn本のFIFOフルフラグ信号Iをイネーブル条件として、n本のシステムバス抽出データAをシステムバス毎に個別にラッチする。 また、システムバス抽出データAの取込み時間を示すタイムスタンプ情報として、ラッチ・タイムスタンプ付加回路21内部に設けられたカウンタの値を、システムバス抽出データAと同一なラッチイネーブル条件でシステムバス毎に個別にラッチする。ラッチされたシステムバス抽出データAは、タイムスタンプ情報が付加されて、n本のFIFOライトデータBとしてFIFO部3へ出力される。また、FIFOライト制御部2は、n個のメモリ31へ、FIFOライトデータBを書き込むために、n本のFIFOライトイネーブル信号Gを生成しFIFO部3へ出力する。
In the FIFO
FIFOライトイネーブル信号Gの生成について図3を用いて説明する。リンク制御回路23は、バスデータ検出部1からのトリガ条件検出信号Eによりリンク制御信号Hを生成する。すなわち、トリガ条件検出信号Eの1発目をスタートトリガ、2発目をストップトリガとする。ライトイネーブル生成回路22は、バスデータ検出部1からのフィルタ条件検出信号Dをシステムバス抽出データとのタイミング調整のため、リンク制御信号Hをイネーブル条件としてシフトする。また、FIFO部3のオーバーフロー制御回路322からのFIFOオーバーフロー制御信号Fによりマスク制御することにより、FIFOライトイネーブル信号Gを生成する。図3の上段では、リンク制御信号Hが“L”の間のフィルタ条件検出信号D1,D2,D10およびD11と、FIFOオーバーフロー制御信号Fが“H”の間のフィルタ条件検出信号D6,D7マスクされ、フィルタ条件検出信号D3,D4,D5,D8,D9がシフトされてFIFOライトイネーブル信号G1,G2,G3,G4,G5とされている。
Generation of the FIFO write enable signal G will be described with reference to FIG. The
尚、リンク制御回路23でリンク制御信号Hの生成に用いられる、トリガ条件検出信号Eは、観測対象となる複数のシステムバス毎に検出される信号であり、リンク制御回路23のリンク条件設定により組合せ制御および選択制御が行え、その結果がFIFOライトイネーブル信号Gに反映され、FIFO部3にFIFOライトデータBが書き込まれるため、図4に示すように、異なる観測対象のシステムバス間の相関関係による、システムバスのデータ抽出と抽出するデータの絞り込みが可能となる。
The trigger condition detection signal E used to generate the link control signal H in the
図4の上段はリンク条件設定が無い場合を示し、システムバスA上のAフィルタトリガ一致データ1〜7と、システムバスB上のBフィルタトリガ一致データ8〜10と、システムバスC上のCフィルタトリガ一致データ11〜12の全てが時系列にバスモニタ出力されている。一方、図4の下段はリンク条件設定された場合を示し、スタートトリンク先としてAフィルタトリガ一致データ3にCフィルタトリガ一致データ11、ストップリンク先としてAフィルタトリガ一致データ6にBフィルタトリガ一致データ10が設定されている。この場合は、Aフィルタトリガ一致データ3〜6,Bフィルタトリガ一致データ9,10,Cフィルタトリガ一致データ11,12のみがバスモニタ出力されることになる。
The upper part of FIG. 4 shows the case where there is no link condition setting. A filter
メモリライト制御部32の内のライト制御回路321の内部には、メモリフル検出回路323からのFIFOフルフラグ信号Iにより、メモリフル未検出時にFIFOライトイネーブル信号Gによりカウントアップし、メモリフル検出時にカウントアップが停止するライトポインタが設けられている。ライトポインタのカウント値はライトポインタ値Lとして、メモリリード制御部33のリード制御回路331に出力される。
In the
そして、メモリフル検出時にはメモリ31へのライト制御を停止するため、図3の下段に示すように、ライト制御回路321でFIFOフルフラグ信号Iを用いて、FIFOライト制御部2からのFIFOライトイネーブル信号Gに対して、マスク制御を行った、メモリライトイネーブル信号J1がメモリ31のシステムバス抽出データメモリへ出力される。図3では、FIFOライトイネーブル信号Gの内でFIFOライトイネーブル信号G3がマスクされて、メモリライトイネーブル信号Jとしてメモリライトイネーブル信号J1-1,J1-2,J1-4,J1-5が出力されている。
In order to stop the write control to the
メモリ31のフル状態を示すFIFOフルフラグ信号Iは、メモリフル検出回路323で、ライトポンタ値Lと、メモリリードアドレスMの比較結果およびメモリライトイネーブル信号J1,メモリリードイネーブル信号Pの状態により検出され、FIFOライト制御回路321と、オーバーフロー制御回路322と、メモリ31のオーバーフロー情報メモリへ出力される。
The FIFO full flag signal I indicating the full state of the
ライト制御回路321におけるFIFOフルフラグ信号Iの使途は上述のとおりである。オーバーフロー制御回路322に出力されるFIFOフルフラグ信号Iは、図3の下段に示すように、FIFOライトイネーブル信号Gをイネーブルにシフトされ、微分されて、FIFOオーバーフロー制御信号Fとして、FIFOライト制御部2のライトイネーブル生成回路22に出力される。
The use of the FIFO full flag signal I in the
FIFOフルフラグ信号Iは、FIFO部3へのデータ書込み時の書込みエラー発生を示すオーバーフロー情報データとしてメモリ31のオーバーフロー情報メモリに書き込まれる。その制御は、メモリ制御部32のオーバーフロー制御回路322により行われ、メモリフル検出時にFIFOライトイネーブル信号Gが入力されると、メモリフル検出直前にオーバーフロー未発生情報が書き込まれたオーバーフロー情報メモリのアドレスへ、FIFOフルフラグ信号Iをオーバーフロー発生情報として上書きするオーバーライト制御となる。
The FIFO full flag signal I is written to the overflow information memory of the
図3の下段において、メモリ31の書込みアドレスとして、オーバーフロー制御回路322から出力されるメモリライトアドレスKは、メモリフル状態の未検出時にはライト制御回路321で生成されるライトポインタ値Lと同じ値であり、メモリフル検出回路323でメモリフル状態が検出されメモリフル検出信号Iが出力されると、メモリフル検出信号Iをセレクト制御信号として、メモリフル状態を検出する直前のメモリライトアドレス値に切り替わり出力される。図3では、メモリライトアドレスKは(n-1)からnになるべきところ、FIFOフルフラグ信号Iが“H”の間は留保されている。
In the lower part of FIG. 3, the memory write address K output from the
このメモリフル検出時に切り替わるメモリライトアドレスKと、FIFOオーバーフロー制御信号Fによりメモリフル検出時にマスクされない、FIFOライトイネーブル信号Gにより、図5に示すオーバーライト制御が行われる。図5はオーバーフロー制御回路322よって行われるオーバーライト制御の動作を示した動作概略図である。
The overwrite control shown in FIG. 5 is performed by the memory write address K which is switched when the memory is full and the FIFO write enable signal G which is not masked by the FIFO overflow control signal F when the memory is full. FIG. 5 is an operation schematic diagram showing the operation of the overwrite control performed by the
図5では、メモリ31に書き込まれたシステムバスデータ1〜(N-1)がリード制御されずにシステムバスデータNの書込み制御が行われて(図5の(1))、全てのメモリ領域にシステムバスデータが書き込まれた状態を示し、このときFIFOフルフラグ信号Iが生成される(図5の(2))。
In FIG. 5, the
この状態で、システムバスデータ1〜Nがリード制御されずに、次のシステムバスデータ(N+1)がメモリ31にライト制御されると(図5の(3))、FIFOフル検出状態でシステムバスデータがライト制御されるため、オーバーフロー制御となるシステムバスデータNのオーバーフロー情報ビットの格納領域に対して、オーバーフロー発生を示す値(FIFOフルフラグ信号I)がオーバーライト制御される(図5の(4))。そして、オーバーフロー制御の発生以降、メモリ31に対してリード制御が行われずに、システムバスデータのライト制御が行われた場合には、そのシステムバスデータ(N+1)は破棄される(図5の(5))。
In this state, if the next system bus data (N + 1) is write-controlled to the
(2)FIFOの書込みデータ読出し
FIFOの書込みデータ読出し動作は、FIFOリード制御部6とFIFO部3のメモリリード制御部33により行われる。
(2) Reading FIFO write data
The FIFO write data read operation is performed by the FIFO read
FIFOリード制御部6は、FIFO部3のメモリエンプティ検出回路332からのFIFOエンプティフラグ信号Nと、メモリ・オルモスト・エンプティ検出回路333からのFIFOオルモスト・エンプティ・フラグ信号Oと、ライト制御回路321からのメモリライトイネーブル信号J1と、FIFOリード制御部6のリードイネーブル生成回路61からのFIFOリードイネーブル信号PをFIFO状態検出回路62で常時監視する。
The FIFO read
そして、FIFOエンプティフラグ信号Nからメモリライトイネーブル信号J1と、FIFOリードイネーブル信号Pによるリード/ライト制御後のメモリ31のデータ読出し状態を検出する。また、FIFOオルモスト・エンプティ・フラグ信号Oと、メモリライトイネーブル信号J1と、FIFOリードイネーブル信号Pから、メモリライトイネーブル信号J1と、FIFOリードイネーブル信号Pによるリード/ライト制御が行われる前に、リード/ライト制御後のメモリ31のデータ読出し状態を先読みして検出する。
Then, the memory read enable signal J1 from the FIFO empty flag signal N and the data read state of the
FIFO状態検出回路62で検出された結果は、メモリ31全てのデータ読出し状態を示すFIFO状態検出信号Qとして生成される。この生成サイクルは、エンプティ状態でない全てのメモリ31に対して競合せずに1回ずつ連続してリード制御を行うための期間を1単位とし、メモリ31全てがエンプティ状態となるまで連続して繰り返される。FIFO状態検出信号Qはリードイネーブル生成回路61に入力し、図6に示すように連続して繰り返されるFIFOリードイネーブル信号Pの生成サイクル間において用いられる。
The result detected by the FIFO
すなわち、FIFO状態検出信号Qは、1生成サイクルの最後のFIFOリードイネーブル信号Pがアクティブとなるのと同時に、次の生成サイクルのFIFOリードイネーブル信号Pの生成条件として用いられ、1生成サイクルで最後にアクティブとなったFIFOリードイネーブル信号Pがディセイブルになるのと同時に、次の生成サイクルの最初のFIFOリードイネーブル信号Pをアクティブとする制御が行わる。 That is, the FIFO state detection signal Q is used as a generation condition of the FIFO read enable signal P in the next generation cycle at the same time when the last FIFO read enable signal P in one generation cycle becomes active. At the same time as the FIFO read enable signal P that has become active becomes disabled, control is performed to activate the first FIFO read enable signal P in the next generation cycle.
図6において、1つ目から5つ目のリードイネーブル生成サイクルまではメモリライトイネーブル信号J1が“L”である。1つ目のリードイネーブル生成サイクルでは、全てのFIFOエンプティフラグ信号N1〜N5が“L”であるため、全てのFIFOリードイネーブル信号P1〜P5がアクティブとなっている。2つ目のリードイネーブル生成サイクルでは、FIFOエンプティフラグ信号N2が“H”となるが、それはリード制御後であるので、このサイクルにおいてFIFOリードイネーブル信号P1〜P5はアクティブを維持する。 In FIG. 6, the memory write enable signal J1 is “L” from the first to fifth read enable generation cycles. In the first read enable generation cycle, since all the FIFO empty flag signals N1 to N5 are “L”, all the FIFO read enable signals P1 to P5 are active. In the second read enable generation cycle, the FIFO empty flag signal N2 becomes “H”, but since this is after the read control, the FIFO read enable signals P1 to P5 remain active in this cycle.
3つ目のリードイネーブル生成サイクルでは、FIFOエンプティフラグ信号N2は“H”を維持しているため、FIFOリードイネーブル信号P2はリード制御後の検出によるディセイブルとなる。また、FIFOエンプティフラグ信号N5が当該サイクルの開始時に“H”となっているため、FIFOリードイネーブル信号P5はリード制御前の先読み検出によるディセイブルとなる。また、FIFOエンプティフラグ信号N3が“H”となるが、それはリード制御後であるので、このサイクルにおいてFIFOリードイネーブル信号P3がディセイブルとなることはない。 In the third read enable generation cycle, since the FIFO empty flag signal N2 is maintained at “H”, the FIFO read enable signal P2 is disabled by detection after the read control. Further, since the FIFO empty flag signal N5 is “H” at the start of the cycle, the FIFO read enable signal P5 is disabled due to the prefetch detection before the read control. Further, although the FIFO empty flag signal N3 becomes “H”, since it is after the read control, the FIFO read enable signal P3 is not disabled in this cycle.
4つ目のリードイネーブル生成サイクルでは、FIFOエンプティフラグ信号N2,N3,N5は“H”を維持しているため、FIFOリードイネーブル信号P2,P3,P5がディセイブルとなる。また、FIFOエンプティフラグ信号N1が“H”となるが、それはリード制御後であるので、このサイクルにおいてFIFOリードイネーブル信号P1がディセイブルとなることはない。 In the fourth read enable generation cycle, since the FIFO empty flag signals N2, N3, and N5 are maintained at “H”, the FIFO read enable signals P2, P3, and P5 are disabled. Further, the FIFO empty flag signal N1 becomes “H”, but since this is after the read control, the FIFO read enable signal P1 is not disabled in this cycle.
5つ目のリードイネーブル生成サイクルでは、FIFOエンプティフラグ信号N1,N2,N3,N5は“H”を維持しているため、FIFOリードイネーブル信号P1,P2,P3,P5がディセイブルとなる。なお、FIFOエンプティフラグ信号N4は“L”を維持しているため、FIFOリードイネーブル信号P4はアクティブのままである。このアクティブ状態は、FIFOエンプティフラグ信号N4が“H”となるか、またはFIFOエンプティフラグ信号N1,N2,N3,N5の内の1
つ以上が“L”となるまで持続する。すなわち、エンプティ状態にないメモリ31が1つの場合のFIFOリードイネーブル信号Pは、そのメモリ31がエンプティ状態となるか、エンプティ状態にないメモリ31が2つ以上となるまでアクティブ状態を保持した出力となる。
In the fifth read enable generation cycle, since the FIFO empty flag signals N1, N2, N3, and N5 are maintained at “H”, the FIFO read enable signals P1, P2, P3, and P5 are disabled. Since the FIFO empty flag signal N4 maintains “L”, the FIFO read enable signal P4 remains active. In this active state, the FIFO empty flag signal N4 becomes “H” or one of the FIFO empty flag signals N1, N2, N3, and N5.
It lasts until one or more becomes “L”. That is, the FIFO read enable signal P in the case where there is one
図6では、7つ目のリードイネーブル生成サイクルまでFIFOエンプティフラグ信号N1,N2,N3,N5が“H”であるが、7つ目のリードイネーブル生成サイクルでメモリライトイネーブル信号J1が“H”となり、これを受けて8つ目のリードイネーブル生成サイクルでメモリ31のデータ読出し状態の先読み検出によりFIFOエンプティフラグ信号N1は“L”となっている。このため、これ以降のリードイネーブル生成サイクルでは、FIFOリードイネーブル信号P1,P4がアクティブとなる状態が続く。しかし、図6の右端に近づくと、再びFIFOエンプティフラグ信号N1が“H”となり、FIFOエンプティフラグ信号N4も“H”となって、全てのメモリ31がエンプティ状態となるので、アクティブ状態のFIFOリードイネーブル信号がなくなっている。
In FIG. 6, the FIFO empty flag signals N1, N2, N3, and N5 are “H” until the seventh read enable generation cycle, but the memory write enable signal J1 is “H” in the seventh read enable generation cycle. Accordingly, in the eighth read enable generation cycle, the FIFO empty flag signal N1 becomes “L” due to the prefetch detection of the data read state of the
このように、メモリ31のリード制御は、エンプティ状態にないメモリ31対してのみ連続して行われ、エンプティ状態であるメモリ31に対してはスキップされる。図7(A)はメモリ1〜メモリNの全てがエンプティ状態でなく、従ってメモリ1〜メモリNの全てに対してFIFOリードイネーブル信号が繰り返し出力されていることを示す。しかし、図7(B)はメモリ1とメモリ(N-1)がエンプティ状態となっており、メモリ1とメモリ(N-1)に対するFIFOリードイネーブル信号はスキップされていることを示している。
Thus, the read control of the
メモリリード制御部33の内のリード制御回路331の内部には、メモリエンプティ未検出時にFIFOリードイネーブル信号Pによりカウントアップし、メモリエンプティ検出時にカウントアップが停止するリードポインタが設けられ、リードポインタのカウント値がメモリリードアドレスMとしてメモリ31に出力される。
The
また、メモリエンプティ検出回路332で検出されるFIFOエンプティ検出信号N,メモリ・オルモスト・エンプティ検出回路333で検出されるFIFOオルモスト・エンプティ検出信号Oは、リード制御回路331のリードポインタ値と、メモリライト制御部32のライト制御回路321からのライトポインタ値Lの比較結果、およびメモリライトイネーブル信号J1,メモリリードイネーブル信号Pの状態により生成される。
Further, the FIFO empty detection signal N detected by the memory
なお、読出しデータの多重動作は、データ多重制御部5により行われる。データ多重制御部5は、FIFOリード制御部6からのn本のFIFOリードイネーブル信号Pをセレクト制御信号として、FIFO部3)から読み出され、バス識別コード付加回路4により、観測システムバス毎に固有のコードが付加された、n本のFIFOリードデータCを1つのデータ列に多重する、n to 1セレクト回路の単純な動作を行う。
The read data multiplexing operation is performed by the data multiplexing
図8は、本発明のバスモニタ回路の実施例2を示す。このバスモニタ回路は、上述のバスモニタ回路と基本的構成は同じであるが、バスモニタ回路からのモニタ出力に割り当てられる、集積回路の端子数に制限がある場合のモニタ出力方法について工夫している。 FIG. 8 shows a second embodiment of the bus monitor circuit of the present invention. This bus monitor circuit has the same basic configuration as the above-described bus monitor circuit, but devised a monitor output method when the number of integrated circuit terminals allocated to the monitor output from the bus monitor circuit is limited. Yes.
図8を参照すると、このバスモニタ回路は、図1に示下バスモニタ回路の最終段に、セカンドFIFO部7と、パラレル/シリアル変換部8を追加した構成となっている。追加されたパラレル/シリアル変換部8は、観測対象となるシステムバスのデータ幅を設定されたデータ幅毎に分割し、シリアル出力するための制御機能部であり、また、セカンドFIFO部7は、データ多重制御部5からの観測対象となるシステムバスのデータ抽出速度と、パラレル/シリアル変換部8により設定されたデータ幅に分割され、集積回路外部へ出力されるシリアル出力速度との速度調整を行う制御機能部である。
Referring to FIG. 8, this bus monitor circuit has a configuration in which a
セカンドFIFO部7は、FIFO部3のメモリ・オルモスト・エンプティ検出機能のみを削除し、他の機能は同一とするFIFO部である。このため、オーバーフロー制御が可能であり、FIFO部3のリードイネーブル信号Pをライトイネーブル信号として、データ多重制御部5からのバスモニタ多重データRを格納する。
The
パラレル/シリアル変換部8は、セカンドFIFO部7から出力されるセカンドFIFOエンプティフラグ信号Uを常時監視し、セカンドFIFO部7にデータ多重制御部5からのバスモニタ多重データRが書き込まれエンプティ状態にない状態を検出すると、セカンドFIFOリードイネーブル信号Tを出力し、セカンドFIFO部7に格納されたバスモニタ多重データRをセカンドFIFOリードデータSとして読み出す。また、これと共に、パラレル/シリアル変換部8でセカンドFIFOリードデータSをラッチし、設定されたデータ幅で分割されたセカンドFIFOリードデータSを、シリアル出力データとしてバスモニタ回路からモニタ出力する。
The parallel /
パラレル/シリアル変換部8からセカンドFIFO部7に出力されるセカンドFIFOリードイネーブル信号Tは、パラレル/シリアル変換部8にラッチされ、設定されたデータ幅で分割されたセカンドFIFOリードデータSが全てシリアル出力されるまで、セカンドFIFO部7内に多数のバスモニタ多重データRが格納された、エンプティ状態にない状態であっても、セカンドFIFOリードイネーブル信号Tの生成出力を停止する。
The second FIFO read enable signal T output from the parallel /
このため、パラレル/シリアル変換部8から生成出力されるセカンドFIFOリードイネーブル信号Tは、セカンドFIFO部7から読み出されパラレル/シリアル変換部8にラッチされたセカンドFIFOリードデータSが設定されたデータ幅に分割されシリアル出力される最終サイクル毎に生成されセカンドFIFO部7へ出力される。また、パラレル/シリアル変換部8は、観測対象となる複数のシステムバスのデータ幅が異なる場合のための、パディング(Padding)機能を備え、観測対象となるシステムバスから抽出されたデータが分割出力されてシリアル出力される出力サイクル数は可変長で行われる。
For this reason, the second FIFO read enable signal T generated and output from the parallel /
従って、追加されるセカンドFIFO部7のメモリ容量分だけ、バスモニタ全体のFIFO部のメモリ容量が大きくなるデメリットはあるが、バスモニタ回路から出力され集積回路の端子に接続されるバスモニタ出力信号の信号幅を図9に示すように低減する効果が得られる。図9は、データ多重制御部出力の信号幅がnビットであり、集積回路の端子に接続されるバスモニタ出力信号の信号幅が4ビットとした場合の例であり、P/S変換部出力は、4ビットづつm(=n/4)回に亘る。
Therefore, although there is a demerit that the memory capacity of the FIFO section of the entire bus monitor is increased by the memory capacity of the added
1 バスデータ検出部
2 FIFOライト制御部
3 FIFO部
4 バス識別コード付加回路
5 データ多重制御部
6 FIFOリード制御部
7 セカンドFIFO部
8 パラレル/シリアル変換部
21 ラッチ・タイムスタンプ付加回路
22 ライトイネーブル生成回路
23 リンク制御回路
31,31a〜31n メモリ
32,32a〜32n メモリライト制御部
33,33a〜33n メモリリード制御部
61 リードイネーブル生成回路
62 FIFO状態検出回路
321 ライト制御回路
322 オーバーフロー制御回路
323 メモリフル検出回路
331 リード制御回路
332 メモリエンプティ検出回路
333 メモリ・オルモスト・エンプティ検出回路
A システムバス抽出データ
B FIFOライトデータ
C FIFOリードデータ
D フィルタ条件検出信号
E トリガ条件検出信号
F FIFOオーバーフロー制御信号
G FIFOライトイネーブル信号
H リンク制御信号
I FIFOフルフラグ信号
J1,J2 メモリライトイネーブル信号
K メモリライトアドレス
L ライトポインタ値
M メモリリードアドレス
N FIFOエンプティフラグ信号
O FIFOオルモスト・エンプティ・フラグ信号
P FIFOリードイネーブル信号
Q FIFO状態検出信号
R バスモニタ多重データ
S セカンドFIFOリードデータ
T セカンドFIFOリードイネーブル信号
U セカンドFIFOエンプティフラグ信号
DESCRIPTION OF
21 Latch time stamp addition circuit
22 Write enable generation circuit
23 Link control circuit
31,31a to 31n memory
32, 32a to 32n Memory write controller
33,33a to 33n Memory read controller
61 Read enable generation circuit
62 FIFO status detection circuit
321 Light control circuit
322 Overflow control circuit
323 Memory full detection circuit
331 Lead control circuit
332 Memory Empty Detection Circuit
333 Memory Almost Empty Detection Circuit A System Bus Extracted Data B FIFO Write Data C FIFO Read Data D Filter Condition Detection Signal E Trigger Condition Detection Signal F FIFO Overflow Control Signal G FIFO Write Enable Signal H Link Control Signal I FIFO Full Flag Signal J1 , J2 Memory write enable signal K Memory write address L Write pointer value M Memory read address N FIFO empty flag signal O FIFO almost empty flag signal P FIFO read enable signal Q FIFO status detection signal R Bus monitor multiplexed data S Second FIFO read Data T Second FIFO read enable signal U Second FIFO empty flag signal
Claims (4)
において、
前記システムバスで送受信されるデータを検出するためのフィルタ条件と前記検出されたデータの抽出開始および停止を制御するためのトリガ条件に適ったデータを前記システムバスから抽出するバスデータ検出部と、
前記バスデータ抽出データを記憶するために前記システムバスと1対1対応のメモリを
有するFIFO部と、
FIFOライトイネーブル信号を生成して前記バスデータ抽出データと共に前記FIFO部に出
力するFIFOライト制御部と、
FIFOリードイネーブル信号を生成して前記FIFO部に出力するFIFOリード制御部を備え、
前記FIFO部には前記メモリと1対1対応に、
前記FIFOライトイネーブル信号が入力するとメモリライトイネーブル信号とメモリライ
トアドレスを生成して前記メモリに出力するメモリライト制御部と、
前記FIFOリードイネーブル信号が入力するとメモリリードアドレスを生成して前記メモ
リに出力し、また前記メモリのリード・エンプティ状態を示すFIFOエンプティ・フラグ信
号と、前記メモリが次に読み出されると前記リードエンプティ状態となるリード・オルモ
スト・エンプティ状態を示すFIFOオルモスト・エンプティ・フラグ信号を前記FIFOリード
制御部出力するメモリリード制御部を設け、
前記FIFOリード制御部は、前記FIFOエンプティ・フラグ信号および前記FIFOオルモスト
・エンプティ・フラグ信号により、エンプティ状態を示していないメモリに対するFIFOリ
ードイネーブル信号のみをアクティブ状態とすることを特徴とするバスモニタ回路。 In a bus monitor circuit that monitors and outputs the status of at least one system bus to be observed,
A bus data detection unit for extracting data suitable for a filter condition for detecting data transmitted and received on the system bus and a trigger condition for controlling extraction start and stop of the detected data from the system bus;
A FIFO unit having a one-to-one correspondence with the system bus to store the bus data extraction data;
A FIFO write control unit that generates a FIFO write enable signal and outputs the FIFO data together with the bus data extraction data to the FIFO unit;
A FIFO read control unit that generates a FIFO read enable signal and outputs it to the FIFO unit,
The FIFO unit has a one-to-one correspondence with the memory.
A memory write control unit that generates a memory write enable signal and a memory write address when the FIFO write enable signal is input, and outputs the memory write address to the memory;
When the FIFO read enable signal is input, a memory read address is generated and output to the memory. Also, a FIFO empty flag signal indicating the read empty state of the memory, and the read empty state when the memory is read next time. A memory read control unit is provided that outputs a FIFO ormost empty flag signal indicating the read or most empty state to be the FIFO read control unit,
The FIFO read control unit activates only a FIFO read enable signal for a memory that does not indicate an empty state by the FIFO empty flag signal and the FIFO almost empty flag signal. .
前記検出されたデータが前記トリガ条件に適ったことを示す複数の前記システムバス対応のトリガ条件検出信号を論理的に組み合わせることにより前記メモリに対するシステムバス抽出データの書込み開始と書込み終了を制御するためのリンク制御信号を生成するリンク制御回路と、
前記FIFO部からのFIFOオーバーフロー制御信号と前記リンク制御回路からのリンク制御信号を生成条件として、前記システムバスで送受信されるデータが前記フィルタ条件に適ったことを示すフィルタ条件検出信号により、前記FFIFOライトイネーブル信号を生成するライトイネーブル生成回路を備えたことを特徴とする請求項1記載のバスモニタ回路。
The FIFO light control unit
Controlling the start and end of writing of the system bus extraction data to the memory by logically combining a plurality of trigger condition detection signals corresponding to the system bus indicating that the detected data meets the trigger condition A link control circuit for generating a link control signal of
Using the FIFO overflow control signal from the FIFO unit and the link control signal from the link control circuit as a generation condition, the FFIFO is detected by a filter condition detection signal indicating that data transmitted and received on the system bus meets the filter condition. 2. The bus monitor circuit according to claim 1, further comprising a write enable generation circuit for generating a write enable signal.
前記FIFOリードイネーブル信号により前記バス識別コード付加回路の出力を多重して前記バスモニタ出力とするデータ多重制御部を設けたことを特徴とする請求項1〜請求項3記載のバスモニタ回路。
A bus identification code adding circuit for adding identification data specific to the system bus to the FIFO read data read from the memory;
4. The bus monitor circuit according to claim 1, further comprising a data multiplex control unit that multiplexes the output of the bus identification code adding circuit in response to the FIFO read enable signal and outputs the bus monitor output.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006137097A JP4880355B2 (en) | 2006-05-16 | 2006-05-16 | Bus monitor circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006137097A JP4880355B2 (en) | 2006-05-16 | 2006-05-16 | Bus monitor circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2007310516A JP2007310516A (en) | 2007-11-29 |
| JP4880355B2 true JP4880355B2 (en) | 2012-02-22 |
Family
ID=38843332
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006137097A Expired - Fee Related JP4880355B2 (en) | 2006-05-16 | 2006-05-16 | Bus monitor circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4880355B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5622350B2 (en) * | 2007-12-05 | 2014-11-12 | オリンパスメディカルシステムズ株式会社 | Intra-subject introduction apparatus and intra-subject information acquisition system |
| WO2011065354A1 (en) | 2009-11-26 | 2011-06-03 | 日本電気株式会社 | Bus monitor circuit and bus monitor method |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02284249A (en) * | 1989-04-26 | 1990-11-21 | Toshiba Corp | Bus tracer |
| JPH04260248A (en) * | 1991-02-14 | 1992-09-16 | Nippon Telegr & Teleph Corp <Ntt> | Packet distribution measuring system |
| JP2003337762A (en) * | 2002-05-21 | 2003-11-28 | Nippon Signal Co Ltd:The | Bus monitor circuit |
| JP2004139377A (en) * | 2002-10-18 | 2004-05-13 | Alps Electric Co Ltd | Fifo circuit |
| JP2004216935A (en) * | 2003-01-09 | 2004-08-05 | Nippon Signal Co Ltd:The | Monitoring device for train control device |
-
2006
- 2006-05-16 JP JP2006137097A patent/JP4880355B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2007310516A (en) | 2007-11-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4225851B2 (en) | Trace element generation system for data processor | |
| US20050039078A1 (en) | Trace data source identification within a trace data stream | |
| TWI416316B (en) | Techniques for generating a trace stream for a data processing apparatus | |
| RU2013111841A (en) | METHOD AND SYSTEM FOR PROCESSING IMAGES WITH DOUBLE IMAGE SENSOR | |
| US20100329261A1 (en) | Data processing apparatus, data processing method and computer-readable medium | |
| JP5460156B2 (en) | Data processing device | |
| CN113485672A (en) | Information generation method, device, equipment and medium based on FIFO memory | |
| JP2021175096A (en) | Network apparatus | |
| JP4880355B2 (en) | Bus monitor circuit | |
| EP2133797B1 (en) | Dma transfer device and method | |
| KR20180122409A (en) | Tracking activity | |
| CN110597482A (en) | Method for searching valid data packet in FIFO (first in first out) by serial port | |
| CN118350981B (en) | Device for exchanging data between threads | |
| JPH10255485A (en) | Associative memory and network frame repeater | |
| US20110179236A1 (en) | Memory Block Reclaiming Judging Apparatus and Memory Block Managing System | |
| US20080082760A1 (en) | Event holding circuit | |
| JP4897722B2 (en) | Rate monitoring method for packet transfer equipment | |
| CN101425962B (en) | Packet forwarding method and apparatus | |
| CN101286873B (en) | Error frame extracting interface arrangement for Ethernet | |
| CN108616329B (en) | FC network sequence sending control system and method based on digital circuit | |
| KR20060015917A (en) | Control system to control multiple function blocks | |
| JP3491583B2 (en) | Shared buffer control circuit and shared buffer control method | |
| GB2404754A (en) | Trace data source identification within a trace data stream | |
| JP4837361B2 (en) | Transmission system, data transmission device, data reception device | |
| US20160011981A1 (en) | Method and device for storing data in a memory, corresponding apparatus and computer program product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090415 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110817 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20111014 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20111118 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20111201 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4880355 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141209 Year of fee payment: 3 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |