JP3343207B2 - Memory interface device - Google Patents

Memory interface device

Info

Publication number
JP3343207B2
JP3343207B2 JP27175197A JP27175197A JP3343207B2 JP 3343207 B2 JP3343207 B2 JP 3343207B2 JP 27175197 A JP27175197 A JP 27175197A JP 27175197 A JP27175197 A JP 27175197A JP 3343207 B2 JP3343207 B2 JP 3343207B2
Authority
JP
Japan
Prior art keywords
output
input
buffer
signal
memory
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
Application number
JP27175197A
Other languages
Japanese (ja)
Other versions
JPH11112942A (en
Inventor
陽一郎 三木
匡弘 谷
和貴 二宮
尚哉 ▲徳▼永
賢太 寒川
裕 宮口
雄二 矢口
強 秋山
顕哉 足立
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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial 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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP27175197A priority Critical patent/JP3343207B2/en
Priority to US09/165,785 priority patent/US6453394B2/en
Priority to EP06011660A priority patent/EP1691296A3/en
Priority to DE69836786T priority patent/DE69836786T2/en
Priority to EP98118641A priority patent/EP0908827B8/en
Publication of JPH11112942A publication Critical patent/JPH11112942A/en
Priority to US10/195,975 priority patent/US6732252B2/en
Application granted granted Critical
Publication of JP3343207B2 publication Critical patent/JP3343207B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Television Systems (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル信号をシ
ングルポートメモリに書き込みおよび読み出しするため
のメモリインターフェース装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a memory interface device for writing and reading digital signals to and from a single port memory.

【0002】[0002]

【従来の技術】近年、音声信号処理および映像信号処理
分野において、信号のデジタル処理が普及してきてい
る。信号源のマルチメディア化によりデジタル信号に対
してより高度な処理内容が要求されてきているが、その
際にメモリを利用した処理が重要視されている。例え
ば、映像信号には、NTSC、PAL、HDTV、VG
A、SVGA等とさまざまな種類があり、さらに表示デ
バイスもCRT、液晶、プラズマディスプレイ等多岐に
わたっている。このような様々な種類の映像信号のフォ
ーマットを変換したり、複数の非同期の映像信号を合成
して出力するためには、メモリを用いたデジタル信号処
理システムが必要不可欠である。これらの処理では映像
信号を途切れることなく書き込み、読み出しを行う高速
リアルタイム動作が要求される。
2. Description of the Related Art In recent years, digital processing of signals has become widespread in the audio signal processing and video signal processing fields. The use of multimedia as a signal source has demanded higher processing contents for digital signals. At that time, processing using a memory is regarded as important. For example, video signals include NTSC, PAL, HDTV, VG
There are various types such as A, SVGA, and the like, and display devices are also diversified such as CRT, liquid crystal, and plasma display. A digital signal processing system using a memory is indispensable for converting the format of such various kinds of video signals and for synthesizing and outputting a plurality of asynchronous video signals. These processes require a high-speed real-time operation for writing and reading video signals without interruption.

【0003】従来、映像信号をリアルタイムにメモリへ
読み書きを行う処理はFIFO等のデュアルポートメモ
リを用いることにより実現されてきた。あるいは2つの
シングルポートメモリの書き込みと読み出しを交互に制
御して、リアルタイム処理を実現していた。また、映像
フォーマットの変換や、複数の非同期系の信号を扱う場
合は、専用のメモリ制御装置を設計することによりそれ
ぞれの動作を実現していた。
Conventionally, processing for reading and writing video signals to and from a memory in real time has been realized by using a dual port memory such as a FIFO. Alternatively, real-time processing has been realized by alternately controlling writing and reading of two single-port memories. Also, when converting video formats and handling a plurality of asynchronous signals, each operation has been realized by designing a dedicated memory control device.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記の
ような構成では、映像信号をリアルタイム処理するため
に少なくともシングルポートのメモリ2個、もしくはデ
ュアルポートのメモリ1個を必要とし、全体のシステム
が高価になるという問題があった。さらに、前記メモリ
を使用しても、扱える映像信号のビット幅やクロック周
波数が限定され、柔軟なシステムが実現できないという
課題を有していた。
However, in the above configuration, at least two single-port memories or one dual-port memory are required for real-time processing of a video signal, and the entire system is expensive. There was a problem of becoming. Furthermore, even if the memory is used, there is a problem that a bit width and a clock frequency of a video signal that can be handled are limited, and a flexible system cannot be realized.

【0005】本発明の目的は、単一のシングルポートメ
モリを用いて映像信号のリアルタイム処理を実現するこ
とができるメモリインターフェース装置を提供すること
にある。
An object of the present invention is to provide a memory interface device capable of realizing a video signal in real time using a single single port memory.

【0006】本発明の他の目的は、単一のシングルポー
トメモリを用いて映像信号のリアルタイム処理を実現す
ることができるとともに、入出力信号のビット数、シン
グルポートメモリのバス幅に依存しないシステムを実現
することができるメモリインターフェース装置を提供す
ることにある。
Another object of the present invention is to provide a system which can realize real-time processing of a video signal using a single single-port memory and which does not depend on the number of bits of input / output signals and the bus width of the single-port memory. Is to provide a memory interface device that can realize the above.

【0007】本発明の他の目的は、単一のシングルポー
トメモリを用いて映像信号のリアルタイム処理を実現す
ることができるとともに、複数の非同期の映像信号処理
を可能にするメモリインターフェース装置を提供するこ
とにある。
Another object of the present invention is to provide a memory interface device capable of realizing video signal real-time processing using a single single-port memory and enabling a plurality of asynchronous video signal processing. It is in.

【0008】[0008]

【課題を解決するための手段】本発明のメモリインター
フェース装置は、複数の入力領域を有する入力バッファ
と、複数の出力領域を有する出力バッファと、前記入力
バッファと前記出力バッファと所定のシングルポートメ
モリとを制御する制御部とを備え、前記制御部は、前記
入力バッファの前記複数の入力領域のうちの特定の入力
領域に蓄積された信号を前記シングルポートメモリに転
送する間に、前記特定の入力領域以外の入力領域に入力
信号を蓄積するように前記入力バッファおよび前記シン
グルポートメモリを制御し、前記制御部は、前記出力バ
ッファの前記複数の出力領域のうちの特定の出力領域に
蓄積された信号を出力信号として出力する間に、前記シ
ングルポートメモリに格納された信号を前記特定の出力
領域以外の出力領域に転送するように前記出力バッファ
および前記シングルポートメモリを制御する。これによ
り、上記目的が達成される。
A memory interface device according to the present invention comprises an input buffer having a plurality of input areas, an output buffer having a plurality of output areas, the input buffer, the output buffer and a predetermined single port memory. And a control unit that controls the control unit, wherein the control unit transmits the signal stored in a specific input area of the plurality of input areas of the input buffer to the single port memory while transferring the specific The input buffer and the single-port memory are controlled to store an input signal in an input area other than an input area, and the control unit is configured to store the input signal in a specific output area of the plurality of output areas of the output buffer. While the output signal is output as an output signal, the signal stored in the single port memory is output to an output area other than the specific output area. Controlling said output buffer and the single port memory to forward. Thereby, the above object is achieved.

【0009】前記メモリインターフェース装置は、前記
入力バッファの出力バス幅を前記シングルポートメモリ
の入力バス幅に変換し、かつ、前記シングルポートメモ
リの出力バス幅を前記出力バッファの入力バス幅に変換
するバス幅変換回路をさらに備えていてもよい。
The memory interface device converts an output bus width of the input buffer into an input bus width of the single port memory, and converts an output bus width of the single port memory into an input bus width of the output buffer. A bus width conversion circuit may be further provided.

【0010】前記入力バッファは、前記入力バッファの
ビット方向とワード方向とに対応して複数の入力領域に
分割されており、前記出力バッファは、前記出力バッフ
ァのビット方向とワード方向とに対応して複数の出力領
域に分割されていてもよい。
The input buffer is divided into a plurality of input areas corresponding to the bit direction and the word direction of the input buffer, and the output buffer corresponds to the bit direction and the word direction of the output buffer. May be divided into a plurality of output areas.

【0011】前記入力バッファおよび前記出力バッファ
のそれぞれは、前記シングルポートメモリに対するアク
セス要求信号を前記制御部に出力し、前記制御部は、所
定の基準に従って前記アクセス要求信号に優先順位をつ
ける調停回路を備えていてもよい。
Each of the input buffer and the output buffer outputs an access request signal to the single port memory to the control unit, and the control unit assigns a priority to the access request signal according to a predetermined standard. May be provided.

【0012】前記メモリインターフェース装置は、前記
入力バッファから出力される信号を前記出力バッファに
直接的に書き込む回路をさらに備えていてもよい。
[0012] The memory interface device may further include a circuit for directly writing a signal output from the input buffer to the output buffer.

【0013】[0013]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(実施の形態1)図1は、本発明のメモリインターフェ
ース装置の構成を示す。図1に示されるように、メモリ
インターフェース装置は、入力バッファ部1と、出力バ
ッファ部2と、入力バッファ部1と出力バッファ部2と
シングルポートメモリ6とを制御するコントロール部3
とを備えている。
Embodiment 1 FIG. 1 shows a configuration of a memory interface device of the present invention. As shown in FIG. 1, the memory interface device includes an input buffer unit 1, an output buffer unit 2, a control unit 3 for controlling the input buffer unit 1, the output buffer unit 2, and the single port memory 6.
And

【0014】コントロール部3は、同期信号に応答して
入力バッファ制御信号を入力バッファ部1に出力し、同
期信号に応答して出力バッファ制御信号を出力バッファ
部2に出力する。また、コントロール部3は、入力バッ
ファ部1および出力バッファ部2からシングルポートメ
モリ6に対するアクセス要求信号を受け取り、アクセス
要求信号に応答してアドレスや制御信号をシングルポー
トメモリ6に出力する。
The control section 3 outputs an input buffer control signal to the input buffer section 1 in response to the synchronization signal, and outputs an output buffer control signal to the output buffer section 2 in response to the synchronization signal. Further, the control unit 3 receives an access request signal for the single port memory 6 from the input buffer unit 1 and the output buffer unit 2, and outputs an address and a control signal to the single port memory 6 in response to the access request signal.

【0015】本実施の形態では、メモリインターフェー
ス装置に入力される信号は映像信号であり、映像信号は
輝度信号Yと色差信号Cとを含むと仮定する。
In the present embodiment, it is assumed that the signal input to the memory interface device is a video signal, and that the video signal includes a luminance signal Y and a color difference signal C.

【0016】入力バッファ部1は、輝度信号Y用の入力
バッファ1aと色差信号C用の入力バッファ1bとを有
しており、出力バッファ部2は、輝度信号Y用の出力バ
ッファ2aと色差信号C用の出力バッファ2bとを有し
ている。輝度信号Yは、入力バッファ1aを介してシン
グルポートメモリ6に格納され、シングルポートメモリ
6から読み出された信号は出力バッファ2aを介して出
力される。色差信号Cは、入力バッファ1bを介してシ
ングルポートメモリ6に格納され、シングルポートメモ
リ6から読み出された信号は出力バッファ2bを介して
出力される。ただし、入力バッファ部1および出力バッ
ファ部2が入力信号の用途によって分割されていること
は本発明の本質ではない。入力バッファ部1が単一の入
力バッファを含む場合、または、出力バッファ部2が単
一の出力バッファを含む場合も本発明の範囲に含まれ
る。
The input buffer unit 1 has an input buffer 1a for a luminance signal Y and an input buffer 1b for a chrominance signal C. The output buffer unit 2 has an output buffer 2a for a luminance signal Y and a chrominance signal. C output buffer 2b. The luminance signal Y is stored in the single port memory 6 via the input buffer 1a, and the signal read from the single port memory 6 is output via the output buffer 2a. The color difference signal C is stored in the single port memory 6 via the input buffer 1b, and the signal read from the single port memory 6 is output via the output buffer 2b. However, it is not the essence of the present invention that the input buffer unit 1 and the output buffer unit 2 are divided according to the use of the input signal. The case where the input buffer unit 1 includes a single input buffer or the case where the output buffer unit 2 includes a single output buffer is also included in the scope of the present invention.

【0017】図2は、入力バッファ1aの構成を示す。
入力バッファ1bも入力バッファ1aと同一の構成を有
している。
FIG. 2 shows the configuration of the input buffer 1a.
The input buffer 1b has the same configuration as the input buffer 1a.

【0018】図2において、黒丸7と白丸8は入力バッ
ファ1aの1ビットの格納単位であるメモリセルを示
す。黒丸7はメモリセルに1ビットのデータが格納され
た状態を示し、白丸8はメモリセルにデータが格納され
ていない空の状態を示す。また、入力バッファ1aに入
力される入力信号(輝度信号Y)のビット幅はnビッ
ト、入力バッファ1aの大きさはm×nビットである。
ここで、nは任意の正の整数、mは任意の正の整数の2
倍である。
In FIG. 2, black circles 7 and white circles 8 indicate memory cells which are 1-bit storage units of the input buffer 1a. A black circle 7 indicates a state where 1-bit data is stored in the memory cell, and a white circle 8 indicates an empty state where no data is stored in the memory cell. The bit width of the input signal (luminance signal Y) input to the input buffer 1a is n bits, and the size of the input buffer 1a is m × n bits.
Here, n is any positive integer, and m is any positive integer 2
It is twice.

【0019】入力信号は、最初に、入力バッファ1aの
第0列目のメモリセルに格納される。図2は、入力信号
が第0列目から第2列目までのメモリセルに格納されて
いる状態を示している。
The input signal is first stored in the memory cell in the 0th column of the input buffer 1a. FIG. 2 shows a state where the input signal is stored in the memory cells of the 0th column to the 2nd column.

【0020】入力バッファ1aは、領域I1と領域I2
に論理的に分割されている。領域I1は、第0列目から
第(m−2)/2列目までのメモリセルを含む。領域I
2は、第m/2列目から第(m−1)列目までのメモリ
セルを含む。入力バッファ1aからシングルポートメモ
リ6へのデータの書き込み(転送)は、領域I1または
領域I2のいずれか一方のメモリセルのすべてにデータ
が格納されたときに起こる。
The input buffer 1a is logically divided into a region I 1 and region I 2. Region I 1 includes a memory cell from the 0th column to the (m-2) / 2 column. Area I
2 includes memory cells from the (m / 2) th column to the (m-1) th column. Writing data from the input buffer 1a to a single port memory 6 (transfer) occurs when the data are stored in all of one of the memory cell area I 1 or region I 2.

【0021】図3は、入力信号が入力バッファ1aに一
時的に蓄えられた後、シングルポートメモリ6に書き込
まれるタイミングを示す。入力信号が入力バッファ1b
に一時的に蓄えられた後、シングルポートメモリ6に書
き込まれるタイミングも同様である。
FIG. 3 shows the timing at which the input signal is temporarily stored in the input buffer 1a and then written into the single port memory 6. Input signal is input buffer 1b
The same applies to the timing at which the data is temporarily stored in the single port memory 6 and then written to the single port memory 6.

【0022】図3に示す例では、水平同期信号が基準信
号として使用される。もちろん、水平同期信号以外の信
号を基準信号として使用してもよい。
In the example shown in FIG. 3, a horizontal synchronizing signal is used as a reference signal. Of course, a signal other than the horizontal synchronization signal may be used as the reference signal.

【0023】入力バッファイネーブル信号は、入力バッ
ファ1aへの書き込みを許可するか否かを示す信号であ
る。図3に示す例では、入力バッファイネーブル信号の
Hレベルはイネーブル状態を示し、入力バッファイネー
ブル信号のLレベルはディスエーブル状態を示す。コン
トロール部3は、水平同期信号に応答して入力バッファ
イネーブル信号を入力バッファ1aに出力する。入力バ
ッファイネーブル信号は、入力バッファ制御信号の一種
である。
The input buffer enable signal is a signal indicating whether writing to the input buffer 1a is permitted. In the example shown in FIG. 3, the H level of the input buffer enable signal indicates an enabled state, and the L level of the input buffer enable signal indicates a disabled state. The control unit 3 outputs an input buffer enable signal to the input buffer 1a in response to the horizontal synchronization signal. The input buffer enable signal is a type of the input buffer control signal.

【0024】シングルポートメモリ6への書き込み要求
は、領域I1または領域I2のいずれか一方のメモリセル
のすべてにデータが格納されたときに起こる。従って、
入力バッファイネーブル信号がHレベルである場合に
は、シングルポートメモリ6への書き込み要求はm/2
サイクル毎に発生する。
A write request to the single port memory 6 occurs when data is stored in all of the memory cells in either the region I 1 or the region I 2 . Therefore,
When the input buffer enable signal is at the H level, the write request to the single port memory 6 is m / 2
Occurs every cycle.

【0025】最初のシングルポートメモリ6への書き込
み要求に応答して、入力バッファ1aの領域I1に蓄積
されたデータがシングルポートメモリ6に転送され、そ
こに書き込まれる。入力バッファ1aの領域I1に蓄積
されたデータがシングルポートメモリ6に転送されてい
る間に、入力バッファ1aの領域I2に入力信号が蓄積
される。
[0025] In response to a write request to the first single-port memory 6, the data stored in the area I 1 of the input buffer 1a is transferred to the single port memory 6, are written to it. While the data stored in the region I 1 of the input buffer 1a is transferred to the single port memory 6, the input signal is accumulated in region I 2 of the input buffer 1a.

【0026】その次のシングルポートメモリ6への書き
込み要求に応答して、入力バッファ1aの領域I2に蓄
積されたデータがシングルポートメモリ6に転送され、
そこに書き込まれる。入力バッファ1aの領域I2に蓄
積されたデータがシングルポートメモリ6に転送されて
いる間に、入力バッファ1aの領域I1に入力信号が蓄
積される。以降、同様の処理が繰り返される。
[0026] As a response to the next write request to the single port memory 6, data stored in the area I 2 of the input buffer 1a is transferred to the single port memory 6,
Written there. While the data stored in the area I 2 of the input buffer 1a is transferred to the single port memory 6, the input signal is accumulated in the region I 1 of the input buffer 1a. Thereafter, the same processing is repeated.

【0027】このように、入力バッファ1aを2つの領
域に分割することにより、一方の領域に蓄積されたデー
タをシングルポートメモリ6に転送している間に、他方
の領域に入力信号を蓄積することができる。これによ
り、入力信号の入力バッファ1aへの蓄積を停止するこ
となく、入力バッファ1aからシングルポートメモリ6
にデータを転送することができる。
As described above, by dividing the input buffer 1a into two areas, while transferring the data stored in one area to the single port memory 6, the input signal is stored in the other area. be able to. As a result, without stopping the accumulation of the input signal in the input buffer 1a, the single-port memory 6
Can transfer the data.

【0028】なお、図2では、入力バッファ1aを2つ
の領域に分割しているが、分割される領域の数は2には
限定されない。入力バッファ1aをL個の領域に分割し
てもよい。ここで、Lは、2以上の自然数である。ま
た、入力信号のビット数は、入力バッファ1aの行アド
レスサイズ≧入力信号のビット数の関係を満たしていれ
ば何ビットでもよい。入力バッファ1bについても同様
である。
Although the input buffer 1a is divided into two areas in FIG. 2, the number of divided areas is not limited to two. The input buffer 1a may be divided into L areas. Here, L is a natural number of 2 or more. The number of bits of the input signal may be any number as long as the relationship of row address size of input buffer 1a ≧ number of bits of input signal is satisfied. The same applies to the input buffer 1b.

【0029】図4は、出力バッファ2aの構成を示す。
出力バッファ2bも入力バッファ2aと同一の構成を有
している。
FIG. 4 shows the configuration of the output buffer 2a.
The output buffer 2b has the same configuration as the input buffer 2a.

【0030】図4において、黒丸7と白丸8は出力バッ
ファ2aの1ビットの格納単位であるメモリセルを示
す。黒丸7はメモリセルに1ビットのデータが格納され
た状態を示し、白丸8はメモリセルにデータが格納され
ていない空の状態を示す。また、出力バッファ2aから
出力される出力信号(輝度信号Y)のビット幅はnビッ
ト、出力バッファ2aの大きさはm×nビットである。
ここで、n、mは任意の正の整数である。
In FIG. 4, black circles 7 and white circles 8 indicate memory cells as 1-bit storage units of the output buffer 2a. A black circle 7 indicates a state where 1-bit data is stored in the memory cell, and a white circle 8 indicates an empty state where no data is stored in the memory cell. The bit width of the output signal (luminance signal Y) output from the output buffer 2a is n bits, and the size of the output buffer 2a is m × n bits.
Here, n and m are arbitrary positive integers.

【0031】出力信号は、最初に、出力バッファ2aの
第0列目のメモリセルから出力される。図4は、第0列
目から第2列目までのメモリセルに格納されていたデー
タが出力された状態を示している。
The output signal is first output from the memory cell in the 0th column of the output buffer 2a. FIG. 4 shows a state where the data stored in the memory cells in the 0th column to the second column is output.

【0032】出力バッファ2aは、領域O1と領域O2
に論理的に分割されている。領域O1は、第0列目から
第(m−2)/2列目までのメモリセルを含む。領域O
2は、第m/2列目から第(m−1)列目までのメモリ
セルを含む。シングルポートメモリ6から出力バッファ
2aへのデータの読み出し(転送)は、領域O1または
領域O2のいずれか一方のメモリセルのすべてが空にな
ったときに起こる。
The output buffer 2a is logically divided into a region O 1 and area O 2. The region O 1 includes memory cells from the 0th column to the (m−2) / 2th column. Area O
2 includes memory cells from the (m / 2) th column to the (m-1) th column. Reading of data from the single port memory 6 to the output buffer 2a (transfer) occurs when all of the one of the memory cell area O 1 or area O 2 is empty.

【0033】図5は、シングルポートメモリ6から読み
出されたデータが出力バッファ2aに一時的に蓄えられ
た後、メモリインターフェース装置の外部に出力される
タイミングを示す。シングルポートメモリ6から読み出
されたデータが出力バッファ2bに一時的に蓄えられた
後、メモリインターフェース装置の外部に出力されるタ
イミングも同様である。
FIG. 5 shows the timing at which the data read from the single port memory 6 is temporarily stored in the output buffer 2a and then output outside the memory interface device. The same applies to the timing at which the data read from the single port memory 6 is temporarily stored in the output buffer 2b and then output to the outside of the memory interface device.

【0034】図5に示す例では、水平同期信号が基準信
号として使用される。もちろん、水平同期信号以外の信
号を基準信号として使用してもよい。
In the example shown in FIG. 5, a horizontal synchronizing signal is used as a reference signal. Of course, a signal other than the horizontal synchronization signal may be used as the reference signal.

【0035】出力バッファイネーブル信号は、出力バッ
ファ2aからの読み出しを許可するか否かを示す信号で
ある。図5に示す例では、出力バッファイネーブル信号
のHレベルはイネーブル状態を示し、出力バッファイネ
ーブル信号のLレベルはディスエーブル状態を示す。コ
ントロール部3は、水平同期信号に応答して出力バッフ
ァイネーブル信号を出力バッファ2aに出力する。出力
バッファイネーブル信号は、出力バッファ制御信号の一
種である。
The output buffer enable signal is a signal indicating whether or not reading from the output buffer 2a is permitted. In the example shown in FIG. 5, the H level of the output buffer enable signal indicates an enabled state, and the L level of the output buffer enable signal indicates a disabled state. The control unit 3 outputs an output buffer enable signal to the output buffer 2a in response to the horizontal synchronization signal. The output buffer enable signal is one type of an output buffer control signal.

【0036】シングルポートメモリ6への読み出し要求
は、領域O1または領域O2のいずれか一方のメモリセル
のすべてが空になったときに起こる。従って、出力バッ
ファイネーブル信号がHレベルである場合には、シング
ルポートメモリ6への読み出し要求はm/2サイクル毎
に発生する。
A read request to the single port memory 6 occurs when all of the memory cells in either the region O 1 or the region O 2 become empty. Therefore, when the output buffer enable signal is at the H level, a read request to the single port memory 6 occurs every m / 2 cycles.

【0037】水平同期信号がHレベルになったとき、出
力バッファ2aは空の状態であると仮定する。この場
合、最初のシングルポートメモリ6への読み出し要求に
応答して、シングルポートメモリ6から読み出されたデ
ータが出力バッファ2aの領域O1に転送され、そこに
書き込まれる。
It is assumed that the output buffer 2a is empty when the horizontal synchronizing signal goes high. In this case, in response to a read request to the first single-port memory 6, the data read out from the single port memory 6 is transferred to the area O 1 of the output buffer 2a, and written therein.

【0038】出力バッファイネーブル信号がLレベルか
らHレベルに変化したことに応答して、出力バッファ2
aの領域O1に蓄積されたデータの出力が開始される。
出力バッファ2aの領域O1に蓄積されたデータが出力
されている間に、その次のシングルポートメモリ6への
読み出し要求に応答して、シングルポートメモリ6から
読み出されたデータが出力バッファ2aの領域O2に転
送され、そこに書き込まれる。以降、同様の処理が繰り
返される。
In response to the output buffer enable signal changing from L level to H level, output buffer 2
The output of the data stored in the area O 1 of a is started.
While the data stored in the area O 1 of the output buffer 2 a is being output, the data read from the single port memory 6 is output in response to the next read request to the single port memory 6. is transferred to the area O 2, it is written therein. Thereafter, the same processing is repeated.

【0039】このように、出力バッファ2aを2つの領
域に分割することにより、一方の領域に蓄積されたデー
タを出力信号として出力している間に、他方の領域にシ
ングルポートメモリ6から読み出されたデータを転送す
ることができる。これにより、出力バッファ2aからの
出力を停止することなく、シングルポートメモリ6から
出力バッファ2aにデータを転送することができる。
As described above, by dividing the output buffer 2a into two areas, while the data accumulated in one area is output as an output signal, the data is read out from the single port memory 6 to the other area. The transferred data can be transferred. Thus, data can be transferred from the single port memory 6 to the output buffer 2a without stopping the output from the output buffer 2a.

【0040】なお、図4では、出力バッファ2aを2つ
の領域に分割しているが、分割される領域の数は2には
限定されない。出力バッファ2aをN個の領域に分割し
てもよい。ここで、Nは、2以上の自然数である。ま
た、出力信号のビット数は、出力バッファ2aの行アド
レスサイズ≧出力信号のビット数の関係を満たしていれ
ば何ビットでもよい。出力バッファ2bについても同様
である。
Although the output buffer 2a is divided into two areas in FIG. 4, the number of divided areas is not limited to two. The output buffer 2a may be divided into N areas. Here, N is a natural number of 2 or more. The number of bits of the output signal may be any number as long as the relationship of row address size of output buffer 2a ≧ number of bits of output signal is satisfied. The same applies to the output buffer 2b.

【0041】コントロール部3は、入力バッファ1a、
1bからシングルポートメモリ6への書き込み要求を受
け取り、その書き込み要求に応答して入力バッファ1
a、1bからデータを読み出し、シングルポートメモリ
6にアドレスおよび制御信号を出力することにより、シ
ングルポートメモリ6にデータを書き込む書き込み制御
と、出力バッファ2a、2bからシングルポートメモリ
6への読み出し要求を受け取り、その読み出し要求に応
答してシングルポートメモリ6にアドレスおよび制御信
号を出力することにより、シングルポートメモリ6から
データを読み出し、シングルポートメモリ6から読み出
されたデータを出力バッファ2a、2bに格納する読み
出し制御とを行う。
The control unit 3 includes an input buffer 1a,
1b receives a write request to the single port memory 6 from the input buffer 1b in response to the write request.
By reading data from a and 1b and outputting an address and a control signal to the single port memory 6, write control for writing data to the single port memory 6 and a read request from the output buffers 2a and 2b to the single port memory 6 can be performed. The data is read from the single-port memory 6 by outputting the address and the control signal to the single-port memory 6 in response to the read request, and the data read from the single-port memory 6 is output to the output buffers 2a and 2b. Read control for storage is performed.

【0042】図6は、図1に示す構成を有するメモリイ
ンターフェース装置を用いて、映像信号を入力バッファ
1a、1bに蓄えながらシングルポートメモリ6に書き
込む処理と、シングルポートメモリ6からデータを読み
出し、読み出されたデータを出力バッファ2a、2bに
蓄えながら映像信号を出力する処理とを並行して行う場
合のタイミングを示す。
FIG. 6 shows a process of writing a video signal to the single port memory 6 while storing the video signal in the input buffers 1a and 1b and reading data from the single port memory 6 by using the memory interface device having the configuration shown in FIG. The timing when the process of outputting the video signal while storing the read data in the output buffers 2a and 2b is performed in parallel is shown.

【0043】図6に示す例では、水平同期信号が基準信
号として使用される。もちろん、水平同期信号以外の信
号が基準信号として使用されてもよい。
In the example shown in FIG. 6, a horizontal synchronizing signal is used as a reference signal. Of course, a signal other than the horizontal synchronization signal may be used as the reference signal.

【0044】水平同期信号がHレベルになったとき、出
力バッファ2a、2bは空の状態であると仮定する。こ
の場合、最初のシングルポートメモリ6への読み出し要
求(輝度信号Y読み出し要求、色差信号C読み出し要
求)がコントロール部3に送られる。これらの読み出し
要求に応答して、コントロール部3は、シングルポート
メモリ6から輝度信号Y、色差信号Cの順にデータを読
み出し、シングルポートメモリ6から読み出した輝度信
号Yを出力バッファ2aの領域O1に転送しそこに書き
込み、シングルポートメモリ6から読み出した色差信号
Cを出力バッファ2bの領域O1に転送しそこに書き込
む。
When the horizontal synchronizing signal goes high, it is assumed that the output buffers 2a and 2b are empty. In this case, a read request (a luminance signal Y read request, a color difference signal C read request) to the first single port memory 6 is sent to the control unit 3. In response to these read requests, the control unit 3 reads data from the single port memory 6 in the order of the luminance signal Y and the color difference signal C, and transfers the luminance signal Y read from the single port memory 6 to the area O 1 of the output buffer 2a. transferred to write therein, and transfers the color difference signal C read from the single port memory 6 to the area O 1 of the output buffer 2b written therein.

【0045】入力バッファイネーブル信号と出力バッフ
ァイネーブル信号とが同時にLレベルからHレベルに変
化する。
The input buffer enable signal and the output buffer enable signal simultaneously change from L level to H level.

【0046】入力バッファイネーブル信号がLレベルか
らHレベルに変化したことに応答して、入力バッファ1
a、1bの領域I1への入力信号の入力が開始される。
In response to the change of the input buffer enable signal from L level to H level, input buffer 1
a, the input of the input signal to the region I 1 of 1b is started.

【0047】出力バッファイネーブル信号がLレベルか
らHレベルに変化したことに応答して、出力バッファ2
a、2bの領域O1に蓄積されたデータの出力が開始さ
れる。
In response to the output buffer enable signal changing from L level to H level, output buffer 2
a, the output of the data stored in the area O 1 and 2b is started.

【0048】次のシングルポートメモリ6への読み出し
要求(輝度信号Y読み出し要求、色差信号C読み出し要
求)がコントロール部3に送られる。これらの読み出し
要求に応答して、コントロール部3は、シングルポート
メモリ6から輝度信号Y、色差信号Cの順にデータを読
み出し、シングルポートメモリ6から読み出した輝度信
号Yを出力バッファ2aの領域O2に転送しそこに書き
込み、シングルポートメモリ6から読み出した色差信号
Cを出力バッファ2bの領域O2に転送しそこに書き込
む。
Next, a read request to the single port memory 6 (a request to read the luminance signal Y and a request to read the color difference signal C) is sent to the control section 3. In response to these read requests, the control unit 3 reads data from the single port memory 6 in the order of the luminance signal Y and the color difference signal C, and transfers the luminance signal Y read from the single port memory 6 to the area O 2 of the output buffer 2a. transferred to write therein, and transfers the color difference signal C read from the single port memory 6 to the area O 2 of the output buffer 2b written therein.

【0049】さらに、シングルポートメモリ6への読み
出し要求(輝度信号Y読み出し要求、色差信号C読み出
し要求)のm/2サイクル後には、シングルポートメモ
リ6への書き込み要求(輝度信号Y書き込み要求、色差
信号C書き込み要求)とシングルポートメモリ6への読
み出し要求(輝度信号Y読み出し要求、色差信号C読み
出し要求)とが同時に発生する。
Further, after m / 2 cycles of a read request (a luminance signal Y read request and a color difference signal C read request) to the single port memory 6, a write request (a luminance signal Y write request, a color difference A signal C write request) and a read request to the single port memory 6 (a luminance signal Y read request, a color difference signal C read request) occur simultaneously.

【0050】コントロール部3は、書き込み要求および
読み出し要求に応答して、入力バッファ1aの領域I1
に蓄積された輝度信号Yと入力バッファ1bの領域I1
に蓄積された色差信号Cとを輝度信号Y、色差信号Cの
順にシングルポートメモリ6に転送しそこに書き込み、
その後、シングルポートメモリ6から輝度信号Y、色差
信号Cの順にデータを読み出し、シングルポートメモリ
6から読み出した輝度信号Yを出力バッファ2aの領域
1に転送しそこに書き込み、シングルポートメモリ6
から読み出した色差信号Cを出力バッファ2bの領域O
1に転送しそこに書き込む。このようなシングルポート
メモリ6への書き込みとシングルポートメモリ6からの
読み出しは、1つのm/2サイクル内で実行される。
The control unit 3 responds to the write request and the read request by responding to the area I 1 of the input buffer 1a.
Signal Y and the area I 1 of the input buffer 1b.
Are transferred to the single port memory 6 in the order of the luminance signal Y and the color difference signal C, and are written therein.
Thereafter, read data from the single port memory 6 luminance signal Y, the order of the color difference signal C, the writing thereto transfers the luminance signal Y read from the single port memory 6 to the area O 1 of the output buffer 2a, the single port memory 6
The color difference signal C read out from the area O of the output buffer 2b.
Transfer to 1 and write there. Such writing to the single port memory 6 and reading from the single port memory 6 are executed within one m / 2 cycle.

【0051】入力バッファ1a、1bの領域I1に蓄積
された信号がシングルポートメモリ6に転送されている
間に、入力バッファ1a、1bの領域I2に入力信号が
蓄積される。出力バッファ2a、2bの領域O2に蓄積
されたデータが出力されている間に、シングルポートメ
モリ6から読み出されたデータが出力バッファ2a、2
bの領域O1に転送される。以降、同様の処理が繰り返
される。
While the signal stored in the area I 1 of the input buffers 1 a and 1 b is being transferred to the single port memory 6, the input signal is stored in the area I 2 of the input buffers 1 a and 1 b. Output buffer 2a, while the data accumulated in the area of O 2 2b are output, the data output buffer 2a read from the single port memory 6, 2
It is transferred to the b region O 1 of the. Thereafter, the same processing is repeated.

【0052】図7は、シングルポートメモリ6のメモリ
マップの一例を示す。シングルポートメモリ6のアドレ
ス0〜n1−1には1フィールド目の輝度信号Y1、ア
ドレスn1〜n2−1には1フィールド目の色差信号C
1が格納されている。同様に2〜4フィールド目に対応
する輝度信号Y2〜Y4、色差信号C2〜C4が順に格
納されている。2フィールド目の輝度信号Y2、色差信
号C2が入力バッファ1a、1bに現在入力されている
データであると仮定すると、出力バッファ2a、2bに
読み出されるデータは1フィールド目の輝度信号Y1、
色差信号C1である。
FIG. 7 shows an example of a memory map of the single port memory 6. The address 0 to n1-1 of the single port memory 6 is a luminance signal Y1 of the first field, and the addresses n1 to n2-1 are a color difference signal C of the first field.
1 is stored. Similarly, luminance signals Y2 to Y4 and color difference signals C2 to C4 corresponding to the second to fourth fields are stored in order. Assuming that the luminance signal Y2 and the color difference signal C2 in the second field are data currently input to the input buffers 1a and 1b, the data read out to the output buffers 2a and 2b are the luminance signals Y1 and
This is the color difference signal C1.

【0053】図8は、入力バッファ部1の構成を示す。
ここでは、説明を簡略化するため、入力バッファ部1
は、単一の入力バッファ1cを含むと仮定する。入力バ
ッファ部1が上述したように入力バッファ1aと入力バ
ッファ1bとを含む場合も同様である。また、入力信号
は2ビットまたは4ビットであり、シングルポートメモ
リ6の1ワードは2ビットまたは4ビットであると仮定
する。
FIG. 8 shows the configuration of the input buffer unit 1.
Here, in order to simplify the description, the input buffer unit 1
Includes a single input buffer 1c. The same applies to the case where the input buffer unit 1 includes the input buffer 1a and the input buffer 1b as described above. It is also assumed that the input signal is 2 bits or 4 bits, and one word of the single port memory 6 is 2 bits or 4 bits.

【0054】入力バッファ部1は、入力信号の書き込み
を制御する入力信号Write制御部9と、入力信号を一時
的に蓄える入力バッファ1cと、入力バッファ1cに蓄
えられたデータをシングルポートメモリ6に読み出す入
力データRead制御部11とを含む。
The input buffer unit 1 includes an input signal write control unit 9 for controlling writing of an input signal, an input buffer 1c for temporarily storing an input signal, and a single port memory 6 for storing data stored in the input buffer 1c. And an input data read control unit 11 to be read.

【0055】図9は、出力バッファ部2の構成を示す。
ここでは、説明を簡略化するため、出力バッファ部2
は、単一の出力バッファ2cを含むと仮定する。出力バ
ッファ部2が上述したように出力バッファ2aと出力バ
ッファ2bとを含む場合も同様である。
FIG. 9 shows the configuration of the output buffer unit 2.
Here, in order to simplify the description, the output buffer unit 2
Includes a single output buffer 2c. The same applies to the case where the output buffer unit 2 includes the output buffer 2a and the output buffer 2b as described above.

【0056】出力バッファ部2は、出力信号の読み出し
を制御する出力信号Read制御部12と、入力信号を一時
的に蓄える出力バッファ2cと、シングルポートメモリ
6から読み出されたデータを出力バッファ2cに蓄える
出力データWrite制御部13とを含む。
The output buffer unit 2 includes an output signal read control unit 12 for controlling reading of an output signal, an output buffer 2c for temporarily storing input signals, and an output buffer 2c for storing data read from the single port memory 6. And an output data write control unit 13 stored in the memory.

【0057】以下、図8を参照して、入力バッファ部1
の動作を説明する。
Hereinafter, referring to FIG.
Will be described.

【0058】入力バッファ部1に入力された映像信号
は、入力バッファ1cに順次書き込まれる。
The video signal input to the input buffer unit 1 is sequentially written to the input buffer 1c.

【0059】図10は、入力バッファ1cの構成を示
す。入力バッファ1cは、メモリセルアレイ10を含ん
でいる。47は、メモリセルアレイ10内の1ビットメ
モリセルを示す。20〜27は、1ビットのセルが2個
ペアになったメモリセルを示す。28〜37はWired OR
を示す。38〜41はフリップフロップを示す。42は
データのマルチプレクスを行うマルチプレクサを示す。
43、44はセレクタを示す。45、46はトライステ
ートバッファを示す。トライステートバッファ45、4
6は、制御信号がLレベルである場合には入力された信
号をそのまま出力し、制御信号がHレベルである場合に
は出力はハイインピーダンスとなる。
FIG. 10 shows the configuration of the input buffer 1c. The input buffer 1c includes the memory cell array 10. 47 indicates a 1-bit memory cell in the memory cell array 10. Reference numerals 20 to 27 denote memory cells in which two 1-bit cells are paired. 28-37 is Wired OR
Is shown. 38 to 41 indicate flip-flops. Reference numeral 42 denotes a multiplexer for multiplexing data.
43 and 44 indicate selectors. Reference numerals 45 and 46 denote tristate buffers. Tri-state buffers 45, 4
6 outputs the input signal as it is when the control signal is at the L level, and outputs high impedance when the control signal is at the H level.

【0060】メモリセルアレイ10は、内部で入力され
るデータとシングルポートメモリ6のビット幅に対応し
て、本実施の形態では4ビット毎に1つの列アドレスが
割り当てられている。またメモリセルアレイ10は2つ
の領域に分割され、列アドレス0、1のメモリセルは領
域I1、列アドレス2、3のメモリセルは領域I2に割り
当てられている。
In the present embodiment, one column address is assigned to every four bits in the memory cell array 10 according to the internally input data and the bit width of the single port memory 6. The memory cell array 10 is divided into two regions, and the memory cells at column addresses 0 and 1 are allocated to a region I 1 , and the memory cells at column addresses 2 and 3 are allocated to a region I 2 .

【0061】メモリセルアレイ10は、さらに横方向に
も2ビット毎に行アドレス0と1に分割されている。各
アドレスのメモリセルは、メモリバスの対応するビット
にWired ORされている。入力される映像信号が4ビット
の場合、行アドレス0、1両方のメモリセルにデータが
書き込まれ、2ビットの場合は行アドレス0のみにデー
タが書き込まれる。
The memory cell array 10 is further divided into row addresses 0 and 1 every two bits in the horizontal direction. The memory cell of each address is wired-ORed with the corresponding bit of the memory bus. When the input video signal is 4 bits, data is written into both memory cells at row addresses 0 and 1, and when it is 2 bits, data is written only at row address 0.

【0062】入力信号が2ビットのデータ列の場合、デ
ータは最初に行アドレス0、列アドレス0のメモリセル
20に格納され、次のサイクルでメモリセル22に格納
される。ここで領域I1の行アドレス0に属するすべて
のメモリセルにデータが格納されたため、シングルポー
トメモリ6への書き込みを開始するためにメモリバスに
データが読み出される。メモリバスが4ビットで構成さ
れているため、メモリセル20のデータは、Wired OR2
8を通じて読み出し、メモリセル22のデータは、Wire
d OR32を通じて読み出し、4ビットのデータを組み立
ててフリップフロップ38〜41に出力する。
When the input signal is a 2-bit data string, the data is first stored in the memory cell 20 at row address 0 and column address 0, and then stored in the memory cell 22 in the next cycle. Here, since the data is stored in all the memory cells belonging to the row address 0 in the area I 1 , the data is read out to the memory bus in order to start writing to the single port memory 6. Since the memory bus is composed of 4 bits, the data of the memory cell 20 is stored in the wired OR2
8 and the data in the memory cell 22 is
The data is read out through the dOR 32, 4-bit data is assembled, and output to the flip-flops 38 to 41.

【0063】シングルポートメモリ6が4ビット1ワー
ドの場合には、シングルポートメモリ6へデータを書き
込む周波数と同じ周波数を有するクロック信号がフリッ
プフロップ38〜41に入力される。セレクト信号をL
レベルにすることで、セレクタ43は、フリップフロッ
プ38の出力をシングルポートメモリ6へ出力し、セレ
クタ44はフリップフロップ39の出力をシングルポー
トメモリ6へ出力する。同様に、トライステートバッフ
ァ45は、フリップフロップ40の出力をシングルポー
トメモリ6へ出力し、トライステートバッファ46は、
フリップフロップ41の出力をシングルポートメモリ6
へ出力する。従って、入力バッファ1cから出力される
データは4ビットとなり、4ビット幅のシングルポート
メモリが接続できる。
When the single-port memory 6 has four bits and one word, a clock signal having the same frequency as that for writing data to the single-port memory 6 is input to the flip-flops 38 to 41. Select signal L
By setting the level, the selector 43 outputs the output of the flip-flop 38 to the single-port memory 6, and the selector 44 outputs the output of the flip-flop 39 to the single-port memory 6. Similarly, the tri-state buffer 45 outputs the output of the flip-flop 40 to the single-port memory 6, and the tri-state buffer 46
The output of the flip-flop 41 is connected to the single port memory 6
Output to Therefore, the data output from the input buffer 1c is 4 bits, so that a 4-bit single port memory can be connected.

【0064】シングルポートメモリ6が2ビット1ワー
ドの場合には、シングルポートメモリ6へデータを書き
込む周波数の1/2の周波数を有するクロック信号がフ
リップフロップ38〜41に入力される。マルチプレク
サ42は、フリップフロップ38、39、40、41の
出力を入力とし、第1の出力には、フリップフロップ3
8と40の信号を選択して、クロック信号がHレベルの
時にはフリップフロップ38のデータを出力し、クロッ
ク信号がLレベルの時にはフリップフロップ40のデー
タを出力する。マルチプレクサ42の第2の出力は、ク
ロック信号がHレベルの時にはフリップフロップ39の
データを出力し、クロック信号がLレベルの時にはフリ
ップフロップ41のデータを出力する。よって、マルチ
プレクサ42は、クロック信号の2倍のデータレート
で、データを出力する。セレクト信号をHレベルにする
ことで、セレクタ43は、マルチプレクサ42の第1の
出力をシングルポートメモリ6へ出力し、セレクタ44
はマルチプレクサ42の第2の出力をシングルポートメ
モリ6へ出力する。トライステートバッファ45と46
は、ハイインピーダンス状態となる。従って、入力バッ
ファ1cから出力されるデータは2ビットとなり、2ビ
ット幅のシングルポートメモリが接続できる。領域I2
のメモリセル24、26にデータが格納されたときも同
様の手段でシングルポートメモリ6にデータを出力する
ことができる。
When the single-port memory 6 has two bits and one word, a clock signal having a frequency half the frequency of writing data to the single-port memory 6 is input to the flip-flops 38 to 41. The multiplexer 42 receives the outputs of the flip-flops 38, 39, 40, and 41 as inputs, and outputs the flip-flop 3
By selecting the signals 8 and 40, the data of the flip-flop 38 is output when the clock signal is at the H level, and the data of the flip-flop 40 is output when the clock signal is at the L level. The second output of the multiplexer 42 outputs the data of the flip-flop 39 when the clock signal is at the H level, and outputs the data of the flip-flop 41 when the clock signal is at the L level. Therefore, the multiplexer 42 outputs data at a data rate twice as high as that of the clock signal. By setting the select signal to the H level, the selector 43 outputs the first output of the multiplexer 42 to the single-port memory 6, and the selector 44
Outputs the second output of the multiplexer 42 to the single port memory 6. Tri-state buffers 45 and 46
Is in a high impedance state. Therefore, the data output from the input buffer 1c is 2 bits, and a 2-port single port memory can be connected. Region I 2
When data is stored in the memory cells 24 and 26, the data can be output to the single port memory 6 by the same means.

【0065】入力信号が4ビットのデータ列の場合、第
1番目のデータはメモリセル20と21に格納され、第
2番目のデータはメモリセル22と23に書き込まれ
る。ここで領域I1に属するすべてのメモリセルにデー
タが格納されたため、シングルポートメモリ6への書き
込みを開始するためにメモリバスにデータが読み出され
る。メモリバスが4ビットで構成されているため、第1
にメモリセル20のデータは、Wired OR28を通じて読
み出し、メモリセル21のデータは、Wired OR29を通
じて読み出し、4ビットのデータを組み立て、第2にメ
モリセル22のデータは、Wired OR30を通じて読み出
し、メモリセル23のデータは、Wired OR31を通じて
読み出し、4ビットのデータを組み立て、フリップフロ
ップ38〜41に出力する。
When the input signal is a 4-bit data string, the first data is stored in the memory cells 20 and 21, and the second data is written in the memory cells 22 and 23. Here, since the data in all the memory cells belonging to the region I 1 is stored, the data in the memory bus is read in order to start writing to the single port memory 6. Since the memory bus is composed of 4 bits, the first
The data in the memory cell 20 is read through the wired OR 28, the data in the memory cell 21 is read through the wired OR 29, and 4-bit data is assembled. Second, the data in the memory cell 22 is read through the wired OR 30 and the memory cell 23 is read. Is read through the wired OR 31 to assemble 4-bit data and output to the flip-flops 38 to 41.

【0066】以上の構成により、入力データが2ビット
でも4ビットでも、4ビット1ワードまたは2ビット1
ワード構成のシングルポートメモリ6に書き込むことが
できる。なお、入力データがnビット(nは自然数)、
シングルポートメモリ6の1ワードがmビット(mは自
然数)でも同様の手法で実現可能である。また、出力バ
ッファ部2のメモリセルアレイについても同様の構成で
実現できる。また、シングルポートメモリ6への転送を
行う領域の順番は本実施の形態に示したものに限らず、
バッファにたまった必要なデータが全て転送できればよ
い。
With the above configuration, whether the input data is 2 bits or 4 bits, 4 bits 1 word or 2 bits 1 word
The data can be written in the single-port memory 6 having the word configuration. The input data is n bits (n is a natural number),
Even if one word of the single port memory 6 is m bits (m is a natural number), it can be realized by the same method. Further, the memory cell array of the output buffer unit 2 can be realized with the same configuration. Further, the order of the areas to be transferred to the single port memory 6 is not limited to the order shown in the present embodiment,
It is only necessary that all necessary data accumulated in the buffer can be transferred.

【0067】図11は、Write制御部9の構成を示す。
図11において、50は微分回路、51〜55はANDゲ
ート、57〜60はフリップフロップをそれぞれ示す。
リセット信号は、微分回路50に入力されて、1クロッ
ク幅の信号となる。微分回路50の出力がHレベルの
時、フリップフロップ57はHレベルがセットされ、フ
リップフロップ58、59、60はLレベルにリセット
される。この状態で、Write制御部9は初期状態とな
る。次にイネーブル信号がHレベルになると、フリップ
フロップ57、58、59、60にクロック信号が入力
されるため、初期状態の時にそれぞれのフリップフロッ
プにセットされていた値が右側にシフトされる。すなわ
ち、フリップフロップ57の出力はLレベル、フリップ
フロップ58の出力はHレベル、フリップフロップ59
の出力はLレベル、フリップフロップ60の出力はLレ
ベルとなる。このときANDゲート52、53、54、5
5の出力はそれぞれ、L、H、L、Lレベルとなる。こ
れらの信号をメモリセルアレイ10のメモリセルの書き
込みのワード線に接続することにより、入力信号が順次
格納される。
FIG. 11 shows the configuration of the write control unit 9.
In FIG. 11, reference numeral 50 denotes a differentiating circuit, 51 to 55 denote AND gates, and 57 to 60 denote flip-flops.
The reset signal is input to the differentiating circuit 50 and becomes a signal of one clock width. When the output of the differentiating circuit 50 is at the H level, the flip-flop 57 is set to the H level, and the flip-flops 58, 59, 60 are reset to the L level. In this state, the Write control unit 9 is in the initial state. Next, when the enable signal becomes H level, the clock signal is input to the flip-flops 57, 58, 59, 60, so that the value set in each flip-flop in the initial state is shifted to the right. That is, the output of the flip-flop 57 is at L level, the output of the flip-flop 58 is at H level,
Is at the L level, and the output of the flip-flop 60 is at the L level. At this time, the AND gates 52, 53, 54, 5
The outputs of No. 5 are at L, H, L and L levels, respectively. By connecting these signals to the write word line of the memory cell of the memory cell array 10, the input signals are sequentially stored.

【0068】図12は、Write制御部9の動作を示すタ
イミングチャートである。フリップフロップ58および
60の出力信号は、ポインタ出力1、2となり、ポイン
タ1の出力がHレベルとなったときには、入力バッファ
1cの領域I1が満たされたことを表し、ポインタ2の
出力がHレベルとなったときには、入力バッファ1cの
領域I2が満たされたことを表す。ポインタ出力は入力
バッファからシングルポートメモリ6への書き込み要求
としてコントロール部3に出力される。出力バッファの
出力信号Read制御部12についても同様の構成で実現で
きる。異なるのはポインタ出力1、2がそれぞれ出力バ
ッファが空になったことを示し、コントロール部3へシ
ングルポートメモリ6からの読み出し要求を出力するこ
とである。
FIG. 12 is a timing chart showing the operation of the write control unit 9. The output signal of the flip-flops 58 and 60, when the pointer output 1 and the output of the pointer 1 becomes H level, indicates that the region I 1 of the input buffer 1c is satisfied, the output of the pointer 2 is H when it becomes level indicates that the region I 2 of the input buffer 1c is satisfied. The pointer output is output from the input buffer to the control unit 3 as a write request to the single port memory 6. The output signal Read control unit 12 of the output buffer can be realized with the same configuration. The difference is that the pointer outputs 1 and 2 indicate that the output buffers are empty, respectively, and output a read request from the single port memory 6 to the control unit 3.

【0069】図13は、入力データRead制御部11の構
成を示す。図13において、70、71、72、73は
ANDゲートを示す。それぞれのANDゲートは、コントロー
ル部3から出力される制御信号(アドレス)をデコード
することにより、メモリセルアレイ10のそれぞれの領
域の列アドレスを示す信号を出力する。なお、出力デー
タWrite制御部13も同様にして構成できる。
FIG. 13 shows the configuration of the input data read control unit 11. In FIG. 13, 70, 71, 72, 73
Shows the AND gate. Each AND gate outputs a signal indicating a column address of each area of the memory cell array 10 by decoding a control signal (address) output from the control unit 3. Note that the output data write control unit 13 can be similarly configured.

【0070】図14は、コントロール部3の構成を示
す。図14において、80、82はタイミング発生器、
81、83はアドレス発生器を示す。コントロール部3
はタイミング発生器80とアドレス発生器81を持つバ
ッファ制御部4と、タイミング発生器82とアドレス発
生器83を持つメモリ制御部5とを含む。
FIG. 14 shows the configuration of the control section 3. In FIG. 14, reference numerals 80 and 82 denote timing generators,
Reference numerals 81 and 83 denote address generators. Control part 3
Includes a buffer controller 4 having a timing generator 80 and an address generator 81, and a memory controller 5 having a timing generator 82 and an address generator 83.

【0071】図15(a)は、タイミング発生器80の
構成を示す。図15(a)において、84、87はカウ
ンタを示す。85、88はカウンタに初期値を設定する
レジスタを示す。86、89はRSフリップフロップを示
す。90はANDゲートを示す。入力された垂直同期信号
によって、カウンタ84にはレジスタ85の値がロード
され、RSフリップフロップ86はリセットされる。次の
サイクルからカウンタ84のカウント動作が始まり、n
回のカウント後、キャリーアウト信号が出力される。キ
ャリーアウト信号は図11の入力信号Write制御部9の
微分回路50へのリセット信号となるとともに、RSフリ
ップフロップ86のセット信号となる。また、入力され
た水平同期信号によって、カウンタ87にはレジスタ8
8の値がロードされ、RSフリップフロップ89はリセッ
トされる。次のサイクルからカウンタ87のカウント動
作が始まり、m回のカウント後、キャリーアウト信号が
出力される。キャリーアウト信号は、RSフリップフロッ
プ89のセット信号となる。イネーブル信号は、ANDゲ
ート90の出力で、RSフリップフロップ86と89の出
力がともにHレベルの時、Hレベルになる。
FIG. 15A shows the structure of the timing generator 80. In FIG. 15A, reference numerals 84 and 87 indicate counters. Reference numerals 85 and 88 denote registers for setting initial values in the counter. 86 and 89 indicate RS flip-flops. 90 indicates an AND gate. The counter 84 is loaded with the value of the register 85 by the input vertical synchronization signal, and the RS flip-flop 86 is reset. The counting operation of the counter 84 starts from the next cycle, and n
After the count, a carry-out signal is output. The carry-out signal becomes a reset signal to the differentiating circuit 50 of the input signal Write control unit 9 in FIG. Further, the counter 87 stores the register 8 in response to the input horizontal synchronization signal.
The value of 8 is loaded and the RS flip-flop 89 is reset. The count operation of the counter 87 starts from the next cycle, and after the count of m times, the carry-out signal is output. The carry-out signal becomes a set signal of the RS flip-flop 89. The enable signal is the output of the AND gate 90 and goes high when the outputs of the RS flip-flops 86 and 89 are both high.

【0072】図15(b)は、アドレス発生器81の構
成を示す。図15(b)において、91はカウンタを示
す。入力信号Write制御部9から出力されるポインタ信
号によって、カウンタ91はリセットされ、次のサイク
ルからカウントされる。カウントされた値はそのままア
ドレス出力となり、入力データRead制御部11に入力さ
れる。メモリ制御部5のタイミング発生器82、アドレ
ス発生器83も同様の構成で実現できる。
FIG. 15B shows the structure of the address generator 81. In FIG. 15B, reference numeral 91 denotes a counter. The counter 91 is reset by the pointer signal output from the input signal Write control unit 9 and counted from the next cycle. The counted value becomes an address output as it is, and is input to the input data read control unit 11. The timing generator 82 and the address generator 83 of the memory control unit 5 can be realized with the same configuration.

【0073】なお、Write制御部9のポインタ出力は本
実施の形態では領域を2分割しているため2個となって
いるが、領域をさらに細分した場合にはそれに応じて増
加する。領域は一般にL個(L:2以上の自然数)に分
割可能であるので、ポインタ数も一般にLとなる。図1
0に示すメモリセルアレイ10の場合、領域I1、I2
さらに2分割することにより4領域を設定することが可
能である。すなわち列アドレス0のメモリセルが領域I
1、列アドレス1が領域I2、列アドレス2が領域I3
列アドレス3が領域I4となる。この時、図11のWrite
制御部において、フリップフロップ57の出力がポイン
タ1、フリップフロップ58の出力がポインタ2、フリ
ップフロップ59の出力がポインタ3、フリップフロッ
プ60の出力がポインタ4となる。
In this embodiment, the pointer output of the write control unit 9 is two because the area is divided into two parts. However, if the area is further subdivided, the pointer output increases accordingly. Since the area can be generally divided into L (L: a natural number of 2 or more), the number of pointers is also generally L. FIG.
In the case of the memory cell array 10 indicated by 0, four regions can be set by further dividing the regions I 1 and I 2 into two. That is, the memory cell at column address 0 is in area I
1 , column address 1 is area I 2 , column address 2 is area I 3 ,
Column address 3 becomes area I 4 . At this time, the Write
In the control unit, the output of the flip-flop 57 is the pointer 1, the output of the flip-flop 58 is the pointer 2, the output of the flip-flop 59 is the pointer 3, and the output of the flip-flop 60 is the pointer 4.

【0074】図21は、図11の入力信号Write制御部
9にポインタ出力を追加したときの構成を示す。図21
において、50は微分回路、51〜55、130、13
1はANDゲート、57〜60はフリップフロップを示
す。モード選択信号は、領域を2分割するときLレベ
ル、4分割するときHレベルとなる信号である。
FIG. 21 shows a configuration when a pointer output is added to the input signal Write control section 9 of FIG. FIG.
, 50 is a differentiating circuit, 51 to 55, 130, 13
1 indicates an AND gate, and 57 to 60 indicate flip-flops. The mode selection signal is a signal that becomes L level when the area is divided into two and H level when the area is divided into four.

【0075】図21に示すように、本実施の形態では、
ANDゲート130の出力をポインタ出力1、フリップフ
ロップ58の出力をポインタ出力2、ANDゲート131
の出力をポインタ出力3、フリップフロップ60の出力
をポインタ出力4とする。それぞれのポインタ出力は、
領域を2分割した場合、ポインタ2が領域I1が満たさ
れたことを示し、ポインタ4が領域I2が満たされたこ
とを示す。領域を4分割した場合、ポインタ1が領域I
1が満たされたことを表し、ポインタ2が領域I2が満た
されたことを表し、ポインタ3が領域I3が満たされた
ことを表し、ポインタ4が領域I4が満たされたことを
表す。
As shown in FIG. 21, in the present embodiment,
The output of AND gate 130 is pointer output 1, the output of flip-flop 58 is pointer output 2, AND gate 131
Is the pointer output 3 and the output of the flip-flop 60 is the pointer output 4. Each pointer output is
When the area is divided into two, the pointer 2 indicates that the area I 1 has been filled, and the pointer 4 indicates that the area I 2 has been filled. When the area is divided into four parts, the pointer 1 moves to the area I
1 indicates that area 1 has been filled, pointer 2 indicates that area I 2 has been filled, pointer 3 indicates that area I 3 has been filled, and pointer 4 indicates that area I 4 has been filled. .

【0076】モード選択信号とANDゲート130、13
1を導入したことにより、領域を2分割したときにはモ
ード選択信号がLレベルとなるため、ポインタ出力1、
3は常にLレベルとなり、メモリ書き込みは開始され
ず、ポインタ出力2または4がHレベルとなったときメ
モリ書き込みが開始される。領域を4分割したときに
は、モード選択信号がHレベルとなるため、すべてのポ
インタ出力に対応してメモリ書き込みが開始される。従
って、図21に示すような、モード選択信号とANDゲー
トを導入することにより、領域の大きさを選択してシン
グルポートメモリ6への書き込み制御を変更する手段を
追加することができる。
Mode selection signal and AND gates 130 and 13
Since the mode selection signal is at the L level when the area is divided into two by introducing the pointer output 1, pointer output 1,
No. 3 is always at the L level, the memory writing is not started, and when the pointer output 2 or 4 becomes the H level, the memory writing is started. When the area is divided into four, the mode selection signal becomes H level, so that memory writing is started in response to all pointer outputs. Therefore, by introducing a mode selection signal and an AND gate as shown in FIG. 21, it is possible to add a means for selecting the size of the area and changing the write control to the single port memory 6.

【0077】図16(a)および(b)は、図11のWr
ite制御部9を使用したときのシングルポートメモリ6
のメモリマップを示す。図16(a)は初期状態を表
す。図16(b)は領域I1のデータを書き込んだとき
のメモリマップである。このようにバッファを使用して
メモリアクセスを行ったとき、シングルポートメモリ6
への最小アクセス単位は領域の大きさに依存する。
FIGS. 16A and 16B show Wr of FIG.
Single port memory 6 when using ite control unit 9
2 shows a memory map of the first embodiment. FIG. 16A shows an initial state. Figure 16 (b) is a memory map when data is written in the area I 1. When memory access is performed using the buffer in this manner, the single port memory 6
The minimum unit of access to is dependent on the size of the area.

【0078】図17(a)〜(d)は、領域をさらに細
分し、4分割したときのシングルポートメモリ6のメモ
リマップを示す。図17(a)は初期状態を表す。図1
7(b)は領域I1のデータを書き込んだときのメモリ
マップである。図17(c)、(d)は領域I2のデー
タを書き込んだときのメモリマップである。領域を細分
化することにより、図17(c)に示すとおり、領域を
2分割したときと同じメモリアドレス、すなわち図16
(b)と同じようにデータを書き込むことと、図17
(d)に示すように全く異なるメモリアドレスにデータ
を書き込むことができる。バッファを使用してメモリイ
ンターフェース装置を構成した場合、メモリアドレスの
制御単位がバッファの領域の大きさに依存するため、領
域の大きさを選択できる手段を備えることにより、より
細やかなメモリアドレス制御が可能となる。
FIGS. 17A to 17D show a memory map of the single-port memory 6 when the area is further subdivided and divided into four parts. FIG. 17A shows an initial state. FIG.
7 (b) is a memory map when data is written in the area I 1. FIG. 17 (c), the a memory map when (d) are written to the data region I 2. By subdividing the region, as shown in FIG. 17C, the same memory address as when the region is divided into two, that is, FIG.
Writing data in the same manner as in FIG.
Data can be written to completely different memory addresses as shown in FIG. When a memory interface device is configured using a buffer, since the control unit of the memory address depends on the size of the area of the buffer, by providing a means for selecting the size of the area, finer memory address control can be performed. It becomes possible.

【0079】次に、映像信号レートや水平周波数が異な
る複数の映像を扱う方法について説明する。
Next, a method for handling a plurality of videos having different video signal rates and horizontal frequencies will be described.

【0080】図18は、シングルポートメモリ6への書
き込み要求およびシングルポートメモリ6からの読み出
し要求を調停する調停回路の構成を示す。調停回路は、
コントロール部3に含まれ得る。図18において、94
〜97はユーザが設定を行うためのレジスタを示す。9
8〜101はANDゲートである。102は要求を調停す
るための調停器を示す。
FIG. 18 shows a configuration of an arbitration circuit for arbitrating a write request to the single port memory 6 and a read request from the single port memory 6. The arbitration circuit
It can be included in the control unit 3. In FIG.
Reference numerals 97 indicate registers for setting by the user. 9
8 to 101 are AND gates. Reference numeral 102 denotes an arbiter for arbitrating requests.

【0081】本実施の形態では、入力信号1を入力バッ
ファに格納し、バッファが一杯になったことを示す信号
がポインタ出力A、入力信号2を入力バッファに格納
し、バッファが一杯になったことを示す信号がポインタ
出力B、出力バッファから出力信号1を出力し、バッフ
ァが空になったことを示す信号がポインタ出力C、出力
バッファから出力信号2を出力し、バッファが空になっ
たことを示す信号がポインタ出力Dであるとする。ま
た、シングルポートメモリ6の書き込み要求および読み
出し要求に対する優先順位はレジスタの設定値2ビット
で表され、"11"のときに最高の優先順位、"10"の時
に2番目の優先順位、"01"の時に最低の優先順位、"
00"の時は書き込みおよび読み出し要求が存在しない
ものと仮定する。なお、優先順位は、本メモリインター
フェース装置が使用されるアプリケーションに応じて、
何ビットのレジスタ設定値で表してもよい。
In this embodiment, the input signal 1 is stored in the input buffer, the signal indicating that the buffer is full is the pointer output A, the input signal 2 is stored in the input buffer, and the buffer is full. A signal indicating that the buffer output becomes empty, a pointer output B outputs an output signal 1 from the output buffer, a signal indicating that the buffer becomes empty outputs a pointer output C, and an output signal outputs from the output buffer 2 and the buffer becomes empty. Is a pointer output D. The priority of the write request and the read request of the single port memory 6 is represented by a register set value of 2 bits. The highest priority is "11", the second priority is "10", and the first priority is "01". "When lowest priority,"
When "00", it is assumed that there is no write or read request. Note that the priority order depends on the application in which the memory interface device is used.
Any number of register setting values may be used.

【0082】入力信号1が入力バッファの第1の領域を
満たした時、ポインタ出力AがHレベルになり、レジス
タ94に設定された値がANDゲート98を通じて書き込
み要求 Write REQA信号として調停器102に入力され
る。同様に、入力信号2が入力バッファの第2の領域を
満たした時、レジスタ95の設定値が書き込み要求 Wri
te REQB信号として調停器102に入力され、出力信号
1が出力バッファの第1の領域を空にしたとき、レジス
タ96の設定値が読み出し要求 Read REQA信号として調
停器102に入力され、出力信号2が出力バッファの第
2の領域を空にしたとき、レジスタ97の設定値が読み
出し要求 Read REQB信号として調停器102に入力され
る。
When the input signal 1 fills the first area of the input buffer, the pointer output A goes high, and the value set in the register 94 is sent to the arbiter 102 as a write request Write REQA signal through the AND gate 98. Is entered. Similarly, when the input signal 2 fills the second area of the input buffer, the set value of the register 95 changes to the write request Wri.
When the te REQB signal is input to the arbitrator 102 and the output signal 1 empties the first area of the output buffer, the set value of the register 96 is input to the arbitrator 102 as a read request Read REQA signal, and the output signal 2 Empties the second area of the output buffer, the set value of the register 97 is input to the arbitrator 102 as a read request Read REQB signal.

【0083】調停器102は、ハードウェア的にあらか
じめ決められた優先順位を持っており、書き込み要求ま
たは読み出し要求が行われた場合は、その優先順位に従
って処理する。本実施の形態では、Write REQAが最高の
優先順位、Write REQBが2番目の優先順位、Read REQA
が3番目の優先順位、Read REQBが最低の優先順位とす
る。それ以外の優先順位をつけたい場合は、本メモリイ
ンターフェース装置を使用するユーザがレジスタ94、
95、96、97に設定する。例えば、Read REQBを最
高の優先順位となるようにしたい場合は、レジスタ97
に"11"を設定する。
The arbitrator 102 has a priority determined in advance in terms of hardware. When a write request or a read request is made, the arbitrator 102 processes according to the priority. In this embodiment, Write REQA has the highest priority, Write REQB has the second priority, and Read REQA has the highest priority.
Is the third priority, and Read REQB is the lowest priority. If another priority is desired, the user of the memory interface device can use the register 94,
95, 96 and 97 are set. For example, if you want Read REQB to have the highest priority, register 97
Is set to "11".

【0084】図19は、調停器102が各レジスタ設定
に対して、どのような値を出力するかを表している。
FIG. 19 shows what value the arbitrator 102 outputs for each register setting.

【0085】図19において、No.1はレジスタ94
に"11"を設定して、ポインタ出力AがHレベルになっ
たときの調停器102の出力である。この場合は、他の
書き込み要求や読み出し要求、レジスタ設定に関わら
ず、必ずシングルポートメモリ6のWrite Mode AがHレ
ベルになる。これは、調停器102がポインタ出力Aの
要求を最高の優先順位として処理するように構成されて
いるためである。例えば、入力バッファのメモリセルア
レイが図10のような構成で、入力信号1が行アドレス
0に格納される場合、Write Mode AがHレベルになる
と、入力バッファの読み出し制御部は、行アドレスが0
で列アドレスが0と1の領域を読み出してシングルポー
トメモリ6への書き込み要求を処理し、ポインタ出力A
はLレベルに戻る。
In FIG. 1 is the register 94
Is set to “11”, and the output of the arbitrator 102 when the pointer output A becomes H level. In this case, the Write Mode A of the single port memory 6 always goes to the H level regardless of other write requests, read requests, and register settings. This is because the arbiter 102 is configured to process the request for pointer output A as the highest priority. For example, when the memory cell array of the input buffer is configured as shown in FIG. 10 and the input signal 1 is stored in the row address 0, when the Write Mode A becomes H level, the read control unit of the input buffer sets the row address to 0.
Reads out the area where the column address is 0 and 1 and processes the write request to the single port memory 6 and outputs the pointer output A
Returns to the L level.

【0086】No.2はレジスタ94に"10"以下を設
定し、レジスタ95に"11"を設定したときの調停器1
02の出力である。この場合は、他の書き込み要求や読
み出し要求、レジスタ設定に関わらず、必ずシングルポ
ートメモリ6のWrite Mode BがHレベルになる。これ
は、調停器102がポインタ出力Bの要求を最高の優先
順位として処理するように構成されているため、ユーザ
がポインタ出力Aの優先順位をレジスタ94に"10"に
設定して優先順位を下げ、ポインタ出力Bの優先順位を
レジスタ95に"11"に設定して優先順位を上げている
ためである。以下、No.3〜12の場合についても、
同様の法則に基づいて処理される。
No. 2 is the arbitrator 1 when the register 94 is set to "10" or less and the register 95 is set to "11".
02 output. In this case, the Write Mode B of the single port memory 6 always goes to the H level regardless of other write requests, read requests, and register settings. Since the arbiter 102 is configured to process the request for the pointer output B as the highest priority, the user sets the priority of the pointer output A to “10” in the register 94 to change the priority. This is because the priority is increased by setting the priority of the pointer output B to "11" in the register 95. Hereinafter, No. In the case of 3 to 12,
Processing is performed based on a similar rule.

【0087】(実施の形態2)次に、実施の形態2とし
て、入力バッファと出力バッファを利用して入力信号を
単純遅延させて出力する方法を説明する。
(Embodiment 2) Next, as Embodiment 2, a method of outputting an input signal with a simple delay using an input buffer and an output buffer will be described.

【0088】図20は、入力バッファ部1のメモリセル
アレイ121とシングルポートメモリ6への書き込みバ
ス、および出力バッファ部2のメモリセルアレイ122
とシングルポートメモリ6からの読み出しバスの構成を
示す。図20において、20〜27、104〜111は
1ビットのセルが2個ペアになったメモリセルを示す。
121は入力バッファ部1のメモリセル全体を表すメモ
リセルアレイを示す。122は出力バッファ部2のメモ
リセル全体を表すメモリセルアレイを示す。28〜3
6、112〜120は2個ペアになったWired ORを示
す。本実施の形態では、シングルポートメモリ6の1ワ
ードは4ビットであると仮定する。
FIG. 20 shows a memory cell array 121 of the input buffer unit 1 and a write bus to the single port memory 6, and a memory cell array 122 of the output buffer unit 2.
2 shows a configuration of a bus for reading from the single port memory 6. 20, reference numerals 20 to 27 and 104 to 111 denote memory cells in which two 1-bit cells are paired.
Reference numeral 121 denotes a memory cell array representing the entire memory cell of the input buffer unit 1. Reference numeral 122 denotes a memory cell array representing the entire memory cell of the output buffer unit 2. 28-3
Reference numerals 6, 112 to 120 denote two wired ORs. In the present embodiment, it is assumed that one word of the single port memory 6 is 4 bits.

【0089】入力バッファ部1のメモリセルアレイ12
1が満たされたとき、通常はWiredOR 28〜36を通じ
てシングルポートメモリ6へ出力される。メモリバスの
書き込みのビット線と、読み出しのビット線が接続され
ているので、同様の手段を利用すると、入力バッファ部
1のメモリセルアレイ121から出力バッファ部2のメ
モリセルアレイ122へ直接データを書き込むことが可
能である。例えば、メモリセル20のデータをWired OR
28を通じて読み出すときに、Wired OR 112を同時
にONすると、メモリセル104に書き込むことができ
る。
The memory cell array 12 of the input buffer unit 1
When 1 is satisfied, it is normally output to the single port memory 6 through WiredORs 28-36. Since the write bit line and the read bit line of the memory bus are connected, the same means can be used to write data directly from the memory cell array 121 of the input buffer unit 1 to the memory cell array 122 of the output buffer unit 2. Is possible. For example, data of the memory cell 20 is wired OR
If the wired OR 112 is turned ON at the same time when reading through the memory, the data can be written to the memory cell 104.

【0090】以上の構成により、入力バッファと出力バ
ッファを利用して入力信号を単純遅延させて出力するこ
とができる。上記例では、入力信号を4クロック〜8ク
ロック遅延させて出力する。
With the above configuration, the input signal can be simply delayed and output using the input buffer and the output buffer. In the above example, the input signal is output with a delay of 4 to 8 clocks.

【0091】なお、ここでも、バッファのビット数、ワ
ード数は本実施の形態に限ったものではない。
Note that the number of bits and the number of words in the buffer are not limited to the present embodiment.

【0092】[0092]

【発明の効果】請求項1に記載の発明によれば、入力バ
ッファの複数の入力領域のうちの特定の入力領域に蓄積
された信号をシングルポートメモリに転送する間に、特
定の入力領域以外の入力領域に入力信号が蓄積され、出
力バッファの複数の出力領域のうちの特定の出力領域に
蓄積された信号を出力信号として出力する間に、シング
ルポートメモリに格納された信号が特定の出力領域以外
の出力領域に転送される。これにより、入力信号をシン
グルポートメモリに書き込みながら、シングルポートメ
モリから読み出した信号を出力信号としてリアルタイム
に出力することが可能になる。さらに、入力バッファの
入力領域の数および出力バッファの出力領域の数を増大
させることにより、1度に転送するデータ量の最小単位
を小さくすることができる。その結果、細やかなアドレ
ス制御を行うことが可能となる。
According to the first aspect of the present invention, while transferring a signal stored in a specific input area among a plurality of input areas of an input buffer to a single port memory, a signal other than the specific input area is transferred. While the input signal is stored in the input area of the output buffer and the signal stored in the specific output area among the plurality of output areas of the output buffer is output as the output signal, the signal stored in the single port memory is output to the specific output area. Transferred to an output area other than the area. This makes it possible to output a signal read from the single port memory as an output signal in real time while writing the input signal to the single port memory. Furthermore, by increasing the number of input areas of the input buffer and the number of output areas of the output buffer, the minimum unit of the amount of data transferred at one time can be reduced. As a result, fine address control can be performed.

【0093】請求項2に記載の発明によれば、入力バッ
ファの出力バス幅をシングルポートメモリの入力バス幅
に変換し、かつ、シングルポートメモリの出力バス幅を
出力バッファの入力バス幅に変換するバス幅変換回路が
設けられている。これにより、シングルポートメモリの
バス幅によらないシステムを実現することが可能にな
る。
According to the second aspect of the present invention, the output bus width of the input buffer is converted into the input bus width of the single port memory, and the output bus width of the single port memory is converted into the input bus width of the output buffer. A bus width conversion circuit is provided. This makes it possible to realize a system that does not depend on the bus width of the single-port memory.

【0094】請求項3に記載の発明によれば、入力バッ
ファは、入力バッファのビット方向とワード方向とに対
応して複数の入力領域に分割されており、出力バッファ
は、出力バッファのビット方向とワード方向とに対応し
て複数の出力領域に分割されている。ビット方向の分割
をプログラマブルに可変にすることにより、入力信号の
ビット幅によらず、領域ごとに意図したシングルポート
メモリのアドレスにアクセスすることができる。その結
果、シングルポートメモリを有効に使用することが可能
になる。さらに、異なる同期系統の複数の信号を入出力
することも可能である。
According to the third aspect of the present invention, the input buffer is divided into a plurality of input areas corresponding to the bit direction and the word direction of the input buffer. And a plurality of output areas corresponding to the word direction. By making the division in the bit direction programmable, it is possible to access the intended address of the single port memory for each area regardless of the bit width of the input signal. As a result, the single port memory can be used effectively. Further, it is possible to input and output a plurality of signals of different synchronization systems.

【0095】請求項4に記載の発明によれば、所定の基
準に従ってアクセス要求信号に優先順位をつける調停回
路が設けられている。これにより、異なる同期系統の複
数の信号を入出力する場合において、信号レートの早い
ものに対してシングルポートメモリへのアクセスを優先
的に許可することができる。その結果、破綻なくリアル
タイム制御を行うことが可能になる。
According to the fourth aspect of the present invention, the arbitration circuit for prioritizing the access request signals according to a predetermined standard is provided. Accordingly, when a plurality of signals of different synchronization systems are input / output, access to the single-port memory can be preferentially permitted for a signal having a high signal rate. As a result, real-time control can be performed without failure.

【0096】請求項5に記載の発明によれば、入力バッ
ファから出力される信号を出力バッファに直接的に書き
込む回路が設けられている。これにより、入力バッファ
と出力バッファとを利用して入力信号を単純遅延させて
出力することができる。
According to the fifth aspect of the present invention, there is provided a circuit for directly writing a signal output from an input buffer to an output buffer. As a result, the input signal can be simply delayed using the input buffer and the output buffer and output.

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

【図1】実施の形態1のメモリインターフェース装置の
構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a memory interface device according to a first embodiment.

【図2】入力バッファ1aの構成を示す図である。FIG. 2 is a diagram illustrating a configuration of an input buffer 1a.

【図3】シングルポートメモリ6にデータを書き込むタ
イミングを示すタイムチャートである。
FIG. 3 is a time chart showing a timing of writing data to a single port memory 6;

【図4】出力バッファ2aの構成を示す図である。FIG. 4 is a diagram showing a configuration of an output buffer 2a.

【図5】シングルポートメモリ6からデータを読み出す
タイミングを示すタイムチャートである。
FIG. 5 is a time chart showing a timing of reading data from a single port memory 6;

【図6】シングルポートメモリ6にリアルタイムにデー
タを読み書きする場合のタイミングを示すタイムチャー
トである。
FIG. 6 is a time chart showing timing when data is read from and written to the single port memory 6 in real time.

【図7】シングルポートメモリ6のメモリマップの一例
を示す図である。
FIG. 7 is a diagram showing an example of a memory map of a single port memory 6;

【図8】入力バッファ部1の構成を示す図である。FIG. 8 is a diagram illustrating a configuration of an input buffer unit 1;

【図9】出力バッファ部2の構成を示す図である。FIG. 9 is a diagram showing a configuration of an output buffer unit 2;

【図10】メモリセルアレイ10の構成を示す図であ
る。
FIG. 10 is a diagram showing a configuration of a memory cell array 10;

【図11】Write制御部9の構成を示す図である。FIG. 11 is a diagram illustrating a configuration of a write control unit 9;

【図12】Write制御部9の動作のタイミングを示すタ
イムチャートである。
FIG. 12 is a time chart showing the operation timing of the write control unit 9;

【図13】入力データRead制御部11の構成を示す図で
ある。
FIG. 13 is a diagram illustrating a configuration of an input data read control unit 11;

【図14】コントロール部3の構成を示す図である。FIG. 14 is a diagram showing a configuration of a control unit 3.

【図15】(a)はタイミング信号発生器81の構成を
示す図、(b)はアドレス発生器82の構成を示す図で
ある。
15A is a diagram showing a configuration of a timing signal generator 81, and FIG. 15B is a diagram showing a configuration of an address generator 82. FIG.

【図16】(a)および(b)は、シングルポートメモ
リ6のメモリマップの一例を示す図である。
FIGS. 16A and 16B are diagrams showing an example of a memory map of a single port memory 6. FIG.

【図17】(a)〜(d)は、シングルポートメモリ6
のメモリマップの一例を示す図である。
17 (a) to (d) show a single port memory 6;
FIG. 3 is a diagram showing an example of a memory map of FIG.

【図18】調停回路の構成を示す図である。FIG. 18 is a diagram illustrating a configuration of an arbitration circuit.

【図19】調停器102の出力を示す図である。FIG. 19 is a diagram showing an output of the arbitrator 102.

【図20】入力バッファ部1および出力バッファ部2の
メモリアレイの構成を示す図である。
FIG. 20 is a diagram showing a configuration of a memory array of an input buffer unit 1 and an output buffer unit 2;

【図21】入力信号Write制御部9の他の構成を示す図
である。
FIG. 21 is a diagram illustrating another configuration of the input signal Write control unit 9;

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

1 入力バッファ部 2 出力バッファ部 3 コントロール部 4 バッファ制御部 5 メモリ制御部 6 シングルポートメモリ 9 入力信号Write制御部 10 メモリセルアレイ 11 入力データRead制御部 12 出力信号Read制御部 13 出力データWrite制御部 47 メモリセル 50 微分回路 80 タイミング発生器 81 アドレス発生器 82 タイミング発生器 83 アドレス発生器 102 調停器 DESCRIPTION OF SYMBOLS 1 Input buffer part 2 Output buffer part 3 Control part 4 Buffer control part 5 Memory control part 6 Single port memory 9 Input signal Write control part 10 Memory cell array 11 Input data Read control part 12 Output signal Read control part 13 Output data Write control part 47 memory cell 50 differentiating circuit 80 timing generator 81 address generator 82 timing generator 83 address generator 102 arbitrator

───────────────────────────────────────────────────── フロントページの続き (72)発明者 二宮 和貴 大阪府門真市大字門真1006番地 松下電 器産業株式会社内 (72)発明者 ▲徳▼永 尚哉 大阪府門真市大字門真1006番地 松下電 器産業株式会社内 (72)発明者 寒川 賢太 大阪府門真市大字門真1006番地 松下電 器産業株式会社内 (72)発明者 宮口 裕 東京都港区北青山3丁目6番12号 青山 富士ビル 日本テキサス・インスツルメ ンツ株式会社内 (72)発明者 矢口 雄二 茨城県稲敷郡美浦村木原2355番地 (72)発明者 秋山 強 茨城県稲敷郡美浦村木原2355番地 (72)発明者 足立 顕哉 茨城県稲敷郡美浦村木原2355番地 (56)参考文献 特開 平10−326342(JP,A) 特開 平3−29179(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 5/76 - 5/956 H04N 7/01 H04N 9/79 - 9/898 G06F 5/06 G11C 7/00 G11C 11/40 - 11/4197 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Kazuki Ninomiya 1006 Kazuma Kadoma, Kadoma City, Osaka Prefecture Inside Matsushita Electric Industrial Co., Ltd. Within Sangyo Co., Ltd. (72) Inventor Kenta Samukawa 1006 Kazuma Kadoma, Kadoma, Osaka Prefecture Inside Matsushita Electric Industrial Co., Ltd. Instrument Co., Ltd. 2355 Murakihara (56) References JP-A-10-326342 (JP, A) JP-A-3-29179 (JP, A) (58) Fields investigated (Int. Cl. 7) H04N 5/76-5/956 H04N 7/01 H04N 9/79-9/898 G06F 5/06 G11C 7/00 G11C 11/40-11/4197

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の入力領域を有する所定信号用の
力バッファと、複数の出力領域を有する所定信号用の
力バッファと、前記入力バッファと前記出力バッファと
所定のシングルポートメモリとを制御する制御部とを備
え、前記入力バッファの各入力領域が論理的に分割されてお
り、 前記出力バッファの各出力領域が論理的に分割されてお
り、 前記制御部は、前記入力バッファの複数の領域のうちの
特定の入力領域に蓄積された前記入力信号をシングルポ
ートメモリに転送する間に、前記特定の入力領域以外の
入力領域に前記入力信号を蓄積するように前記入力バッ
ファおよび前記シングルポートメモリを制御し、 前記制御部は、前記出力バッファの前記複数の出力領域
のうちの特定の出力領域に蓄積された信号を出力信号と
して出力する間に、前記シングルポートメモリに格納さ
れた信号を前記特定の出力領域以外の出力領域に転送す
るように前記出力バッファおよび前記シングルポートメ
モリを制御する、メモリインターフェース装置。
1. A and input <br/> force buffer for a given signal having a plurality of input regions, and output <br/> force buffer for a given signal having a plurality of output regions, the input buffer and the output buffer And a control unit for controlling a predetermined single port memory, wherein each input area of the input buffer is logically divided.
Therefore, each output area of the output buffer is logically divided.
The control unit may include a plurality of areas of the input buffer.
While transferring the input signal accumulated in a specific input region to the single port memory, and controls the input buffer and the single port memory to store the input signal in the input area other than the specific input region The control unit outputs the signal stored in the single-port memory to the specific output while outputting a signal stored in a specific output area of the plurality of output areas of the output buffer as an output signal. A memory interface device that controls the output buffer and the single-port memory so as to transfer the data to an output area other than the area;
【請求項2】 複数の入力領域を有する入力バッファ
と、複数の出力領域を有する出力バッファと、前記入力
バッファと前記出力バッファと所定のシングルポートメ
モリとを制御する制御部とを備え、 前記制御部は、前記入力バッファの前記複数の入力領域
のうちの特定の入力領域に蓄積された信号を前記シング
ルポートメモリに転送する間に、前記特定の入力領域以
外の入力領域に入力信号を蓄積するように前記入力バッ
ファおよび前記シングルポートメモリを制御し、 前記制御部は、前記出力バッファの前記複数の出力領域
のうちの特定の出力領域に蓄積された信号を出力信号と
して出力する間に、前記シングルポートメモリに格納さ
れた信号を前記特定の出力領域以外の出力領域に転送す
るように前記出力バッファおよび前記シングルポートメ
モリを制御し、 前記入力バッファの出力バス幅を前記シングルポートメ
モリの入力バス幅に変換し、かつ、前記シングルポート
メモリの出力バス幅を前記出力バッファの入力バス幅に
変換するバス幅変換回路をさらに備えている、メモリイ
ンターフェース装置。
2. An input buffer having a plurality of input areas.
An output buffer having a plurality of output areas;
Buffer and the output buffer and a predetermined single port
And a control unit for controlling the memory and the plurality of input areas of the input buffer
The signal stored in a specific input area of the
During the transfer to the port memory,
The input buffer so as to store the input signal in an external input area.
And the single port memory, wherein the control unit controls the plurality of output areas of the output buffer.
The signal accumulated in a specific output area of the
Output to the single port memory.
Transferred to the output area other than the specific output area.
The output buffer and the single port
A bus width conversion circuit for controlling a memory, converting an output bus width of the input buffer into an input bus width of the single port memory, and converting an output bus width of the single port memory into an input bus width of the output buffer; A memory interface device, further comprising:
【請求項3】 複数の入力領域を有する入力バッファ
と、複数の出力領域を有する出力バッファと、前記入力
バッファと前記出力バッファと所定のシングルポートメ
モリとを制御する制御部とを備え、 前記制御部は、前記入力バッファの前記複数の入力領域
のうちの特定の入力領域に蓄積された信号を前記シング
ルポートメモリに転送する間に、前記特定の入力領域以
外の入力領域に入力信号を蓄積するように前記入力バッ
ファおよび前記シングルポートメモリを制御し、 前記制御部は、前記出力バッファの前記複数の出力領域
のうちの特定の出力領域に蓄積された信号を出力信号と
して出力する間に、前記シングルポートメモリに格納さ
れた信号を前記特定の出力領域以外の出力領域に転送す
るように前記出力バッファおよび前記シングルポートメ
モリを制御し、 前記入力バッファは、前記入力バッファのビット方向と
ワード方向とに対応して複数の入力領域に分割されてお
り、前記出力バッファは、前記出力バッファのビット方
向とワード方向とに対応して複数の出力領域に分割され
ている、メモリインターフェース装置。
3. An input buffer having a plurality of input areas.
An output buffer having a plurality of output areas;
Buffer and the output buffer and a predetermined single port
And a control unit for controlling the memory and the plurality of input areas of the input buffer
The signal stored in a specific input area of the
During the transfer to the port memory,
The input buffer so as to store the input signal in an external input area.
And the single port memory, wherein the control unit controls the plurality of output areas of the output buffer.
The signal accumulated in a specific output area of the
Output to the single port memory.
Transferred to the output area other than the specific output area.
The output buffer and the single port
Controlling the memory, the input buffer is divided into a plurality of input areas corresponding to the bit direction and the word direction of the input buffer, and the output buffer is arranged in the bit direction and the word direction of the output buffer. A memory interface device correspondingly divided into a plurality of output areas.
【請求項4】 前記入力バッファおよび前記出力バッフ
ァのそれぞれは、前記シングルポートメモリに対するア
クセス要求信号を前記制御部に出力し、 前記制御部は、所定の基準に従って前記アクセス要求信
号に優先順位をつける調停回路を備えている、請求項1
に記載のメモリインターフェース装置。
4. The input buffer and the output buffer each output an access request signal for the single port memory to the control unit, and the control unit prioritizes the access request signal according to a predetermined criterion. The arbitration circuit is provided.
3. The memory interface device according to claim 1.
【請求項5】 複数の入力領域を有する入力バッファ
と、複数の出力領域を有する出力バッファと、前記入力
バッファと前記出力バッファと所定のシングルポートメ
モリとを制御する制御部とを備え、 前記制御部は、前記入力バッファの前記複数の入力領域
のうちの特定の入力領域に蓄積された信号を前記シング
ルポートメモリに転送する間に、前記特定の入力領域以
外の入力領域に入力信号を蓄積するように前記入力バッ
ファおよび前記シングルポートメモリを制御し、 前記制御部は、前記出力バッファの前記複数の出力領域
のうちの特定の出力領域に蓄積された信号を出力信号と
して出力する間に、前記シングルポートメモリ に格納さ
れた信号を前記特定の出力領域以外の出力領域に転送す
るように前記出力バッファおよび前記シングルポートメ
モリを制御し、 前記入力バッファから出力される信号を前記出力バッフ
ァに直接的に書き込む回路をさらに備えている、インタ
ーフェース装置。
5. An input buffer having a plurality of input areas.
An output buffer having a plurality of output areas;
Buffer and the output buffer and a predetermined single port
And a control unit for controlling the memory and the plurality of input areas of the input buffer
The signal stored in a specific input area of the
During the transfer to the port memory,
The input buffer so as to store the input signal in an external input area.
And the single port memory, wherein the control unit controls the plurality of output areas of the output buffer.
The signal accumulated in a specific output area of the
During the to output, it is stored in the single port memory
Transferred to the output area other than the specific output area.
The output buffer and the single port
An interface device, further comprising a circuit that controls a memory and directly writes a signal output from the input buffer to the output buffer.
JP27175197A 1997-10-03 1997-10-03 Memory interface device Expired - Fee Related JP3343207B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP27175197A JP3343207B2 (en) 1997-10-03 1997-10-03 Memory interface device
US09/165,785 US6453394B2 (en) 1997-10-03 1998-10-02 Memory interface device and memory address generation device
EP06011660A EP1691296A3 (en) 1997-10-03 1998-10-02 Memory interface device and memory address generation device
DE69836786T DE69836786T2 (en) 1997-10-03 1998-10-02 Memory interface device and memory address generation device
EP98118641A EP0908827B8 (en) 1997-10-03 1998-10-02 Memory interface device and memory address generation device
US10/195,975 US6732252B2 (en) 1997-10-03 2002-07-16 Memory interface device and memory address generation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27175197A JP3343207B2 (en) 1997-10-03 1997-10-03 Memory interface device

Publications (2)

Publication Number Publication Date
JPH11112942A JPH11112942A (en) 1999-04-23
JP3343207B2 true JP3343207B2 (en) 2002-11-11

Family

ID=17504335

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27175197A Expired - Fee Related JP3343207B2 (en) 1997-10-03 1997-10-03 Memory interface device

Country Status (1)

Country Link
JP (1) JP3343207B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4654017B2 (en) * 2004-12-17 2011-03-16 アラクサラネットワークス株式会社 Line aggregation device and buffer management device

Also Published As

Publication number Publication date
JPH11112942A (en) 1999-04-23

Similar Documents

Publication Publication Date Title
EP0908827B1 (en) Memory interface device and memory address generation device
WO1981003234A1 (en) Apparatus for the display and storage of television picture information by using a memory accessible from a computer
EP0342022B1 (en) Image data read out sytem in a digital image processing system
JP3343207B2 (en) Memory interface device
WO1989010609A1 (en) Display controller
EP1459291B1 (en) Digital line delay using a single port memory
JPS59114581A (en) Display unit
EP0120745B1 (en) Apparatus permitting memory access timesharing by a plurality of users
JPS6040053B2 (en) image storage device
JP2001319470A (en) Fifo circuit
JPH06326921A (en) Picture memory device
JPH10112178A (en) Fifo memory and its manufacture
JPH0430052B2 (en)
JPS5995587A (en) Display procesor
SU1265785A1 (en) Storage for television picture
SU1660051A1 (en) Storage
JPH01201758A (en) Dma controller
JPH02264571A (en) Video signal processing circuit
JPH01223695A (en) Memory device
JPH0728987A (en) Video signal processor
JPH02255988A (en) Picture memory
JPH01118885A (en) Video interface conversion system
JPS59165092A (en) Pixel data/color data reading circuit for crt display unit
JPH05289934A (en) Image memory device
JP2000207355A (en) Data transfer controller

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020806

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090823

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090823

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100823

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110823

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110823

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120823

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees