JPH0547169A - Memory control system - Google Patents

Memory control system

Info

Publication number
JPH0547169A
JPH0547169A JP3206770A JP20677091A JPH0547169A JP H0547169 A JPH0547169 A JP H0547169A JP 3206770 A JP3206770 A JP 3206770A JP 20677091 A JP20677091 A JP 20677091A JP H0547169 A JPH0547169 A JP H0547169A
Authority
JP
Japan
Prior art keywords
data
fifo
address
area
read
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
JP3206770A
Other languages
Japanese (ja)
Inventor
Koji Yamamoto
幸二 山本
Yasuyuki Sajikawa
康幸 佐次川
Mika Nakamura
美加 中村
Masahiro Nihei
正弘 二瓶
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.)
Fujitsu Ltd
Fujitsu Kyushu Communication Systems Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Kyushu Communication Systems Ltd
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 Fujitsu Ltd, Fujitsu Kyushu Communication Systems Ltd filed Critical Fujitsu Ltd
Priority to JP3206770A priority Critical patent/JPH0547169A/en
Publication of JPH0547169A publication Critical patent/JPH0547169A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

(57)【要約】 (修正有) 【目的】 先入れ先出し方式により順次にデータの書込
み読出しを行なうFIFOにおけるメモリ制御方式に関
し、データがオーバーフローすることがなく、しかもメ
モリ効率が良いことを目的とする。 【構成】 所定領域の獲得および開放が可能なメモリ領
域1からまずN個のデータエリアを獲得して先入れ先出
し方式により順次にデータの書込み読出しを行なう第1
のFIFO2を構成するとともに、それらN個の全ての
データエリアにデータが書き込まれて読出されずに蓄積
されると他のM(=Nまたは≠N)個のデータエリアを
獲得して同様に先入れ先出し方式により順次にデータの
書込み読出しを行なう第2のFIFO3を構成し、この
第2のFIFO3には順次にデータの書込みを始める一
方、第1のFIFO2からは順次にデータの読出しを行
なってその第1のFIFO2からの全てのデータの読出
しが終了するとその第1のFIFO2をメモリ領域1に
開放する。
(57) [Summary] (Correction) [Purpose] The present invention relates to a memory control method in a FIFO in which data is sequentially written and read by a first-in first-out method, and an object thereof is to prevent data from overflowing and to have good memory efficiency. First, N data areas are first acquired from a memory area 1 in which a predetermined area can be acquired and released, and data is sequentially written and read by a first-in first-out method.
Of the FIFO 2, and when data is written in all N data areas and accumulated without being read out, another M (= N or ≠ N) data areas are acquired and similarly first-in first-out A second FIFO 3 for sequentially writing and reading data according to the method is configured, and while writing data to the second FIFO 3 is sequentially started, data is sequentially read from the first FIFO 2 and then the first FIFO 2 is read. When the reading of all data from the first FIFO 2 is completed, the first FIFO 2 is released to the memory area 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、メモリ制御方式に関
し、より詳しくは先入れ先出し方式により順次にデータ
の書込み読出しを行なうFIFOにおけるメモリ制御方
式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory control system, and more particularly to a memory control system in a FIFO for sequentially writing and reading data by a first-in first-out system.

【0002】[0002]

【従来の技術】従来、この種のメモリ制御方式について
は、FIFOにおいてまず書込まれ読出されずに蓄積さ
れるデータの最大量を予想し、この予想される最大量に
対応してメモリ領域から所要個数のデータエリアを獲得
することにより行なっている。なお、これらデータエリ
アはFIFOとして発生されるイベントにしたがう先入
れ先出し方式により順次にデータの書込み読出しが行な
われるように、仮想的にはBOTTOMアドレスのデー
タエリアの次にTOPアドレスのデータエリアが位置す
るように図7に示されているリング状に構成される。
2. Description of the Related Art Conventionally, with respect to this type of memory control method, a maximum amount of data which is first written and not stored in the FIFO and stored without being read is predicted from a memory area corresponding to the expected maximum amount. This is done by acquiring the required number of data areas. It should be noted that these data areas are virtually positioned so that the data area of the TOP address is next to the data area of the BOTTOM address so that the data can be sequentially written and read by the first-in first-out method according to the event generated as the FIFO. The ring-shaped structure shown in FIG.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、前述さ
れたものにおいては、蓄積されるデータの最大量を予想
してその予想される最大量に対応する所要個数のデータ
エリアを獲得しているために、予想を万が一誤ってイベ
ントの発生が多く蓄積されるべきデータの量が予想され
る最大量を越えるようになる場合には対処できずにデー
タがオーバーフローするという事態を招くという問題点
がある。
However, in the above-mentioned one, since the maximum amount of data to be stored is predicted and the required number of data areas corresponding to the expected maximum amount are acquired. In the unlikely event that a large number of events occur and the amount of data that should be accumulated exceeds the expected maximum amount, there is a problem in that data cannot be handled and data overflows.

【0004】また、イベントの発生が少なくて予想され
る最大量に対して蓄積されるデータの量が小である場合
にはメモリ効率が悪いという問題点がある。本発明は、
このような問題点を解消することを目的として、データ
がオーバーフローすることなく、しかもメモリ効率が良
いメモリ制御方式を提供しようとするものである。
Further, when the number of events is small and the amount of data to be stored is small with respect to the expected maximum amount, there is a problem that the memory efficiency is low. The present invention is
It is an object of the present invention to provide a memory control method that does not cause data overflow and has good memory efficiency, with the aim of solving such problems.

【0005】[0005]

【課題を解決するための手段】本発明によるメモリ制御
方式は、前述された目的を達成するために、図1の原理
構成のブロック図に示されているように、所定領域の獲
得および開(解)放が可能なメモリ領域1からまずN個
のデータエリアを獲得して先入れ先出し方式により順次
にデータの書込み読出しを行なう第1のFIFO2を構
成するとともに、次にそれらN個の全てのデータエリア
にデータが書き込まれて読出されずに蓄積されると他の
M(=Nまたは≠N)個のデータエリアを獲得して同様
に先入れ先出し方式により順次にデータの書込み読出し
を行なう第2のFIFO3を構成し、この第2のFIF
O3には順次にデータの書込みを始める一方、前記第1
のFIFO2からは順次にデータの読出しを行なってそ
の第1のFIFO2からの全てのデータの読出しが終了
するとその第1のFIFO2を前記メモリ領域1に開
(解)放することを特徴とするものである。
In order to achieve the above-mentioned object, the memory control method according to the present invention obtains and opens a predetermined area as shown in the block diagram of the principle structure of FIG. Solution) First, N data areas are first acquired from the releasable memory area 1 and the first FIFO 2 for sequentially writing and reading data by the first-in first-out method is constructed, and then all of these N data areas are formed. When the data is written to and accumulated in the memory without being read, another M (= N or ≠ N) data area is acquired, and similarly the second FIFO 3 for sequentially writing and reading data by the first-in first-out method is used. Configure this second FIF
While sequentially writing data to O3, the first
Data is sequentially read from the first FIFO 2 and when the reading of all data from the first FIFO 2 is completed, the first FIFO 2 is released (released) to the memory area 1. Is.

【0006】[0006]

【作用】所定領域の獲得および開(解)放が可能なメモ
リ領域1から、例えば1個のイベントにつき、言い換え
れば1個のイベントに対するデータにつき1バイトのデ
ータエリアが必要であるとしてNバイトの、要するにN
個のデータエリアを獲得する。これら獲得されたN個の
データエリアは、先入れ先出し方式により順次にデータ
の書込み読出しを行なう第1のFIFO2に構成され
る。通常、データの書込みと読出しとがほぼ交互に行な
われると、この第1のFIFO2であるN個のデータエ
リア上においてデータの書込み読出しが行なわれる。
From the memory area 1 in which a predetermined area can be acquired and released (released), it is assumed that a data area of 1 byte is required for one event, in other words, data for one event. , In short, N
Acquire individual data areas. The acquired N data areas are configured in the first FIFO 2 for sequentially writing and reading data by the first-in first-out method. Normally, when data writing and reading are performed almost alternately, data writing and reading is performed on the N data areas which are the first FIFO 2.

【0007】しかし、イベントの発生が多くなってNバ
イトのデータ、言い換えれば全てのN個のデータエリア
にデータが蓄積されると、次のイベントの発生に対して
図1(A)に示されているようにメモリ領域1から他の
新たなM(=Nまたは≠N)個のデータエリアを獲得す
る。これら獲得されたM個のデータエリアは、同様に先
入れ先出し方式により順次にデータの書込み読出しを行
なう第2のFIFO3に構成される。この第2のFIF
O3であるM個のデータエリアにはTOPアドレスから
順次にデータが書込み始められるとともに、これらM個
のデータエリアの獲得からN回の読出しが第1のFIF
O2であるN個のデータエリアから行なわれる。これら
N回の読出しが終わると図1(B)に示されているよう
に第1のFIFO2を構成するそれらN個のデータエリ
アはメモリ領域1に再び開(解)放される。
However, when the number of occurrences of events increases and N bytes of data, in other words, data is accumulated in all N data areas, the occurrence of the next event is shown in FIG. Other new M (= N or ≠ N) data areas are acquired from the memory area 1 as described above. The acquired M data areas are similarly configured in the second FIFO 3 for sequentially writing and reading data by the first-in first-out method. This second FIF
Data is sequentially written into the M data areas of O3 from the TOP address, and the reading of N times from the acquisition of these M data areas is the first FIF.
It is performed from N data areas which are O2. When these readings of N times are completed, the N data areas forming the first FIFO 2 are released (released) to the memory area 1 again as shown in FIG. 1 (B).

【0008】[0008]

【実施例】次に、本発明によるメモリ制御方式を消防シ
ステムに適用した場合の具体的実施例につき、図面を参
照しつつ説明する。まず、消防システムSが概略的に示
されている図2において、有線およびまたは無線による
各電話機A〜Nとの交信を行なう指令台11には各電話機
A〜Nを呼び出すためのマイコン12が設けられている。
このマイコン12は、所定プログラムを実行する中央処理
装置(CPU)12Aと、オペレーティングシステムプロ
グラムを含むプログラム等を予め記憶する読出し専用メ
モリ(ROM)12Bと、メモリプールとして生成される
メモリ領域および普通の変数、フラグ等が割付けられる
メモリ領域が設定されている読出し/書込み可能メモリ
(RAM)12Cと、入力装置としてのキーボード12D
と、表示装置としてのモニタ12Eとより構成されてい
る。このRAM12Cにおけるメモリプールとして生成さ
れるメモリ領域は、各タスク間で共通に使用できる各タ
スク間の送信用のメモリ領域であって、本発明における
FIFOが構成されるメモリ領域である。また、普通の
変数、フラグ等が割付けられるメモリ領域は、宣言され
る順番に必要なエリアだけ獲得されて行きそのエリアは
固定的となるメモリ領域であって、普通の変数、フラグ
の他に前述のFIFOを構成するプログラム等のユーザ
ープログラム、更には本実施例においては各電話機A〜
Nを呼び出す電話番号等のテーブルが記憶されるメモリ
領域である。なお、指令台11には、図示されてはいない
が各電話機A〜Nとの送話および受話を行なうための送
受話器、更には電話番号の一連の番号を逐次に入力する
テンキーが設けられている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, a specific embodiment in which the memory control system according to the present invention is applied to a fire fighting system will be described with reference to the drawings. First, in FIG. 2 schematically showing the fire-fighting system S, a command board 11 for communicating with each of the telephones A to N in a wired and / or wireless manner is provided with a microcomputer 12 for calling each of the telephones A to N. Has been.
The microcomputer 12 includes a central processing unit (CPU) 12A that executes a predetermined program, a read-only memory (ROM) 12B that stores a program including an operating system program in advance, a memory area created as a memory pool, and a normal memory. A readable / writable memory (RAM) 12C in which a memory area to which variables and flags are assigned is set, and a keyboard 12D as an input device.
And a monitor 12E as a display device. The memory area created as a memory pool in the RAM 12C is a memory area for transmission between tasks that can be commonly used by the tasks, and is a memory area in which the FIFO of the present invention is configured. Also, the memory area to which ordinary variables and flags are allocated is a memory area in which only the necessary areas are acquired in the order in which they are declared, and that area is fixed. A user program such as a program configuring the FIFO of each of the telephones, and further, in the present embodiment, each telephone A to
This is a memory area in which a table of telephone numbers for calling N is stored. Although not shown, the command board 11 is provided with a handset for transmitting and receiving to and from each of the telephones A to N, and a ten-key pad for sequentially inputting a series of telephone numbers. There is.

【0009】前記マイコン12において、RAM12Cの普
通の変数、フラグ等が割付けられるメモリ領域にテーブ
ルとして記憶されている各電話機A〜Nを呼び出す電話
番号等はキーボード12Dによる操作指示によりモニタ12
Eに一覧に表示される。また、この一覧に表示される電
話番号からのキーボード12Dによる選択指示される電話
番号は前述のRAM12Cのメモリプールとして生成され
るメモリ領域に構成されるFIFOにその電話番号を構
成する一連の数字が順次に書込まれて一旦一括に蓄積さ
れる。次に、この蓄積される電話番号を構成する一連の
数字が時間的間隔を置いて時間順次に読出され、この読
出される数字、言い換えれば、電話番号にもとづき交換
機13および回線網14を介して所望の電話機のA〜Nと接
続される。
In the microcomputer 12, the telephone numbers etc. for calling the respective telephones A to N stored as a table in a memory area to which ordinary variables and flags of the RAM 12C are assigned are monitored by an operation instruction from the keyboard 12D.
E is displayed in the list. The telephone number selected and instructed by the keyboard 12D from the telephone numbers displayed in this list is a series of numbers constituting the telephone number in the FIFO formed in the memory area created as the memory pool of the RAM 12C. It is written in order and accumulated once in a batch. Next, a series of numbers constituting the stored telephone number is read out in a time-sequential manner at intervals of time, and the read-out number, in other words, the telephone number is used via the exchange 13 and the network 14. It is connected to the desired telephones A to N.

【0010】次に、本実施例におけるRAM12Cの各メ
モリ領域について、図3を参照しつつ説明する。メモリ
プールとして生成されるメモリ領域20は、8バイトを1
ブロックとして0番地から63番地までの64個のブロック
から成り、全体として512 バイトの記憶容量を有してい
る。
Next, each memory area of the RAM 12C in this embodiment will be described with reference to FIG. The memory area 20 created as a memory pool has 8 bytes as 1
It consists of 64 blocks from address 0 to address 63, and has a total storage capacity of 512 bytes.

【0011】一方、RAM12Cにおける他のメモリ領域
21は普通の変数、フラグ等が記憶されるメモリ領域であ
って、宣言により8バイトを1ブロックとする25ブロ
ックが或る番地から続けて割付けられて獲得され、宣言
される順次に25ブロックづつ、言い換えれば200 バイト
分づつ獲得されて行く。したがって、宣言により獲得さ
れた25ブロックにおいて100 バイト分の領域しか使用さ
れていない場合には残りの領域は遊んでいることにな
る。
On the other hand, another memory area in the RAM 12C
Reference numeral 21 is a memory area in which ordinary variables, flags, etc. are stored, and 25 blocks, each of which has 8 bytes as one block, are successively allocated and acquired from a certain address by declaration, and 25 blocks are sequentially declared. In other words, you get 200 bytes each. Therefore, if only 100 bytes of the 25 blocks acquired by declaration are used, the remaining area is idle.

【0012】ところで、FIFOを構成するためのユー
ザープログラムにより1個のFIFOを構成するに際し
てメモリプールとして生成されるメモリ領域20から図示
されているように4ブロック、言い換えれば32バイトの
FIFO領域22がオペレーティングシステムプログラム
にもとづき獲得される。これら32バイトのFIFO領域
22のうちの10バイト分の領域22Aは、次の制御データを
記憶するために用いられる。なお、残りの22バイト分の
領域22Bは、各1バイトにデータ、本実施例においては
1個のイベントとしての電話番号の1個の数字が各デー
タエリアに記憶される22個のアドレス順次のデータエリ
アに構成される。
By the way, from the memory area 20 generated as a memory pool when one FIFO is formed by the user program for forming the FIFO, four blocks, in other words, a 32-byte FIFO area 22 is formed. Acquired based on the operating system program. These 32 bytes FIFO area
An area 22A for 10 bytes of 22 is used to store the next control data. The remaining 22-byte area 22B has data of 1 byte each, and in the present embodiment, one number of a telephone number as one event is stored in each data area. It is configured in the data area.

【0013】“NEXT”: 次のFIFOを構成する
に際して獲得された4ブロックの番地が記憶される。な
お、次のFIFOを構成する4ブロックが獲得されてい
ない場合には“NULL”が記憶される。 “TOP”: 22個のアドレス順次のデータエリアにお
ける先頭のデータエリアのアドレス“0”が記憶され
る。
"NEXT": The addresses of the four blocks acquired when the next FIFO is constructed are stored. If four blocks forming the next FIFO are not acquired, "NULL" is stored. "TOP": The address "0" of the head data area in the 22 address sequential data areas is stored.

【0014】“BTM(BOTTOM)”: 22個のア
ドレス順次のデータエリアにおける後尾のデータエリア
のアドレス“21”が記憶される。 “HEAD”: 次にデータを書込むデータエリアのア
ドレスが記憶される。 “TAIL”: 次にデータを読出すデータエリアのア
ドレスが記憶される。 最後に、本発明のメモリ制御方式が適用される前述のよ
うに構成された消防システムの基本的動作について、図
4にもとづき説明する。
"BTM (BOTTOM)": The address "21" of the tail data area in the 22 address sequential data areas is stored. "HEAD": Next, the address of the data area where the data is written is stored. “TAIL”: The address of the data area from which data is read next is stored. Lastly, the basic operation of the fire-fighting system configured as described above to which the memory control method of the present invention is applied will be described with reference to FIG.

【0015】ステップA 前述のようにモニタ12Eに一
覧に表示される電話番号から1個の電話番号がキーボー
ド12Dより選択指示されると、RAM12Cのメモリプー
ルとして生成されるメモリ領域20から4ブロックのFI
FO領域22をオペレーティングシステムプログラムにも
とづき獲得する。ステップB “NEXT”、“TO
P”、“BTM”、“HEAD”および“TAIL”
に、次のように初期値を設定する。
Step A As described above, when one telephone number is selected from the telephone numbers displayed in the list on the monitor 12E by the keyboard 12D, four blocks from the memory area 20 created as the memory pool of the RAM 12C. FI
Acquire the FO area 22 based on the operating system program. Step B "NEXT", "TO
P ”,“ BTM ”,“ HEAD ”and“ TAIL ”
Then, set the initial value as follows.

【0016】 “NEXT”=“NULL” “TOP”=“HEAD”=“TAIL”=“0” “BTM”=“21” ステップC キーボード12Dにより選択指示された1個
の電話番号を構成する1連の数字を受信中の場合にはそ
の一連の数字が1個ずつ各データエリアに書込まれるよ
うに、次の1個の数字を“HEAD”の指すアドレスの
データエリアに書込む。
“NEXT” = “NULL” “TOP” = “HEAD” = “TAIL” = “0” “BTM” = “21” Step C Configure one telephone number selected by the keyboard 12D 1 When a series of numbers is being received, the next one number is written in the data area of the address indicated by "HEAD" so that the series of numbers are written one by one in each data area.

【0017】ステップD “HEAD”の更新ルーチ
ン。詳細は、図5に示されているフローチャート図によ
り後述する。ステップE キーボード12Dより選択指示
された1個の電話番号を構成する1連の数字を受信が終
了してタイムアウトとなり、“HEAD”と“TAI
L”の指すアドレスが等しくなくてFIFOを構成する
データエリアにデータが書込まれている場合には、“T
AIL”の指すアドレスのデータエリアからデータ、言
い換えれば電話番号を構成する一連の数字に関する1個
の数字を読出す。
Step D Update routine of "HEAD". Details will be described later with reference to the flowchart shown in FIG. Step E The reception of a series of numbers constituting one telephone number selected and instructed from the keyboard 12D is completed and time-out occurs, and "HEAD" and "TAI" are displayed.
If the addresses pointed to by L "are not equal and data is written in the data area forming the FIFO," T "
Data is read from the data area of the address indicated by "AIL", in other words, one number related to a series of numbers forming the telephone number.

【0018】ステップF “TAIL”の更新ルーチ
ン。詳細は、図6に示されているフローチャート図によ
り後述する。 “HEAD”の更新ルーチン(図5) ステップD−1 “HEAD”の指すアドレスに1を加
えたものと“TAIL”の指すアドレスとが等しい場
合、あるいは“TAIL”の指すアドレスと“TOP”
の指すアドレスとが等しくかつ“HEAD”の指すアド
レスと“BTM”の指すアドレスとが等しい場合には、
全てのデータエリアに電話番号の数字が書込まれている
ことから、次のFIFOを構成するためにメモリ領域20
から新たに4ブロックのFIFO領域22' をオペレーテ
ィングシステムプログラムにもとづき獲得する。
Step F "TAIL" update routine. Details will be described later with reference to the flowchart shown in FIG. Update routine for "HEAD" (FIG. 5) Step D-1 If the address indicated by "HEAD" plus 1 is equal to the address indicated by "TAIL", or if the address indicated by "TAIL" and "TOP"
Are equal to each other and the address indicated by "HEAD" is equal to the address indicated by "BTM",
Since the numbers of telephone numbers are written in all the data areas, the memory area 20 is used to configure the next FIFO.
From this, a new 4-block FIFO area 22 'is acquired based on the operating system program.

【0019】ステップD−2 先のFIFOに関する
“NEXTに設定値を、次のFIFOに関する“NEX
T”、“TOP”、“BTM”、“HEAD”および
“TAIL”に初期値を、次のように設定する。 先のFIFO; “NEXT”=次のFIFOを構成するに際して獲得さ
れた4ブロックのFIFO領域22' のアドレス 次のFIFO; “NEXT”=“NULL” “HEAD”=“TAIL”=“TOP”=“0” “BTM”=“21” ステップD−3,D−4 “HEAD”の指すアドレス
に1を加えたものと“TAIL”の指すアドレスとが等
しくない場合、あるいは“TAIL”の指すアドレスと
“TOP”の指すアドレスとが等しくなくまたは“HE
AD”の指すアドレスと“BTM”の指すアドレスとが
等しくない場合であって、“HEAD”の指すアドレス
と“BTM”の指すアドレスとが等しいときには“HE
AD”のアドレスを“TOP”のアドレスとして書込み
アドレスを進める。また、“HEAD”の指すアドレス
と“BTM”の指すアドレスが等しくないときには“H
EAD”のアドレスを1だけ増加して同様に書込みアド
レスを進める。
Step D-2 "Set value in NEXT for the previous FIFO and" NEXT for the next FIFO "
Initial values are set to T "," TOP "," BTM "," HEAD ", and" TAIL "as follows: Previous FIFO;" NEXT "= 4 blocks acquired when configuring the next FIFO Address of the FIFO area 22 'of the next FIFO; "NEXT" = "NULL""HEAD" = "TAIL" = "TOP" = "0""BTM" = "21" Steps D-3, D-4 "HEAD" If the address indicated by "" plus 1 and the address indicated by "TAIL" are not equal, or the address indicated by "TAIL" is not equal to the address indicated by "TOP", or "HE"
When the address indicated by "AD" and the address indicated by "BTM" are not equal, and when the address indicated by "HEAD" and the address indicated by "BTM" are equal, "HE"
The write address is advanced with the address of "AD" as the address of "TOP", or "H" when the address indicated by "HEAD" and the address indicated by "BTM" are not equal.
The address of EAD "is incremented by 1 and the write address is similarly advanced.

【0020】“TAIL”の更新ルーチン(図6) ステップF−1,F−2 “NEXT”が“NULL”
である場合であって“TAIL”の指すアドレスと“B
TM”の指すアドレスが等しいときには、“TAIL”
のアドレスを“TOP”のアドレスとして読出しアドレ
スを進める。また、“TAIL”の指すアドレスと“B
TM”の指すアドレスが等しくないときには、“TAI
L”のアドレスを“1”だけ増加して同様に読出しアド
レスを進める。
"TAIL" update routine (FIG. 6) Steps F-1, F-2 "NEXT" is "NULL"
And the address indicated by "TAIL" and "B
When the addresses indicated by TM "are the same," TAIL "
The read address is advanced by using the address of "NO" as the address of "TOP". Also, the address indicated by "TAIL" and "B
When the addresses indicated by "TM" are not equal, "TAI
The address of L "is incremented by" 1 "and the read address is similarly advanced.

【0021】ステップF−3 “NEXT”が“NUL
L”でない場合であって“TAIL”の指すアドレスに
1を加えたものと“HEAD”の指すアドレスとが等し
いとき、あるいは“TAIL”の指すアドレスと“BT
M”の指すアドレスが等しくかつ“HEAD”の指すア
ドレスと“TOP”の指すアドレスとが等しいときに
は、先のFIFOに関する全てのデータエリアから電話
番号の一連の数字が読出されていることから、先のFI
FOを構成するFIFO領域22をメモリ領域20に開
(解)放する。
Step F-3 "NEXT" is "NUL"
When it is not L, and the address pointed to by "TAIL" plus 1 is equal to the address pointed by "HEAD", or the address pointed by "TAIL" and "BT"
When the addresses indicated by "M" are equal and the address indicated by "HEAD" is equal to the address indicated by "TOP", a series of telephone numbers is read from all data areas related to the previous FIFO. FI
The FIFO area 22 forming the FO is opened (released) to the memory area 20.

【0022】ステップF−4,F−5 “NEXT”が
“NULL”でない場合でかつ“TAIL”の指すアド
レスに1を加えたものと“HEAD”の指すアドレスと
が等しくないとき、あるいは“TAIL”の指すアドレ
スと“BTM”の指すアドレスとが等しくなくまたは
“HEAD”の指すアドレスと“TOP”の指すアドレ
スとが等しくないときであって、“TAIL”のアドレ
スと“BTM”のアドレスとが等しいときには“TAI
L”のアドレスを“TOP”のアドレスとして読出しア
ドレスを進める。また、“TAIL”のアドレスと“B
TM”のアドレスとが等しくないときには“TAIL”
のアドレスを“1”だけ増加して同様に読出しアドレス
を進める。
Steps F-4 and F-5: If "NEXT" is not "NULL" and the address pointed to by "TAIL" plus one is not equal to the address pointed by "HEAD", or "TAIL" When the address indicated by "" and the address indicated by "BTM" are not equal or the address indicated by "HEAD" and the address indicated by "TOP" are not equal, the "TAIL" address and the "BTM" address are Are equal, "TAI
The read address is advanced with the address of "L" as the address of "TOP", and the address of "TAIL" and "B"
If the address of TM "is not equal," TAIL "
Is incremented by "1" and the read address is advanced in the same manner.

【0023】[0023]

【発明の効果】以上に説明したように、本発明によれ
ば、蓄積されるデータの量に対応してFIFOを構成す
るデータエリアを新たに獲得したり、更には開(解)放
するようにしたために、データがオーバーフローするこ
となく、しかもメモリ効率が良い。
As described above, according to the present invention, it is possible to newly acquire or even open (release) a data area forming a FIFO corresponding to the amount of data to be stored. As a result, the data does not overflow and the memory efficiency is good.

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

【図1】本発明によるメモリ制御方式の原理構成を説明
するための原理ブロック図である。
FIG. 1 is a principle block diagram for explaining a principle configuration of a memory control method according to the present invention.

【図2】本発明によるメモリ制御方式を消防システムに
適用した場合の実施例の概略ブロック図である。
FIG. 2 is a schematic block diagram of an embodiment when the memory control system according to the present invention is applied to a fire fighting system.

【図3】図2において説明したメモリ領域の構成図であ
る。
FIG. 3 is a configuration diagram of a memory area described in FIG.

【図4】図2において説明したFIFOを構成するユー
ザープログラムのメインルーチンのフローチャート図で
ある。
FIG. 4 is a flowchart of a main routine of a user program which constitutes the FIFO described in FIG.

【図5】図4において説明した“HEAD”の更新ルー
チンのフローチャート図である。
FIG. 5 is a flowchart of the “HEAD” update routine described in FIG.

【図6】図4において説明した“TAIL”の更新ルー
チンのフローチャート図である。
FIG. 6 is a flowchart of the “TAIL” update routine described in FIG.

【図7】従来の説明図である。FIG. 7 is a conventional explanatory view.

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

1, 20, 21 メモリ領域 2 第1のFIFO 3 第2のFIFO 11 指令台 12 マイコン 12A CPU 12B ROM 12C RAM 12D キーボード 12E モニタ 13 交換機 14 回線網 22 FIFO領域 1, 20, 21 Memory area 2 First FIFO 3 Second FIFO 11 Command board 12 Microcomputer 12A CPU 12B ROM 12C RAM 12D Keyboard 12E Monitor 13 Switch 14 Line network 22 FIFO area

───────────────────────────────────────────────────── フロントページの続き (72)発明者 佐次川 康幸 福岡県福岡市博多区博多駅前一丁目4番4 号 富士通九州通信システム株式会社内 (72)発明者 中村 美加 福岡県福岡市博多区博多駅前一丁目4番4 号 富士通九州通信システム株式会社内 (72)発明者 二瓶 正弘 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yasuyuki Sashikawa 1-4-4 Hakataekimae, Hakata-ku, Fukuoka-shi, Fukuoka Prefecture Fujitsu Kyushu Communication Systems Limited (72) Inventor Mika Nakamura Hakata-ku, Fukuoka-shi, Fukuoka Hakata Ekimae 1-4-4 Fujitsu Kyushu Communication Systems Limited (72) Inventor Masahiro Nihei 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 所定領域の獲得および開放が可能なメモ
リ領域1からまずN個のデータエリアを獲得して先入れ
先出し方式により順次にデータの書込み読出しを行なう
第1のFIFO2を構成するとともに、次にそれらN個
の全てのデータエリアにデータが書き込まれて読出され
ずに蓄積されると他のM(=Nまたは≠N)個のデータ
エリアを獲得して同様に先入れ先出し方式により順次に
データの書込み読出しを行なう第2のFIFO3を構成
し、この第2のFIFO3には順次にデータの書込みを
始める一方、前記第1のFIFO2からは順次にデータ
の読出しを行なってその第1のFIFO2からの全ての
データの読出しが終了するとその第1のFIFO2を前
記メモリ領域1に開放することを特徴とするメモリ制御
方式。
1. A first FIFO 2 which first acquires N data areas from a memory area 1 capable of acquiring and releasing a predetermined area and sequentially writes and reads data by a first-in first-out method, When data is written in all of these N data areas and accumulated without being read out, another M (= N or ≠ N) data areas are acquired and similarly data is sequentially written by the first-in first-out method. A second FIFO 3 for reading is constructed, and data writing to the second FIFO 3 is sequentially started, while data is sequentially read from the first FIFO 2 and all data from the first FIFO 2 is read. The memory control method wherein the first FIFO 2 is opened to the memory area 1 when the reading of the data is completed.
JP3206770A 1991-08-19 1991-08-19 Memory control system Pending JPH0547169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3206770A JPH0547169A (en) 1991-08-19 1991-08-19 Memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3206770A JPH0547169A (en) 1991-08-19 1991-08-19 Memory control system

Publications (1)

Publication Number Publication Date
JPH0547169A true JPH0547169A (en) 1993-02-26

Family

ID=16528805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3206770A Pending JPH0547169A (en) 1991-08-19 1991-08-19 Memory control system

Country Status (1)

Country Link
JP (1) JPH0547169A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57119586A (en) * 1981-01-19 1982-07-26 Fujitsu Ltd Control system for subscriber information file area
JPS6212985A (en) * 1985-07-09 1987-01-21 Matsushita Electric Ind Co Ltd Fifo memory control device
JPH02189627A (en) * 1989-01-18 1990-07-25 Sanyo Electric Co Ltd Access circuit for data memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57119586A (en) * 1981-01-19 1982-07-26 Fujitsu Ltd Control system for subscriber information file area
JPS6212985A (en) * 1985-07-09 1987-01-21 Matsushita Electric Ind Co Ltd Fifo memory control device
JPH02189627A (en) * 1989-01-18 1990-07-25 Sanyo Electric Co Ltd Access circuit for data memory

Similar Documents

Publication Publication Date Title
JP2603803Y2 (en) Automatic call dispenser with programmable data window display system
KR860007594A (en) I / O control system
US5175834A (en) Swapping apparatus with reduced secondary storage based on frequency of use of page regions
WO2024160136A1 (en) Task scheduling method and apparatus, and electronic device
US7831973B2 (en) Task scheduling apparatus, task scheduling method, task scheduling program, storage medium and transmission medium
JPH0547169A (en) Memory control system
JP2966432B2 (en) Electronics
JP3245500B2 (en) Event management method in multi-programming
JPS62290952A (en) Display terminal
CN115934302A (en) A memory leak processing method and electronic device
JP3226566B2 (en) Electronic exchange system
JPS625759A (en) Information remedy system
JP2718690B2 (en) Communication control system
JPH025667A (en) Asynchronous pouble data communication method and its terminal device
JP2900364B2 (en) Communication control device
KR910004270B1 (en) Automatic control method of calls in switching center
JPH01125643A (en) Control system for divided transmission/reception of message
JPH0628318A (en) Module data management device
JPH0484251A (en) Recording method
JPS63164790A (en) Key telephone set
JPH0689371A (en) Method and system for ic memory card control
JPS6356739B2 (en)
JPH10320242A (en) Method for inspecting application task
JPS6048541A (en) Electronic computer system
JPS60229464A (en) Command transmission system of telephone exchange system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970304