JPH0713870A - Data analyzing device - Google Patents

Data analyzing device

Info

Publication number
JPH0713870A
JPH0713870A JP5153626A JP15362693A JPH0713870A JP H0713870 A JPH0713870 A JP H0713870A JP 5153626 A JP5153626 A JP 5153626A JP 15362693 A JP15362693 A JP 15362693A JP H0713870 A JPH0713870 A JP H0713870A
Authority
JP
Japan
Prior art keywords
signal
page
circuit
analog
processing
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
JP5153626A
Other languages
Japanese (ja)
Inventor
Yoshiaki Sawada
佳明 澤田
Hirotoshi Maekawa
博俊 前川
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP5153626A priority Critical patent/JPH0713870A/en
Publication of JPH0713870A publication Critical patent/JPH0713870A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To provide a data analyzing device which can detect the operation state of a digital circuit at a high speed without increasing a digital arithmetic throughput. CONSTITUTION:A CPU 2 outputs an access signal S2a to a cache memory 4 and a memory controller 8 digitally counts the frequency of access to a page present in the cache memory 4 of the CPU 2 on the basis of the page that the access signal S2a indicates. A digital count signal S8a is converted by a D/A converting circuit 10 into an analog signal S10, and an analog analyzing circuit 14 detects the page having the highest access frequency on an analog basis and determines this detected page as a page to be saved in an external memory 6 from the cache memory 4. Then the memory controller 8 saves the determined page in the external memory 6 from the cache memory 4.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル回路におけ
るデータ解析を高速化、簡単化するデータ解析装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data analysis device which speeds up and simplifies data analysis in a digital circuit.

【0002】[0002]

【従来の技術】ディジタル回路では、たとえば、ディジ
タル回路の動作時に動的に変化する所定のディジタルデ
ータを用いて演算処理が行われ、この処理結果に基づい
て検出されたディジタル回路の動作状態に応じた処理が
行われる場合がある。たとえば、電子計算機では、ペー
ジング方式による記憶管理を行う際に、各ページのCP
Uからのアクセス回数がカウントされ、このカウント結
果の大小関係を決定され、この決定された大小関係に基
づいて、キャッシュメモリから外部メモリに退避するペ
ージが決定される場合がある。このような電子計算機に
おいては、CPUまたはメモリコントローラにおいて、
上記カウント結果に基づいて、ディジタル形式の演算処
理を行われ、上記各ページのCPUからのアクセス回数
の大小関係が決定される。
2. Description of the Related Art In a digital circuit, for example, arithmetic processing is performed using predetermined digital data that dynamically changes during operation of the digital circuit, and the digital circuit operates according to the operating state of the digital circuit detected based on the processing result. Processing may be performed. For example, in a computer, when performing storage management by the paging method, the CP of each page
The number of times of access from U is counted, the magnitude relation of the count result is determined, and the page saved from the cache memory to the external memory may be determined based on the determined magnitude relation. In such an electronic computer, in the CPU or the memory controller,
Based on the count result, digital type arithmetic processing is performed, and the magnitude relation of the number of accesses from the CPU of each page is determined.

【0003】また、複数のプロセッサが、それぞれ対応
したキャッシュメモリを介して共有メモリに接続され、
所定の処理をこれらの複数のプロセッサに分散して実行
するマルチプロセッサシステムにおいても、個々のプロ
セッサに分散する処理を決定する際に、個々のプロセッ
サに対応したキャッシュメモリに記憶されたデータの履
歴を示すディジタルデータを用いて所定の演算処理が行
われる。
Further, a plurality of processors are connected to a shared memory through corresponding cache memories,
Even in a multiprocessor system in which a predetermined process is distributed to and executed by these multiple processors, the history of data stored in the cache memory corresponding to each processor is determined when determining the process to be distributed to each processor. Predetermined arithmetic processing is performed using the indicated digital data.

【0004】[0004]

【発明が解決しようとする課題】しかし、上述したよう
に、ディジタル回路の動作状態を解析するためのディジ
タル形式の演算処理を行う際に、演算処理を行うディジ
タルデータの情報量が多くなると、演算量の増加に伴う
解析時間の長期化、および、ディジタルデータを記憶す
るメモリ容量の増大化などの問題が生じる。また、ディ
ジタル回路の動作状態の解析のために、高価なCPUが
長時間専有されるという問題もある。
However, as described above, when performing digital-type arithmetic processing for analyzing the operating state of a digital circuit, if the information amount of digital data to be arithmetically processed increases, Problems such as an increase in analysis time and an increase in memory capacity for storing digital data occur as the amount increases. There is also a problem that an expensive CPU is occupied for a long time for analyzing the operating state of a digital circuit.

【0005】上述した従来技術の問題に鑑み、本発明
は、ディジタル回路の動作状態を解析する場合に生じ
る、演算時間の長期化および記憶データの増大化などの
問題を解決できるデータ解析装置を提供することを目的
とする。また、本発明は、ディジタル回路の動作状態を
解決する処理にともなうCPUの負担を軽減することを
目的とする。
In view of the above-mentioned problems of the prior art, the present invention provides a data analysis apparatus capable of solving problems such as a long calculation time and an increase in stored data that occur when analyzing the operating state of a digital circuit. The purpose is to do. Another object of the present invention is to reduce the load on the CPU associated with the processing for solving the operating state of the digital circuit.

【0006】[0006]

【課題を解決するための手段】上述した従来技術の問題
を解決し、上述した目的を達成するために、本発明のデ
ータ解析装置は、複数の種類の動作を各動作の発生また
は終了を示すパルス状信号を出力して行うディジタル回
路と、該ディジタル回路から出力される前記パルス状信
号に応じて、所定の演算を行い、前記パルス状信号の出
力に応じたアナログ信号を作成する信号作成手段と、該
信号作成手段で作成されたアナログ信号を信号処理し、
前記複数の動作の発生頻度に基づいて、前記ディジタル
回路の動作状態を解析する解析手段とを有することを特
徴とする。本発明のデータ解析装置を用いて、ページン
グ方式の記憶管理を行う電子計算機におけるメインメモ
リから外部メモリに退避するページの決定、もしくは、
所定の処理を複数の演算手段に分散させて行うマルチプ
ロセッサシステムにおける処理分散の決定を行えば、上
記決定時間の短縮化および記憶手段の記憶領域の効率的
な利用を図ることができる。
In order to solve the above-mentioned problems of the prior art and achieve the above-mentioned object, the data analysis apparatus of the present invention indicates a plurality of types of operations to indicate the occurrence or termination of each operation. A digital circuit that outputs a pulse-shaped signal, and a signal creating unit that performs a predetermined calculation according to the pulse-shaped signal output from the digital circuit and creates an analog signal according to the output of the pulse-shaped signal And processing the analog signal created by the signal creating means,
And an analysis unit that analyzes the operating state of the digital circuit based on the occurrence frequency of the plurality of operations. Using the data analysis device of the present invention, determining the page to be saved from the main memory to the external memory in the electronic computer that performs paging storage management, or
By determining the processing distribution in the multiprocessor system in which the predetermined processing is distributed to a plurality of arithmetic means, it is possible to shorten the above determination time and efficiently use the storage area of the storage means.

【0007】[0007]

【作用】本発明のデータ解析装置では、ディジタル回路
の動作のうち、たとえば、所定の動作が発生するときに
パルス状信号が信号作成手段に出力される。ディジタル
回路から出力されたパルス状信号は、信号作成手段に
て、所定の演算が行われて変換され、アナログ信号とな
る。信号作成手段にて作成されたアナログ信号は、解析
手段にて信号処理され、該アナログ信号が示す前記ディ
ジタル回路における所定の動作の発生頻度に基づいて、
前記ディジタル回路の動作状態が解析される。
In the data analyzing apparatus of the present invention, a pulse-like signal is output to the signal generating means when, for example, a predetermined operation occurs in the operation of the digital circuit. The pulse-shaped signal output from the digital circuit is subjected to a predetermined calculation and converted by the signal creating means to become an analog signal. The analog signal created by the signal creating means is subjected to signal processing by the analyzing means, and based on the frequency of occurrence of a predetermined operation in the digital circuit indicated by the analog signal,
The operating state of the digital circuit is analyzed.

【0008】[0008]

【実施例】第1実施例について説明する。本実施例は、
CPUがキャッシュメモリを介して外部メモリと接続さ
れ、ページング方式の記憶管理が行われるディジタル回
路において、各ページに対してのCPUからのアクセス
回数を示すディジタルデータをアナログ量に変換し、変
換されたアナログ量に基づいて、外部メモリに退避させ
るページを決定する場合を例示する。図1は、本実施例
のディジタル回路およびデータ解析装置の構成図であ
る。図1に示すように、本実施例のディジタル回路は、
演算手段としてのCPU2、第1の記憶手段としてのキ
ャッシュメモリ4、第2の記憶手段としての外部メモリ
6およびメモリコントローラ8で構成される。また、本
実施例のデータ解析装置1は、信号作成手段としてのD
/A変換回路10、フィルタ回路12、アナログ解析回
路14およびページ番号検出回路16で構成される。本
実施例では、アナログ解析回路14、ページ番号検出回
路16およびメモリコントローラ8が解析手段としての
役割を有する。
EXAMPLE A first example will be described. In this example,
In a digital circuit in which a CPU is connected to an external memory via a cache memory and paging method storage management is performed, digital data indicating the number of accesses from the CPU to each page is converted into an analog amount and converted. A case where a page to be saved in the external memory is determined based on the analog amount will be exemplified. FIG. 1 is a block diagram of a digital circuit and a data analysis device of this embodiment. As shown in FIG. 1, the digital circuit of this embodiment is
It comprises a CPU 2 as an arithmetic means, a cache memory 4 as a first storage means, an external memory 6 as a second storage means, and a memory controller 8. In addition, the data analysis device 1 of the present embodiment uses D as a signal creating means.
The A / A conversion circuit 10, the filter circuit 12, the analog analysis circuit 14, and the page number detection circuit 16 are included. In this embodiment, the analog analysis circuit 14, the page number detection circuit 16 and the memory controller 8 have a role as analysis means.

【0009】図2は、データ解析装置1における処理の
概略を示すフローチャート図である。 ステップS1:メモリコントローラ8は、CPU2のキ
ャッシュメモリ4に対してのパルス状信号としてのアド
レス信号S2aに基づいて、各ページのアクセス(参
照)回数をディジタル形式でカウントする。 ステップS2:D/A変換回路10は、ステップS1で
ディジタル形式でカウントされたアクセス回数をアナロ
グ量に変換する。 ステップS3:アナログ解析回路14、ページ番号検出
回路16およびメモリコントローラ8は、ステップS2
で変換された各ページのアクセス回数を示すアナログ量
をアナログ解析し、退避するページを決定する。 ステップS4:メモリコントローラ8は、ステップS3
で決定されたページをキャッシュメモリ4から外部メモ
リ6に退避し、CPU2の処理に必要なページを外部メ
モリ6からキャッシュメモリ4に転送する。
FIG. 2 is a flow chart showing the outline of the processing in the data analysis apparatus 1. Step S1: The memory controller 8 counts the number of accesses (references) of each page in digital form based on the address signal S2a as a pulse-shaped signal to the cache memory 4 of the CPU 2. Step S2: The D / A conversion circuit 10 converts the access count counted in digital form in step S1 into an analog amount. Step S3: The analog analysis circuit 14, the page number detection circuit 16 and the memory controller 8 perform the step S2.
Analog analysis is performed on the analog amount indicating the number of times of access of each page converted in step 1, and the page to be saved is determined. Step S4: The memory controller 8 performs step S3
The page determined in step 1 is saved from the cache memory 4 to the external memory 6, and the page required for the processing of the CPU 2 is transferred from the external memory 6 to the cache memory 4.

【0010】以下、ディジタル回路の動作について説明
する。CPU2は、たとえば、予め作成されたプログラ
ムに応じた処理を実行中に、所定の記憶データに対して
のアクセスが生じると、アクセスを行う記憶データを特
定するアドレス信号S2aをキャッシュメモリ4および
メモリコントローラ8に出力する。このアドレス信号S
2aはアクセスを行う記憶データを特定するための、た
とえば、ページ番号とページ内のアドレスとを含む。
The operation of the digital circuit will be described below. For example, when a predetermined storage data is accessed during execution of a process according to a program created in advance, the CPU 2 outputs an address signal S2a specifying the storage data to be accessed to the cache memory 4 and the memory controller. Output to 8. This address signal S
2a includes, for example, a page number and an address within the page for specifying stored data to be accessed.

【0011】アドレス信号S2aで示されるページがキ
ャッシュメモリ4に存在する場合には、メモリコントロ
ーラ8によるページ転送処理は行われず、アドレス信号
S2aで示されるページ内のアドレスがCPU2によっ
てアクセスされ、処理データ4aが読み込まれ、あるい
は、処理結果2bが書き込まれる。
When the page indicated by the address signal S2a exists in the cache memory 4, the page transfer process by the memory controller 8 is not performed, and the address within the page indicated by the address signal S2a is accessed by the CPU 2 to obtain the processed data. 4a is read, or the processing result 2b is written.

【0012】一方、アドレス信号S2aで示されるペー
ジがキャッシュメモリ4に存在しない場合には、メモリ
コントローラ8から指示信号S8bおよびS8cがキャ
ッシュメモリ4および外部メモリ6に出力され、後述す
るように、キャッシュメモリ4に存在するページのうち
CPU2からのアクセス回数の少ないページ4bが外部
メモリ6に退避され、アドレス信号S2aで示されるペ
ージ6aがキャッシュメモリ4に転送される。その後、
上記転送されたページがCPU2によってアクセスさ
れ、処理データ4aが読み込まれ、あるいは、処理結果
2bが書き込まれる。
On the other hand, when the page indicated by the address signal S2a does not exist in the cache memory 4, the memory controller 8 outputs the instruction signals S8b and S8c to the cache memory 4 and the external memory 6, and as described later, the cache is used. Of the pages existing in the memory 4, the page 4b that is accessed less frequently by the CPU 2 is saved in the external memory 6, and the page 6a indicated by the address signal S2a is transferred to the cache memory 4. afterwards,
The transferred page is accessed by the CPU 2, the processing data 4a is read, or the processing result 2b is written.

【0013】以下、メモリコントローラ8におけるペー
ジ転送処理について説明する。メモリコントローラ8
は、キャッシュメモリ4に存在するページ数に対応した
数のカウンタを有し、CPU2からのアドレス信号S2
aに基づいて、CPU2からのアクセス回数を各ページ
毎にカウントする。上記カウンタのカウント結果は、デ
ィジタル形式のカウント信号S8aとしてD/A変換回
路10に出力される。
The page transfer process in the memory controller 8 will be described below. Memory controller 8
Has an address counter S2 from the CPU 2 having a number of counters corresponding to the number of pages existing in the cache memory 4.
The number of accesses from the CPU 2 is counted for each page based on a. The count result of the counter is output to the D / A conversion circuit 10 as a digital count signal S8a.

【0014】図3は、メモリコントローラ8がD/A変
換回路10に出力するカウント信号S8aを説明するた
めの図である。図3において、キャッシュメモリ4には
ページ番号が「1」〜「20」までのページが記憶さ
れ、たとえば、ページ番号「4」は、所定時間内のCP
U2からのアクセス回数が「8」回であることを示す。
FIG. 3 is a diagram for explaining the count signal S8a output from the memory controller 8 to the D / A conversion circuit 10. In FIG. 3, pages with page numbers “1” to “20” are stored in the cache memory 4. For example, the page number “4” is a CP within a predetermined time.
It indicates that the number of accesses from U2 is "8".

【0015】メモリコントローラ8は、CPU2から入
力したアドレス信号S2aで示されるページがキャッシ
ュメモリ4に存在しない場合に、上記ディジタルーデー
タをD/A変換回路10に出力し、後述するように、キ
ャッシュメモリ4から外部メモリ6に退避するページを
示すページ番号信号S16をページ番号検出回路16か
ら入力する。メモリコントローラ8は、ページ番号信号
S16を入力すると、指示信号S8bおよびS8cをキ
ャッシュメモリ4および外部メモリ6に出力し、ページ
番号信号S16で示されるページをキャッシュメモリ4
から外部メモリ6に退避させる。
The memory controller 8 outputs the digital data to the D / A conversion circuit 10 when the page indicated by the address signal S2a input from the CPU 2 does not exist in the cache memory 4, and the cache data is cached as described later. A page number signal S16 indicating a page to be saved from the memory 4 to the external memory 6 is input from the page number detection circuit 16. When the page number signal S16 is input, the memory controller 8 outputs the instruction signals S8b and S8c to the cache memory 4 and the external memory 6, and outputs the page indicated by the page number signal S16 to the cache memory 4
To the external memory 6.

【0016】その後、メモリコントローラ8は、指示信
号S8aおよびS8cをキャッシュメモリ4および外部
メモリ6に出力し、キャッシュメモリ4の上記退避され
たページに対応する領域に、アドレス信号S2aで示さ
れるページを外部メモリ6から転送する。
After that, the memory controller 8 outputs the instruction signals S8a and S8c to the cache memory 4 and the external memory 6, and places the page indicated by the address signal S2a in the area of the cache memory 4 corresponding to the saved page. Transfer from the external memory 6.

【0017】以下、D/A変換回路10、フィルタ回路
12、アナログ解析回路14およびページ番号検出回路
16について説明する。D/A変換回路10は、メモリ
コントローラ8からディジタル形式のカウント信号S8
aを入力し、このカウント信号S8aをアナログ変換
し、アナログ変換されたカウント信号S10をフィルタ
回路12に出力する。
The D / A conversion circuit 10, the filter circuit 12, the analog analysis circuit 14, and the page number detection circuit 16 will be described below. The D / A conversion circuit 10 receives the digital count signal S8 from the memory controller 8.
a is input, the count signal S8a is analog-converted, and the analog-converted count signal S10 is output to the filter circuit 12.

【0018】フィルタ回路12は、アナログ変換された
カウント信号S10に対して、高周波成分を除去するフ
ィルタ処理を行い、フィルタ処理された図4に示すよう
なカウント信号S12をアナログ解析回路14に出力す
る。図4において、横軸の時間はページ番号に対応し、
縦軸の電圧は各ページに対するCPU2のアクセス回数
に対応しており、Vmaxは最大電圧を示す。
The filter circuit 12 filters the analog-converted count signal S10 to remove high-frequency components, and outputs the filtered count signal S12 as shown in FIG. 4 to the analog analysis circuit 14. . In FIG. 4, the time on the horizontal axis corresponds to the page number,
The voltage on the vertical axis corresponds to the number of accesses of the CPU 2 to each page, and Vmax indicates the maximum voltage.

【0019】アナログ解析回路14は、フィルタ回路1
2から図4に示すカウント信号S12を入力し、カウン
ト信号S12を最初に入力した時からピーク電圧を入力
する時までの時間をタイムカウンタを用いて検出する。
たとえば、図3において、アナログ解析回路14のカウ
ンタは、カウント信号S10を最初に入力した時、すな
わち、時刻「0」から、最大電圧Vmaxを入力するま
での時間tmaxを検出する。アナログ解析回路14
は、カウンタで検出された時間tmaxを信号S14と
してページ番号検出回路16に出力する。ページ番号検
出回路16は、下記式(1)に基づいて、アナログ解析
回路14から入力した時間tmaxをページ番号に変換
する。
The analog analysis circuit 14 is a filter circuit 1.
The count signal S12 shown in FIG. 2 to FIG. 4 is input, and the time from when the count signal S12 is first input to when the peak voltage is input is detected using a time counter.
For example, in FIG. 3, the counter of the analog analysis circuit 14 detects the time tmax when the count signal S10 is first input, that is, from the time “0” until the maximum voltage Vmax is input. Analog analysis circuit 14
Outputs the time tmax detected by the counter to the page number detection circuit 16 as a signal S14. The page number detection circuit 16 converts the time tmax input from the analog analysis circuit 14 into a page number based on the following equation (1).

【0020】 ページ番号=tmax×(20/T) (1)Page number = tmax × (20 / T) (1)

【0021】ここで、「T」は、図3に示すように時刻
「0」からページ番号20のページに関する信号を入力
するまでの時間を示す。ページ番号検出回路16は、上
記式(1)に基づいて変換されたページ番号を示すペー
ジ番号信号S16をメモリコントローラ8に出力する。
メモリコントローラ8は、上述したように、ページ番号
信号S16で示されるページをキャッシュメモリ4から
外部メモリ6に転送する。
Here, "T" indicates the time from the time "0" until the signal relating to the page of page number 20 is input as shown in FIG. The page number detection circuit 16 outputs to the memory controller 8 a page number signal S16 indicating the page number converted based on the above equation (1).
As described above, the memory controller 8 transfers the page indicated by the page number signal S16 from the cache memory 4 to the external memory 6.

【0022】上述したように、本実施例のデータ解析装
置1によれば、従来技術として述べた電子計算機のよう
に、キャッシュメモリ4から外部メモリ6に退避させる
ペーを決定する際に、ディジタルデータを用いた演算処
理は行わず、アナログデータを用いてアナログ解析を行
うことで上記退避させるページを決定することができ
る。その結果、ディジタル回路におけるディジタル形式
の演算量を低減させることができる。また、キャッシュ
メモリ4に存在するページ数が多い場合など解析対象と
なるデータ量が多い場合に、ディジタル解析を行う場合
に比べて解析時間を短縮することができる。また、CP
U2には処理の負担がかからず、高価なCPU2を効率
的に使用することが可能となる。
As described above, according to the data analysis apparatus 1 of this embodiment, when the page to be saved from the cache memory 4 to the external memory 6 is determined like the computer described as the prior art, the digital data is saved. The page to be saved can be determined by performing the analog analysis using the analog data without performing the arithmetic processing using. As a result, it is possible to reduce the amount of calculation in digital form in the digital circuit. Further, when the amount of data to be analyzed is large, such as when the number of pages existing in the cache memory 4 is large, the analysis time can be shortened as compared with the case where digital analysis is performed. Also, CP
The processing load is not imposed on the U2, and the expensive CPU2 can be efficiently used.

【0023】本発明は、上述した実施例の他に、たとえ
ば、CPUがキャッシュメモリに対して出力するアドレ
スそのものを周波数にみたてて特定のアドレスに対応す
る周波数帯域がどの程度生じるかを検出し、周波数/ス
ペクトル解析を行うことでアクセス頻度の高いアドレス
を検出し、外部メモリ6に退避させるページを決定する
ようにしてもよい。
In addition to the above-described embodiments, the present invention detects, for example, how much a frequency band corresponding to a specific address is generated by comparing the address itself output to the cache memory by the CPU with the frequency. The frequency / spectrum analysis may be performed to detect an address with a high access frequency, and the page to be saved in the external memory 6 may be determined.

【0024】第2実施例について説明する。本実施例
は、複数のCPUと、各CPUに対応したキャッシュメ
モリを有し、所定の処理を複数のCPUで分散して行う
マルチプロセッサシステムにおいて、各キャッシュメモ
リに対してのCPUからのアクセス回数をアナログ量で
測定し、測定されたアナログ量に基づいて、複数のCP
Uに対しての処理の分散を決定する場合を例示する。
The second embodiment will be described. In the present embodiment, in a multiprocessor system having a plurality of CPUs and a cache memory corresponding to each CPU, and performing a predetermined process in a distributed manner among the plurality of CPUs, the number of access times from each CPU to each cache memory Is measured with an analog amount, and based on the measured analog amount, multiple CPs are
An example of determining the distribution of processing for U will be described.

【0025】図4は、本実施例のディジタル回路の構成
図である。図4にしめすように本実施例のマルチプロセ
ッサシステム21は、演算手段としてのCPU22〜2
8、記憶手段としてのキャッシュメモリ32〜38およ
び共有メモリ52および処理分散回路60で構成され
る。また、本実施例のデータ解析装置31は、信号作成
手段としてのコンデンサ42〜48および解析手段とし
てのアナログ解析回路56で構成される。
FIG. 4 is a block diagram of the digital circuit of this embodiment. As shown in FIG. 4, the multiprocessor system 21 of the present embodiment has CPUs 22 to 2 as arithmetic means.
8, cache memories 32 to 38 as storage means, a shared memory 52, and a processing distribution circuit 60. The data analysis device 31 of the present embodiment is composed of capacitors 42 to 48 as signal generation means and an analog analysis circuit 56 as analysis means.

【0026】図6は、マルチプロセッサシステム21お
よびデータ解析装置31における処理の概略を示すフロ
ーチャート図である。 ステップS1:コンデンサ42〜48は、CPU22〜
28からキャッシュメモリ32〜38に対してのアクセ
ス回数に応じた電荷を蓄積し、アクセス回数に応じた電
圧を有する。 ステップS2:アナログ解析回路56は、コンデンサ4
2〜48が有する電圧を入力し、最大の電圧を有するコ
ンデンサ42〜48に対応するCPU22〜28を優先
的に処理を割り当てるCPUとして決定する。 ステップS3:処理分散回路60は、ステップS2で決
定されたCPUに優先的に処理を割り当てる。
FIG. 6 is a flow chart showing an outline of processing in the multiprocessor system 21 and the data analysis device 31. Step S1: The capacitors 42 to 48 are the CPU 22 to
28 accumulates charges according to the number of times of access to the cache memories 32 to 38, and has a voltage according to the number of times of access. Step S2: The analog analysis circuit 56 uses the capacitor 4
2 to 48 are input, and the CPUs 22 to 28 corresponding to the capacitors 42 to 48 having the maximum voltage are determined as the CPUs to which the processing is preferentially assigned. Step S3: The processing distribution circuit 60 preferentially allocates the processing to the CPU determined in step S2.

【0027】以下、マルチプロセッサシステム21およ
びデータ解析装置31の動作について説明する。マルチ
プロセッサシステム21では、所定の処理が処理分散回
路60によってCPU22〜28に分散され、この分散
された処理がCPU22〜28においてそれぞれ実行さ
れる。
The operations of the multiprocessor system 21 and the data analysis device 31 will be described below. In the multiprocessor system 21, predetermined processing is distributed to the CPUs 22 to 28 by the processing distribution circuit 60, and the distributed processing is executed in the CPUs 22 to 28, respectively.

【0028】CPU22〜28は、キャッシュメモリ3
2〜38を介して、それぞれ共有メモリ52と接続さ
れ、CPU22〜28における処理と関連したデータが
アクセス信号S22a〜S28aに応じて共有メモリ5
2からキャッシュメモリ32〜38に転送され記憶され
る。
The CPUs 22 to 28 are connected to the cache memory 3
The data related to the processing in the CPUs 22 to 28 is connected to the shared memory 52 via the shared memories 5 to 38 in response to the access signals S22a to S28a.
2 is transferred to and stored in the cache memories 32 to 38.

【0029】データ解析装置31では、コンデンサ42
〜48は、CPU22〜28から出力される上記アクセ
ス信号S22a〜S28aを入力し、アクセス信号S2
2a〜S28aの入力回数に応じた電荷を蓄積し、この
入力回数に応じた蓄積電圧を有する。
In the data analysis device 31, the condenser 42
To 48 input the access signals S22a to S28a output from the CPUs 22 to 28, and access signal S2.
Charges according to the number of inputs of 2a to S28a are accumulated, and a storage voltage according to the number of inputs is stored.

【0030】アナログ解析回路56は、コンデンサ42
〜48から蓄積電圧に応じた蓄積電圧信号S42〜S4
8を入力し、コンデンサ42〜48の蓄積電圧を比較
し、コンデンサ42〜48の蓄積電圧の大小関係を示す
信号S56を処理分散回路60に出力する。
The analog analysis circuit 56 includes a capacitor 42
~ 48 to accumulated voltage signals S42 to S4 corresponding to the accumulated voltage
8 is input, the stored voltages of the capacitors 42 to 48 are compared, and a signal S56 indicating the magnitude relationship of the stored voltages of the capacitors 42 to 48 is output to the processing distribution circuit 60.

【0031】処理分散回路60は、アナログ解析回路5
6から上記信号S56を入力し、この信号S56に基づ
いて、処理をCPU22〜28に分散する。処理分散回
路60における上記処理の分散は、たとえば、蓄積電圧
の高いキャッシュメモリ32〜38に対応するCPU2
2〜28に優先的に処理を分散する。すなわち、CPU
22〜28から多数回アクセスされたキャッシュメモリ
32〜38にはCPU22〜28が実行中の処理に関連
するデータが既に記憶されている可能性が高いため、キ
ャッシュメモリ32〜38にアクセスを多く行っている
CPU22〜28に優先的に処理を分散し、CPU22
〜28における処理時間の短縮化を図る。
The processing distribution circuit 60 comprises the analog analysis circuit 5
The signal S56 is input from 6 and the processing is distributed to the CPUs 22 to 28 based on the signal S56. The distribution of the above processing in the processing distribution circuit 60 is performed by, for example, the CPU 2 corresponding to the cache memories 32 to 38 having high accumulated voltages.
The processing is preferentially distributed to 2 to 28. That is, the CPU
Since there is a high possibility that the cache memories 32-38 that have been accessed many times by the CPUs 22-28 already store the data related to the processing being executed by the CPUs 22-28, the cache memories 32-38 are frequently accessed. Processing is preferentially distributed to the CPUs 22 to 28 that are
The processing time in steps 28 to 28 is shortened.

【0032】上述したように、本実施例のマルチプロセ
ッサシステム21では、データ解析装置31を用いて、
CPU22〜28のキャッシュメモリ32〜38に対す
るアクセス回数をコンデンサ42〜48の蓄積電圧とし
てアナログ量で測定し、解析する。そのため、CPU2
2〜28の処理に負担をかけることなく、キャッシュメ
モリ32〜38の動作状態、すなわち、記憶状態を検出
して解析し、処理分散回路60によって処理をCPU2
2〜28に適切に分散することができる。
As described above, in the multiprocessor system 21 of this embodiment, the data analysis device 31 is used to
The number of accesses to the cache memories 32 to 38 of the CPUs 22 to 28 is measured as an accumulated voltage of the capacitors 42 to 48 in an analog amount and analyzed. Therefore, CPU2
The operation states of the cache memories 32 to 38, that is, the storage states are detected and analyzed without burdening the processes of the CPUs 2 to 28, and the processes are distributed to the CPU 2 by the process distribution circuit 60.
2 to 28 can be appropriately dispersed.

【0033】本発明は、上述した実施例に限定されず、
たとえば、上述した第1実施例のデータ解析装置1は、
たとえば、第2実施例に示すような信号作成手段として
のコンデンサをページ毎に設け、CPU2からアドレス
信号S2aを入力すると、このアドレス信号S2aが示
すページ番号に応じたコンデンサに電圧を蓄積し、コン
デンサの蓄積電圧の大小関係に基づいて、キャッシュメ
モリ4から外部メモリ6に退避するページを決定するよ
うな構成にしてもよい。
The present invention is not limited to the above embodiment,
For example, the data analysis device 1 of the first embodiment described above is
For example, a capacitor as a signal generating means as shown in the second embodiment is provided for each page, and when the address signal S2a is input from the CPU 2, a voltage is accumulated in the capacitor corresponding to the page number indicated by the address signal S2a, Alternatively, the page to be saved from the cache memory 4 to the external memory 6 may be determined based on the magnitude relationship of the accumulated voltage.

【0034】また、上述した第2実施例のデータ解析装
置21は、キャッシュメモリ32〜38のそれぞれにC
PU22〜28が実行するプロセスの数に対応した数の
コンデンサを設け、CPU22〜28のキャッシュメモ
リ32〜38に対するアクセス回数に応じた電圧をプロ
セス毎にコンデンサに蓄積し、この蓄積結果に基づい
て、CPU22〜28に処理をプロセス毎に分散するよ
うにしてもよい。たとえば、CPU22のプロセスAに
関するコンデンサに高い電圧が蓄積されている場合に
は、処理分散回路60は、プロセスAに関連する処理を
CPU22に割り当てる。
In the data analysis device 21 of the second embodiment described above, C is stored in each of the cache memories 32 to 38.
The number of capacitors corresponding to the number of processes executed by the PUs 22 to 28 is provided, and a voltage corresponding to the number of times the CPUs 22 to 28 access the cache memories 32 to 38 is stored in the capacitors for each process. The processing may be distributed to the CPUs 22 to 28 for each process. For example, when a high voltage is stored in the capacitor of the CPU 22 related to the process A, the process distribution circuit 60 allocates the process related to the process A to the CPU 22.

【0035】また、上述した第2実施例のデータ解析装
置21は、キャッシュメモリ32〜38のCPU22〜
28からのアクセス回数をカウントするカウンタを設
け、このカウント結果を上述した第1実施理例のデータ
解析装置1のようにD/A変換回路でアナログ量に変換
して解析するようにしてもよい。
The data analysis device 21 of the second embodiment described above includes the CPUs 22 to 22 of the cache memories 32 to 38.
A counter for counting the number of accesses from 28 may be provided, and the count result may be converted into an analog amount and analyzed by the D / A conversion circuit like the data analysis device 1 of the first embodiment. .

【0036】また、本発明のデータ解析装置は、上述し
たディジタル回路の記憶管理に限られず、その他のディ
ジタル回路における動作状態の検出においても用いるこ
とができる。また、本発明のデータ解析装置は、アナロ
グ解析を行う際に、アナログデータにフーリエ変換処理
を行い、この変換されたデータをスペクトル解析法など
を用いて周波数の解析を行うことで、ディジタル回路の
動作状態を検出してもよい。さらに、本発明のデータ解
析装置は、上述した記憶管理のみならず、ディジタル回
路間における通信制御、あるいはバス調停などにも用い
ることができる。
The data analysis apparatus of the present invention is not limited to the storage management of the digital circuit described above, but can be used for detecting the operating state of other digital circuits. Further, the data analysis apparatus of the present invention performs Fourier transform processing on analog data when performing analog analysis, and analyzes the frequency of the converted data using a spectrum analysis method or the like, thereby The operating state may be detected. Furthermore, the data analysis apparatus of the present invention can be used not only for the above-mentioned storage management, but also for communication control between digital circuits, bus arbitration, and the like.

【0037】本発明は、ページ管理および処理分散を行
うデータ解析装置について述べたが、本発明のデータ解
析装置において用いられるデータ解析方法は、ページ管
理および処理分散を行うデータ管理方法においても用い
ることができる。
Although the present invention has been described with respect to a data analysis device for performing page management and processing distribution, the data analysis method used in the data analysis device of the present invention can also be used for a data management method for page management and processing distribution. You can

【0038】[0038]

【発明の効果】以上説明したように、本発明によれば、
ディジタル回路におけるディジタル形式の計算量を低減
させ、演算手段の負担を軽減することができる。また、
本発明のデータ解析装置によれば、ディジタル回路にお
けるディジタルデータの記憶量を少なくし、メモリ容量
を低減させることが可能となる。また、本発明のデータ
解析装置によれば、ディジタル回路の動作状態の検出に
用いられるデータ量が増大した場合に、データをアナロ
グ的に解析をするため、検出時間を短縮化することがで
きる。また、本発明のデータ解析装置によれば、従来技
術として述べた電子計算機のように、第1の記憶手段か
ら第2の記憶手段に退避させるペーを決定する際に、デ
ィジタルデータを用いた演算処理は行わず、アナログデ
ータを用いてアナログ解析を行うことで上記退避させる
ページを決定することができる。その結果、ディジタル
回路におけるディジタル形式の演算量を低減させること
ができる。また、第1の記憶手段に存在するページ数が
多い場合など解析対象となるデータ量が多い場合に、デ
ィジタル解析を行う場合に比べて解析時間を短縮するこ
とができる。また、本発明のデータ解析装置によれば、
演算手段に負担をかけることなく、記憶手段の動作状
態、すなわち、記憶状態を検出して解析し、複数の演算
手段に対して適切に処理を分散することができる。
As described above, according to the present invention,
It is possible to reduce the calculation amount of the digital format in the digital circuit and reduce the load on the calculation means. Also,
According to the data analysis device of the present invention, it is possible to reduce the storage amount of digital data in a digital circuit and reduce the memory capacity. Further, according to the data analysis apparatus of the present invention, when the amount of data used for detecting the operating state of the digital circuit increases, the data is analyzed in an analog manner, so that the detection time can be shortened. Further, according to the data analysis apparatus of the present invention, an operation using digital data is performed when determining a page to be saved from the first storage means to the second storage means, as in the electronic computer described as the prior art. The page to be saved can be determined by performing analog analysis using analog data without performing processing. As a result, it is possible to reduce the amount of calculation in digital form in the digital circuit. Further, when the amount of data to be analyzed is large, such as when the number of pages existing in the first storage means is large, the analysis time can be shortened as compared with the case where digital analysis is performed. According to the data analysis device of the present invention,
The operation state of the storage unit, that is, the storage state can be detected and analyzed without burdening the calculation unit, and the processing can be appropriately distributed to the plurality of calculation units.

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

【図1】第1実施例のディジタル回路およびデータ解析
装置の構成図である。
FIG. 1 is a configuration diagram of a digital circuit and a data analysis device according to a first embodiment.

【図2】図1に示すデータ解析装置における処理の概略
を説明するための図である。
FIG. 2 is a diagram for explaining an outline of processing in the data analysis device shown in FIG.

【図3】図1に示すメモリコントローラからD/A変換
回路に出力されるディジタル形式のカウント信号を説明
するための図である。
FIG. 3 is a diagram for explaining a digital count signal output from the memory controller shown in FIG. 1 to a D / A conversion circuit.

【図4】図1に示すフィルタ回路からアナログ解析回路
に出力されるアナログ形式のカウント信号を説明するた
めの図である。
FIG. 4 is a diagram for explaining an analog count signal output from the filter circuit shown in FIG. 1 to an analog analysis circuit.

【図5】第2実施例のマルチプロセッサシステムおよび
データ解析装置の構成図である。
FIG. 5 is a configuration diagram of a multiprocessor system and a data analysis device of a second embodiment.

【図6】図5に示すマルチプロセッサシステムおよびデ
ータ解析装置における処理の概略を説明するための図で
ある。
FIG. 6 is a diagram for explaining an outline of processing in the multiprocessor system and the data analysis device shown in FIG.

【符号の説明】[Explanation of symbols]

2、22、24、26、28・・・CPU 4、42、44、46、48・・・キャッシュメモリ 6・・・外部メモリ 8・・・メモリコントローラ 10・・・D/A変換回路 12・・・フィルタ回路 14・・・アナログ解析回路 16・・・ページ番号検出回路 42、44、46、48・・・コンデンサ 52・・・共有メモリ 56・・・アナログ解析回路 60・・・処理分散回路 2, 22, 24, 26, 28 ... CPU 4, 42, 44, 46, 48 ... Cache memory 6 ... External memory 8 ... Memory controller 10 ... D / A conversion circuit 12. ..Filter circuit 14 ... Analog analysis circuit 16 ... Page number detection circuit 42,44,46,48 ... Capacitor 52 ... Shared memory 56 ... Analog analysis circuit 60 ... Processing distribution circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】複数の種類の動作の発生または終了を示す
パルス状信号を出力するディジタル回路と、 該ディジタル回路から出力される前記パルス状信号に応
じて、所定の演算を行い、前記パルス状信号の出力に応
じたアナログ信号を作成する信号作成手段と、 該信号作成手段で作成されたアナログ信号を信号処理
し、前記複数の動作の発生頻度に基づいて、前記ディジ
タル回路の動作状態を解析する解析手段とを有すること
を特徴とするデータ解析装置。
1. A digital circuit that outputs a pulse-shaped signal that indicates the occurrence or termination of a plurality of types of operations, and a predetermined calculation is performed according to the pulse-shaped signal that is output from the digital circuit. Signal creating means for creating an analog signal according to the output of the signal, signal processing of the analog signal created by the signal creating means, and analysis of the operating state of the digital circuit based on the frequency of occurrence of the plurality of operations. A data analysis device, comprising:
【請求項2】前記ディジタル回路は、第1の記憶手段に
対して演算手段が前記パルス状信号を出力してアクセス
し、前記第1の記憶手段および第2の記憶手段をページ
ング方式を用いて記憶管理する電子計算機であり、 前記解析手段は、前記信号作成手段で作成されたアナロ
グ信号を信号処理し、前記演算手段が前記第1の記憶手
段の各ページに対して行ったアクセス頻度に基づいて、
前記前記第1の記憶手段から前記第2の記憶手段に退避
させるページを決定することを特徴とする請求項1記載
のデータ解析装置。
2. In the digital circuit, the arithmetic means outputs the pulse-shaped signal to access the first storage means to access the first storage means and the second storage means by using a paging system. An electronic computer for storage management, wherein the analysis means performs signal processing on the analog signal created by the signal creation means, and based on the access frequency performed by the calculation means for each page of the first storage means. hand,
The data analysis apparatus according to claim 1, wherein a page to be saved from the first storage unit to the second storage unit is determined.
【請求項3】前記ディジタル回路は、複数の演算手段
と、該演算手段のそれぞれ対応した記憶手段とを有し、
所定の処理を前記複数の演算手段で分散して行い、前記
演算手段が前記対応する記憶手段に対して前記パルス状
信号を出力してアクセスするマルチプロセッサシステム
であり、 前記解析手段は、前記信号作成手段で作成されたアナロ
グ信号を信号処理し、前記複数の演算手段が前記対応し
た記憶手段に対して行ったアクセス頻度に基づいて、前
記複数の演算手段に対しての処理の分散を決定すること
を特徴とする請求項1記載のデータ解析装置。
3. The digital circuit has a plurality of arithmetic means and storage means corresponding to each of the arithmetic means,
In the multiprocessor system, the predetermined processing is performed by the plurality of arithmetic means in a distributed manner, and the arithmetic means outputs the pulsed signal to the corresponding storage means to access the storage means. The analog signal created by the creating means is subjected to signal processing, and the distribution of the processing to the plurality of operating means is determined based on the access frequency performed by the plurality of operating means to the corresponding storage means. The data analysis device according to claim 1, wherein
JP5153626A 1993-06-24 1993-06-24 Data analyzing device Pending JPH0713870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5153626A JPH0713870A (en) 1993-06-24 1993-06-24 Data analyzing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5153626A JPH0713870A (en) 1993-06-24 1993-06-24 Data analyzing device

Publications (1)

Publication Number Publication Date
JPH0713870A true JPH0713870A (en) 1995-01-17

Family

ID=15566616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5153626A Pending JPH0713870A (en) 1993-06-24 1993-06-24 Data analyzing device

Country Status (1)

Country Link
JP (1) JPH0713870A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008251036A (en) * 1997-09-24 2008-10-16 Microsoft Corp Application programming interface for controlling assignment of physical memory in virtual storage system by application program
JP2017182522A (en) * 2016-03-31 2017-10-05 日本電気株式会社 Information processing device and cache control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008251036A (en) * 1997-09-24 2008-10-16 Microsoft Corp Application programming interface for controlling assignment of physical memory in virtual storage system by application program
JP2017182522A (en) * 2016-03-31 2017-10-05 日本電気株式会社 Information processing device and cache control method

Similar Documents

Publication Publication Date Title
US6539500B1 (en) System and method for tracing
US6035378A (en) Method and apparatus for dynamically monitoring memory page access frequency in a non-uniform memory access computer system
JPS6027964A (en) Memory access control circuit
JPS5829197A (en) Dynamic memory refleshing circuit
JPH0782458B2 (en) Data processing device
WO2022068328A1 (en) Data migration method and apparatus, and processor and calculation device
JPH0713870A (en) Data analyzing device
JPS6046748B2 (en) Computer interrupt processing method
US5212775A (en) Method and apparatus for observing internal memory-mapped registers
JPH09213072A (en) Dram refresh control system
JPH06202715A (en) State change detecting and recording circuit
JPH0581087A (en) Processor monitoring system
JP2576636B2 (en) Signal processor
JP2864861B2 (en) Response signal control circuit
JPH0721779B2 (en) Information processing equipment
JP3068451B2 (en) Electronic computer
JPH04181454A (en) Data access controller
JPH096652A (en) Trace collection method and computer system
JPS6269321A (en) Process switching system
JPH02245848A (en) Main storage diagnostic system
JPS638962A (en) Buffer control system
JPH02181816A (en) Information processor
JPH03134760A (en) Performance adjuster for computer system
JPS63180171A (en) Information processor
JPH0266666A (en) Inter-cpu interruption processing method