JP2008242870A - Data reading device - Google Patents

Data reading device Download PDF

Info

Publication number
JP2008242870A
JP2008242870A JP2007083197A JP2007083197A JP2008242870A JP 2008242870 A JP2008242870 A JP 2008242870A JP 2007083197 A JP2007083197 A JP 2007083197A JP 2007083197 A JP2007083197 A JP 2007083197A JP 2008242870 A JP2008242870 A JP 2008242870A
Authority
JP
Japan
Prior art keywords
data
address
read
prefetch
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007083197A
Other languages
Japanese (ja)
Other versions
JP5035608B2 (en
Inventor
Naoto Kobayashi
直人 小林
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 JP2007083197A priority Critical patent/JP5035608B2/en
Publication of JP2008242870A publication Critical patent/JP2008242870A/en
Application granted granted Critical
Publication of JP5035608B2 publication Critical patent/JP5035608B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data reading device, capable of efficiently reducing data read time without complicating the configuration. <P>SOLUTION: A plurality of look ahead circuits C1, C2 and C3 read ahead data from a predetermined address of a data storage part 5. A selection means 31 selects necessary data from the data read ahead by the look ahead circuits C1, C2 and C3. When the data is selected by the selection means 31, the look ahead circuits C1, C2 and C3 read ahead the following data from the predetermined address of the data storage part 5. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、データの先読みにより読み出し時間を短縮するデータ読み出し装置に関する。   The present invention relates to a data reading apparatus that shortens a reading time by prefetching data.

プログラマブルコントローラにより、フィールド機器の状態や計測値、あるいは稼動実績などのデータを用いた情報処理を実行させる場合、格納されたデータを随時読み出しながら、MPUなどの演算処理装置において、各種演算、印刷、他のコンピュータへのデータ転送等の処理が実行される。データが格納されるデータ保管部には、通常、SRAM、フラッシュメモリ等の半導体メモリが使用される。一般に、演算処理装置は高速でデータ読み出す能力を有するが、データ保管部はその速度に対応することができず、遅延回路を設けることにより、データ保管部からのデータ読み出しが終了するまで演算処理装置を待機させる方法が採られる場合がある。   When the programmable controller executes information processing using data such as field device status, measured values, or operation results, the arithmetic processing device such as the MPU performs various calculations, printing, Processing such as data transfer to another computer is executed. In general, a semiconductor memory such as an SRAM or a flash memory is used as a data storage unit for storing data. In general, the arithmetic processing device has the ability to read data at high speed, but the data storage unit cannot cope with the speed, and by providing a delay circuit, the arithmetic processing device until data reading from the data storage unit is completed. There is a case where a method of waiting is used.

また、データの読み出しにかかる時間を短縮する技術としては、キャッシュ回路や先読み回路を用いる方法がある。キャッシュ回路を用いる場合には、1度読み出したアドレスとデータを、読み出し時間を短時間にできる半導体メモリに保管しておき、次回、同一アドレスからデータを読み出す際には、データ保管部ではなく、この半導体メモリからデータを読み出すことで読み出し時間を短縮している。   As a technique for reducing the time required for reading data, there is a method using a cache circuit or a prefetch circuit. When the cache circuit is used, the address and data read once are stored in a semiconductor memory that can shorten the read time, and the next time data is read from the same address, not the data storage unit, Reading data from this semiconductor memory shortens the reading time.

一方、先読み回路は、連続したアドレスのデータをデータ保管部から読み出す場合等に用いられる。例えば、アドレス値「0x1000」のデータを読み出した後、演算処理装置が他の情報処理、例えば演算や通信処理を行っている間に、先読み回路が次のアドレス値「0x1001」のデータを読み出し、先読み回路内の高速な半導体メモリに保管する。次に、演算処理装置がアドレス値「0x1001」のデータを読み出そうとした際には、低速なデータ保管部ではなく、先読み回路から読み出すことで、読み出し時間が短縮される。
特開平11−282631号公報
On the other hand, the prefetch circuit is used when reading data at consecutive addresses from the data storage unit. For example, after the data of the address value “0x1000” is read, the prefetch circuit reads the data of the next address value “0x1001” while the arithmetic processing device performs other information processing, for example, calculation or communication processing. Store in high-speed semiconductor memory in the prefetch circuit. Next, when the arithmetic processing unit tries to read the data having the address value “0x1001”, the read time is shortened by reading from the prefetch circuit instead of the low-speed data storage unit.
Japanese Patent Application Laid-Open No. 11-282631

しかし、遅延回路を設ける場合には、データ保管部からデータを読み出すのに長時間を要し、その間、データ読み出しのために演算処理装置が待たされる。このため、高速な演算処理装置をしようしたとしても、システムとしての高速化を図ることができない。   However, when the delay circuit is provided, it takes a long time to read data from the data storage unit, and during that time, the arithmetic processing unit waits for data reading. For this reason, even if an attempt is made to use a high-speed arithmetic processing device, it is impossible to increase the speed of the system.

また、キャッシュ回路を用いる方法は、過去のアドレスと同一アドレスからの読み出しを行う場合には効果を発揮する。しかし、例えば、プログラマブルコントローラが一定時間ごとに計測値や機器情報を読み出し、これを他の機器へ転送するような処理を行う場合には、同一アドレスのデータを繰り返し読み出すことはなく、読み出し時間を短縮できない。   The method using the cache circuit is effective when reading from the same address as the past address. However, for example, when the programmable controller reads a measurement value or device information at regular time intervals and performs processing such as transferring this to another device, the data at the same address is not read repeatedly, and the read time is reduced. Cannot be shortened.

また、先読み回路を用いることは、連続するアドレスから順次データを読み出す場合に効果がある。しかし、例えば、アドレス値「0x1000」の計測データを読み出した後、アドレス値「0x2000」の機器情報を読み出し、次に、アドレス値「0x1002」およびアドレス値「0x2001」の計測データおよび機器情報を読み出すような場合には、効果が抑制される。さらに、このような読み込み手順に対応するため、次に読み込まれるデータのアドレスを予測する複雑な機構を用意することもできるが、回路構成が大規模になってしまう。   The use of the prefetch circuit is effective when reading data sequentially from successive addresses. However, for example, after reading the measurement data of the address value “0x1000”, the device information of the address value “0x2000” is read, and then the measurement data and device information of the address value “0x1002” and the address value “0x2001” are read. In such a case, the effect is suppressed. Furthermore, in order to cope with such a reading procedure, a complicated mechanism for predicting the address of data to be read next can be prepared, but the circuit configuration becomes large.

本発明の目的は、構成を複雑化することなく、効率的にデータ読み出し時間を短縮できるデータ読み出し装置を提供することにある。   An object of the present invention is to provide a data reading apparatus capable of efficiently reducing the data reading time without complicating the configuration.

本発明のデータ読み出し装置は、データの先読みにより読み出し時間を短縮するデータ読み出し装置において、データ保管部の予め定められたアドレスからデータを先読みする複数の先読み回路と、前記先読み回路で先読みしたデータの中から必要なデータを選択する選択手段と、を備え、前記選択手段によりデータが選択された場合、当該先読み回路は、前記データ保管部の予め定められたアドレスから次のデータを先読みすることを特徴とする。
このデータ読み出し装置によれば、複数の先読み回路により、予め定められたアドレスからデータを先読みし、データが選択された先読み回路は、予め定められたアドレスから次のデータを先読みするので、データの読み出し時間を短縮できる。
A data reading device according to the present invention is a data reading device that shortens a reading time by prefetching data, and includes a plurality of prefetch circuits that prefetch data from a predetermined address of a data storage unit, and data prefetched by the prefetch circuit. Selecting means for selecting necessary data from the above, and when the data is selected by the selecting means, the prefetch circuit prefetches the next data from a predetermined address of the data storage unit. Features.
According to this data reading device, data is pre-read from a predetermined address by a plurality of pre-read circuits, and the pre-read circuit from which data is selected pre-reads the next data from a predetermined address. Reading time can be shortened.

前記先読み回路により先読みされるデータのアドレスは、アドレス初期値と、加算値とにより規定され、次のアドレスは、現在のアドレスに前記加算値を加算することで求められてもよい。   The address of data prefetched by the prefetch circuit may be defined by an address initial value and an addition value, and the next address may be obtained by adding the addition value to the current address.

個々の前記先読み回路に与えられる前記アドレス初期値は、互いに非連続の値であってもよい。   The initial address values given to the individual prefetch circuits may be non-contiguous values.

前記加算値は、1以外の整数であってもよい。   The added value may be an integer other than 1.

本発明のデータ読み出し装置によれば、複数の先読み回路により、予め定められたアドレスからデータを先読みし、データが選択された先読み回路は、予め定められたアドレスから次のデータを先読みするので、データの読み出し時間を短縮できる。   According to the data reading device of the present invention, the data is pre-read from a predetermined address by a plurality of pre-reading circuits, and the pre-reading circuit in which the data is selected pre-reads the next data from the predetermined address. Data read time can be shortened.

以下、図1〜図3を参照して、本発明によるデータ読み出し装置の一実施形態について説明する。   Hereinafter, an embodiment of a data reading apparatus according to the present invention will be described with reference to FIGS.

図1は、本実施形態のデータ読み出し装置を用いた情報処理システムの構成を示すブロック図、図2は先読み回路の構成を示すブロック図である。この情報処理システムは、プログラマブルコントローラを用いて構成されている。   FIG. 1 is a block diagram showing a configuration of an information processing system using the data reading device of this embodiment, and FIG. 2 is a block diagram showing a configuration of a prefetch circuit. This information processing system is configured using a programmable controller.

図1に示すように、本実施形態のデータ読み出し装置100は、情報処理装置としてのCPU4と、データ群を格納するデータ保管部5との間に接続され、データ保管部5に格納されたデータを随時、CPU4に与える機能を有する。   As shown in FIG. 1, a data reading device 100 according to the present embodiment is connected between a CPU 4 as an information processing device and a data storage unit 5 that stores a data group, and data stored in the data storage unit 5. Is provided to the CPU 4 at any time.

図1に示すように、データ読み出し装置100は、CPU4で使用されるデータをデータ保管部5からそれぞれ先読みする先読み回路C1、先読み回路C2および先読み回路C3と、先読み回路C1、先読み回路C2および先読み回路C3で読み込まれたデータから1つのデータを選択するためのデータ切替回路1と、読み出しアドレスを選択するためのアドレス切替回路2と、データ切替回路1およびアドレス切替回路2を制御する制御部3と、を備える。図1に示すように、制御部3は選択手段31を構成する。   As shown in FIG. 1, the data reading device 100 includes a prefetch circuit C1, a prefetch circuit C2, and a prefetch circuit C3 that prefetch data used by the CPU 4 from the data storage unit 5, respectively, a prefetch circuit C1, a prefetch circuit C2, and a prefetch. A data switching circuit 1 for selecting one data from data read by the circuit C3, an address switching circuit 2 for selecting a read address, and a control unit 3 for controlling the data switching circuit 1 and the address switching circuit 2 And comprising. As shown in FIG. 1, the control unit 3 constitutes a selection unit 31.

図2に示すように、先読み回路C1は、データ保管部5から先読みされたデータのアドレスを順次、記憶するアドレスFIFO61と、データ保管部5から先読みされたデータを順次、記憶するデータFIFO62と、データ保管部5から先読みされるデータのアドレスを格納するアドレスレジスタ63と、アドレスレジスタ63のアドレスにアドレス加算値を加算する加算器64と、アドレス初期値を格納する格納部65と、上記アドレス加算値を格納する格納部66と、アドレスFIFO61に記憶されたアドレスとCPU4から指定された読み出しアドレスとを比較するアドレス比較器67と、を具備する。   As shown in FIG. 2, the prefetch circuit C1 includes an address FIFO 61 that sequentially stores addresses of data prefetched from the data storage unit 5, a data FIFO 62 that sequentially stores data prefetched from the data storage unit 5, and An address register 63 for storing the address of data prefetched from the data storage unit 5, an adder 64 for adding an address addition value to the address of the address register 63, a storage unit 65 for storing an address initial value, and the above address addition A storage unit 66 that stores values and an address comparator 67 that compares an address stored in the address FIFO 61 with a read address designated by the CPU 4 are provided.

格納部65に格納される上記アドレス初期値は、先読み回路C1により先読みされる最初のデータのアドレス値を示す。また、格納部66に格納される上記アドレス加算値は、先読み回路C1により順次先読みされるデータのアドレス値の差分を示す。例えば、アドレス初期値を「0x1000」、アドレス加算値を「0x0002」とした場合、先読み回路C1は、アドレス値「0x1000」、アドレス値「0x1002」、アドレス値「0x1004」、アドレス値「0x1006」・・・の順にデータを読み込む。アドレス加算値として補数を用いることで、アドレス値を減らしていくこともできる。例えば、16進でアドレスの桁数が4桁の場合、「0x0002」の1の補数は、「0xfffe」となる。   The initial address value stored in the storage unit 65 indicates the address value of the first data prefetched by the prefetch circuit C1. The address addition value stored in the storage unit 66 indicates the difference between the address values of the data that are sequentially prefetched by the prefetch circuit C1. For example, when the address initial value is “0x1000” and the address addition value is “0x0002”, the prefetch circuit C1 has the address value “0x1000”, the address value “0x1002”, the address value “0x1004”, the address value “0x1006”. Read data in order. By using a complement as an address addition value, the address value can be reduced. For example, when the number of digits of the address is 4 digits in hexadecimal, the one's complement of “0x0002” is “0xfffe”.

先読み回路C1では、順次、先読みされるデータのアドレス値を加算器64により算出し、アドレスレジスタ63に格納する。先読み回路C1は、アドレスレジスタ63に格納されているアドレス値を読み出しアドレス(読み出しアドレス#1)として、データ保管部5のデータを先読みする。   In the prefetch circuit C 1, the address value of the prefetched data is sequentially calculated by the adder 64 and stored in the address register 63. The prefetch circuit C1 prefetches the data stored in the data storage unit 5 using the address value stored in the address register 63 as a read address (read address # 1).

読み出されたデータはデータFIFO62に、そのデータの読み出しアドレス#1はアドレスFIFO61に、それぞれ格納される。   The read data is stored in the data FIFO 62, and the read address # 1 of the data is stored in the address FIFO 61.

先読み回路C2および先読み回路C3も、先読み回路C1と同様に構成されており、アドレス初期値およびアドレス加算値が個々に設定される。   The prefetch circuit C2 and the prefetch circuit C3 are configured in the same manner as the prefetch circuit C1, and the address initial value and the address addition value are individually set.

次に、データ読み出し装置100の動作について説明する。   Next, the operation of the data reading device 100 will be described.

図3は、データ読み出し装置100の制御部3の動作手順を示すフローチャートである。   FIG. 3 is a flowchart showing an operation procedure of the control unit 3 of the data reading apparatus 100.

図3のステップS1では、CPU4からデータの読み出しアドレス(読み出しアドレス#0)が指定されるのを待って、ステップS2へ進む。図1および図2に示すように、CPU4で指定された読み出しアドレス#0は、先読み回路C1〜C3に与えられ、それぞれの先読み回路のアドレス比較器67では、アドレスFIFO61に格納されている読み出しアドレス(読み出しアドレス#1、#2、#3)と、読み出しアドレス#0とを比較する。両者が一致した場合には、アドレス比較器67からアドレス一致信号を出力する。   In step S1 of FIG. 3, the CPU 4 waits for a data read address (read address # 0) to be specified, and then proceeds to step S2. As shown in FIGS. 1 and 2, the read address # 0 specified by the CPU 4 is given to the prefetch circuits C1 to C3, and the read addresses stored in the address FIFO 61 are stored in the address comparator 67 of each prefetch circuit. (Read address # 1, # 2, # 3) is compared with read address # 0. If the two match, an address match signal is output from the address comparator 67.

次に、ステップS2では、先読み回路C1からアドレス一致信号が出力されているか否か判断し、判断が肯定されればステップS3へ進み、判断が否定されればステップS4へ進む。   Next, in step S2, it is determined whether or not an address match signal is output from the prefetch circuit C1, and if the determination is affirmed, the process proceeds to step S3, and if the determination is negative, the process proceeds to step S4.

ステップS3では、選択手段31(図1)から出力データ制御信号を出力することでデータ切替回路1を制御し、先読み回路C1の読み出しデータ#1を最終読み出しデータとしてCPU4に渡す。また、出力アドレス制御信号によりアドレス切替回路2を制御し、先読み回路C1を選択する。先読み回路C1は、加算器64により算出されアドレスレジスタ63に格納された次の読み出しアドレスのデータ(読み出しデータ)を、データ保管部5から先読みする動作に移行する。   In step S3, the data switching circuit 1 is controlled by outputting an output data control signal from the selection means 31 (FIG. 1), and the read data # 1 of the prefetch circuit C1 is passed to the CPU 4 as the final read data. Further, the address switching circuit 2 is controlled by the output address control signal, and the prefetch circuit C1 is selected. The prefetch circuit C1 shifts to an operation of prefetching data (read data) of the next read address calculated by the adder 64 and stored in the address register 63 from the data storage unit 5.

ステップS3の処理の後、ステップS1へ戻る。   After step S3, the process returns to step S1.

次に、ステップS4では、先読み回路C2からアドレス一致信号が出力されているか否か判断し、判断が肯定されればステップS5へ進み、判断が否定されればステップS6へ進む。   Next, in step S4, it is determined whether or not an address match signal is output from the prefetch circuit C2. If the determination is affirmative, the process proceeds to step S5, and if the determination is negative, the process proceeds to step S6.

ステップS5では、選択手段31から出力データ制御信号を出力することでデータ切替回路1を制御し、先読み回路C2の読み出しデータ#2を最終読み出しデータとしてCPU4に渡す。また、出力アドレス制御信号によりアドレス切替回路2を制御し、先読み回路C2を選択する。先読み回路C2は、加算器64により算出されアドレスレジスタ63に格納された次の読み出しアドレスのデータ(読み出しデータ)を、データ保管部5から先読みする動作に移行する。   In step S5, the data switching circuit 1 is controlled by outputting an output data control signal from the selection means 31, and the read data # 2 of the prefetch circuit C2 is passed to the CPU 4 as final read data. Further, the address switching circuit 2 is controlled by the output address control signal, and the prefetch circuit C2 is selected. The prefetch circuit C <b> 2 shifts to an operation of prefetching data (read data) of the next read address calculated by the adder 64 and stored in the address register 63 from the data storage unit 5.

ステップS5の処理の後、ステップS1へ戻る。   After step S5, the process returns to step S1.

次に、ステップS6では、先読み回路C3からアドレス一致信号が出力されているか否か判断し、判断が肯定されればステップS7へ進み、判断が否定されればステップS8へ進む。   Next, in step S6, it is determined whether or not an address match signal is output from the prefetch circuit C3. If the determination is affirmative, the process proceeds to step S7, and if the determination is negative, the process proceeds to step S8.

ステップS7では、選択手段31から出力データ制御信号を出力することでデータ切替回路1を制御し、先読み回路C3の読み出しデータ#3を最終読み出しデータとしてCPU4に渡す。また、出力アドレス制御信号によりアドレス切替回路2を制御し、先読み回路C3を選択する。先読み回路C3は、加算器64により算出されアドレスレジスタ63に格納された次の読み出しアドレスのデータ(読み出しデータ)を、データ保管部5から先読みする動作に移行する。   In step S7, the data switching circuit 1 is controlled by outputting an output data control signal from the selection means 31, and the read data # 3 of the prefetch circuit C3 is passed to the CPU 4 as final read data. Further, the address switching circuit 2 is controlled by the output address control signal, and the prefetch circuit C3 is selected. The prefetch circuit C3 shifts to an operation of prefetching data (read data) of the next read address calculated by the adder 64 and stored in the address register 63 from the data storage unit 5.

ステップS7の処理の後、ステップS1へ戻る。   After step S7, the process returns to step S1.

次に、ステップS8では、選択手段31から出力データ制御信号を出力することでデータ切替回路1を制御し、データ保管部5とCPU4とを接続し、ステップS1へ戻る。この場合、CPU4はデータ保管部5から読み出しアドレス#0の読み出しデータ#0を読み出す。ステップS8の処理は、いずれの先読み回路からもアドレス一致信号が出力されない場合に実行され、この場合には、データの読み出し時間は、データ保管部5によって規定されることになる。   Next, in step S8, the data switching circuit 1 is controlled by outputting an output data control signal from the selection means 31, the data storage unit 5 and the CPU 4 are connected, and the process returns to step S1. In this case, the CPU 4 reads the read data # 0 of the read address # 0 from the data storage unit 5. The process of step S8 is executed when no address match signal is output from any of the prefetch circuits. In this case, the data read time is defined by the data storage unit 5.

このように、本実施形態のデータ読み出し装置100によれば、CPU4が所定の情報処理を実行している間に、先読み回路C1〜C3によりデータを先読みし、読み出しアドレスが一致するデータが先読み回路C1〜C3のいずれかにある場合には、CPU4は当該データを該当する先読み回路からに読み出している。このため、データの読み出しに要する時間を短縮できる。   As described above, according to the data reading device 100 of the present embodiment, while the CPU 4 is executing predetermined information processing, data is prefetched by the prefetch circuits C1 to C3, and data having the same read address is prefetched. In the case of any of C1 to C3, the CPU 4 reads the data from the corresponding prefetch circuit. For this reason, the time required for reading data can be shortened.

例えば、データ保管部5からのデータの読み出し時間を100ns、先読み回路C1〜C3からCPU4へのデータの読み出し時間を10nsとする。また、先読み回路C1のアドレス初期値を「0x1000」、先読み回路C1の加算値を「0x0002」、先読み回路C2のアドレス初期値を「0x3000」、先読み回路C2の加算値を「0xffff」、先読み回路C3のアドレス初期値を「0x4000」、先読み回路C3の加算値を「0x0001」とする。   For example, the time for reading data from the data storage unit 5 is 100 ns, and the time for reading data from the prefetch circuits C1 to C3 to the CPU 4 is 10 ns. In addition, the address initial value of the prefetch circuit C1 is “0x1000”, the addition value of the prefetch circuit C1 is “0x0002”, the address initial value of the prefetch circuit C2 is “0x3000”, the addition value of the prefetch circuit C2 is “0xffff”, and the prefetch circuit The initial value of the address of C3 is “0x4000”, and the added value of the prefetch circuit C3 is “0x0001”.

CPU4がアドレス値「0x1000」、「0x3000」、「0x4000」、「0x1002」、「0x2fff」、「0x4001」の順に、計6データを読み出す場合、CPU4がデータ読み出しに要する時間は、
6×10ns=60ns
となり、CPU4がデータ保管部5から直接データを読み込む場合の時間
6×100ns=600ns
と比較して大幅に短縮される。
When the CPU 4 reads a total of 6 data in the order of address values “0x1000”, “0x3000”, “0x4000”, “0x1002”, “0x2fff”, “0x4001”, the time required for the CPU 4 to read the data is
6 × 10ns = 60ns
The time when the CPU 4 reads data directly from the data storage unit 5 is 6 × 100 ns = 600 ns
It is greatly shortened compared with.

先読み回路C1〜C3におけるデータ保管部5からのデータの読み出し時間は100nsである。しかし、通常、CPU4ではデータ読み出し以外の情報処理に長時間(100ns以上)を費やすため、先読み回路C1〜C3によるデータの先読みが、CPU4のデータ読み出しのタイミングに間に合わないという事態は事実上発生しない。   The read time of data from the data storage unit 5 in the prefetch circuits C1 to C3 is 100 ns. However, since the CPU 4 usually spends a long time (100 ns or more) for information processing other than data reading, there is virtually no situation where the data prefetching by the prefetch circuits C1 to C3 is not in time for the data read timing of the CPU4. .

なお、同様に6つのデータを読み出す場合、仮に、先読み回路が2つであれば、CPU4がデータ読み出しに要する時間は、
4×10ns+2×100ns=240ns
となる。
Similarly, when reading six data, if there are two prefetch circuits, the time required for the CPU 4 to read the data is
4 × 10ns + 2 × 100ns = 240ns
It becomes.

また、本実施形態のデータ読み出し装置100では、先読み回路C1〜C3に任意のアドレス初期値およびアドレス加算値を設定できるため、情報処理の内容に応じて適切な先読みのアルゴリズムを得ることができる。例えば、アドレス初期値として、先読み回路ごとに連続しない互いに離れた値を設定できる。また、アドレス加算値として、2以上の整数や、負の整数を与えることもできる。   Further, in the data reading device 100 of the present embodiment, since an arbitrary initial address value and address addition value can be set in the prefetch circuits C1 to C3, an appropriate prefetch algorithm can be obtained according to the contents of information processing. For example, as the initial address value, discontinuous values that are not continuous can be set for each prefetch circuit. Further, an integer of 2 or more or a negative integer can be given as the address addition value.

アドレス初期値およびアドレス加算値はプログラムの一部またはプログラムに対応するデータとして与えることができ、ユーザがそれらの値を自由に設定できる。プログラマブルコントローラの情報処理で読み出されるデータの順序は、プログラムに従っているため、本実施形態で示した方法は、複雑な機構を用いて次に読み出されるデータのアドレスを予測する方法よりも合理的といえる。   The address initial value and the address addition value can be given as a part of the program or data corresponding to the program, and the user can freely set these values. Since the order of the data read by the information processing of the programmable controller follows the program, the method shown in this embodiment can be said to be more rational than the method of predicting the address of the next read data using a complicated mechanism. .

以上説明したように、本発明のデータ読み出し装置によれば、複数の先読み回路により、予め定められたアドレスからデータを先読みし、データが選択された先読み回路は、予め定められたアドレスから次のデータを先読みするので、データの読み出し時間を短縮できる。   As described above, according to the data reading device of the present invention, data is prefetched from a predetermined address by a plurality of prefetch circuits, and the prefetch circuit from which the data is selected Since data is prefetched, the data read time can be shortened.

本発明の適用範囲は上記実施形態に限定されることはない。本発明は、データの先読みにより読み出し時間を短縮するデータ読み出し装置に対し、広く適用することができる。   The scope of application of the present invention is not limited to the above embodiment. The present invention can be widely applied to a data reading apparatus that shortens the reading time by prefetching data.

一実施形態のデータ読み出し装置を用いた情報処理システムの構成を示すブロック図。The block diagram which shows the structure of the information processing system using the data reading device of one Embodiment. 先読み回路の構成を示すブロック図。The block diagram which shows the structure of a prefetch circuit. データ読み出し装置の制御部の動作手順を示すフローチャート。The flowchart which shows the operation | movement procedure of the control part of a data reading device.

符号の説明Explanation of symbols

5 データ保管部
31 選択手段
100 データ読み出し装置
C1,C2,C3 先読み回路
5 Data Storage Unit 31 Selection Means 100 Data Reading Device C1, C2, C3 Prefetch Circuit

Claims (4)

データの先読みにより読み出し時間を短縮するデータ読み出し装置において、
データ保管部の予め定められたアドレスからデータを先読みする複数の先読み回路と、
前記先読み回路で先読みしたデータの中から必要なデータを選択する選択手段と、
を備え、
前記選択手段によりデータが選択された場合、当該先読み回路は、前記データ保管部の予め定められたアドレスから次のデータを先読みすることを特徴とするデータ読み出し装置。
In a data readout device that shortens the readout time by prefetching data,
A plurality of prefetch circuits for prefetching data from a predetermined address of the data storage unit;
Selecting means for selecting necessary data from the data pre-read by the pre-reading circuit;
With
When data is selected by the selection means, the prefetch circuit prefetches the next data from a predetermined address of the data storage unit.
前記先読み回路により先読みされるデータのアドレスは、アドレス初期値と、加算値とにより規定され、次のアドレスは、現在のアドレスに前記加算値を加算することで求められることを特徴とする請求項1に記載のデータ読み出し装置。 The address of data prefetched by the prefetch circuit is defined by an address initial value and an addition value, and a next address is obtained by adding the addition value to a current address. 2. The data reading device according to 1. 個々の前記先読み回路に与えられる前記アドレス初期値は、互いに非連続の値であることを特徴とする請求項2に記載のデータ読み出し装置。 3. The data reading apparatus according to claim 2, wherein the initial address values given to the individual prefetch circuits are non-contiguous values. 前記加算値は、1以外の整数であることを特徴とする請求項2または3に記載のデータ読み出し装置。 The data read device according to claim 2, wherein the added value is an integer other than one.
JP2007083197A 2007-03-28 2007-03-28 Data reading device Expired - Fee Related JP5035608B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007083197A JP5035608B2 (en) 2007-03-28 2007-03-28 Data reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007083197A JP5035608B2 (en) 2007-03-28 2007-03-28 Data reading device

Publications (2)

Publication Number Publication Date
JP2008242870A true JP2008242870A (en) 2008-10-09
JP5035608B2 JP5035608B2 (en) 2012-09-26

Family

ID=39914127

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007083197A Expired - Fee Related JP5035608B2 (en) 2007-03-28 2007-03-28 Data reading device

Country Status (1)

Country Link
JP (1) JP5035608B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05158797A (en) * 1991-12-06 1993-06-25 Hitachi Ltd External storage subsystem
JPH09305322A (en) * 1996-05-14 1997-11-28 Hitachi Ltd Storage device
JPH1063576A (en) * 1996-08-27 1998-03-06 Hitachi Ltd Hierarchical disk drive and its control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05158797A (en) * 1991-12-06 1993-06-25 Hitachi Ltd External storage subsystem
JPH09305322A (en) * 1996-05-14 1997-11-28 Hitachi Ltd Storage device
JPH1063576A (en) * 1996-08-27 1998-03-06 Hitachi Ltd Hierarchical disk drive and its control method

Also Published As

Publication number Publication date
JP5035608B2 (en) 2012-09-26

Similar Documents

Publication Publication Date Title
US6340973B1 (en) Memory control unit and memory control method and medium containing program for realizing the same
JP2009134391A (en) Stream processor, stream processing method, and data processing system
TW201201018A (en) Memory banking system and method to increase memory bandwidth via parallel read and write operations
JP4085983B2 (en) Information processing apparatus and memory access method
JP2009009186A (en) Dma transfer controller and dma transfer method
JP2008033721A (en) Dma transfer control device
JP2010146084A (en) Data processor including cache memory control section
JP4266900B2 (en) Image processing system
JP6038292B2 (en) Data transfer apparatus and data transfer method
JP5035608B2 (en) Data reading device
JP2004234280A (en) Memory device
JP5675278B2 (en) Data processing apparatus and image processing apparatus
JP5360594B2 (en) DMA transfer apparatus and method
JP5191193B2 (en) Image display drive device
JP2008257508A (en) Cache control method, cache device, and microcomputer
JP2009205366A (en) Channel device, information processing system, and data transfer method
JP2008210280A (en) Semiconductor device and dma controller
JP2008102599A (en) Processor
JP2007206924A (en) Arithmetic processing system
JP5475859B2 (en) Image display drive device
JP2010061498A (en) Memory control device, semiconductor test apparatus and memory control method
JP2004199608A (en) Memory control circuit
US8484437B2 (en) Data processing apparatus using pre-fetched data
JP5266651B2 (en) Branch prediction apparatus and branch prediction method using local branch history
JP5292831B2 (en) Programmable controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100106

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111025

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111216

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: 20120607

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: 20120620

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150713

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5035608

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees