JP2000259488A - Queue management system - Google Patents

Queue management system

Info

Publication number
JP2000259488A
JP2000259488A JP6560899A JP6560899A JP2000259488A JP 2000259488 A JP2000259488 A JP 2000259488A JP 6560899 A JP6560899 A JP 6560899A JP 6560899 A JP6560899 A JP 6560899A JP 2000259488 A JP2000259488 A JP 2000259488A
Authority
JP
Japan
Prior art keywords
queue
request
return
memory
buffer
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
JP6560899A
Other languages
Japanese (ja)
Inventor
Hirohisa Kouchi
博久 光地
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
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP6560899A priority Critical patent/JP2000259488A/en
Publication of JP2000259488A publication Critical patent/JP2000259488A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a queue management system which immediately responds to the request/return of queue addresses that simultaneously come from plural ports by providing a buffer in each port without accessing a memory and can simultaneously responds the request and return of a queue address. SOLUTION: This queue management system managing the address of a memory in which data are stored with a queue structure is provided with a queue accessing part 1 which performs access to a memory 6 in accordance with a return queue or a request queue, a buffer 2 for return which is provided between a return queue port 4 and the part 1 and holds the return queue and a buffer 3 for request which is provided between a request queue port 5 and the queue access part and holds the request queue.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータのメ
モリのアドレス等をキュー構造で管理するキュー管理シ
ステムに関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a queue management system for managing addresses and the like of a memory of a computer in a queue structure.

【0002】[0002]

【従来の技術】まず、図4を参照して、キューの構造を
説明する。図4の(a)に示すカレントポインタが、メ
モリエリア#1の先頭アドレスを指していて、メモリエ
リア#1の先頭にあるネクストポインタ(図4(b))
がメモリエリア#2の先頭を指している。更に、メモリ
エリア#2の先頭にあるネクストポインタ(図4
(c))がメモリエリア#3の先頭を指している。同様
に、メモリエリア#3の先頭にあるネクストポインタ
(図4(d))が次のメモリエリアの先頭を指している
というように次々とメモリエリアをつないでいって、メ
モリの先頭アドレスで管理する方法をキューと呼ぶ。
2. Description of the Related Art First, the structure of a queue will be described with reference to FIG. The current pointer shown in FIG. 4A points to the head address of memory area # 1, and the next pointer at the head of memory area # 1 (FIG. 4B)
Indicates the beginning of the memory area # 2. Further, the next pointer at the head of the memory area # 2 (FIG.
(C)) indicates the head of the memory area # 3. Similarly, the memory areas are connected one after another such that the next pointer (FIG. 4D) at the head of the memory area # 3 points to the head of the next memory area, and is managed by the head address of the memory. This is called a queue.

【0003】従来のキュー管理システムの動作を図3を
参照して説明する。図3において、カレントポインタ1
7はメモリ上の現在のポインタを保持している。ネクス
トポインタ18は、返却されたキューをメモリへ戻すと
きは、バッファ3より返却キューのアドレスを転送し、
カレントポインタ17をメモリライトデータ10とし、
ネクストポインタ18をメモリライトアドレス11とし
て、メモリに書き込み、メモリ内のキューに接続して、
その後、ネクストポインタ18を新しいカレントポイン
タ17として転送する。
The operation of a conventional queue management system will be described with reference to FIG. In FIG. 3, the current pointer 1
7 holds the current pointer on the memory. When returning the returned queue to the memory, the next pointer 18 transfers the address of the returned queue from the buffer 3 and
The current pointer 17 is used as the memory write data 10 and
The next pointer 18 is written to the memory as the memory write address 11 and connected to a queue in the memory,
Thereafter, the next pointer 18 is transferred as a new current pointer 17.

【0004】また、メモリ内のキューを取り出すとき
は、カレントポインタ17をリードアドレス9として、
メモリを読み出し、読み出したメモリリードデータ12
をネクストポインタ18に取り込み、その後、ネクスト
ポインタ18を新しいカレントポインタ17として転送
する。
When a queue in the memory is taken out, the current pointer 17 is used as the read address 9 and
The memory is read, and the read memory read data 12
Is taken into the next pointer 18, and then the next pointer 18 is transferred as a new current pointer 17.

【0005】バッファ21〜24は、返却キューアドレ
ス14または、返却キューアドレス15をセレクタ13
によって選んだものを取り込み、また、要求キューアド
レス7または、要求キューアドレス8を渡す為の4個の
バッファで、バッファが2個を超えたときは、キューを
メモリに戻すためにネクストポインタ18に転送し、バ
ッファが2個未満になったときは、メモリからキューを
取り出して、カレントポインタ17からバッファ21ま
たはバッファ22に転送する。
The buffers 21 to 24 store the return queue address 14 or the return queue address 15 in the selector 13.
4 buffers for passing the request queue address 7 or the request queue address 8, and when the number of buffers exceeds 2, the next pointer 18 is returned to return the queue to the memory. When the number of buffers is less than two, the queue is taken out of the memory and transferred from the current pointer 17 to the buffer 21 or the buffer 22.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、従来の
キュー管理システムにおいては、複数のポートから来た
返却キューを同時に受け付けることができないという問
題がある。さらに、複数のポートから来た要求キューを
同時に受け付けることができないという問題もある。
However, the conventional queue management system has a problem that return queues from a plurality of ports cannot be received at the same time. Another problem is that request queues from a plurality of ports cannot be received at the same time.

【0007】本発明は、このような事情に鑑みてなされ
たもので、バッファをポート毎に持つことにより、複数
のポートから同時に来た、キューアドレスの要求/返却
に対して、メモリへのアクセス無しに即座に応答し、キ
ューアドレスの要求と返却に対して、同時に応答するこ
とができるキュー管理システムを提供することを目的と
する。
The present invention has been made in view of such circumstances, and by providing a buffer for each port, it is possible to access a memory in response to a request / return of a queue address coming from a plurality of ports simultaneously. It is an object of the present invention to provide a queue management system that can respond immediately without any request and can simultaneously respond to a request and return of a queue address.

【0008】[0008]

【課題を解決するための手段】請求項1に記載の発明
は、データを記憶するメモリのアドレスをキュー構造で
管理するキュー管理システムであって、前記キュー管理
システムは、返却キューまたは要求キューに応じて前記
メモリに対してアクセスを行うキューアクセス部と、返
却キューポートと前記キューアクセス部との間に設けら
れ、返却キューを保持する返却用バッファと、要求キュ
ーポートと前記キューアクセス部との間に設けられ、要
求キューを保持する要求用バッファとを備えたことを特
徴とする。
According to a first aspect of the present invention, there is provided a queue management system for managing an address of a memory for storing data in a queue structure, wherein the queue management system includes a return queue or a request queue. A queue access unit for accessing the memory, a return buffer provided between the return queue port and the queue access unit for holding a return queue, a request queue port and the queue access unit. A request buffer that is provided therebetween and holds a request queue.

【0009】請求項2に記載の発明は、前記返却用バッ
ファは、返却キューポートが複数ある場合にそれぞれの
返却キューポートについて1つの返却用バッファを備え
たことを特徴とする。
The invention according to a second aspect is characterized in that the return buffer includes one return buffer for each return queue port when there are a plurality of return queue ports.

【0010】請求項3に記載の発明は、前記要求用バッ
ファは、要求キューポートが複数ある場合にそれぞれの
要求キューポートについて1つの要求用バッファを備え
たことを特徴とする。
[0010] The invention according to claim 3 is characterized in that the request buffer has one request buffer for each request queue port when there are a plurality of request queue ports.

【0011】[0011]

【発明の実施の形態】以下、本発明の一実施形態による
キュー管理システムを図面を参照して説明する。図1は
同実施形態の構成を示すブロック図である。この図にお
いて、符号1はキューアクセス部である。符号2−1〜
nが返却用のバッファであり、キューポートのそれぞれ
に設けられている。符号3−1〜nは、要求用バッファ
であり、キューポートのそれぞれに設けられている。符
号4−1〜nは、返却キューポート、符号5−1〜nは
要求キューポートである。符号6は、メモリである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a queue management system according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the embodiment. In this figure, reference numeral 1 denotes a queue access unit. Symbols 2-1 to 2-1
n is a buffer for return and is provided in each of the queue ports. Reference numerals 3-1 to n denote request buffers, which are provided in the respective queue ports. Reference numerals 4-1 to n indicate return queue ports, and reference numerals 5-1 to n indicate request queue ports. Reference numeral 6 denotes a memory.

【0012】返却用バッファ2−1〜nは、返却キュー
ポート4−1〜nからの返却キューアドレスを受け付
け、保持する。
The return buffers 2-1 to n receive and hold return queue addresses from the return queue ports 4-1 to n.

【0013】また、キューアクセス部1は、返却用バッ
ファ2−1〜nからのキューアドレスを受け付けて、メ
モリ6上のキューに書き込む。また、キューアクセス部
1は、要求用バッファ3−1〜nが空になったら、メモ
リ6上のキューから読み出したキューアドレスを要求用
バッファ3−1〜nへ渡す。
The queue access unit 1 receives a queue address from the return buffers 2-1 to n and writes it in a queue on the memory 6. When the request buffers 3-1 to n become empty, the queue access unit 1 passes the queue addresses read from the queues on the memory 6 to the request buffers 3-1 to n.

【0014】また、要求用バッファ3−1〜nは、要求
キューポート5−1〜nからのキューアドレスの要求に
より、保持しているキューアドレスを渡し、空になった
ら、キューアクセス部1よりキューアドレスをもらう。
The request buffers 3-1 to n pass the held queue address in response to a request for a queue address from the request queue port 5-1 to n. Get a queue address.

【0015】次に、図2を参照して、図1に示すキュー
管理システムの動作を説明する。図2は、図1に示すキ
ュー管理システムの動作を示す説明図である。ここで
は、説明を簡単にするために、返却用バッファ及び要求
用バッファを2つずつ設けた例を使用して動作を説明す
る。
Next, the operation of the queue management system shown in FIG. 1 will be described with reference to FIG. FIG. 2 is an explanatory diagram showing the operation of the queue management system shown in FIG. Here, in order to simplify the description, the operation will be described using an example in which two return buffers and two request buffers are provided.

【0016】図2において、カレントポインタ17はメ
モリ6上の現在のポインタを保持している。ネクストポ
インタ18は、返却されたキューをメモリ6へ戻すとき
は、返却用バッファ2−1または、返却用バッファ2−
2の内容をセレクタ13で選択した返却キューのアドレ
スを転送し、カレントポインタ17をメモリライトデー
タ10とし、ネクストポインタ18をメモリライトアド
レス11として、メモリ6に書き込み、メモリ6内のキ
ューに接続して、その後、ネクストポインタ18を新し
いカレントポインタ17として転送する。
In FIG. 2, a current pointer 17 holds a current pointer on the memory 6. When returning the returned queue to the memory 6, the next pointer 18 returns the return buffer 2-1 or the return buffer 2-.
2 is transferred to the address of the return queue selected by the selector 13, the current pointer 17 is set as the memory write data 10, the next pointer 18 is set as the memory write address 11, and written to the memory 6, and connected to the queue in the memory 6. Then, the next pointer 18 is transferred as a new current pointer 17.

【0017】また、メモリ6内のキューを取り出すとき
は、カレントポインタ17をリードアドレス9として、
メモリ6を読み出し、読み出したメモリリードデータ1
2をネクストポインタ18に取り込み、その後、ネクス
トポインタ18を新しいカレントポインタ17として転
送し、同時に、旧カレントポインタを要求用バッファ3
−1に転送する。同様に要求用バッファ3−2にもアド
レスを転送する。この両方のバッファにアドレスが貯ま
ってる状態を保つ。
When the queue in the memory 6 is taken out, the current pointer 17 is used as the read address 9 and
Reads memory 6 and reads memory read data 1
2 is transferred to the next pointer 18, and then the next pointer 18 is transferred as a new current pointer 17, and at the same time, the old current pointer is transferred to the request buffer 3.
Transfer to -1. Similarly, the address is transferred to the request buffer 3-2. The state where addresses are stored in both buffers is maintained.

【0018】この状態で、要求キューが来たときには、
要求が来た方のバッファから渡していき、前述した動作
と同様にメモリリードを行い、バッファを補充する。
In this state, when the request queue comes,
The data is passed from the buffer to which the request came, and the memory is read and the buffer is replenished in the same manner as the operation described above.

【0019】一方、返却キューが来たときは、返却が来
た方のバッファにまず入り、要求用バッファ3−1か2
が空いている時は、そこに転送し、空いてないときは、
ネクストポインタ18に転送し、カレントポインタ17
メモリライトデータ10とし、ネクストポインタ18を
メモリライトアドレス11として、メモリ6に書き込
み、その後、ネクストポインタ18を新しいカレントポ
インタ17として転送する。
On the other hand, when the return queue arrives, the buffer which has returned is first entered, and the request buffer 3-1 or 2 is returned.
When is not available, transfer to it, and when not available,
Transfer to the next pointer 18 and the current pointer 17
The data is written to the memory 6 as the memory write data 10 and the next pointer 18 as the memory write address 11, and then the next pointer 18 is transferred as a new current pointer 17.

【0020】要求用バッファ3−1、3−2は、要求キ
ューアドレス7、8を渡す為のバッファであり、空きが
出来た時点で、メモリ6からキューを取り出して、カレ
ントポインタ17から要求用バッファ3−1または要求
用バッファ3−2へ転送する。
The request buffers 3-1 and 3-2 are buffers for passing the request queue addresses 7 and 8, and when a space is available, the queue is taken out from the memory 6 and the request pointer The data is transferred to the buffer 3-1 or the request buffer 3-2.

【0021】返却用バッファ2−1、2−2は、返却キ
ューアドレス14、15を取り込み、要求用バッファ3
−1または要求用バッファ3−2が空いている時はそこ
へ転送し、空いてないときは、キューをメモリ6へ戻す
ためにネクストポインタ18へ転送する。
The return buffers 2-1 and 2-2 take in the return queue addresses 14 and 15 and
If the buffer -1 or the request buffer 3-2 is empty, the data is transferred to it. If not, the queue is transferred to the next pointer 18 to return the queue to the memory 6.

【0022】このようにして、バッファをポート毎に設
けたので、複数ポートから同時に、キューアドレスの返
却や要求があっても、バッファの値をすぐ使うことがで
き、その間にメモリの読み込みまたは書き込みを行い、
バッファに補充することができる。
Since a buffer is provided for each port in this way, even if a queue address is returned or requested simultaneously from a plurality of ports, the buffer value can be used immediately, and during that time the memory is read or written. Do
The buffer can be refilled.

【0023】[0023]

【発明の効果】以上説明したように、この発明によれ
ば、メモリのアクセスを行うキューアクセス部と各ポー
トの間にバッファを設け、キューアドレスを各ポート毎
に保持するようにしたので、複数のポートから同時に、
キューアドレスの返却や要求があっても、バッファに保
持されている内容を使うことができる。さらにその間に
メモリの読み込みまたは書き込みを行いバッファの補充
を行えば、処理の速度を向上することができるという効
果が得られる。
As described above, according to the present invention, a buffer is provided between a queue access unit for accessing a memory and each port, and a queue address is held for each port. From the port at the same time,
Even if a queue address is returned or requested, the contents held in the buffer can be used. Further, if the buffer is replenished by reading or writing the memory during that time, the effect that the processing speed can be improved can be obtained.

【0024】また、この発明によれば、バッファを返却
用と要求用それぞれに、かつポート毎に設けたので、キ
ューアドレスの返却と要求を同時に受け付けることがで
きるという効果が得られる。
Further, according to the present invention, the buffers are provided for the return and the request, respectively, and for each port. Therefore, there is an effect that the return of the queue address and the request can be simultaneously received.

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

【図1】本発明の一実施形態の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】同実施形態の動作を示す説明図である。FIG. 2 is an explanatory diagram showing an operation of the embodiment.

【図3】従来技術のキュー管理システムの動作を示す説
明図である。
FIG. 3 is an explanatory diagram showing an operation of a conventional queue management system.

【図4】キュー構造を示す説明図である。FIG. 4 is an explanatory diagram showing a queue structure.

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

1・・・キューアクセス部、 2−1〜n・・・返却用バッファ、 3−1〜n・・・要求用バッファ、 4−1〜n・・・返却キューポート、 5−1〜n・・・要求キューポート、 6・・・メモリ。 1 ... Queue access unit, 2-1 to n ... Return buffer, 3-1 to n ... Request buffer, 4-1 to n ... Return queue port, 5-1 to n. ..Request queue port, 6 ... memory.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 データを記憶するメモリのアドレスをキ
ュー構造で管理するキュー管理システムであって、 前記キュー管理システムは、 返却キューまたは要求キューに応じて前記メモリに対し
てアクセスを行うキューアクセス部と、 返却キューポートと前記キューアクセス部との間に設け
られ、返却キューを保持する返却用バッファと、 要求キューポートと前記キューアクセス部との間に設け
られ、要求キューを保持する要求用バッファと、 を備えたことを特徴とするキュー管理システム。
1. A queue management system for managing an address of a memory for storing data in a queue structure, wherein the queue management system accesses the memory according to a return queue or a request queue. A return buffer provided between a return queue port and the queue access unit and holding a return queue; and a request buffer provided between a request queue port and the queue access unit and holding a request queue And a queue management system comprising:
【請求項2】 前記返却用バッファは、 返却キューポートが複数ある場合にそれぞれの返却キュ
ーポートについて1つの返却用バッファを備えたことを
特徴とする請求項1に記載のキュー管理システム。
2. The queue management system according to claim 1, wherein the return buffer includes one return buffer for each return queue port when there are a plurality of return queue ports.
【請求項3】 前記要求用バッファは、 要求キューポートが複数ある場合にそれぞれの要求キュ
ーポートについて1つの要求用バッファを備えたことを
特徴とする請求項1に記載のキュー管理システム。
3. The queue management system according to claim 1, wherein the request buffer includes one request buffer for each request queue port when there are a plurality of request queue ports.
JP6560899A 1999-03-11 1999-03-11 Queue management system Pending JP2000259488A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6560899A JP2000259488A (en) 1999-03-11 1999-03-11 Queue management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6560899A JP2000259488A (en) 1999-03-11 1999-03-11 Queue management system

Publications (1)

Publication Number Publication Date
JP2000259488A true JP2000259488A (en) 2000-09-22

Family

ID=13291907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6560899A Pending JP2000259488A (en) 1999-03-11 1999-03-11 Queue management system

Country Status (1)

Country Link
JP (1) JP2000259488A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9037783B2 (en) 2012-04-09 2015-05-19 Samsung Electronics Co., Ltd. Non-volatile memory device having parallel queues with respect to concurrently addressable units, system including the same, and method of operating the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9037783B2 (en) 2012-04-09 2015-05-19 Samsung Electronics Co., Ltd. Non-volatile memory device having parallel queues with respect to concurrently addressable units, system including the same, and method of operating the same

Similar Documents

Publication Publication Date Title
US7290096B2 (en) Full access to memory interfaces via remote request
JPS58225432A (en) Request buffer device
JPH10228417A (en) Data processor
US5603006A (en) Cache control unit using a plurality of request stacks
WO2024082747A1 (en) Router having cache, routing and switching network system, chip, and routing method
KR100329968B1 (en) Cache controller having dual-port transaction buffers
JP2561261B2 (en) Buffer storage access method
JP3736305B2 (en) Disk cache system and disk cache control method
US6742089B1 (en) Access controller and access method for controlling access from a CPU to a memory based on use states of plural access ports
JP2000259488A (en) Queue management system
EP0587370A1 (en) Method and apparatus for software sharing between multiple controllers
JPH11232213A (en) Data transfer system for input/output device
JPS592058B2 (en) Storage device
JP3183250B2 (en) Queue management system
JP3063501B2 (en) Memory access control method
JP2001154913A (en) Main storage control unit
JP2553128B2 (en) Data buffer device
JPH0833869B2 (en) Data processing device
JP2000029823A (en) Bus access control circuit
JPH0589027A (en) Write buffer provided with monitoring function
JPH01116861A (en) Data transfer system
JPH073977B2 (en) Packet exchange method
JPH1093572A (en) Control method for buffer memory
JPS5854478A (en) Controlling method of main storage
JPS62226366A (en) Shared memory system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20011120