JPH0683580A - Buffer memory - Google Patents
Buffer memoryInfo
- Publication number
- JPH0683580A JPH0683580A JP4157162A JP15716292A JPH0683580A JP H0683580 A JPH0683580 A JP H0683580A JP 4157162 A JP4157162 A JP 4157162A JP 15716292 A JP15716292 A JP 15716292A JP H0683580 A JPH0683580 A JP H0683580A
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory
- signal
- read
- register
- 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.)
- Withdrawn
Links
- 230000015654 memory Effects 0.000 title claims abstract description 64
- 230000004044 response Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 8
- 238000000034 method Methods 0.000 description 6
- 230000010365 information processing Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
- Advance Control (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は情報処理装置等で用いら
れる先入れ先立し方式のバッファメモリに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a first-in-first-out system buffer memory used in an information processing apparatus or the like.
【0002】[0002]
【従来の技術】情報処理装置、特に複数のプロセサを直
列に配置するパイプライン式の回路でよく用いられる先
入れ先立しバッファメモリでは、データの蓄積の状態に
よってさまざまな処理が必要となる。例えば書き込みよ
りも読み出しが頻繁に行われた場合、バッファメモリが
エンプティ状態となるが、読み出し側回路はこれを検出
し読み出しを中止する処理を行う必要がある。2. Description of the Related Art In a first-in-first-out buffer memory, which is often used in an information processing apparatus, particularly a pipeline type circuit in which a plurality of processors are arranged in series, various processes are required depending on the state of data accumulation. For example, when reading is performed more frequently than writing, the buffer memory is in an empty state, but the reading side circuit needs to detect this and stop reading.
【0003】従来、この処理は、バッファメモリがエン
プティ状態になるとエンプティ信号を出力し、読み出し
側回路はエンプティ信号が解除されるまでデータバス上
のデータを引き取らず、読み出し動作のまま待機するの
が一般的であった。Conventionally, in this processing, an empty signal is output when the buffer memory is in an empty state, and the reading side circuit does not receive the data on the data bus until the empty signal is released, and waits for the reading operation. It was common.
【0004】[0004]
【発明が解決しようとする課題】この従来のバッファメ
モリでは、前段のプロセサに比べ後段のプロセサの処理
が速く、バッファメモリが長時間エンプティとなる場
合、また頻繁にエンペティとなる場合には、後段プロセ
サが待機している間、処理時間が無駄となり、またこれ
ら処理を行うための回路が必要でありハードウェアの増
加を招いた。また、エンプティ状態ではなくその他の状
態、例えばバッファメモリ容量中ある規定値が満たされ
たときに対応する処理を行いたい場合、これには対応で
きなかった。In this conventional buffer memory, the processing of the processor in the subsequent stage is faster than that of the processor in the preceding stage, and when the buffer memory becomes empty for a long time or frequently, the latter stage memory is While the processor is on standby, processing time is wasted, and a circuit for performing these processings is required, resulting in an increase in hardware. Further, when it is desired to perform a process corresponding to another state instead of the empty state, for example, when a certain specified value in the buffer memory capacity is satisfied, this cannot be dealt with.
【0005】[0005]
【課題を解決するための手段】本発明のバッファメモリ
は、データ幅Mビット、アドレスNビットの1組のメモ
リに対してメモリ書き込み信号で動作する書き込みポー
トと、メモリ読み出し信号で動作する読み出しポートと
を備えて、書き込みと読み出しを独立して行うことので
きる先入れ先立し方式のバッファメモリにおいて、Mビ
ット幅のデータレジスタと、一定の条件が成立したとき
に、前記メモリの出力を前記データレジスタのデータ出
力に切り替え、前記読み出しポートに導くマルチプレク
サを設けたことを特徴とする。A buffer memory of the present invention is a write port that operates with a memory write signal and a read port that operates with a memory read signal for a set of memories having a data width of M bits and an address of N bits. In a first-in-first-out type buffer memory capable of independently performing writing and reading, an M-bit width data register and an output of the memory when the certain condition is satisfied. A multiplexer for switching to the data output of the data register and leading to the read port is provided.
【0006】[0006]
【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は本発明の第1の実施例を示すブロッ
ク図である。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a first embodiment of the present invention.
【0007】図1において、メモリブロック1はMビッ
ト幅を持つ深さNビットのメモリブロック、書込アドレ
スポインタ2はメモリブロック1への書き込みアドレス
を保持するレジスタ、読出アドレスポインタ3はメモリ
ブロック1からの読み出しアドレスを保持するレジス
タ、データ数カウンタ4はメモリ書き込みの毎にインク
リメント、読み出しの毎にデクリメントされるカウン
タ、コンパレータ5はデータ数カウンタ4の値が“0”
のときエンプティ信号を生成する比較回路、データレジ
スタ6は幅Mビットを持つ深さ1ビットのレジスタ、マ
ルチプレクサ7はメモリブロック1の出力とデータレジ
スタ6の出力をエンプティ信号に応答して切り替える切
替回路である。In FIG. 1, a memory block 1 is a memory block having an M-bit width and a depth of N bits, a write address pointer 2 is a register for holding a write address to the memory block 1, and a read address pointer 3 is a memory block 1. A register for holding a read address from the data counter, the data number counter 4 is a counter that is incremented each time the memory is written, and decremented each time the memory is read, and the comparator 5 has a value of the data number counter 4 of "0".
, A data register 6 is a register having a width of M bits and a depth of 1 bit, and a multiplexer 7 is a switching circuit for switching the output of the memory block 1 and the output of the data register 6 in response to the empty signal. Is.
【0008】前段プロセサ(図示省略)は、メモリブロ
ック1がエンプティのとき読み出しポートに接続された
後段プロセサ(図示省略)へ出力したいメモリエンプテ
ィを示すデータを予めデータレジスタ6へ書き込んでお
き、処理を開始する。メモリブロック1がエンプティに
なるとデータ数カウンタ4が“0”となりコンパレータ
5がマルチプレクサ7を切り替え、読み出しポートには
データレジスタ6内のデータが出力され、後段プロセサ
は直ちにメモリエンプティ時の処理ルーチンを実行す
る。The former processor (not shown) writes in advance to the data register 6 the data indicating the memory empty to be output to the latter processor (not shown) connected to the read port when the memory block 1 is empty, and performs the processing. Start. When the memory block 1 becomes empty, the data number counter 4 becomes "0", the comparator 5 switches the multiplexer 7, the data in the data register 6 is output to the read port, and the subsequent processor immediately executes the processing routine at the time of memory empty. To do.
【0009】本実施例によれば、バッファメモリがエン
プティ時の後段プロセサの待機無駄時間をなくすること
ができる。According to the present embodiment, it is possible to eliminate the waiting dead time of the subsequent processor when the buffer memory is empty.
【0010】図2は本発明の第2の実施例を示すブロッ
ク図であり、図1に示した実施例における構成部分は共
通な参照数字で示している。FIG. 2 is a block diagram showing a second embodiment of the present invention, and the constituent parts in the embodiment shown in FIG. 1 are designated by common reference numerals.
【0011】本実施例においては、データ数レジスタ8
が追加されており、コンパレータ7はデータ数カウンタ
4との比較対象をこのデータ数レジスタ8としている。In this embodiment, the data number register 8
Is added, and the comparator 7 uses the data number register 8 as a comparison target with the data number counter 4.
【0012】図2において、処理に先立ち、予め前記プ
ロセサが任意のデータ数をデータ数レジスタ8へ、任意
のデータをデータレジスタ6へ書き込んでおき、処理を
開始する。メモリプロック1中のデータ数がデータ数レ
ジスタ8の設定値と等しくなるとコンパレータ5がマル
チプレクサ7を切り替え、読み出しポートにはデータレ
ジスタ6のデータが出力され、後段プロセサは直ちに所
定のルーチンを実行する。In FIG. 2, prior to the processing, the processor writes in advance an arbitrary number of data in the data number register 8 and an arbitrary data in the data register 6, and starts the processing. When the number of data in the memory block 1 becomes equal to the set value of the data number register 8, the comparator 5 switches the multiplexer 7, the data of the data register 6 is output to the read port, and the subsequent processor immediately executes a predetermined routine.
【0013】本実施例によれば、バッファメモリ中に任
意のデータ数が蓄積されたときに後段のプロセサに任意
のデータを入力することができる。According to the present embodiment, it is possible to input arbitrary data to the subsequent processor when an arbitrary number of data is accumulated in the buffer memory.
【0014】図3は本発明の第3の実施例を示すブロッ
ク図であり、図1に示した実施例におけるデータ数カウ
ンタ4とコンパレータ5の代りが削除され、アービタ9
が設けられている。FIG. 3 is a block diagram showing a third embodiment of the present invention. The data number counter 4 and the comparator 5 in the embodiment shown in FIG.
Is provided.
【0015】アービタ9はマルチプレクサ7の制御信号
生成回路であり、初期値はメモリブロック1側、データ
レジスタW信号が入力されるとデータレジスタ6側、そ
の後メモリ読み出し信号が入力された後はメモリブロッ
ク1側へ復旧制御する信号を生成する。The arbiter 9 is a control signal generation circuit of the multiplexer 7. The initial value is the memory block 1 side, the data register 6 side when the data register W signal is input, and the memory block after the memory read signal is input. Generates a signal for recovery control to the 1 side.
【0016】図3において、メモリブロック1を通して
前段のプロセサと後段のプロセサが処理中、前段プロセ
サが任意のデータをデータレジスタ6に書き込むと、ア
ービタ9は直ちにマルチプレクサ7をデータレジスタ6
側へ切り替え、次の後段プロセサのメモリ読み出し処理
にて当該データが読み出され、後段プロセサは現在処理
を中断し、所定のルーチンを実行する。In FIG. 3, while the front-stage processor and the rear-stage processor are processing through the memory block 1, when the front-stage processor writes arbitrary data into the data register 6, the arbiter 9 immediately causes the multiplexer 7 to transfer the data to the data register 6.
The data is read in the memory read process of the next post-processor, and the post-processor interrupts the present process and executes a predetermined routine.
【0017】アービタ9はその後、マルチプレクサ7を
メモリブロック1側へ復帰切り替えし、後段プロセサは
所定処理完了後メモリ1内に残っていたデータを引き続
き読み込み実行を続けることができる。After that, the arbiter 9 switches the multiplexer 7 back to the memory block 1 side, and the latter-stage processor can continue to read and execute the data remaining in the memory 1 after the completion of the predetermined processing.
【0018】本実施例によれば、処理中にバッファメモ
リの現在内容に関わらず後段のプロセサに任意のデータ
を直ちに入力し、所定処理完了後直ちに元の処理に復帰
することができるので、処理の柔軟性を高めることがで
きる。According to the present embodiment, it is possible to immediately input arbitrary data to the subsequent processor regardless of the current contents of the buffer memory during processing, and to immediately return to the original processing after the completion of predetermined processing. The flexibility of can be increased.
【0019】図4は本発明の第4の実施例のブロック図
を示し、図3に示した実施例における書込アドレスポイ
ンタ2,読出アドレスポインタ3の代りに、それぞれ書
込アドレスポインタ10,読出アドレスポインタ11を
設けている。書込アドレスポインタ10と、読込アドレ
スポインタ11は、それぞれ書込アドレスポインタ2、
読込アドレスポインタ3にリセット入力が付加されたレ
ジスタである。FIG. 4 is a block diagram of a fourth embodiment of the present invention. Instead of the write address pointer 2 and the read address pointer 3 in the embodiment shown in FIG. 3, a write address pointer 10 and a read address pointer, respectively. An address pointer 11 is provided. The write address pointer 10 and the read address pointer 11 are the write address pointer 2 and the read address pointer 11, respectively.
This is a register in which a reset input is added to the read address pointer 3.
【0020】図4においては、メモリブロック1を通し
て前段のプロセサと後段のプロセサが処理中、前段プロ
セサが任意のデータをデータレジスタ6に書き込むと、
アービタ9は直ちにマルチプレクサ7をデータレジスタ
6側へ切り替え、次の後段プロセサのメモリ読み出し処
理にて当該データが読み出され、後段プロセサは現在処
理を中断し、所定のルーチンを実行する。In FIG. 4, when the processor of the front stage and the processor of the rear stage are processing through the memory block 1 and the processor of the front stage writes arbitrary data to the data register 6,
The arbiter 9 immediately switches the multiplexer 7 to the data register 6 side, the data is read by the memory reading process of the next post-stage processor, and the post-stage processor interrupts the present process and executes a predetermined routine.
【0021】同時に、書込アドレスポインタ10と読出
アドレスポインタ11は初期化され、その後アービタ9
はマルチプレクサ7をメモリブロック1側へ復帰切り替
えし、後段プロセサは処理完了後、新たに前段プロセサ
がメモリに書き込んだデータに従って処理を行う。At the same time, the write address pointer 10 and the read address pointer 11 are initialized, and then the arbiter 9
Switches the multiplexer 7 back to the memory block 1 side, and after the processing by the latter stage processor is completed, processing is newly performed according to the data written in the memory by the former stage processor.
【0022】本実施例によれば、処理中にバッファメモ
リの現在内容を全て破棄し後段のプロセサに任意のデー
タを直ちに入力することができ、処理の柔軟性を高める
ことができる。According to the present embodiment, it is possible to discard all the current contents of the buffer memory during processing, and immediately input arbitrary data to the processor at the subsequent stage, which makes it possible to enhance processing flexibility.
【0023】[0023]
【発明の効果】本発明は、以上のような構成の採用によ
り、エンプティ処理回路を特に設ける必要がなくなるの
で、ハードウェア量を削減できるという効果を有する。The present invention has the effect of reducing the amount of hardware because it is not necessary to provide an empty processing circuit by adopting the above-described configuration.
【図1】本発明の第1の実施例を示すブロック図であ
る。FIG. 1 is a block diagram showing a first embodiment of the present invention.
【図2】本発明の第2の実施例を示すブロック図であ
る。FIG. 2 is a block diagram showing a second embodiment of the present invention.
【図3】本発明の第3の実施例を示すブロック図であ
る。FIG. 3 is a block diagram showing a third embodiment of the present invention.
【図4】本発明の第4の実施例を示すブロック図であ
る。FIG. 4 is a block diagram showing a fourth embodiment of the present invention.
1 メモリブロック 2 書込アドレスポインタ 3 読出アドレスポインタ 4 データ数カウンタ 5 コンパレータ 6 データレジスタ 7 マルチプレクサ 8 データ数レジスタ 9 アービタ 10 書込アドレスポインタ 11 読出アドレスポインタ 1 Memory Block 2 Write Address Pointer 3 Read Address Pointer 4 Data Number Counter 5 Comparator 6 Data Register 7 Multiplexer 8 Data Number Register 9 Arbiter 10 Write Address Pointer 11 Read Address Pointer
Claims (4)
1組のメモリに対してメモリ書き込み信号で動作する書
き込みポートと、メモリ読み出し信号で動作する読み出
しポートとを備えて、書き込みと読み出しを独立して行
うことのできる先入れ先立し方式のバッファメモリにお
いて、 Mビット幅のデータレジスタと、 一定の条件が成立したときに、前記メモリの出力を前記
データレジスタのデータ出力に切り替え、前記読み出し
ポートに導くマルチプレクサを設けたことを特徴とする
バッファメモリ。1. A write port that operates with a memory write signal and a read port that operates with a memory read signal are provided for a set of memories having a data width of M bits and an address of N bits, and writing and reading are performed independently. In a first-in-first-out system buffer memory that can be performed by: an M-bit width data register, and when a certain condition is satisfied, the output of the memory is switched to the data output of the data register, and the read port A buffer memory characterized in that a multiplexer is provided for leading to.
トされ、前記メモリ読出し信号でデクリメントされるデ
ータ数カウンタと、該データ数カウンタが“0”である
ときエンプティ信号を出力するコンパレータとを設け、
前記マルチプレクサは前記エンプティ信号に応答して前
記切り替えを行なうことを特徴とする請求項1記載のバ
ッファメモリ。2. A data number counter that is incremented by the memory write signal and decremented by the memory read signal, and a comparator that outputs an empty signal when the data number counter is “0” are provided.
2. The buffer memory according to claim 1, wherein the multiplexer performs the switching in response to the empty signal.
トされ、前記メモリ読み出し信号でデクリメントされる
データ数カウンタと、1組のNビットのデータ数レジス
タと、前記データ数カウンタと前記データ数レジスタの
内容を比較し一致したときデータ数一致信号を出力すデ
ータ数コンパレータとを設け、前記マルチプレクサは前
記データ数一致信号が出力されているときに前記切り替
えを行なうことを特徴とする請求項1記載のバッファメ
モリ。3. A data number counter incremented by the memory write signal and decremented by the memory read signal, a set of N-bit data number registers, and the contents of the data number counter and the data number register are compared. 2. The buffer according to claim 1, further comprising: a data number comparator that outputs a data number matching signal when the data numbers match, and the multiplexer performs the switching when the data number matching signal is output. memory.
前記データレジスタ、また前記メモリ読み出し信号で前
記メモリの出力を前記マルチプレクサが受け入れるよう
な制御信号を発生するアービタを設けたことを特徴とす
る請求項1記載のバッファメモリ。4. An arbiter for generating a control signal such that the write signal to the data register is received by the data register and the memory read signal is received by the multiplexer by the memory read signal. Buffer memory according to 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4157162A JPH0683580A (en) | 1992-06-17 | 1992-06-17 | Buffer memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4157162A JPH0683580A (en) | 1992-06-17 | 1992-06-17 | Buffer memory |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0683580A true JPH0683580A (en) | 1994-03-25 |
Family
ID=15643546
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4157162A Withdrawn JPH0683580A (en) | 1992-06-17 | 1992-06-17 | Buffer memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0683580A (en) |
-
1992
- 1992-06-17 JP JP4157162A patent/JPH0683580A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6829660B2 (en) | Supercharge message exchanger | |
| EP0373291B1 (en) | Digital signal processor | |
| US4222103A (en) | Real time capture registers for data processor | |
| KR970011208B1 (en) | Pipelined Write Buffer Registers | |
| US5440717A (en) | Computer pipeline including dual-ported, content-addressable writebuffer | |
| US20060294344A1 (en) | Computer processor pipeline with shadow registers for context switching, and method | |
| JPH09330236A (en) | Microprocessor and its peripheral devices | |
| US5799161A (en) | Method and apparatus for concurrent data routing | |
| JPH04279945A (en) | Memory circuit | |
| JPH0683580A (en) | Buffer memory | |
| US6715021B1 (en) | Out-of-band look-ahead arbitration method and/or architecture | |
| JPH06103225A (en) | Chain type DMA system and DMA controller therefor | |
| JPH09212360A (en) | Data processing device | |
| JPH0736821A (en) | Dma transfer controller | |
| US6199143B1 (en) | Computing system with fast data transfer of CPU state related information | |
| JP3028932B2 (en) | Input/Output Buffer Memory Circuit | |
| JPS63123130A (en) | Pipeline control system | |
| JP2812610B2 (en) | Pipeline control method | |
| JPS63118969A (en) | Information processor | |
| US6963961B1 (en) | Increasing DSP efficiency by independent issuance of store address and data | |
| CN121326409A (en) | Processor system and interrupt response method | |
| JP2663417B2 (en) | Memory circuit | |
| KR950014159B1 (en) | Fifo register control method | |
| SU1341636A1 (en) | Program interruption device | |
| JPH05101016A (en) | Cache snooping controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19990831 |