JPH103424A - Fifo memory - Google Patents
Fifo memoryInfo
- Publication number
- JPH103424A JPH103424A JP17420996A JP17420996A JPH103424A JP H103424 A JPH103424 A JP H103424A JP 17420996 A JP17420996 A JP 17420996A JP 17420996 A JP17420996 A JP 17420996A JP H103424 A JPH103424 A JP H103424A
- Authority
- JP
- Japan
- Prior art keywords
- input
- memory
- pointer
- output
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000015654 memory Effects 0.000 title claims abstract description 123
- 238000004519 manufacturing process Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 6
- 238000000034 method Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、画像処理装置のフ
レームバッファとして使用されるFIFO(First
In First Out)メモリに関し、特にその
ようなFIFOメモリの入出力制御回路に関する。The present invention relates to a first-in-first-out (FIFO) used as a frame buffer of an image processing apparatus.
In particular, the present invention relates to an input / output control circuit of such a FIFO memory.
【0002】[0002]
【従来の技術】画像処理装置においては、カメラ等から
入力される画像データは、一度フレームバッファに格納
された後にその内部処理が行われる。このとき、フレー
ムバッファとしては、FIFOメモリが用いられる。こ
こで、FIFOメモリの入力側の書込み動作周波数(書
込み動作速度)と出力側の読出し動作周波数(読出し動
作速度)とが異なることがある。2. Description of the Related Art In an image processing apparatus, image data input from a camera or the like is once stored in a frame buffer and then subjected to internal processing. At this time, a FIFO memory is used as a frame buffer. Here, the write operation frequency (write operation speed) on the input side of the FIFO memory may be different from the read operation frequency (read operation speed) on the output side.
【0003】書込み動作速度が読出し動作速度よりも速
い場合には、FIFOメモリのメモリ部において、直前
のフレームデータを読み出す前に1フレーム後のフレー
ムデータが上書きされてしまう現象が生じる。このよう
な現象は、フレームデータ、すなわち画像データが1フ
レーム内で不連続となる事態を生ぜしめ、「胴切れ」と
呼ばれる画像の乱れの原因となっていた。If the write operation speed is faster than the read operation speed, a phenomenon occurs in which the frame data of one frame later is overwritten in the memory section of the FIFO memory before the immediately preceding frame data is read. Such a phenomenon has caused a situation in which frame data, that is, image data, is discontinuous within one frame, which has been a cause of image disturbance called "cut-out".
【0004】上述のような「胴切れ」を防ぐための発明
としては、以下のおよびに示すものが開示されてい
る。As the invention for preventing the above-mentioned "cut-out", the following and the following are disclosed.
【0005】 特開平1−282632号公報(ディ
ジタル画像表示方式)に係る発明(図3参照)An invention according to Japanese Patent Application Laid-Open No. 1-282632 (digital image display system) (see FIG. 3)
【0006】図3においては、2つのデュアルポートメ
モリが使用されて二重化構成とされたもの(デュアルポ
ートフレームメモリAおよびB)がFIFOメモリに該
当する。In FIG. 3, a dual memory (dual-port frame memories A and B) using two dual-port memories corresponds to a FIFO memory.
【0007】図3に示す発明は、2つのデュアルポート
フレームメモリAおよびBを二重化して持ち、画像メモ
リから入力される画像データのデュアルポートフレーム
メモリAおよびBに対するリード・ライト制御(読出し
および書込みの制御)を交互に行うことで、非同期に行
われるライト動作(書込み動作)とリード動作(読出し
動作)との排他制御を実現している。これにより、1つ
のフレームデータ(画像データ)が未読出しの状態で次
のフレームデータによる上書きが行われることによって
発生する画像の乱れ(胴切れ)を防止するものである。The invention shown in FIG. 3 has two dual-port frame memories A and B in duplicate, and controls read / write (read and write) of image data input from the image memory to the dual-port frame memories A and B. Are performed alternately, thereby achieving exclusive control of a write operation (write operation) and a read operation (read operation) performed asynchronously. This prevents the image from being disturbed (cut out of the body) caused by overwriting with the next frame data while one frame data (image data) has not been read.
【0008】 特開平7−298089号公報(非同
期の画素クロックを用いたフレーム伝送速度変換システ
ムおよび方法)に係る発明(図4参照)An invention according to Japanese Patent Application Laid-Open No. 7-298089 (frame transmission rate conversion system and method using asynchronous pixel clock) (see FIG. 4)
【0009】図4においては、特定数のフレーム毎に書
込みと読出しとのずれを補正している分割メモリ(フレ
ームバッファ)がFIFOメモリに該当する。In FIG. 4, a divided memory (frame buffer) that corrects a shift between writing and reading for each specific number of frames corresponds to a FIFO memory.
【0010】図4に示す発明は、フレームカウンタによ
りディスプレイ制御装置に送出されたフレーム数をカウ
ントし、特定のフレーム数の処理毎にライト動作(書込
み動作)を禁止してフレームバッファからまだ読み出さ
れていない既存の画像データ上への重ね書きを防止し、
胴切れを回避するものである。The invention shown in FIG. 4 counts the number of frames sent to the display control device by a frame counter, inhibits a write operation (write operation) every time a specific number of frames is processed, and still reads from a frame buffer. To prevent overwriting on existing image data
This is to avoid the body cut.
【0011】これらの従来技術では、フレームメモリを
二重化したり、処理されたフレーム数のカウンタ(フレ
ームカウンタ)を設けたりすることで、回路構成が複雑
になり、設計コストおよび製造コストが大きくなってい
る。また、図4に示す発明では、フレームバッファへの
書込み動作速度および読出し動作速度が一定でない場合
にはフレームのカウント数を決定できないため、汎用性
を欠いている。In these prior arts, the circuit configuration becomes complicated by increasing the number of processed frames or providing a counter (frame counter) for the number of processed frames, thereby increasing the design cost and manufacturing cost. I have. In addition, the invention shown in FIG. 4 lacks versatility because the frame count cannot be determined unless the speed of the write operation to the frame buffer and the speed of the read operation are constant.
【0012】[0012]
【発明が解決しようとする課題】従来、一般的に使用さ
れている画像処理装置におけるFIFOメモリでは、上
述のように、「胴切れ」という現象が生じるという問題
点があった。Conventionally, a FIFO memory in a generally used image processing apparatus has a problem that the phenomenon of "cut-out" occurs as described above.
【0013】また、上述した2つの公報に係る従来技術
においては、先にも言及したように、以下に示すような
問題点が存在した。Further, the prior arts according to the above two publications have the following problems as mentioned above.
【0014】第1の問題点は、フレームメモリを二重化
する方式では、設計が複雑となり製造コストが大きくな
ることである。The first problem is that, in the method of duplicating the frame memory, the design becomes complicated and the manufacturing cost increases.
【0015】その理由は、フレームメモリを二重化し切
り替えるための回路構成が複雑になることにより、設計
の難度が高くなるからである。また、フレームメモリを
二重化した分だけ、回路規模も大きくなり部品コストも
増大するからである。The reason for this is that the complexity of the circuit configuration for duplexing and switching the frame memories increases the design difficulty. Also, because the frame memory is duplicated, the circuit scale is increased and the parts cost is increased.
【0016】第2の問題点は、フレームカウンタを設け
る方式では、書込み動作速度と読出し動作速度とが動的
に変動する場合には、画像の胴切れを解消することがで
きないことである。The second problem is that, in the method in which the frame counter is provided, when the writing operation speed and the reading operation speed dynamically fluctuate, it is not possible to eliminate the image cutout.
【0017】その理由は、フレームバッファからまだ読
み出されていない既存の画像データが入力データにより
重ね書きされる現象の発生するフレームを書込み動作速
度と読出し動作速度との比率から算出しているため、そ
れらの動作速度が動的に変動するようなシステムには適
切に対応できないからである。The reason is that a frame in which existing image data that has not yet been read from the frame buffer is overwritten by input data is calculated from the ratio between the write operation speed and the read operation speed. This is because it is not possible to appropriately cope with a system in which the operation speed fluctuates dynamically.
【0018】本発明の目的は、上述の点に鑑み、画像処
理装置のフレームバッファとして使用され、画像データ
の書込み動作と画像データの読出し動作とが非同期に行
われるFIFOメモリにおいて、書込み動作速度と読出
し動作速度とが動的に変動する場合でも、1つのフレー
ム画像(画像データ)の処理中にフレームバッファから
まだ読み出されていない既存の画像データが書込み動作
により重ね書きされることによる画像の乱れ(胴切れ)
を防止することにある。In view of the above, it is an object of the present invention to provide a FIFO memory which is used as a frame buffer of an image processing apparatus and in which image data write operation and image data read operation are performed asynchronously, the write operation speed and Even when the reading operation speed fluctuates dynamically, existing image data that has not yet been read from the frame buffer during the processing of one frame image (image data) is overwritten by the writing operation. Disorder (short body)
Is to prevent
【0019】また、本発明の他の目的は、上述の「胴切
れの防止」を実現する際にフレームメモリを二重化した
り複雑な回路を追加したりすることを不要とし、「胴切
れ防止を実現するFIFOメモリ」に関する設計の単純
化および製造コストの低減化(当該FIFOメモリの小
型・軽量化,高集積化,回路・装置構成簡易化,および
生産性向上)を図ることにある。Another object of the present invention is to eliminate the need for duplicating a frame memory or adding a complicated circuit when realizing the above-mentioned "prevention of body cut". An object of the present invention is to simplify the design and reduce the manufacturing cost of the “FIFO memory to be realized” (small and light weight, high integration, simplified circuit / device configuration, and improved productivity of the FIFO memory).
【0020】[0020]
【課題を解決するための手段】本発明のFIFOメモリ
は、画像データの書込み動作と画像データの読出し動作
とが非同期に行われるFIFOメモリにおいて、1フレ
ーム分の画像データを保持するメモリ部と、前記メモリ
部への書込み位置を示す入力ポインタを保持し、その入
力ポインタと書込み許可信号とによって前記メモリ部へ
の画像データの書込みを制御し、入力ポインタと出力ポ
インタとが同一になった場合に当該書込み許可信号をマ
スクし前記メモリ部への画像データの書込み動作を禁止
する入力制御部と、前記メモリ部からの読出し位置を示
す出力ポインタを保持し、その出力ポインタと読出し許
可信号とによって前記メモリ部からの画像データの読出
しを制御する出力制御部と、前記入力制御部から送出さ
れる入力ポインタと前記出力制御部から送出される出力
ポインタとを比較し、その比較結果を示す結果信号を出
力する比較器と、前記比較器により出力される結果信号
を保持し、その保持内容を前記入力制御部に供給するフ
リップフロップと、前記比較器から出力される結果信号
に基づき、入力ポインタと出力ポインタとが同一になっ
た場合にその旨を示す割込み信号を生成してその割込み
信号を外部に通知する割込み制御部とを有する。According to the present invention, there is provided a FIFO memory in which an image data write operation and an image data read operation are performed asynchronously, a memory unit for holding one frame of image data, An input pointer indicating a write position to the memory unit is held, and writing of image data to the memory unit is controlled by the input pointer and the write enable signal. When the input pointer and the output pointer become the same, An input control unit that masks the write enable signal and inhibits an operation of writing image data to the memory unit, and an output pointer that indicates a read position from the memory unit. An output control unit for controlling reading of image data from the memory unit, and an input pointer sent from the input control unit A comparator that compares an output pointer sent from the output control unit and outputs a result signal indicating the comparison result, and holds a result signal output by the comparator; and stores the held content in the input control unit. And an interrupt signal indicating that the input pointer and the output pointer become the same based on the result signal output from the comparator and the result signal output from the comparator, and notify the external of the interrupt signal. An interrupt control unit.
【0021】[0021]
【発明の実施の形態】次に、本発明について図面を参照
して詳細に説明する。Next, the present invention will be described in detail with reference to the drawings.
【0022】図1は、本発明のFIFOメモリの一実施
例を含む画像処理装置の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of an image processing apparatus including an embodiment of a FIFO memory according to the present invention.
【0023】この画像処理装置は、入力画像処理部1
と、本実施例のFIFOメモリと、画像処理部3と、メ
モリ制御部9とを含んで構成されている。This image processing apparatus includes an input image processing unit 1
, The FIFO memory of the present embodiment, the image processing unit 3, and the memory control unit 9.
【0024】入力画像処理部1は、外部からのアナログ
画像信号をデジタル画像信号に変換し、FIFOメモリ
に画像データ(ディジタル画像信号による画像データ)
を供給する。The input image processing unit 1 converts an external analog image signal into a digital image signal and stores the image data (image data based on the digital image signal) in a FIFO memory.
Supply.
【0025】画像処理部3は、FIFOメモリに格納さ
れた1フレーム分の画像データを加工する。The image processing section 3 processes one frame of image data stored in the FIFO memory.
【0026】メモリ制御部9は、FIFOメモリを制御
するために設けられている。The memory controller 9 is provided for controlling the FIFO memory.
【0027】本実施例のFIFOメモリは、前段の入力
画像処理部1と後段の画像処理部3との間で入力画像処
理部1から入力した1フレーム分の画像データを保持し
ており、メモリ部2と、入力制御部4と、出力制御部5
と、比較器6と、フリップフロップ7と、割込み制御部
8とを含んで構成されている(図1および図2において
は、フリップフロップは「F/F(Flip/Flo
p)」と表記している)。The FIFO memory of this embodiment holds one frame of image data input from the input image processing unit 1 between the input image processing unit 1 in the preceding stage and the image processing unit 3 in the subsequent stage. Unit 2, input control unit 4, output control unit 5
, A comparator 6, a flip-flop 7, and an interrupt control unit 8 (in FIGS. 1 and 2, the flip-flop is "F / F (Flip / Flo
p) ").
【0028】メモリ部2は、FIFOメモリに入力され
た1フレーム分の画像データを保持(格納)する記憶手
段であり、入力データ(入力する画像データ)の書込み
動作と出力データ(出力する画像データ)の読出し動作
とを同時に行うことができるデュアルポートのメモリで
あり、RAM(Random Access Memo
ry)により形成される。The memory unit 2 is storage means for holding (storing) one frame of image data input to the FIFO memory, and performs a write operation of input data (input image data) and an output data (output image data). ) Is a dual-port memory capable of performing the read operation at the same time as the RAM (Random Access Memory).
ry).
【0029】入力制御部4は、入力画像処理部1から入
力した画像データをメモリ部2のどこに書き込むかを示
す入力ポインタの制御(保持・更新)や、書込み許可信
号の発行の制御を行う。The input control unit 4 controls (holds / updates) an input pointer indicating where in the memory unit 2 the image data input from the input image processing unit 1 is to be written, and controls issuance of a write enable signal.
【0030】出力制御部5は、画像処理部3に送出する
画像データをメモリ部2のどこから読み出すかを示す出
力ポインタの制御(保持・更新)や、読出し許可信号の
発行の制御を行う。The output control unit 5 controls (holds / updates) an output pointer indicating where in the memory unit 2 the image data to be sent to the image processing unit 3 is read, and controls issuance of a read permission signal.
【0031】比較器6は、入力ポインタ(入力制御部4
から送出される入力ポインタ)と出力ポインタ(出力制
御部5から送出される出力ポインタ)との大小比較を行
う。The comparator 6 has an input pointer (input control unit 4).
And an output pointer (output pointer sent from the output control unit 5).
【0032】フリップフロップ7は、比較器6における
大小比較の結果を示すものとして出力される結果信号を
保持する記憶手段であり、保持した結果信号を入力制御
部4に供給する。The flip-flop 7 is storage means for holding a result signal output as an indication of the result of the magnitude comparison in the comparator 6, and supplies the held result signal to the input control unit 4.
【0033】割り込み制御部8は、比較器6から出力さ
れた結果信号を基に、割込み信号を生成し、FIFOメ
モリの外部(ここでは、メモリ制御部9)にその割込み
信号を通知する。The interrupt control unit 8 generates an interrupt signal based on the result signal output from the comparator 6, and notifies the outside of the FIFO memory (here, the memory control unit 9) of the interrupt signal.
【0034】なお、本実施例のFIFOメモリ(図1中
の破線で囲まれた部分)は、1チップのIC(Inte
grated Circuit)として実現することが
可能であり、そのような「1チップのICの形状」とな
るように構成することが望ましい。The FIFO memory of this embodiment (portion surrounded by a broken line in FIG. 1) is a one-chip IC (Inte
(Circuited Circuit), and it is desirable to configure such a “one-chip IC shape”.
【0035】以上の構成により、本実施例、ひいては本
発明のFIFOメモリは、入力データを書き込むための
入力ポインタと出力データを読み出すための出力ポイン
タとを比較器6で常に比較し、入力ポインタと出力ポイ
ンタとが同一になった状態、すなわちメモリ部からまだ
読み出されていない既存の画像データが入力データによ
り重ね書き(上書き)される状態を検出する。そして、
この検出結果に応じ、入力制御部4においてメモリ部2
への書込み許可信号をマスクし、書込み動作を禁止する
ことにより、画像データ(画像)の「胴切れ」を防止す
る。With the above-described configuration, the FIFO memory of this embodiment and the FIFO memory of the present invention always compares the input pointer for writing the input data and the output pointer for reading the output data with the comparator 6, and compares the input pointer with the input pointer. A state where the output pointer is the same as the output pointer, that is, a state where the existing image data which has not been read from the memory unit yet is overwritten (overwritten) by the input data is detected. And
In response to this detection result, the input control unit 4
By masking the write permission signal for writing to and prohibiting the writing operation, "cut-out" of image data (image) is prevented.
【0036】図2は、本実施例のFIFOメモリの動作
を説明するためのタイムチャートを示す図である。FIG. 2 is a diagram showing a time chart for explaining the operation of the FIFO memory of this embodiment.
【0037】次に、このように構成された本実施例のF
IFOメモリの動作(FIFOメモリに関する入力画像
処理部1,画像処理部3,およびメモリ制御部9の動作
を含む)について、図1および図2を参照して詳細に説
明する。Next, the F of the present embodiment thus constructed
The operation of the IFO memory (including the operation of the input image processing unit 1, the image processing unit 3, and the memory control unit 9 relating to the FIFO memory) will be described in detail with reference to FIGS.
【0038】初めに、本実施例のFIFOメモリの概括
的な動作を、以下の〜に示す。First, general operations of the FIFO memory according to the present embodiment are shown in the following (1) to (4).
【0039】 メモリ制御部9よりFIFOメモリに
書込みリセット信号(WRST信号)および読出しリセ
ット信号(RRST信号)が入力されると、FIFOメ
モリ内の各部が初期化される。When a write reset signal (WRST signal) and a read reset signal (RRST signal) are input from the memory control unit 9 to the FIFO memory, each unit in the FIFO memory is initialized.
【0040】 入力画像処理部1よりFIFOメモリ
に1フレーム分の画像データが入力され、メモリ制御部
9よりFIFOメモリに書込み許可信号(WE信号)が
発行される。入力制御部4は、メモリ部2への書込み許
可信号(WE1信号)と画像データの書込み位置(アド
レス)を示す入力ポインタとをメモリ部2に送出し、入
力画像処理部1から入力された画像データのメモリ部2
への書込みを制御する。One frame of image data is input from the input image processing unit 1 to the FIFO memory, and the memory control unit 9 issues a write enable signal (WE signal) to the FIFO memory. The input control unit 4 sends a write permission signal (WE1 signal) to the memory unit 2 and an input pointer indicating a write position (address) of the image data to the memory unit 2, and outputs the image input from the input image processing unit 1. Data memory part 2
Control writing to
【0041】 メモリ制御部9よりFIFOメモリに
読出し許可信号(OE信号)が発行されると、出力制御
部5はメモリ部2への読出し許可信号(OE1信号)と
画像データの読出し位置(アドレス)を示す出力ポイン
タとをメモリ部2に送出し、メモリ部2から画像処理部
3への画像データの読出しを制御する。When the memory control unit 9 issues a read permission signal (OE signal) to the FIFO memory, the output control unit 5 outputs a read permission signal (OE1 signal) to the memory unit 2 and a read position (address) of image data. Is sent to the memory unit 2 and reading of image data from the memory unit 2 to the image processing unit 3 is controlled.
【0042】 入力制御部4から送出される入力ポイ
ンタと出力制御部5から送出される出力ポインタとは比
較器6において大小比較され、その比較結果は結果信号
として出力される。結果信号はフリップフロップ7を経
由して入力制御部4に送られる。その結果信号が示す比
較結果により入力ポインタと出力ポインタとが同一にな
ったことが判明した場合には、入力制御部4はメモリ部
2への書込み許可信号(WE1信号)をマスクし書き込
み禁止状態にする。The input pointer sent from the input control unit 4 and the output pointer sent from the output control unit 5 are compared in magnitude in the comparator 6, and the comparison result is output as a result signal. The result signal is sent to the input control unit 4 via the flip-flop 7. If it is found from the comparison result indicated by the result signal that the input pointer and the output pointer are the same, the input control unit 4 masks the write enable signal (WE1 signal) to the memory unit 2 and disables the write operation. To
【0043】 同時に、その結果信号は割込み制御部
8に送出される。割込み制御部8は、その結果信号が示
す比較結果により、入力ポインタと出力ポインタとが同
一になったことを、FIFOメモリの外部(メモリ制御
部9)に割込み信号(INT信号)として通知する。At the same time, the result signal is sent to the interrupt control unit 8. Based on the comparison result indicated by the result signal, the interrupt control unit 8 notifies the outside of the FIFO memory (memory control unit 9) that the input pointer and the output pointer have become the same as an interrupt signal (INT signal).
【0044】 における入力制御部4の制御によっ
て実現される書込み禁止状態と、において割り込み制
御部8により送出される割込み信号とは、外部(入力制
御部9)よりFIFOメモリにリセット信号が入力され
ることによって解除される。In the write-inhibited state realized by the control of the input control unit 4 in, and the interrupt signal sent out by the interrupt control unit 8, a reset signal is input to the FIFO memory from the outside (input control unit 9). It is released by doing.
【0045】次に、本実施例のFIFOメモリの具体的
な動作を、図2に示すタイムチャートに言及しつつ説明
する。なお、図2における「OE」,「WE」,および
「WE1」の各信号は、バー記号で示すように、“0”
の値を有する場合に当該各信号が「発行(送出)されて
いる」状態となる。Next, a specific operation of the FIFO memory according to the present embodiment will be described with reference to a time chart shown in FIG. Each signal of “OE”, “WE”, and “WE1” in FIG. 2 is “0” as indicated by a bar symbol.
, Each signal is in a state of being “issued (transmitted)”.
【0046】第1に、FIFOメモリの初期化時の動作
について説明する。First, the operation when the FIFO memory is initialized will be described.
【0047】メモリ制御部9は、FIFOメモリの初期
化のために、書込みリセット信号(WRST信号)およ
び読出しリセット信号(RRST信号)を送出する。The memory control unit 9 sends out a write reset signal (WRST signal) and a read reset signal (RRST signal) for initializing the FIFO memory.
【0048】WRST信号を受け取ったFIFOメモリ
内の入力制御部4は、メモリ部2への書込みアドレスを
示す入力ポインタの内容を“0000H”(メモリ部2
の先頭アドレス)に初期化する(なお、アドレスを示す
数値の後の「H」は当該数値が16進数であることを表
す)。Upon receiving the WRST signal, the input control unit 4 in the FIFO memory sets the contents of the input pointer indicating the write address to the memory unit 2 to “0000H” (memory unit 2
(The first address of the address) ("H" after the numerical value indicating the address indicates that the numerical value is a hexadecimal number).
【0049】フリップフロップ7および割込み制御部8
についても、WRST信号により初期化される。Flip-flop 7 and interrupt controller 8
Is also initialized by the WRST signal.
【0050】RRST信号を受け取った出力制御部5
は、メモリ部2からの読出しアドレスを示す出力ポイン
タの内容を“0000H”に初期化する。Output control unit 5 receiving the RRST signal
Initializes the contents of the output pointer indicating the read address from the memory unit 2 to "0000H".
【0051】第2に、入力画像処理部1より1フレーム
分の画像データが入力され、メモリ制御部9から書込み
許可信号(WE信号)が送出される(WE信号が“0”
となる)場合の動作について説明する。Second, one frame of image data is input from the input image processing unit 1, and a write enable signal (WE signal) is sent from the memory control unit 9 (WE signal is "0").
Will be described.
【0052】この場合、入力制御部4は、メモリ部2に
対して書込み許可信号(WE1信号)を送出し、当該画
像データの書込み動作を制御する。In this case, the input control section 4 sends a write enable signal (WE1 signal) to the memory section 2 to control the write operation of the image data.
【0053】例えば、図2中のT0サイクルにおいて
は、WE信号に基づくWE1信号および入力ポインタの
値の“1233H”により、メモリ部2内のアドレス
“1233H”の領域への画像データの書込み動作が行
われる。For example, in the T0 cycle in FIG. 2, the WE1 signal based on the WE signal and the value of the input pointer “1233H” cause the writing operation of the image data to the area of the address “1233H” in the memory unit 2 to be performed. Done.
【0054】入力制御部4は、このような書込み動作が
完了すると、自己が保持している入力ポインタの値を更
新する。When such a write operation is completed, the input control unit 4 updates the value of the input pointer held by itself.
【0055】例えば、図2中のT0サイクルからT1サ
イクルの間に入力ポインタが示すアドレスはアドレス
“1233H”から次のアドレス“1234H”に更新
され、T2サイクルではアドレス“1234H”への画
像データの書込み動作が行われる。For example, the address indicated by the input pointer is updated from the address "1233H" to the next address "1234H" between the T0 cycle and the T1 cycle in FIG. 2. In the T2 cycle, the address of the image data to the address "1234H" is updated. A write operation is performed.
【0056】第3に、メモリ制御部9から読出し許可信
号(OE信号)が送出される(OE信号が“0”とな
る)場合の動作について説明する。Third, the operation in the case where a read permission signal (OE signal) is transmitted from the memory control unit 9 (the OE signal becomes “0”) will be described.
【0057】この場合、出力制御部5は、メモリ部2に
対して読出し許可信号(OE1信号)を送出し、メモリ
部2内の画像データの読出しを制御する。In this case, the output control section 5 sends a read permission signal (OE1 signal) to the memory section 2 and controls reading of image data in the memory section 2.
【0058】例えば、図2中のT0サイクルにおいて
は、OE信号に基づくOE1信号および出力ポインタの
値の“1234H”により、メモリ部2内のアドレス
“1234H”の領域からの画像データの読出し動作が
行われる。For example, in the T0 cycle in FIG. 2, the read operation of the image data from the area of the address "1234H" in the memory unit 2 is performed by the OE1 signal based on the OE signal and the value of the output pointer "1234H". Done.
【0059】第4に、メモリ部2内に未読出しデータが
存在する場合に、その未読出しデータが入力画像処理部
1からの入力データにより上書きされるおそれがあると
きの動作について説明する。Fourth, an operation when there is a possibility that unread data may be overwritten by input data from the input image processing unit 1 when unread data exists in the memory unit 2 will be described.
【0060】例えば、図2において、T0サイクルでア
ドレス“1234H”からデータの読出しが行なわれる
と、出力ポインタは“1235H”に更新される。For example, in FIG. 2, when data is read from address "1234H" in cycle T0, the output pointer is updated to "1235H".
【0061】一方、T2サイクルでアドレス“1234
H”への画像データの書込みが行われると、入力ポイン
タは“1235H”に更新される。On the other hand, in the T2 cycle, the address “1234”
When the image data is written to "H", the input pointer is updated to "1235H".
【0062】ここで、T3サイクルにおいて、比較器6
により入力ポインタと出力ポインタとの大小比較が行わ
れ、その比較結果を示す結果信号として“0”(入力ポ
インタと出力ポインタとが同一であることを示す情報)
が出力される。Here, in the T3 cycle, the comparator 6
Performs a magnitude comparison between the input pointer and the output pointer, and as a result signal indicating the comparison result, “0” (information indicating that the input pointer and the output pointer are the same).
Is output.
【0063】この結果信号により、T4サイクルにおい
て、フリップフロップ7の記憶内容が“0”となり、入
力制御部4にその結果信号が送出される。In response to the result signal, the content stored in the flip-flop 7 becomes “0” in the cycle T 4, and the result signal is sent to the input control unit 4.
【0064】このような状態で、T4サイクルにおい
て、メモリ制御部9より次のデータの書込み指示(書込
み許可信号(WE信号)の送出)が行われても、フリッ
プフロップ7の内容が“0”であるため出力制御部5か
ら書込み許可信号(WE1信号)は発行されない。すな
わち、WE1信号は、フリップフロップ7の“0”とい
う内容に基づいてマスクされ、“1”の値が維持され
る。In this state, even if the memory controller 9 issues a next data write instruction (transmission of a write enable signal (WE signal)) in the T4 cycle, the content of the flip-flop 7 is set to "0". Therefore, the output control unit 5 does not issue the write enable signal (WE1 signal). That is, the WE1 signal is masked based on the content of "0" of the flip-flop 7, and the value of "1" is maintained.
【0065】したがって、メモリ部2において、未読出
しデータが次の入力データにより上書きされることがな
くなる。これにより、画像の胴切れを防ぐことができ
る。Therefore, in the memory section 2, unread data is not overwritten by the next input data. This can prevent the image from being cut off.
【0066】また、T3サイクルにて結果信号の“0”
が割込み制御部8に送出されると、T4サイクルにて割
込み信号(INT信号)が“1”となり、メモリ制御部
9(FIFOメモリの外部)に書込み禁止状態が発生し
たことが通知される。In the T3 cycle, the result signal is set to "0".
Is sent to the interrupt control unit 8, the interrupt signal (INT signal) becomes "1" in the T4 cycle, and the memory control unit 9 (outside of the FIFO memory) is notified that the write inhibit state has occurred.
【0067】メモリ制御部9は、この割込み信号に基づ
いて入力画像処理部1からの画像データの入力を中断
し、未読出しデータの出力が完了した後にWRST信号
を送出し、入力を中断した画像データの最初からその1
フレーム分の画像データの入力をやり直すこととなる。The memory control unit 9 interrupts the input of the image data from the input image processing unit 1 based on the interrupt signal, sends out the WRST signal after the output of the unread data is completed, and interrupts the input of the image data. First from the beginning of the data
The input of the image data for the frame is redone.
【0068】[0068]
【発明の効果】上述したように、本発明によると、以下
に示すような効果が生じる。As described above, according to the present invention, the following effects are produced.
【0069】第1の効果は、FIFOメモリ中の未読出
しデータが新たな入力データにより上書きされることが
なくなるということである。これにより、出力される画
像の乱れ(胴切れ)という現象の発生を防止することが
できる。The first effect is that unread data in the FIFO memory is not overwritten by new input data. As a result, it is possible to prevent the phenomenon that the output image is disturbed (cut body).
【0070】このような効果が生じる理由は、入力ポイ
ンタと出力ポインタとを比較し、入力ポインタと出力ポ
インタとが同一になる場合に、書込み許可信号をマスク
しFIFOメモリへの書込み動作を禁止することができ
るからである。The reason why such an effect occurs is that the input pointer is compared with the output pointer, and when the input pointer and the output pointer are the same, the write enable signal is masked and the write operation to the FIFO memory is prohibited. Because you can do it.
【0071】第2の効果は、上述の第1の効果を実現す
る際に、複雑な回路構成を採用する必要がなく、設計の
複雑さを解消することができ、製造時のコストが大きく
ならないということである。The second effect is that, when the first effect is realized, it is not necessary to adopt a complicated circuit configuration, the complexity of the design can be eliminated, and the manufacturing cost does not increase. That's what it means.
【0072】このような効果が生じる理由は、比較的簡
易な構造の構成要素によって本発明のFIFOメモリの
全体を形成することができ(例えば、本発明のFIFO
メモリ全体を1つのICで実現することができる)、当
該FIFOメモリ周辺の制御回路の量を削減することが
できるからである。The reason for such an effect is that the entirety of the FIFO memory of the present invention can be formed by components having a relatively simple structure (for example, the FIFO memory of the present invention).
This is because the entire memory can be realized by one IC), so that the amount of control circuits around the FIFO memory can be reduced.
【図1】本発明のFIFOメモリの一実施例の構成等を
示すブロック図である。FIG. 1 is a block diagram showing a configuration and the like of an embodiment of a FIFO memory according to the present invention.
【図2】図1に示すFIFOメモリの動作を説明するた
めのタイムチャートを示す図である。FIG. 2 is a diagram showing a time chart for explaining the operation of the FIFO memory shown in FIG. 1;
【図3】従来のFIFOメモリの一例を説明するための
ブロック図である。FIG. 3 is a block diagram for explaining an example of a conventional FIFO memory.
【図4】従来のFIFOメモリの他の一例を説明するた
めのブロック図である。FIG. 4 is a block diagram for explaining another example of a conventional FIFO memory.
1 入力画像処理部 2 メモリ部 3 画像処理部 4 入力制御部 5 出力制御部 6 比較器 7 フリップフロップ(F/F) 8 割込み制御部 9 メモリ制御部 DESCRIPTION OF SYMBOLS 1 Input image processing part 2 Memory part 3 Image processing part 4 Input control part 5 Output control part 6 Comparator 7 Flip-flop (F / F) 8 Interrupt control part 9 Memory control part
Claims (3)
読出し動作とが非同期に行われるFIFOメモリにおい
て、 1フレーム分の画像データを保持するメモリ部と、 前記メモリ部への書込み位置を示す入力ポインタを保持
し、その入力ポインタと書込み許可信号とによって前記
メモリ部への画像データの書込みを制御し、入力ポイン
タと出力ポインタとが同一になった場合に当該書込み許
可信号をマスクし前記メモリ部への画像データの書込み
動作を禁止する入力制御部と、 前記メモリ部からの読出し位置を示す出力ポインタを保
持し、その出力ポインタと読出し許可信号とによって前
記メモリ部からの画像データの読出しを制御する出力制
御部と、 前記入力制御部から送出される入力ポインタと前記出力
制御部から送出される出力ポインタとを比較し、その比
較結果を示す結果信号を出力する比較器と、 前記比較器により出力される結果信号を保持し、その保
持内容を前記入力制御部に供給するフリップフロップ
と、 前記比較器から出力される結果信号に基づき、入力ポイ
ンタと出力ポインタとが同一になった場合にその旨を示
す割込み信号を生成してその割込み信号を外部に通知す
る割込み制御部とを有することを特徴とするFIFOメ
モリ。1. A FIFO memory in which an operation of writing image data and an operation of reading image data are performed asynchronously, a memory unit for holding one frame of image data, and an input pointer indicating a writing position in the memory unit. And controlling the writing of the image data to the memory unit by the input pointer and the write enable signal. When the input pointer and the output pointer become the same, the write enable signal is masked to the memory unit. An input control unit for prohibiting the writing operation of the image data, and an output pointer indicating a reading position from the memory unit, and reading of the image data from the memory unit is controlled by the output pointer and the read permission signal. An output control unit; an input pointer sent from the input control unit; and an output pointer sent from the output control unit. A comparator that outputs a result signal indicating the result of the comparison, a flip-flop that holds the result signal output by the comparator, and supplies the held content to the input control unit; And an interrupt control unit for generating an interrupt signal indicating that the input pointer and the output pointer are the same based on the result signal output from the device and notifying the interrupt signal to the outside. FIFO memory.
し、画像処理部に画像データを出力し、メモリ制御部に
よる制御によって動作することを特徴とする請求項1記
載のFIFOメモリ。2. The FIFO memory according to claim 1, wherein image data is input from an input image processing unit, image data is output to the image processing unit, and the FIFO memory operates under the control of a memory control unit.
される請求項1または請求項2記載のFIFOメモリ。3. The FIFO memory according to claim 1, wherein the FIFO memory is configured to have a one-chip IC shape.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17420996A JPH103424A (en) | 1996-06-13 | 1996-06-13 | Fifo memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17420996A JPH103424A (en) | 1996-06-13 | 1996-06-13 | Fifo memory |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH103424A true JPH103424A (en) | 1998-01-06 |
Family
ID=15974638
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP17420996A Pending JPH103424A (en) | 1996-06-13 | 1996-06-13 | Fifo memory |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH103424A (en) |
-
1996
- 1996-06-13 JP JP17420996A patent/JPH103424A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7936350B2 (en) | Display control circuit and display system | |
JPH04165866A (en) | Buffer memory circuit | |
US5530458A (en) | Image memory control device | |
US4970501A (en) | Method for writing data into an image repetition memory of a data display terminal | |
JPH103424A (en) | Fifo memory | |
JP2001255860A (en) | Video data transfer device and video data transferring method | |
US5982397A (en) | Video graphics controller having locked and unlocked modes of operation | |
JP2687986B2 (en) | Display device | |
US5758185A (en) | Method for resetting a system controlled by a CPU and having a semi-autonomous IC unit | |
JP3469753B2 (en) | Return address read control method of processor and processor | |
JP2988139B2 (en) | Interrupt control device | |
JP3079731B2 (en) | External data input circuit | |
KR100284564B1 (en) | How to convert data speed | |
KR100467520B1 (en) | Drive circuit for liquid crystal display with circuit protection | |
JPH06103026A (en) | Memory system | |
JPS62113193A (en) | memory circuit | |
JP2625396B2 (en) | Receive data processing device | |
JPH01161454A (en) | Memory device using dynamic type memory element | |
JPH09293046A (en) | Storage controller | |
JPH06118941A (en) | Display device | |
JPH07253920A (en) | Fifo ram controller | |
JPH05334099A (en) | Write circuit for state setting register | |
JPH04127666A (en) | data processing circuit | |
JPH04181990A (en) | Screen display device | |
JP2000287180A (en) | Video data processing unit |