JP3019864B2 - Memory controller - Google Patents
Memory controllerInfo
- Publication number
- JP3019864B2 JP3019864B2 JP1283287A JP28328789A JP3019864B2 JP 3019864 B2 JP3019864 B2 JP 3019864B2 JP 1283287 A JP1283287 A JP 1283287A JP 28328789 A JP28328789 A JP 28328789A JP 3019864 B2 JP3019864 B2 JP 3019864B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- size
- writing
- memory
- written
- 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
- 238000010586 diagram Methods 0.000 description 3
- 101100524646 Toxoplasma gondii ROM6 gene Proteins 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Storing Facsimile Image Data (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明は、たとえば画像スキャナーとホストコンピュ
ータとの間でメモリーによるデータの速度変換を行なう
のに利用されるメモリー制御装置に関する。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory control device used for, for example, converting the speed of data using a memory between an image scanner and a host computer.
従来の技術 従来のこの種の装置は、たとえば第4図に示すよう
に、メモリー1の書込アドレス発生回路2と、メモリー
1の読出アドレス発生回路3と、メモリー1の読出/書
込の動作を制御するメモリー制御回路4と、メモリー1
の記憶領域を管理するCPU5(中央処理装置)およびROM6
と、これから書き込もうとするデータのサイズをあらか
じめ指定するテンキー7とを有し、画像スキャナー10か
ら新規に入力されるデータDinを増幅器11およびAD変換
器12を介して書き込む動作と、すでに書き込まれたデー
タを読み出してホストコンピュータ20へ出力する動作と
をそれぞれ独立して行なわせることによって、画像スキ
ャナー10の読取速度とホストコンピュータ20の処理速度
とを整合させることが行なわれていた(たとえば、特開
昭62−208756号公報、特開昭63−136395号公報参照)。2. Description of the Related Art As shown in FIG. 4, for example, a conventional device of this type includes a write address generation circuit 2 of a memory 1, a read address generation circuit 3 of a memory 1, and a read / write operation of the memory 1. Memory control circuit 4 for controlling the
CPU5 (Central Processing Unit) and ROM6 to manage the storage area of
And a numeric keypad 7 for designating the size of data to be written in advance. The operation of writing data Din newly input from the image scanner 10 via the amplifier 11 and the AD converter 12 and the operation of writing already written data The reading speed of the image scanner 10 and the processing speed of the host computer 20 are matched by independently performing operations of reading data and outputting the data to the host computer 20 (for example, see JP-A-62-208756 and JP-A-63-136395).
この場合、上述した従来の装置では、第5図に示すよ
うに、これから書き込もうとするデータDinの指定サイ
ズMSが、メモリー1内の空き領域サイズMEよりも小さい
場合には、ただちに上記指定サイズMSのデータDinを画
像スキャナー10で読み取り、増幅器11およびAD変換器12
を介してメモリー1に書き込むことができる。In this case, in the above-described conventional apparatus, as shown in FIG. 5, if the designated size MS of the data Din to be written is smaller than the free space size ME in the memory 1, the designated size MS is immediately used. The data Din is read by the image scanner 10 and the amplifier 11 and the AD converter 12 are read.
Can be written to the memory 1 via the.
しかし、第6図に示すように、これから書き込もうと
するデータDinのサイズMSがメモリー1内の空き領域の
サイズMEよりも大きい場合には、すでにデータが書き込
まれた専有領域(斜線部分)からのデータ読み出しだけ
を行ない、この読み出しによって上記指定サイズMS以上
の大きさの空き領域が生じるのを待たなければならなか
った。However, as shown in FIG. 6, when the size MS of the data Din to be written from now on is larger than the size ME of the free area in the memory 1, the data from the exclusive area (shaded area) in which the data has already been written. It is necessary to read only the data and wait until a free area having a size equal to or larger than the designated size MS is generated by the reading.
第5図および第6図において、MFはメモリー1の全記
憶領域のサイズ、MSはこれから書き込もうとするデータ
Dinの指定サイズ、MEはデータDinを新規に書き込むこと
ができる空き領域のサイズ、MRは未読出のデータが書き
込まれているために新規の書き込みができない専有領域
のサイズをそれぞれ示す。In FIGS. 5 and 6, MF is the size of the entire storage area of the memory 1, and MS is the data to be written.
The designated size of Din, ME indicates the size of a free area in which data Din can be newly written, and MR indicates the size of a dedicated area in which new data cannot be written because unread data has been written.
発明が解決しようとする課題 しかし、かかる構成によれば、メモリーの利用効率が
必ずしも高くないとともに、新規に書き込もうとするデ
ータのサイズが大きいと、その書き込みが開始されるま
での待ち時間が多くなるという問題があった。However, according to such a configuration, the use efficiency of the memory is not always high, and when the size of data to be newly written is large, the waiting time until the writing is started increases. There was a problem.
上述の問題は以下の理由で生じる。 The above problem occurs for the following reasons.
すなわち、メモリーにデータを書き込もうとする時点
で、そのデータのサイズよりも大きな空き領域がない場
合は、そのデータのサイズよりも大きな空き領域が生じ
るまで待たなければならない。このため、これから書き
込もうとするデータのサイズが大きいと、空き領域のサ
イズ不足による待ち時間が多くなる。That is, if there is no free area larger than the size of the data at the time of writing data to the memory, it is necessary to wait until a free area larger than the size of the data is generated. Therefore, if the size of data to be written is large, the waiting time due to the lack of the size of the free area increases.
上記待ち時間を少なくするためには、メモリーの容量
に十分な余裕を持たせて書き込もうとするデータのサイ
ズよりも大きな空き領域が高確率で容易されるようにす
ればよいが、これを行うとメモリーの利用効率が低下す
る。In order to reduce the waiting time, it is sufficient to provide a sufficient space in the memory so that a free area larger than the size of the data to be written is easily created with a high probability. Memory utilization efficiency decreases.
本発明は、上述の課題に鑑みてなされたもので、メモ
リーを有効に利用して使用者の操作性を向上させること
を目的とする。The present invention has been made in view of the above problems, and has as its object to improve the operability of a user by effectively using a memory.
課題を解決するための手段 本発明は、上述の課題を解決するため、情報を記憶す
る記憶手段と、この記憶手段に前記情報を入力する入力
手段と、前記記憶手段に記憶されている前記情報を出力
する出力手段と、前記情報の入力完了までの入力時間を
算出しこの入力時間の間に前記出力手段が前記情報を出
力した時の前記記憶手段の全空き容量を算出する算出手
段と、前記全空き容量が入力される前記情報の容量以上
である場合には前記入力手段により前記情報の入力を開
始させる制御手段という構成を備えたものである。Means for Solving the Problems In order to solve the above problems, the present invention provides a storage means for storing information, an input means for inputting the information to the storage means, and the information stored in the storage means. Output means for calculating the input time until the input of the information is completed, and calculating means for calculating the total free space of the storage means when the output means outputs the information during the input time, When the total free capacity is equal to or larger than the capacity of the information to be input, a control means for starting the input of the information by the input means is provided.
作用 本発明は、上述の構成により、情報の入力完了までの
入力時間を算出し、この入力時間の間の出力手段が情報
を出力した時の記憶手段の全空き容量を算出し、この全
空き容量が入力する情報の容量よりも大きいときには、
情報の入力を開始させるようにしたので、入力までの待
ち時間を短くすることができ、また、入力を開始してか
ら空き容量が足らなくなってしまうことがないので、連
続して入力の処理を行わせることができ、記憶容量の利
用効率を向上することができる。Operation The present invention calculates the input time until the input of information is completed, calculates the total free capacity of the storage means when the output means outputs the information during the input time, and calculates the total free space. If the capacity is larger than the information you enter,
Since the input of information is started, the waiting time until the input can be shortened.Also, since there is no shortage of free space after the input is started, continuous input processing is performed. Can be performed, and the utilization efficiency of the storage capacity can be improved.
実施例 以下、本発明の一実施例を図面にもとづいて説明す
る。Embodiment Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例によるメモリー制御装置の
概略構成を示すものであって、1は画像スキャナー10と
ホストコンピュータ20との間でデータ速度変換を行なう
メモリー、2はメモリー1の書込アドレス発生回路、3
はメモリー1の読出アドレス発生回路、4はメモリー1
の読出/書込の動作を制御するメモリー制御回路、50お
よび60はメモリー1の記憶領域を管理するCPU(中央処
理装置)およびROM、7はこれから書き込もうとするデ
ータのサイズをあらかじめ指定するテンキー、8はメモ
リー1の空き領域を予測計算する演算部である。FIG. 1 shows a schematic configuration of a memory control device according to an embodiment of the present invention, wherein 1 is a memory for performing data rate conversion between an image scanner 10 and a host computer 20, and 2 is a memory 1 for writing data. Address generation circuit, 3
Is a read address generation circuit of the memory 1, and 4 is a memory 1
A memory control circuit for controlling the read / write operation of the memory; 50 and 60, a CPU (Central Processing Unit) and ROM for managing the storage area of the memory 1; 7, a numeric keypad for specifying in advance the size of data to be written; Reference numeral 8 denotes an operation unit that predicts and calculates a free area of the memory 1.
ここで、演算部8は、テンキー7でサイズを指定され
たデータを新規に書き込むのに先立ち、そのデータの書
込に必要なサイズの空き領域が、その書き込みの完了時
までに生じるか否かの予測計算を行なう。この演算部8
は、専用の演算プロセッサあるいは演算テーブルを記憶
したROMなどによって構成することができる。Here, prior to newly writing the data whose size is specified by the numeric keypad 7, the arithmetic unit 8 determines whether or not an empty area of a size required for writing the data is generated by the time the writing is completed. Is calculated. This operation unit 8
Can be constituted by a dedicated arithmetic processor or a ROM storing an arithmetic table.
CPU50は、上記予測計算の結果、上記データの書込完
了時までに必要サイズの空き領域が生じると予測された
時点で、書込開始時点での空き領域のサイズの大きさに
かわりなく、上記データの書き込みを開始させる制御機
能が付加されている。The CPU 50, at the time when it is predicted that a free area of a required size will be generated by the time the writing of the data is completed as a result of the prediction calculation, regardless of the size of the free area at the time of starting the writing, A control function for starting data writing is added.
第2図の(a)および(b)はそれぞれ、上記予測計
算の例をグラフで示す。(A) and (b) of FIG. 2 are graphs each showing an example of the prediction calculation.
同図において、横軸はデータの書込開始時点を原点と
する経過時間、縦軸はメモリーのアドレス、yWは書込ア
ドレスの変化予測カーブ、yRは読出アドレスの変化予測
カーブ、twは書込終了予測時間、tRは読出終了予測時間
をそれぞれ示す。In this figure, the horizontal axis represents the elapsed time for the origin writing start time point of the data, and the vertical axis address memory, Yw change prediction curve of the write address, yR change prediction curve read address, t w is written The read end predicted time and tR indicate the read end predicted time, respectively.
データの書込に必要なサイズの空き領域が、その書き
込みの完了時までに生じるか否かは、書込終了予測時点
twにおいて、書込アドレスが読出アドレスを追い越すか
否かによって予測することができる。書込予測終了時点
twにおける書込アドレスおよび読出アドレスは、書込開
始時点における書込アドレスおよび読出アドレス、書込
速度および読出速度、書込データのサイズおよび読出デ
ータのサイズによって算出することができる。Whether or not a free area of the size required for writing data will be created by the time the writing is completed depends on the predicted write end time.
At tw, it can be predicted by whether the write address overtakes the read address. Write prediction end time
The write address and read address at tw can be calculated from the write address and read address at the start of writing, the write speed and read speed, the size of the write data, and the size of the read data.
同図の(a)に示した例では、L1から開始される書込
アドレスが書込終了予測時間twでL3で達するが、その
間、読出アドレスはL2からはじまってL3を越える。した
がって、書込アドレスは読出アドレスに追い付かない。
これにより、書込開始時点では書込に必要なサイズの空
き領域がなくても、書込完了時までには必要なサイズの
空き領域が確保される。In the example shown in FIG. 7A, the write address starting from L1 reaches L3 at the predicted write end time tw, during which the read address starts from L2 and exceeds L3. Therefore, the write address cannot keep up with the read address.
Thus, even when there is no free area of a size necessary for writing at the start of writing, a free area of a necessary size is secured by the time of completion of writing.
同図の(b)に示した例では、L1から開始される書込
アドレスが書込終了予測時間twでL3に達するが、その
間、読出アドレスはL2からはじまってL4にまで達する。
したがって、書込アドレスは読出アドレスに追い付かな
い。これにより、この場合も、書込開始時点では書込に
必要なサイズの空き領域がなくても、書込完了時までに
は必要なサイズの空き領域が確保される。In the example shown in FIG. 9B, the write address starting from L1 reaches L3 at the predicted write end time tw, while the read address starts from L2 and reaches L4.
Therefore, the write address cannot keep up with the read address. Thus, even in this case, even when there is no free area of a size necessary for writing at the start of writing, a free area of a necessary size is secured by the time the writing is completed.
以上のように構成されたメモリー制御装置について、
以下その動作を説明する。Regarding the memory control device configured as described above,
The operation will be described below.
第3図の(a)〜(d)はデータの書き込みに伴うメ
モリー1の記憶内容の推移を段階的に示す。3 (a) to 3 (d) show the transition of the storage contents of the memory 1 in a stepwise manner as data is written.
同図において、MFはメモリー1の全記憶領域、MRは未
読出のデータが書き込まれていて書き込みができない専
有領域、MEはデータが読み出されて書き込みができるよ
うになった空き領域、MSはこれからメモリー1に書き込
もうとする入力データDinのサイズをそれぞれ示す。In the figure, MF is the entire storage area of the memory 1, MR is a dedicated area in which unread data is written and cannot be written, ME is a free area where data can be read and written, and MS is The size of the input data Din to be written to the memory 1 is shown below.
まず、同図(a)に示すように、これから書き込もう
とするデータDinのサイズMSが空き領域サイズMEよりも
大きい場合、そのデータDinの書き込みに先立ち、その
データDinの書き込みに必要なサイズの空き領域が、そ
の書き込みの完了時までに生じるか否かの予測計算を行
なう。この予測計算の結果、上記データDinの書込完了
時までに必要サイズの空き領域が生じると予測されたな
らば、同図(b)(c)(d)に順次示すように、上記
データDinの書き込みを実行する。First, as shown in FIG. 3A, when the size MS of the data Din to be written is larger than the free area size ME, the free space of the size required for writing the data Din is written prior to writing the data Din. A prediction calculation is performed to determine whether an area will be created by the time the writing is completed. As a result of the prediction calculation, if it is predicted that an empty area of a required size will be generated by the time the writing of the data Din is completed, as shown in FIGS. Execute writing.
書き込みが実行されると、同図(b)(c)(d)に
示すように、入力データDinを空き領域に書き込む動作
と、専有領域からデータDoutを読み出して出力する動作
とが並行して行なわれる。専有領域はデータDoutの読み
出しに伴って順次空き領域化される。この専有領域から
転じた空き領域には、最初の空き領域に書き込み切れな
くなったデータDinが書き込まれる。When the writing is executed, the operation of writing the input data Din to the free area and the operation of reading and outputting the data Dout from the exclusive area are performed in parallel as shown in FIGS. Done. The exclusive area is sequentially vacated as the data Dout is read. Data Din that cannot be completely written to the first free area is written to the free area that has been shifted from the exclusive area.
以上のようにして、入力データDinの書込開始時点で
必要サイズの空き領域がない場合でも、その書込完了時
までに必要サイズの空き領域が見込まれる時点で、書き
込みを開始させることができる。これにより、メモリー
の利用効率を低下させることなく、サイズの大きなデー
タも少ない待ち時間でメモリーに書き込むことが可能と
なる。As described above, even when there is no free area of the required size at the start of writing of the input data Din, the writing can be started at the time when a free area of the required size is expected by the time the writing is completed. . As a result, large-sized data can be written to the memory with a short waiting time without lowering the use efficiency of the memory.
発明の効果 以上の説明から明らかなように本発明は、書き込みを
行う情報量が書き込み可能な容量よりも大きくとも、情
報の読み出しにより発生する空き容量から、書き込み終
了時の空き容量を見越し、書き込み終了時までに十分な
空き容量があると判断されると書き込みを開始するの
で、書き込み時点で十分な空き容量がなくても書き込み
を可能とすることができる。このため、書き込みまでの
待機時間を短くすることができることから、利用者の操
作性を向上することができる。As is clear from the above description, even when the amount of information to be written is larger than the writable capacity, the present invention anticipates the free space at the end of writing from the free space generated by reading information, and Writing is started when it is determined that there is sufficient free space by the time of termination, so that writing can be performed even if there is not enough free space at the time of writing. For this reason, the waiting time until writing can be shortened, so that the operability of the user can be improved.
第1図は本発明の一実施例によるメモリー制御装置の概
略構成図、第2図は同装置において行なわれる予測計算
の例を示すグラフ、第3図は同装置によって制御される
メモリーの記憶状態を段階的に示す図、第4図は従来の
メモリー制御装置の概略構成図、第5図は同装置によっ
てデータ書込が可能な状態を示す図、第6図は同装置に
よってデータ書込ができない待ち状態を示す図である。 1……メモリー、2……書込アドレス発生回路、3……
読出アドレス発生回路、4……メモリー制御回路、50…
…CPU、60……ROM、7……テンキー、8……空き領域の
発生を予測計算する演算部、10……画像スキャナー、11
……増幅器、12……AD変換器、20……ホストコンピュー
タ、Din……空き領域に書き込まれる入力データ、Dout
……専有領域から読み出された出力データ、MS……入力
データのサイズ、MF……メモリー1の全記憶領域、ME…
…空き領域のサイズ、MR……書き込みできない専有領域
のサイズ。FIG. 1 is a schematic configuration diagram of a memory control device according to an embodiment of the present invention, FIG. 2 is a graph showing an example of a prediction calculation performed in the device, and FIG. 3 is a storage state of a memory controlled by the device. FIG. 4 is a schematic configuration diagram of a conventional memory control device, FIG. 5 is a diagram showing a state in which data can be written by the device, and FIG. It is a figure which shows the waiting state which cannot be performed. 1 ... memory, 2 ... write address generation circuit, 3 ...
Read address generation circuit, 4 ... Memory control circuit, 50 ...
... CPU, 60, ROM, 7, numeric keypad, 8, arithmetic unit for predicting and calculating the occurrence of an empty area, 10, image scanner, 11
…… Amplifier, 12 …… AD converter, 20 …… Host computer, Din …… Input data written to empty area, Dout
…… Output data read from exclusive area, MS …… Size of input data, MF …… All storage area of memory 1, ME…
... size of free area, MR ... size of private area that cannot be written.
フロントページの続き (56)参考文献 特開 昭62−176372(JP,A) 特開 昭61−200766(JP,A) 特開 昭58−139568(JP,A) 特開 昭64−13865(JP,A) 特開 昭63−178649(JP,A)Continuation of the front page (56) References JP-A-62-176372 (JP, A) JP-A-61-200766 (JP, A) JP-A-58-139568 (JP, A) JP-A-64-13865 (JP) , A) JP-A-63-178649 (JP, A)
Claims (1)
に前記情報を入力する入力手段と、前記記憶手段に記憶
されている前記情報を出力する出力手段と、前記情報の
入力完了までの入力時間を算出しこの入力時間の間に前
記出力手段が前記情報を出力した時の前記記憶手段の全
空き容量を算出する算出手段と、前記全空き容量が入力
される前記情報の容量以上である場合には前記入力手段
により前記情報の入力を開始させる制御手段とを備えた
ことを特徴とするメモリー制御装置。A storage means for storing information; an input means for inputting the information to the storage means; an output means for outputting the information stored in the storage means; Calculating means for calculating an input time and calculating the total free capacity of the storage means when the output means outputs the information during the input time; and A control unit for starting the input of the information by the input unit in some cases.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1283287A JP3019864B2 (en) | 1989-10-30 | 1989-10-30 | Memory controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1283287A JP3019864B2 (en) | 1989-10-30 | 1989-10-30 | Memory controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03145267A JPH03145267A (en) | 1991-06-20 |
| JP3019864B2 true JP3019864B2 (en) | 2000-03-13 |
Family
ID=17663493
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1283287A Expired - Fee Related JP3019864B2 (en) | 1989-10-30 | 1989-10-30 | Memory controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3019864B2 (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58139568A (en) * | 1982-02-13 | 1983-08-18 | Mitsubishi Electric Corp | Buffer memory controlling method |
| JPH0666866B2 (en) * | 1985-03-01 | 1994-08-24 | キヤノン株式会社 | Image transmitter |
| JP2684653B2 (en) * | 1987-07-08 | 1997-12-03 | 富士ゼロックス株式会社 | Transmission control device for facsimile machine |
-
1989
- 1989-10-30 JP JP1283287A patent/JP3019864B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03145267A (en) | 1991-06-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3627915B2 (en) | BOOT BLOCK FLASH MEMORY CONTROL CIRCUIT, IC MEMORY CARD WITH THE SAME, SEMICONDUCTOR STORAGE DEVICE, AND BOOT BLOCK FLASH MEMORY METHOD | |
| JP4795138B2 (en) | Image processing apparatus and program | |
| JP3019864B2 (en) | Memory controller | |
| JPS62231382A (en) | Image processing method and apparatus | |
| US6085264A (en) | Accounting-information outputting device | |
| JP2728591B2 (en) | Information processing device | |
| US6976041B2 (en) | Recording medium recorded with program for detecting database operation timing, method of detecting database operation timing, and apparatus for detecting database operation timing | |
| KR20010056528A (en) | Data tiling method for retrieving and handling large volume of data | |
| JP2877239B2 (en) | Image communication device | |
| JPH11327681A (en) | Virtual system time management system and management method and recording medium recording management program | |
| JP2001134384A (en) | Information processor | |
| JPS59144955A (en) | Information processor | |
| JPH07152574A (en) | Program loading method | |
| JP3789248B2 (en) | Program loading method, program loading apparatus and recording medium therefor | |
| JP2806376B2 (en) | Image processing apparatus and image processing method | |
| JPH10312245A (en) | Backup method for common magnetic disk device and device therefor | |
| JPH07253920A (en) | FIFO RAM controller | |
| JPH04195649A (en) | Data processor | |
| JPH05165686A (en) | Data store control system | |
| JPH05334190A (en) | Disk cache system | |
| JPH0667836A (en) | Display device having specified area notifying function | |
| JP2001075863A (en) | Memory switching control method and memory control device | |
| JPH01194048A (en) | I/o address conversion circuit | |
| JPH06303403A (en) | Fax machine | |
| JP2008160592A (en) | Image processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |