JPH0584533B2 - - Google Patents

Info

Publication number
JPH0584533B2
JPH0584533B2 JP20947985A JP20947985A JPH0584533B2 JP H0584533 B2 JPH0584533 B2 JP H0584533B2 JP 20947985 A JP20947985 A JP 20947985A JP 20947985 A JP20947985 A JP 20947985A JP H0584533 B2 JPH0584533 B2 JP H0584533B2
Authority
JP
Japan
Prior art keywords
block
address
sequence number
storage device
block address
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 - Lifetime
Application number
JP20947985A
Other languages
Japanese (ja)
Other versions
JPS6269335A (en
Inventor
Toshio Ishizuka
Kazuo Tsuzuki
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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP20947985A priority Critical patent/JPS6269335A/en
Publication of JPS6269335A publication Critical patent/JPS6269335A/en
Publication of JPH0584533B2 publication Critical patent/JPH0584533B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、見出し語としてブロツクアドレスを
持つ記憶ブロツクに転送情報を入力順に書込み、
またブロツクアドレス又は順序番号を指定して記
憶ブロツクから転送情報を読出しまたは取消しす
る記憶装置制御方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention writes transfer information in the order of input into a memory block having a block address as a headword.
The present invention also relates to a storage device control method for reading or canceling transfer information from a storage block by specifying a block address or sequence number.

〔従来の技術〕 従来のこの種の記憶装置制御方式は、記憶位置
の選択に対して先入れ先出し方式、後入れ先出し
方式、連想記憶方式、記憶位置指定方式等がある
(例えば情報処理ハンドブツク、情報処理学会、
オーム社、P810参照)が、書込み位置が外部か
らの指定を要せず、読出しのときだけ記憶した情
報を指定して取出す先入れ任意取出し方式につい
ては開示されていない。
[Prior Art] Conventional storage device control methods of this type include a first-in first-out method, a last-in first-out method, an associative memory method, a storage location specification method, etc. for selecting a storage location (for example, information processing handbook, information processing Society,
Ohmsha, see page 810) does not disclose a first-in arbitrary retrieval method in which the writing position does not require external designation and stored information is designated and retrieved only when reading.

また、パケツト交換サービスにおいてはパケツ
ト化された情報が順次到着したとき情報パケツト
に含まれるデータの中から例えば配列番号を見出
し語として検索し、到着順序に無関係に取出す方
式があるが、これは制御プログラムによる方式で
ある。
In addition, in packet switching services, there is a method in which, when packetized information arrives one after another, the data contained in the information packets is searched for, for example, the array element number as a headword, and extracted regardless of the order of arrival. This is a program-based method.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の記憶装置制御方式は、読出すべ
き情報の指定を制御プログラムによるソフトウエ
アで処理する構成になつているので、処理時間が
長く読出し回数の頻繁な、例えばパケツト情報の
配列転送等の、処理では中央処理装置の効率およ
び処理能力の減退を招きサービスを低下させると
いう問題点がある。
The above-mentioned conventional storage device control method is configured to process the designation of information to be read using software using a control program, so it is difficult to handle data that requires long processing time and requires frequent reading, such as array transfer of packet information. However, in processing, there is a problem in that the efficiency and processing capacity of the central processing unit are reduced, resulting in a decline in service.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の記憶装置制御方式は、ブロツクアドレ
スを持つ記憶ブロツクに転送情報を入力順に書込
み、またブロツクアドレスを指定して記憶ブロツ
クから転送情報を読出し若しくは取消しする記憶
装置制御部が、順次番号指定手段とアドレス翻訳
手段とを有し、アドレス翻訳手段が有するアドレ
スレジスタの若番に詰めて転送情報を記憶した記
憶ブロツクのブロツクアドレスを記録し、且つ転
送情報の読出し若しくは取消しはブロツクアドレ
ス又は順序番号をもつて指定する。
In the storage device control method of the present invention, the storage device control unit writes transfer information in the input order to storage blocks having block addresses, and reads out or cancels the transfer information from the storage blocks by specifying the block address. and an address translation means, the block address of the memory block storing the transfer information is recorded in the lower number of the address register possessed by the address translation means, and the reading or cancellation of the transfer information is performed using the block address or sequence number. Also specify.

従つて、順序番号指定手段は、書込要求のとき
に書込許可により“0”からの順序番号を順次指
定すると共に、書込みした記憶ブロツクの数だけ
順序番号を逐次進める一方、取消要求のときは取
消しする記憶ブロツクの数だけ若番方向に詰めた
順序番号を指示して次の要求を待つ。アドレスレ
ジスタは順序番号(記憶ブロツクに対する論理ア
ドレス)を付与され、それぞれが記憶ブロツクに
付与されたブロツクアドレス(記憶ブロツクに対
する物理アドレス)を記録する。
Therefore, the sequence number designation means sequentially specifies the sequence number from "0" by writing permission when making a write request, and sequentially advances the sequence number by the number of written memory blocks, while when making a cancellation request. Instructs the sequence number shifted downward by the number of memory blocks to be canceled and waits for the next request. The address registers are assigned sequence numbers (logical addresses for memory blocks) and each records the block address (physical address for a memory block) assigned to a memory block.

アドレス翻訳手段は取消要求を受けたとき指定
されたブロツクアドレス又は指定された順序番号
のアドレスレジスタに記録されたブロツクアドレ
スを取出し、取出された領域に順序番号の後順位
で最も若い番号に付するブロツクアドレスを順次
詰めて記録して次の要求を待つ。
When the address translation means receives a cancellation request, it extracts the specified block address or the block address recorded in the address register of the specified sequence number, and assigns it to the extracted area with the lowest number after the sequence number. It fills in the block addresses one by one, records them, and waits for the next request.

第1図は本発明のクレーム対応図である。記憶
装置10は記憶ブロツク11を有し、記憶ブロツ
ク11はブロツクアドレスa,b,c,…のそれ
ぞれを有して転送情報を記憶する。第1図におい
てはブロツクアドレスaに転送情報Aが記憶され
ている。記憶装置制御部20は記憶装置10に書
込情報を書込み、記憶装置10から読出情報を読
出すためブロツクアドレスと共に書込または読出
の指令を与える。記憶装置制御部20は順序番号
指定手段21、並びにアドレスレジスタ221を
有するアドレス翻訳手段22を主要構成要素とし
て備えている。アドレスレジスタ221は付与さ
れた順序番号0,1…のそれぞれに対してブロツ
クアドレスa,b…が記録されている。記憶装置
制御部20は書込要求に対して順序番号指定手段
21の指定による順序番号のアドレスレジスタ2
21からブロツクアドレスを読出し記憶装置10
に読出したブロツクアドレスへの書込を指令す
る。読出要求に対しては直接ブロツクアドレス
か、又は論理アドレスの順序番号から読出された
ブロツクアドレスと共に読出が指令される。
FIG. 1 is a diagram corresponding to claims of the present invention. The storage device 10 has a storage block 11, which has block addresses a, b, c, . . . and stores transfer information. In FIG. 1, transfer information A is stored at block address a. The storage device control section 20 writes write information to the storage device 10 and provides a write or read command together with a block address in order to read read information from the storage device 10 . The storage device control section 20 includes a sequence number designation means 21 and an address translation means 22 having an address register 221 as main components. In the address register 221, block addresses a, b, . . . are recorded for each assigned sequence number 0, 1, . In response to a write request, the storage device control unit 20 sets the address register 2 of the sequence number specified by the sequence number designation means 21.
21 and reads the block address from the storage device 10.
Commands writing to the block address read out. In response to a read request, a read is commanded with a direct block address or a block address read from a logical address sequence number.

〔実施例〕 次に、本発明の記憶装置制御方式について図面
を参照して説明する。
[Embodiment] Next, a storage device control method of the present invention will be described with reference to the drawings.

第2図は本発明の一実施例を示す機能ブロツク
図である。第1図と同一の構成要素については同
一番号符号を付与して説明を省略する。
FIG. 2 is a functional block diagram showing one embodiment of the present invention. Components that are the same as those in FIG. 1 are given the same numbers and symbols, and explanations thereof will be omitted.

まず記憶装置10について説明する。記憶装置
10は記憶ブロツク11、書込ゲート12、およ
び読出ゲート13を有する。記憶ブロツク11は
転送情報を記憶する各ブロツクごとにブロツクア
ドレスを有し、ブロツクアドレスの指定により指
定領域を情報入出力線14に結合する。書込ゲー
ト12は書込許可をうけてゲートを通過状態とし
書込指令を受けて記憶ブロツクの指定領域に書込
情報を書込む。一方、読出ゲート13は読出許可
をうけてゲートを通過状態とし、ブロツクアドレ
スで指定された記憶ブロツクの指定領域が結合さ
れるので記憶された転送情報を読出情報として読
出しできる。
First, the storage device 10 will be explained. Memory device 10 has a memory block 11, a write gate 12, and a read gate 13. The storage block 11 has a block address for each block storing transfer information, and a designated area is coupled to the information input/output line 14 by designation of the block address. When the write gate 12 receives write permission, the gate is passed through the gate, and in response to a write command, the write information is written into the specified area of the memory block. On the other hand, the read gate 13 receives read permission and enters a passing state, and the specified area of the storage block specified by the block address is connected, so that the stored transfer information can be read out as read information.

記憶装置制御部20は順序番号指定手段21、
アドレス翻訳手段22、および択一手段23を有
する。順序番号指定手段21は加算/減算カウン
タを有し、記憶ブロツクを次に移して転送情報を
書込むときは書込許可と共に順序番号累進の信号
を受信して一つ宛順次順序番号を進める。記憶ブ
ロツクのすべてが満杯になつたときは満杯信号
(図示せず)を発生する。次に取消要求があつた
ときは一つの記憶ブロツクに対するブロツクアド
レスごとに取消要求の信号が発生するので、取消
要求ごとに順序番号を一つ宛順次若番方向へ戻
す。
The storage device control unit 20 includes a sequence number designation means 21,
It has address translation means 22 and selection means 23. The sequence number designating means 21 has an addition/subtraction counter, and when moving the memory block to the next block and writing transfer information, it receives a write permission and a sequence number progression signal and advances the sequence number one by one. When all of the storage blocks are full, a full signal (not shown) is generated. Next, when a cancellation request is made, a cancellation request signal is generated for each block address for one storage block, so for each cancellation request, the sequence number is sequentially returned to the lowest number.

従つて順序番号指定手段21が指示する順序番
号の一つ前の番号までのアドレスレジスタ221
に記録されたブロツクアドレスを有する記憶ブロ
ツクには読出可能な転送情報が記憶されており、
指定された以後の順序番号のアドレスレジスタ2
21に記録されたブロツクアドレスの記憶ブロツ
クでは記憶内容が存在しても取消要求をうけたも
のなので記憶内容なしの状態と同一に取扱われ
る。
Therefore, the address register 221 up to the number immediately before the sequence number specified by the sequence number designating means 21
Readable transfer information is stored in the memory block having the block address recorded in the block address.
Address register 2 of the specified sequence number
Even if the storage block with the block address recorded in 21 has stored contents, it is treated as if it had no stored contents because it has received a cancellation request.

アドレス翻訳手段22はアドレスレジスタ22
1を有する。アドレスレジスタ221は順序番号
を付与され、それぞれがブロツクアドレスを記録
する。択一手段23からの書込みまたは読出しの
信号に対して、順序番号を受信しているときはア
ドレス翻訳手段22は指定された順序番号のアド
レスレジスタ221からブロツクアドレスを取出
して、またブロツクアドレスを受信しているとき
はそのまま、記憶装置10へ出力する。取消要求
の信号に対しては指定されたブロツクアドレス又
は指定された順序番号からアドレスレジスタを用
いて変換されたブロツクアドレスをアドレスレジ
スタ221から取出し、次の順序番号以後のアド
レスレジスタ221が記録するブロツクアドレス
を順次若番方向に詰める。
The address translation means 22 is an address register 22
1. Address registers 221 are assigned sequence numbers and each records a block address. When receiving a sequence number in response to a write or read signal from the selection means 23, the address translation means 22 takes out a block address from the address register 221 of the designated sequence number and receives the block address again. When it is, it is output to the storage device 10 as is. In response to a cancellation request signal, the block address converted from the specified block address or specified sequence number using the address register is taken out from the address register 221, and the block address recorded by the address register 221 after the next sequence number is read. Move addresses sequentially toward the smallest number.

択一手段23は書込要求および読出要求を受け
たとき、何れか一方を選択して書込許可または読
出許可を与えると共にアドレス翻訳手段22に書
込か読出かの信号を、また記憶ブロツク11への
書込指令を、それぞれ出力する。
When the selection means 23 receives a write request and a read request, it selects one of them and gives write permission or read permission, and sends a write or read signal to the address translation means 22, and also sends a write or read signal to the memory block 11. Outputs write commands to each.

次に第3図を参照してアドレスレジスタによる
記憶装置制御の先入れ任意取出方式の一具体例に
ついて説明する。第3図Aにおいて、アドレスレ
ジスタは“0”から順に順序番号が論理アドレス
として付与されている。アドレスレジスタ0,
1,2,3,4にはそれぞれブロツクアドレス
a,b,c,d,eが記録されている。この例で
はブロツクアドレスa,b,cの記憶内容が活き
ており読出し可能である。ブロツクアドレスdは
現在空きで書込可能である。書込みは順序番号0
から順次実行されるので、現在順序番号指定手段
から指定される順序番号は次の書込順序である順
序番号3である。従つて、次に書込要求があつた
とき指定された順序番号3に記録されたブロツク
アドレスdの記憶ブロツクに書込みされる。
Next, with reference to FIG. 3, a specific example of a first-in, arbitrary-fetch method for controlling a storage device using an address register will be described. In FIG. 3A, the address registers are assigned sequential numbers as logical addresses starting from "0". address register 0,
Block addresses a, b, c, d, and e are recorded in blocks 1, 2, 3, and 4, respectively. In this example, the stored contents of block addresses a, b, and c are active and can be read. Block address d is currently empty and writable. Writing is sequence number 0
Since the execution is performed sequentially from 1 to 3, the sequence number specified by the current sequence number designation means is sequence number 3, which is the next writing sequence. Therefore, the next time a write request is received, the data will be written to the memory block at the block address d recorded in the designated sequence number 3.

第3図Bでは第3図Aで書込要求された情報が
ブロツクアドレスdに書込まれ、次の書込みのた
め順序番号4を指定してブロツクアドレスeを準
備した状態を示す。第4図cではブロツクアドレ
スb又は順序番号1を指定して取出しまたは取消
した例を示している。ブロツクアドレスbを取出
したので使用中の論理アドレス0〜3は一つ減少
して順序番号0,1,2のそれぞれに、ブロツク
アドレスa,c,dが対応するように詰められ
る。従つて次の書込みには順序番号3およびブロ
ツクアドレスeが指定される。この例では取出し
たブロツクアドレスbは最後の順序番号に対応し
て記録される。
FIG. 3B shows a state in which the information requested for writing in FIG. 3A has been written to block address d, and block address e has been prepared by specifying sequence number 4 for the next write. FIG. 4c shows an example in which block address b or sequence number 1 is designated and extracted or canceled. Since block address b has been extracted, the logical addresses 0 to 3 in use are decreased by one, and block addresses a, c, and d are packed so that they correspond to sequence numbers 0, 1, and 2, respectively. Therefore, sequence number 3 and block address e are specified for the next write. In this example, the retrieved block address b is recorded corresponding to the last sequence number.

すなわち、先入れ任意取出方式は論理アドレス
によつて実行され、翻訳手段が物理アドレスを一
義的に指定して書込みすると共に書込んだ物理ア
ドレスを取出して読出しおよび取消しに直接活用
可能である。
That is, the first-in arbitrary retrieval method is executed using logical addresses, and the translation means uniquely specifies and writes a physical address, and at the same time extracts the written physical address and can directly utilize it for reading and canceling.

上記実施例では全部の順序番号にブロツクアド
レスを割当ててアドレスレジスタに記録するよう
に説明したが、アドレスレジスタの順序番号(論
理アドレス)とアドレスレジスタに記録したブロ
ツクアドレス(物理アドレス)との対照表は別に
設け、活用のため読出しする記憶情報がある記憶
ブロツクのブロツクアドレスだけ(第3図の〇印
のもの)をアドレスレジスタに記録しておき、書
込み指定があつたときに初めて指定順序番号のア
ドレスレジスタに記録することもできる。上記説
明では読出しのときは読出しだけで記憶装置の記
憶情報を取消さず、取出しが記憶情報を読出すと
共に取消す処理を実行するものとして説明した。
また記憶ブロツクの転送情報は、書込みがあつた
ときそれまで記録されていた情報を取消す方法だ
けでなく、取消要求のとき記憶装置制御部20が
記憶装置10に取消指令をブロツクアドレスと共
に送り読出可能情報以外は記憶ブロツクに記憶し
ない方法でもできる。また、記憶装置への呼出方
法には通常のように記憶ブロツク内のアドレスを
直接呼出して読出・取消する方法も含むが、本発
明に直接関係ない部分の図示・説明は省略する。
In the above embodiment, it was explained that block addresses are assigned to all sequence numbers and recorded in the address register. A memory block is set up separately, and only the block address of the memory block containing the memory information to be read for utilization (marked with a circle in Figure 3) is recorded in the address register, and only when a write instruction is received, the specified sequence number is read. It can also be recorded in the address register. In the above description, when reading, the information stored in the storage device is not deleted by only reading, and when the information is retrieved, the stored information is read and canceled at the same time.
Furthermore, the transfer information of a storage block can be read out not only by the method of canceling the previously recorded information when writing occurs, but also by the storage device control unit 20 sending a cancellation command together with the block address to the storage device 10 when a cancellation request is made. This can also be done by not storing anything other than information in the memory block. Further, the method of calling the storage device includes a method of directly calling an address in the storage block to read/cancel as usual, but illustrations and explanations of parts not directly related to the present invention will be omitted.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明の記憶装置制御方式
は記憶情報を論理アドレスに対して先に入つた順
に詰めてアドレスレジスタに記憶し、記憶情報を
取消すときは取消した記憶情報が記憶された記憶
ブロツクのブロツクアドレスをアドレスレジスタ
から取消し、空きになつたアドレスレジスタに次
順位以降のアドレスレジスタが記録するブロツク
アドレスを順次詰めて記録するアドレス翻訳手段
を有し、先に入つた順に詰めて記憶する“先入
れ”に対して読出しに際してはハードウエアの物
理アドレスであるブロツクアドレス又は論理アド
レスである順序番号を直接指定して短時間で記憶
情報を読出すことによりシステムの処理容量を増
加できる効果がある。
As explained above, the storage device control method of the present invention stores stored information in the address register in the order in which the stored information was entered first with respect to the logical address, and when the stored information is to be deleted, the stored information is stored in the memory block in which the deleted stored information is stored. The block address is deleted from the address register, and the block addresses recorded in the address registers of the next or later order are sequentially filled and recorded in the empty address register. In contrast to "first-in," when reading, it is possible to increase the processing capacity of the system by directly specifying the block address, which is the physical address of the hardware, or the sequence number, which is the logical address, and reading the stored information in a short time. .

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

第1図は本発明の記憶装置制御方式のクレーム
対応図、第2図は本発明の一実施例を示す機能ブ
ロツク図、第3図は本発明のアドレスレジスタの
先入れ任意取出し方式を説明した概念図である。 10……記憶装置、11……記憶ブロツク、2
0……記憶装置制御部、21……順序番号指定手
段、22……アドレス翻訳手段、221……アド
レスレジスタ。
FIG. 1 is a claim correspondence diagram of the storage device control system of the present invention, FIG. 2 is a functional block diagram showing an embodiment of the present invention, and FIG. 3 is an explanation of the first-in, arbitrary-out method of the address register of the present invention. It is a conceptual diagram. 10...Storage device, 11...Memory block, 2
0...Storage device control unit, 21...Sequence number designating means, 22...Address translation means, 221...Address register.

Claims (1)

【特許請求の範囲】[Claims] 1 記憶装置の記憶ブロツクに転送情報を書込
み、また記憶ブロツクから転送情報を読出し若し
くは取消しする記憶装置制御部が、書込要求のと
き書込許可の受信により“0”からの順序番号を
順次指定すると共に、書込みした記憶ブロツクの
数だけ順序番号を進める一方、取消要求のときは
取消しする記憶ブロツクの数だけ若番方向に詰め
た順序番号を指示して次の要求を待つ順序番号指
定手段と、前記記憶装置の記憶ブロツクに付与さ
れた物理アドレスであるブロツクアドレスのそれ
ぞれを論理アドレスとなる前記順序番号のそれぞ
れに対応して記録したアドレスレジスタを含み、
取消要求を受けたときは指定されたブロツクアド
レス又は指定された順序番号のブロツクアドレス
を取出し、取出された領域に順序番号の老順位で
最も若い番号に対応するブロツクアドレスを順次
詰めて記録して次の要求を待つアドレス翻訳手段
とを有することを特徴とする記憶装置制御方式。
1 The storage device control unit that writes transfer information to the storage block of the storage device, and reads or cancels transfer information from the storage block, specifies sequential numbers starting from “0” upon receiving write permission at the time of a write request. At the same time, the sequence number designation means increments the sequence number by the number of memory blocks that have been written, while instructing the sequence number to be shifted down by the number of memory blocks to be canceled in the case of a cancellation request, and waits for the next request. , an address register in which each block address, which is a physical address assigned to a storage block of the storage device, is recorded in correspondence with each of the sequence numbers, which are logical addresses,
When a cancellation request is received, the specified block address or the block address of the specified sequence number is retrieved, and the block address corresponding to the youngest number in the ascending order of the sequence number is sequentially filled and recorded in the retrieved area. 1. A storage device control method comprising: address translation means for waiting for the next request.
JP20947985A 1985-09-20 1985-09-20 Control system for storage device Granted JPS6269335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20947985A JPS6269335A (en) 1985-09-20 1985-09-20 Control system for storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20947985A JPS6269335A (en) 1985-09-20 1985-09-20 Control system for storage device

Publications (2)

Publication Number Publication Date
JPS6269335A JPS6269335A (en) 1987-03-30
JPH0584533B2 true JPH0584533B2 (en) 1993-12-02

Family

ID=16573520

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20947985A Granted JPS6269335A (en) 1985-09-20 1985-09-20 Control system for storage device

Country Status (1)

Country Link
JP (1) JPS6269335A (en)

Also Published As

Publication number Publication date
JPS6269335A (en) 1987-03-30

Similar Documents

Publication Publication Date Title
JPH0340868B2 (en)
JPH0122940B2 (en)
JPH0584533B2 (en)
JPH0887478A (en) Inter-process message communication method
JPS592058B2 (en) Storage device
JPH07319839A (en) Distributed shared memory managing method and network computer system
JPH0712189B2 (en) How to record detailed billing information
JPS6115459B2 (en)
JPH0789338B2 (en) File processing method on external storage device
JPS5841526B2 (en) Channel command word preemption buffer control method
JPS6158920B2 (en)
JPS6218074B2 (en)
JPS62192829A (en) Log control system
JPH0685154B2 (en) Intermediate buffer control method
JPH07210484A (en) Network device
JP2000259488A (en) Queue management system
JPS6278638A (en) File recording and control system
JPH01283653A (en) Memory pool managing system
JPH0659967A (en) Method for accessing memory area
JPS6126703B2 (en)
JPS60198661A (en) Input and output control system
JPH0764832A (en) Multi-extent file system
JPS6144339B2 (en)
JPH0490006A (en) Programmable controller
JPH0345410B2 (en)