JP2011039302A - Buffer control circuit, display controller and electronic apparatus - Google Patents

Buffer control circuit, display controller and electronic apparatus Download PDF

Info

Publication number
JP2011039302A
JP2011039302A JP2009186769A JP2009186769A JP2011039302A JP 2011039302 A JP2011039302 A JP 2011039302A JP 2009186769 A JP2009186769 A JP 2009186769A JP 2009186769 A JP2009186769 A JP 2009186769A JP 2011039302 A JP2011039302 A JP 2011039302A
Authority
JP
Japan
Prior art keywords
buffer
image data
mode
circuit
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009186769A
Other languages
Japanese (ja)
Inventor
Tadashi Ozaki
匡史 尾崎
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2009186769A priority Critical patent/JP2011039302A/en
Publication of JP2011039302A publication Critical patent/JP2011039302A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a buffer control circuit that can prevent the transfer of stream image data from being interrupted, a display controller and an electronic apparatus. <P>SOLUTION: The buffer control circuit includes a writing circuit 220 for writing the stream image data SD on a line buffer 200, and a reading circuit 230 for reading the image data written on the line buffer 200. When the number of pixels in a horizontal direction of the stream image data SD is H, and the number of threshold pixels for mode switching is N, in a first mode of H>N, the writing circuit 220 writes the image data SD on the line buffer 200 set in a double buffer, having first and second buffer regions BA1 and BA2; and in a second mode of H≤N, the writing circuit writes the image data SD on the line buffer 200 set in a single buffer. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、バッファー制御回路、表示コントローラー及び電子機器等に関する。   The present invention relates to a buffer control circuit, a display controller, an electronic device, and the like.

種々の画像を表示する表示装置には、表示制御を行う表示コントローラーが一般に用いられている(例えば、特許文献1に開示された表示コントローラー)。表示コントローラーは、ホスト等から入力されたストリーム画像データ(広義には、画像データ)をラインバッファー等でバッファリングしてビデオメモリーに記憶し、その画像データに基づいて表示制御を行う。このとき、ビデオメモリーへの転送速度等の条件によって、ホスト等から表示コントローラーへのストリーム画像データの転送が中断してしまう場合があるという課題がある。   A display controller that performs display control is generally used for a display device that displays various images (for example, a display controller disclosed in Patent Document 1). The display controller buffers stream image data (image data in a broad sense) input from a host or the like with a line buffer or the like and stores it in a video memory, and performs display control based on the image data. At this time, there is a problem that the transfer of the stream image data from the host or the like to the display controller may be interrupted depending on conditions such as the transfer speed to the video memory.

例えば、ストリーム画像データをバッファリングする手法として、ラインバッファーを2つのバッファー領域に分け、2つのバッファー領域の一方に書き込みを行い、他方から読み出しを行う動作を交互に行うダブルバッファー手法が考えられる。しかしながら、このダブルバッファー手法では、一方のバッファー領域からビデオメモリーへの転送が完了するまでの間、そのバッファー領域にストリーム画像データを書き込むことができない。そのため、ラインバッファーからビデオメモリーへのデータ転送の転送速度が遅くなると、ホスト等から表示コントローラーへのストリーム画像データの転送が中断されてしまう場合がある。   For example, as a technique for buffering stream image data, a double buffer technique in which a line buffer is divided into two buffer areas, writing to one of the two buffer areas, and reading from the other is alternately performed can be considered. However, with this double buffer method, stream image data cannot be written to the buffer area until the transfer from one buffer area to the video memory is completed. Therefore, when the transfer rate of data transfer from the line buffer to the video memory is slow, transfer of stream image data from the host or the like to the display controller may be interrupted.

特開2006−18002号公報JP 2006-18002 A

本発明の幾つかの態様によれば、ストリーム画像データの転送の中断を抑止できるバッファー制御回路、表示コントローラー及び電子機器等を提供できる。   According to some aspects of the present invention, it is possible to provide a buffer control circuit, a display controller, an electronic device, and the like that can prevent interruption of transfer of stream image data.

本発明の一態様は、ストリーム画像データを受けて、ラインバッファーに対して前記ストリーム画像データの書き込み処理を行う書き込み回路と、前記ラインバッファーに書き込まれた画像データの読み出し処理を行う読み出し回路と、を含み、前記ストリーム画像データの水平方向の画素数がH(Hは自然数)であり、モード切替えの閾値画素数がN(Nは自然数)である場合に、前記書き込み回路は、H>Nの第1のモードでは、第1のバッファー領域と第2のバッファー領域を有するダブルバッファーに設定された前記ラインバッファーに対して前記書き込み処理を行い、H≦Nの第2のモードでは、シングルバッファーに設定された前記ラインバッファーに対して前記書き込み処理を行うバッファー制御回路に関係する。   One aspect of the present invention is a write circuit that receives stream image data and writes the stream image data to a line buffer; a read circuit that reads image data written in the line buffer; And the stream circuit data has a horizontal pixel count of H (H is a natural number) and a mode switching threshold pixel count of N (N is a natural number), the write circuit satisfies H> N In the first mode, the writing process is performed on the line buffer set as a double buffer having a first buffer area and a second buffer area. In the second mode where H ≦ N, a single buffer is used. The present invention relates to a buffer control circuit that performs the writing process on the set line buffer.

本発明の一態様によれば、H>Nである第1のモードでは、ラインバッファーが、第1、第2のバッファー領域を有するダブルバッファーに設定され、そのダブルバッファーに設定されたラインバッファーに対して書き込み処理が行われる。一方、H≦Nである第2のモードでは、ラインバッファーがシングルバッファーに設定され、そのシングルバッファーに設定されたラインバッファーに対して書き込み処理が行われる。これにより、ホスト等からのストリーム画像データの転送中断を抑止することなどが可能になる。   According to one aspect of the present invention, in the first mode where H> N, the line buffer is set to a double buffer having first and second buffer areas, and the line buffer set to the double buffer is set to the double buffer. On the other hand, a writing process is performed. On the other hand, in the second mode in which H ≦ N, the line buffer is set as a single buffer, and writing processing is performed on the line buffer set as the single buffer. As a result, it is possible to suppress the interruption of the transfer of stream image data from the host or the like.

また、本発明の一態様では、前記ストリーム画像データの垂直方向の画素数がV(Vは自然数)である場合に、前記第1のモードでは、前記書き込み回路は、水平方向の画素数がHで垂直方向の画素数がj(jはj≦Vの自然数)の画像データを、前記第1のバッファー領域及び前記第2のバッファー領域の一方に書き込み、前記読み出し回路は、水平方向の画素数がHで垂直方向の画素数がjの画像データを、前記第1のバッファー領域及び前記第2のバッファー領域の他方から読み出し、前記第2のモードでは、前記書き込み回路は、水平方向の画素数がHで垂直方向の画素数がVの画像データを、シングルバッファーに設定された前記ラインバッファーに書き込み、前記読み出し回路は、水平方向の画素数がHで垂直方向の画素数がVの画像データを、シングルバッファーに設定された前記ラインバッファーから読み出してもよい。   In one embodiment of the present invention, when the number of pixels in the vertical direction of the stream image data is V (V is a natural number), in the first mode, the writing circuit has a horizontal number of pixels of H. And the image data with the number of pixels in the vertical direction j (j is a natural number where j ≦ V) is written in one of the first buffer area and the second buffer area, and the readout circuit has the number of pixels in the horizontal direction Is read out from the other of the first buffer area and the second buffer area, and in the second mode, the writing circuit counts the number of pixels in the horizontal direction. Is written to the line buffer set as a single buffer, and the readout circuit has a horizontal pixel count of H and a vertical pixel count of V. The image data may be read out from the line buffer is set to a single buffer.

このようにすれば、第1のモードにおいて、ダブルバッファーに設定されたラインバッファーに対して書き込み処理と読み出し処理を行うことが可能になる。また、第2のモードにおいて、シングルバッファーに設定されたラインバッファーに対して書き込み処理と読み出し処理を行うことが可能になる。   In this way, in the first mode, it is possible to perform the writing process and the reading process for the line buffer set as the double buffer. In the second mode, it is possible to perform a writing process and a reading process for a line buffer set as a single buffer.

また、本発明の一態様では、前記ストリーム画像データの垂直方向の画素数Vが大きいほど前記閾値画素数Nを小さくしてもよい。   In one aspect of the present invention, the threshold pixel number N may be decreased as the vertical pixel number V of the stream image data is increased.

また、本発明の一態様では、前記第1のバッファー領域の記憶容量がi×j画素(iはi≧Hの自然数)に対応する記憶容量であり、前記第2のバッファー領域の記憶容量がi×j画素に対応する記憶容量である場合に、N×V≦i×2jを満たしてもよい。   In one embodiment of the present invention, the storage capacity of the first buffer area is a storage capacity corresponding to i × j pixels (i is a natural number of i ≧ H), and the storage capacity of the second buffer area is If the storage capacity corresponds to i × j pixels, N × V ≦ i × 2j may be satisfied.

これらの本発明の一態様によれば、閾値画素数Nを設定し、設定したNに基づいてH>Nにおいて第1のモードに設定し、H≦Nにおいて第2のモードに設定できる。そして、第2のモードにおいて、水平方向の画素数がHで垂直方向の画素数がVの画像データを、シングルバッファーに設定されたラインバッファーに書き込むことができる。   According to these aspects of the present invention, it is possible to set the threshold pixel number N, set the first mode when H> N based on the set N, and set the second mode when H ≦ N. In the second mode, it is possible to write image data in which the number of pixels in the horizontal direction is H and the number of pixels in the vertical direction is V in a line buffer set as a single buffer.

また、本発明の一態様では、前記ストリーム画像データの水平方向の画素数Hと垂直方向の画素数Vを設定するレジスターを含み、前記レジスターの設定値に基づいて、前記第1のモードと前記第2のモードを切り替えてもよい。   In one aspect of the present invention, a register that sets a horizontal pixel count H and a vertical pixel count V of the stream image data is included. Based on the setting value of the register, the first mode and the The second mode may be switched.

このようにすれば、レジスターの設定値に基づいて、閾値画素数Nを設定し、設定したNに基づいて、H>Nの第1のモードとH≦Nの第2のモードを切り替えることができる。   In this way, the threshold pixel number N is set based on the set value of the register, and the first mode of H> N and the second mode of H ≦ N are switched based on the set N. it can.

また、本発明の他の態様は、上記のいずれかに記載のバッファー制御回路を含む表示コントローラーに関係する。   Another embodiment of the present invention relates to a display controller including any of the buffer control circuits described above.

また、本発明の他の態様では、ホストからの前記ストリーム画像データを受けるホストインターフェース回路と、前記読み出し回路により読み出された画像データを画像メモリーに書き込むメモリーコントローラーと、を含んでもよい。   Another aspect of the present invention may include a host interface circuit that receives the stream image data from the host, and a memory controller that writes the image data read by the read circuit to an image memory.

また、本発明の他の態様では、前記第1のモードにおいて、前記読み出し回路は、前記ラインバッファーから画像データをバーストモードで読み出し、前記メモリーコントローラーは、前記読み出し回路からの画像データを前記画像メモリーにバーストモードで書き込んでもよい。   In another aspect of the present invention, in the first mode, the read circuit reads image data from the line buffer in a burst mode, and the memory controller reads image data from the read circuit in the image memory. May be written in burst mode.

また、本発明の他の態様は、上記のいずれかに記載の表示コントローラーを含む電子機器に関係する。   Another aspect of the invention relates to an electronic device including any of the display controllers described above.

表示コントローラーの構成例。Configuration example of display controller. 図2(A)、図2(B)は、比較例の説明図。2A and 2B are explanatory diagrams of a comparative example. 比較例のタイミングチャート。The timing chart of a comparative example. 本実施形態のバッファー制御回路の構成例。2 is a configuration example of a buffer control circuit according to the present embodiment. 図5(A)、図5(B)は、ダブルバッファーモードにおけるバッファー制御回路の動作例の説明図。5A and 5B are explanatory diagrams of an operation example of the buffer control circuit in the double buffer mode. ダブルバッファーモードにおけるタイミングチャート例。The timing chart example in double buffer mode. 図7(A)、図7(B)は、シングルバッファーモードにおけるバッファー制御回路の動作例の説明図。7A and 7B are explanatory diagrams of an operation example of the buffer control circuit in the single buffer mode. シングルバッファーモードにおけるタイミングチャート例。Timing chart example in single buffer mode. 閾値画素数Nの設定例。An example of setting the threshold pixel number N. バッファー制御回路の詳細な構成例。3 shows a detailed configuration example of a buffer control circuit. バッファー制御回路の詳細な構成例の動作例。The operation example of the detailed structural example of a buffer control circuit. バッファー制御回路の詳細な構成例のダブルバッファーモードにおけるタイミングチャート例。6 is a timing chart example in a double buffer mode of a detailed configuration example of a buffer control circuit. バッファー制御回路の詳細な構成例のシングルバッファーモードにおけるタイミングチャート例。9 is a timing chart example in a single buffer mode of a detailed configuration example of a buffer control circuit. 電子機器の構成例。Configuration example of an electronic device.

以下、本発明の好適な実施の形態について詳細に説明する。なお以下に説明する本実施形態は特許請求の範囲に記載された本発明の内容を不当に限定するものではなく、本実施形態で説明される構成の全てが本発明の解決手段として必須であるとは限らない。   Hereinafter, preferred embodiments of the present invention will be described in detail. The present embodiment described below does not unduly limit the contents of the present invention described in the claims, and all the configurations described in the present embodiment are indispensable as means for solving the present invention. Not necessarily.

1.表示コントローラーの構成例
図1に、表示コントローラー(集積回路装置)の構成例を示す。図1に示す表示コントローラー100は、ホストI/F回路110(ホストインターフェース回路)、バスコントローラー130、メモリーコントローラー140、表示制御部150、ラインバッファー200、バッファー制御回路210を含む。
1. Configuration Example of Display Controller FIG. 1 shows a configuration example of a display controller (integrated circuit device). The display controller 100 illustrated in FIG. 1 includes a host I / F circuit 110 (host interface circuit), a bus controller 130, a memory controller 140, a display control unit 150, a line buffer 200, and a buffer control circuit 210.

ホストI/F回路110は、ホスト10との種々のインターフェース処理を行う。例えばホスト10との間で、データ信号、アドレス信号、或いはライト/リード信号等のインターフェース信号のやり取りを行って、ホスト10との間のインターフェースを実現する。そして、ホストI/F回路110は、ホスト10からのストリーム画像データ(広義には、画像データ)を受信する。   The host I / F circuit 110 performs various interface processes with the host 10. For example, an interface signal such as a data signal, an address signal, or a write / read signal is exchanged with the host 10 to realize an interface with the host 10. The host I / F circuit 110 receives stream image data (image data in a broad sense) from the host 10.

ラインバッファー200(バッファー、メモリー)は、例えばSRAMにより構成され、ストリーム画像データをバッファリング(一時的に記憶)する。バッファー制御回路210は、ラインバッファー200のリード/ライト制御を行う。具体的には、ホストI/F回路110を介して入力されたストリーム画像データを、ラインバッファー200に書き込む。また、バッファー制御回路210は、ラインバッファー200に書き込まれた画像データを読み出し、読み出した画像データをバスコントローラー130に転送する。   The line buffer 200 (buffer, memory) is configured by an SRAM, for example, and buffers (temporarily stores) stream image data. The buffer control circuit 210 performs read / write control of the line buffer 200. Specifically, the stream image data input via the host I / F circuit 110 is written into the line buffer 200. Further, the buffer control circuit 210 reads the image data written in the line buffer 200 and transfers the read image data to the bus controller 130.

バスコントローラー130は、内部バスを介した各構成要素間のデータ転送(データ通信)を制御する。バスコントローラー130は、例えばFIFOを有し、ラインバッファー200から読み出された画像データを、そのFIFOを介してメモリーコントローラー140に転送する。   The bus controller 130 controls data transfer (data communication) between components via the internal bus. The bus controller 130 includes, for example, a FIFO, and transfers image data read from the line buffer 200 to the memory controller 140 via the FIFO.

メモリーコントローラー140は、画像メモリー20(ビデオメモリー、VRAM。例えば、SDRAM)に対するリード/ライト制御を行う。具体的には、バスコントローラー130からの画像データを画像メモリー20に書き込む。また、画像メモリー20に記憶された画像データを読み出し、読み出したデータを表示制御部150に転送する。   The memory controller 140 performs read / write control on the image memory 20 (video memory, VRAM, for example, SDRAM). Specifically, the image data from the bus controller 130 is written into the image memory 20. Further, the image data stored in the image memory 20 is read, and the read data is transferred to the display control unit 150.

表示制御部150は、メモリーコントローラー140からの画像データに基づいて、電気光学装置30(例えば、液晶ディスプレイ、電気泳動ディスプレイ)の表示制御を行う。例えば、表示制御部150は、表示データ信号や制御信号(同期信号等)を電気光学装置30に出力する。電気光学装置30は、例えば液晶パネルや電気泳動パネルなどの電気光学パネルと、電気光学パネルのデータ線(ソース線)を駆動するデータードライバー(ソースドライバー)と、電気光学パネルの走査線(ゲート線)を駆動する走査ドライバー(ゲートドライバー)などを含むことができる。   The display control unit 150 performs display control of the electro-optical device 30 (for example, a liquid crystal display or an electrophoretic display) based on the image data from the memory controller 140. For example, the display control unit 150 outputs a display data signal and a control signal (such as a synchronization signal) to the electro-optical device 30. The electro-optical device 30 includes, for example, an electro-optical panel such as a liquid crystal panel or an electrophoretic panel, a data driver (source driver) that drives a data line (source line) of the electro-optical panel, and a scanning line (gate line) of the electro-optical panel. ) May be included.

なお、本実施形態の表示コントローラーは図1の構成に限定されず、その構成要素の一部(例えば、バスコントローラ−、メモリーコントローラー)を省略したり、他の構成要素を追加する等の種々の変形実施が可能である。例えば、表示コントローラー100と画像メモリー20が別々のICチップにより構成されてもよく、画像メモリー20が表示コントローラー100に内蔵されてもよい。また、表示コントローラー100は、画像の回転処理等を行う画像処理回路を含んでもよい。   The display controller according to the present embodiment is not limited to the configuration shown in FIG. 1, and various components such as omitting some of the components (for example, a bus controller and a memory controller) and adding other components. Variations are possible. For example, the display controller 100 and the image memory 20 may be configured by separate IC chips, and the image memory 20 may be built in the display controller 100. The display controller 100 may include an image processing circuit that performs image rotation processing and the like.

2.比較例
まず、図2(A)、図2(B)、図3を用いて、本実施形態の比較例について説明する。図2(A)に示すように、64画素×600ラインの画像のストリーム画像データSDが入力されるものとする。このストリーム画像データSDは、第1〜第600のラインL1〜L600のデータにより構成される。
2. Comparative Example First, a comparative example of this embodiment will be described with reference to FIGS. 2 (A), 2 (B), and 3. FIG. As shown in FIG. 2A, it is assumed that stream image data SD of an image of 64 pixels × 600 lines is input. The stream image data SD is composed of data of the first to 600th lines L1 to L600.

図2(B)に示すように、ラインバッファーのアドレス空間LBには、それぞれ4096画素×32ライン分の記憶容量を持つ第1、第2のバッファー領域BA1、BA2が設定される。すなわち、ラインバッファーはダブルバッファー構成になっている。そしてバッファー領域BA1には、ラインL1〜ラインL32のデータが書き込まれる。また、アドレス空間LBの第2のバッファー領域BA2には、ラインL33〜ラインL64のデータが書き込まれる。   As shown in FIG. 2B, first and second buffer areas BA1 and BA2 each having a storage capacity of 4096 pixels × 32 lines are set in the address space LB of the line buffer. That is, the line buffer has a double buffer configuration. Then, the data of the lines L1 to L32 is written in the buffer area BA1. In addition, the data of the lines L33 to L64 is written in the second buffer area BA2 of the address space LB.

図3に、比較例のタイミングチャートを模式的に示す。図3では、ストリーム画像データとして、L1〜L600のデータを順次受信している。C1に示すように、バッファー領域BA1に書き込まれたL1〜L32のデータは、C2に示すように、L33〜L64のデータをバッファー領域BA2に書き込む際に、C3に示すように、画像メモリーへバースト転送される。例えば、バースト転送では、BA1の全アドレスのデータを画像メモリーに転送する。   FIG. 3 schematically shows a timing chart of the comparative example. In FIG. 3, data L1 to L600 are sequentially received as stream image data. As shown in C1, the data of L1 to L32 written to the buffer area BA1 is burst to the image memory as shown in C3 when the data of L33 to L64 is written to the buffer area BA2 as shown in C2. Transferred. For example, in burst transfer, data at all addresses of BA1 is transferred to the image memory.

このとき、ストリーム画像データのL33〜L64のデータの転送期間TSは、画像の水平方向の画素数が少なくなるほど短い期間となる。そのため、画像の水平方向の画素数によっては、L33〜L64のデータの転送期間TSがバースト転送の転送期間TBよりも短くなる場合がある(L1〜L32のバースト長が短くなることで、バースト転送のデータ転送速度が低下する)。この場合、バースト転送が終了するまでバッファー領域BA1にC4に示すL65〜L96のデータを書き込むことができないため、ストリーム画像データの転送が中断されてしまう。そして、その中断を防止しようとすると、ストリーム画像データの転送速度を低下させる必要性が生じてしまう。   At this time, the data transfer period TS of the stream image data L33 to L64 becomes shorter as the number of pixels in the horizontal direction of the image decreases. For this reason, depending on the number of pixels in the horizontal direction of the image, the data transfer period TS of L33 to L64 may be shorter than the transfer period TB of burst transfer (the burst transfer of L1 to L32 is shortened, resulting in burst transfer). Data transfer speed will be reduced). In this case, since the data of L65 to L96 indicated by C4 cannot be written in the buffer area BA1 until the burst transfer is completed, the transfer of the stream image data is interrupted. In order to prevent the interruption, it becomes necessary to reduce the transfer speed of the stream image data.

3.構成例
図4に、上記課題を解決できるバッファー制御回路の構成例を示す。図4に示すバッファー制御回路210は、書き込み回路220(ライト回路)、読み出し回路230(リード回路)、モード制御部240を含む。このバッファー制御回路210は、ストリーム画像データSD(広義には、画像データ)の水平方向の画素数に応じたバッファー制御を行うことで、ストリーム画像データSDの転送が中断することを防止するための回路である。
3. Configuration Example FIG. 4 shows a configuration example of a buffer control circuit that can solve the above problem. The buffer control circuit 210 shown in FIG. 4 includes a write circuit 220 (write circuit), a read circuit 230 (read circuit), and a mode control unit 240. The buffer control circuit 210 performs buffer control in accordance with the number of pixels in the horizontal direction of the stream image data SD (image data in a broad sense) to prevent the transfer of the stream image data SD from being interrupted. Circuit.

モード制御部240は、ダブルバッファーモード(広義には、第1のモード)とシングルバッファーモード(広義には、第2のモード)を切り替える。具体的には、ストリーム画像データSDの水平方向の画素数Hが閾値画素数Nより大きいとき(H>N)には、第1のモードを設定する。ストリーム画像データSDの水平方向の画素数Hが閾値画素数N以下のとき(H≦N)には、第2のモードを設定する(H、Nは自然数)。例えば、モード制御部240は、モード切替信号MODを書き込み回路220と読み出し回路230に出力することでモード切り替えを行う。あるいは、モード制御部240は、ラインバッファー200の第1、第2のバッファー領域BA1、BA2を切り替えるためのバッファー選択信号WSBを出力してもよく、WSBをモードに応じて制御することでモード切り替えを行ってもよい。   The mode control unit 240 switches between a double buffer mode (first mode in a broad sense) and a single buffer mode (second mode in a broad sense). Specifically, when the horizontal pixel count H of the stream image data SD is larger than the threshold pixel count N (H> N), the first mode is set. When the horizontal pixel count H of the stream image data SD is equal to or smaller than the threshold pixel count N (H ≦ N), the second mode is set (H and N are natural numbers). For example, the mode control unit 240 performs mode switching by outputting a mode switching signal MOD to the writing circuit 220 and the reading circuit 230. Alternatively, the mode control unit 240 may output a buffer selection signal WSB for switching the first and second buffer areas BA1 and BA2 of the line buffer 200, and mode switching is performed by controlling the WSB according to the mode. May be performed.

書き込み回路220は、ストリーム画像データSDを受けて、そのSDをラインバッファー200に書き込む処理(書き込み処理、ライト処理)を行う。具体的には、書き込み回路220は、ストリーム画像データSDに基づいてアドレスWAD(書き込みアドレス)とデータWD(画像データ)を生成し、ラインバッファー200のアドレスWADにデータWDを書き込む。ダブルバッファーモードでは、ラインバッファー200はダブルバッファーに設定され、ラインバッファー200には第1、第2のバッファー領域BA1、BA2が設定される。書き込み回路220は、そのバッファー領域BA1、BA2に対してストリーム画像データSDを交互に書き込む。シングルバッファーモードでは、書き込み回路220は、シングルバッファーに設定されたラインバッファー200に対してSDを書き込む。   The writing circuit 220 receives the stream image data SD and performs processing (writing processing and writing processing) for writing the SD into the line buffer 200. Specifically, the writing circuit 220 generates an address WAD (write address) and data WD (image data) based on the stream image data SD, and writes the data WD to the address WAD of the line buffer 200. In the double buffer mode, the line buffer 200 is set as a double buffer, and the first and second buffer areas BA1 and BA2 are set in the line buffer 200. The writing circuit 220 alternately writes the stream image data SD to the buffer areas BA1 and BA2. In the single buffer mode, the writing circuit 220 writes SD to the line buffer 200 set as a single buffer.

読み出し回路230は、ラインバッファー200に書き込まれた画像データを読み出す処理(読み出し処理、リード処理)を行う。具体的には、読み出し回路230は、アドレスRADを生成し、ラインバッファー200のアドレスRADに記憶されたデータRD(画像データ)を読み出し、読み出したデータRDをバスコントローラー等に出力する。読み出し回路230は、ダブルバッファーモードでは、ダブルバッファーに設定されたラインバッファー200から画像データを読み出す。シングルバッファーモードでは、シングルバッファーに設定されたラインバッファー200から画像データを読み出す。   The read circuit 230 performs processing (read processing, read processing) for reading image data written in the line buffer 200. Specifically, the read circuit 230 generates an address RAD, reads data RD (image data) stored in the address RAD of the line buffer 200, and outputs the read data RD to a bus controller or the like. In the double buffer mode, the read circuit 230 reads image data from the line buffer 200 set as a double buffer. In the single buffer mode, image data is read from the line buffer 200 set as a single buffer.

例えば、ラインバッファー200は、連続するアドレス0H〜3FFFH(アドレス0〜16383。例えば各アドレス16ビット)により指定されるアドレス空間LBを有する。そして、ダブルバッファーモードでは、書き込み回路220がアドレス0H〜1FFFHを指定して画像データを書き込み、読み出し回路230がアドレス2000H〜3FFFHを指定して画像データを読み出す。あるいは、書き込み回路220がアドレス2000H〜3FFFHを指定して画像データを書き込み、読み出し回路230がアドレス0H〜1FFFHを指定して画像データを読み出す。これらの処理により、アドレス0H〜1FFFHが第1のバッファー領域BA1に設定され、アドレス2000H〜3FFFHが第2のバッファー領域BA2に設定され、ラインバッファー200がダブルバッファーに設定される。また、シングルバッファーモードでは、書き込み回路220がアドレス0H〜3FFFHを指定して画像データを書き込み、読み出し回路230がアドレス0H〜3FFFHを指定して画像データを読み出す。この処理により、ラインバッファー200がシングルバッファーに設定される。   For example, the line buffer 200 has an address space LB specified by consecutive addresses 0H to 3FFFH (addresses 0 to 16383, for example, 16 bits for each address). In the double buffer mode, the writing circuit 220 writes the image data by designating the addresses 0H to 1FFFH, and the reading circuit 230 reads the image data by designating the addresses 2000H to 3FFFH. Alternatively, the writing circuit 220 designates addresses 2000H to 3FFFH and writes image data, and the reading circuit 230 designates addresses 0H to 1FFFH and reads image data. With these processes, addresses 0H to 1FFFH are set in the first buffer area BA1, addresses 2000H to 3FFFH are set in the second buffer area BA2, and the line buffer 200 is set in the double buffer. In the single buffer mode, the writing circuit 220 writes the image data by designating the addresses 0H to 3FFFH, and the reading circuit 230 reads the image data by designating the addresses 0H to 3FFFH. With this process, the line buffer 200 is set to a single buffer.

なお、本実施形態のバッファー制御回路は図4の構成に限定されず、その構成要素の一部を省略したり、他の構成要素を追加したりする等の種々の変形実施が可能である。例えば、モード切り替え回路240を省略してもよく、モード切り替え回路240の機能を書き込み回路220により実現してもよい。   Note that the buffer control circuit according to the present embodiment is not limited to the configuration shown in FIG. 4, and various modifications such as omitting some of the components or adding other components are possible. For example, the mode switching circuit 240 may be omitted, and the function of the mode switching circuit 240 may be realized by the writing circuit 220.

4.動作例
図5(A)、図5(B)、図6を用いて、ダブルバッファーモードにおけるバッファー制御回路の動作例について説明する。なお以下では、ラインバッファーから画像メモリーへバースト転送(バーストモードによるデータ転送)を行う場合を例に説明する。但し、本実施形態では、ラインバッファーから画像メモリーへ他のモードによるデータ転送を行ってもよい。
4). Operation Example An operation example of the buffer control circuit in the double buffer mode will be described with reference to FIGS. 5A, 5B, and 6. FIG. In the following, a case where burst transfer (data transfer in burst mode) is performed from the line buffer to the image memory will be described as an example. However, in this embodiment, data transfer in another mode may be performed from the line buffer to the image memory.

図5(A)に示すように、水平方向(走査方向)の画素数がH=512であり、垂直方向の画素数(ライン数、走査線数)がV=1200である画像のストリーム画像データSDが供給されるものとする。このストリーム画像データSDは、第1〜第1200のラインL1〜L1200のデータにより構成され、L1〜L1200の各ラインのデータは、H=512画素のデータで構成される。ここで、閾値画素数(閾値ビット数)がN=128であるとする。このとき、H=512>N=128であるため、本実施形態はダブルバッファーモードに設定される。   As shown in FIG. 5A, stream image data of an image in which the number of pixels in the horizontal direction (scanning direction) is H = 512 and the number of pixels in the vertical direction (number of lines, number of scanning lines) is V = 1200. Assume that SD is supplied. This stream image data SD is composed of data of the first to 1200th lines L1 to L1200, and the data of each line of L1 to L1200 is composed of data of H = 512 pixels. Here, it is assumed that the threshold pixel number (threshold bit number) is N = 128. At this time, since H = 512> N = 128, this embodiment is set to the double buffer mode.

図5(B)に示すように、ラインバッファーのアドレス空間LBには、バッファー領域BA1、BA2が設定される。バッファー領域BA1、BA2は、それぞれ、水平方向の画素数がiであり、垂直方向の画素数がjである画像データに対応する記憶容量を持つ(iはi≧Hの自然数、jはj≦Vの自然数)。例えば、BA1、BA2は、それぞれ4096ビット×32ビットの記憶容量を持つ。各画素のデータ長が1ビットである場合、BA1、BA2の記憶容量は、i×j=4096画素×32ラインの画像データの容量に対応する。このとき、バッファー領域BA1、BA2には、j=32ライン分の画像データが交互に書き込まれる。例えば、BA1には、ラインL1〜L32のデータが、BA1の先頭アドレスから順次書き込まれる。BA2には、ラインL33〜64のデータが、BA2の先頭アドレスから順次書き込まれる。   As shown in FIG. 5B, buffer areas BA1 and BA2 are set in the address space LB of the line buffer. Each of the buffer areas BA1 and BA2 has a storage capacity corresponding to image data in which the number of pixels in the horizontal direction is i and the number of pixels in the vertical direction is j (i is a natural number where i ≧ H, j is j ≦ j). Natural number of V). For example, BA1 and BA2 each have a storage capacity of 4096 bits × 32 bits. When the data length of each pixel is 1 bit, the storage capacity of BA1 and BA2 corresponds to the capacity of image data of i × j = 4096 pixels × 32 lines. At this time, image data for j = 32 lines is alternately written in the buffer areas BA1 and BA2. For example, the data of the lines L1 to L32 are sequentially written in BA1 from the head address of BA1. In BA2, the data of lines L33 to L64 are sequentially written from the head address of BA2.

図6に、ダブルバッファーモードにおけるタイミングチャート例を模式的に示す。図6に示すように、ラインL33〜L64のストリーム画像データをバッファー領域BA2に書き込む際、バッファー領域BA1から画像メモリーへバースト転送を行う。このとき、32ライン分のデータの転送期間TS(受信期間)は、ストリーム画像データの水平方向の画素数Hが大きいほど長くなる。本実施形態では、H>Nの条件を満たす場合にダブルバッファーモードに設定することで、(L33〜L64の転送期間TS)>(BA1のバースト転送の転送期間TB)にできる。   FIG. 6 schematically shows an example of a timing chart in the double buffer mode. As shown in FIG. 6, when the stream image data of lines L33 to L64 is written into the buffer area BA2, burst transfer is performed from the buffer area BA1 to the image memory. At this time, the data transfer period TS (reception period) for 32 lines becomes longer as the number of pixels H in the horizontal direction of the stream image data is larger. In the present embodiment, when the condition of H> N is satisfied, the double buffer mode is set so that (transfer period TS of L33 to L64)> (transfer period TB of burst transfer of BA1) can be achieved.

図7(A)、図7(B)、図8を用いて、シングルバッファーモードにおけるバッファー制御回路の動作例について説明する。図7(A)に示すように、H=64画素、V=1200画素のストリーム画像データSDが供給されるものとする。各ラインのデータは、H=64画素のデータで構成される。閾値画素数がN=128であるとすると、H≦Nであるため、本実施形態はシングルバッファーモードに設定される。   An operation example of the buffer control circuit in the single buffer mode will be described with reference to FIGS. 7A, 7B, and 8. FIG. As shown in FIG. 7A, it is assumed that stream image data SD with H = 64 pixels and V = 1200 pixels is supplied. The data of each line is composed of H = 64 pixel data. If the threshold pixel number is N = 128, since H ≦ N, this embodiment is set to the single buffer mode.

図7(B)に示すように、ラインバッファーのアドレス空間LBは、シングルバッファーに設定される。すなわち、ラインバッファーは、i×2j=4096画素×64ラインの画像データに対応する記憶容量の1つのバッファーとして制御される。そして、ラインバッファーには、ラインL1〜L1200のデータが先頭アドレスから順次書き込まれ、ストリーム画像データ全体がラインバッファーに書き込まれる。   As shown in FIG. 7B, the address space LB of the line buffer is set to a single buffer. That is, the line buffer is controlled as one buffer having a storage capacity corresponding to image data of i × 2j = 4096 pixels × 64 lines. Then, the data of the lines L1 to L1200 are sequentially written in the line buffer from the head address, and the entire stream image data is written in the line buffer.

図8に、シングルバッファーモードにおけるタイミングチャート例を模式的に示す。図8に示すように、ラインL1〜L1200のデータをラインバッファーに書き込んだ後、ラインバッファーから画像メモリーへバースト転送を行う。このように、シングルバッファーに設定されたラインバッファーにストリーム画像データ全体を書き込むため、ストリーム画像データを中断することなく受信できる。   FIG. 8 schematically shows an example of a timing chart in the single buffer mode. As shown in FIG. 8, after the data of the lines L1 to L1200 is written into the line buffer, burst transfer is performed from the line buffer to the image memory. Thus, since the entire stream image data is written in the line buffer set as the single buffer, the stream image data can be received without interruption.

なお、上記においては、各画素のデータ長が1ビット(1bpp:1ビットパーピクセル)である場合を例に説明したが、本実施形態では、各画素のデータ長が他のビット数であってもよい。例えば、各画素のデータ長が2ビット(2bpp)、4ビット(4bpp)であってもよい。このとき、バッファー領域の各ラインの画素数がi=1024画素、512画素であってもよく、閾値画素数がN=64画素、32画素であってもよい。   In the above description, the case where the data length of each pixel is 1 bit (1 bpp: 1 bit per pixel) has been described as an example. However, in this embodiment, the data length of each pixel is another number of bits. Also good. For example, the data length of each pixel may be 2 bits (2 bpp) and 4 bits (4 bpp). At this time, the number of pixels in each line of the buffer area may be i = 1024 pixels, 512 pixels, and the threshold pixel number may be N = 64 pixels, 32 pixels.

ここで、前述の比較例で説明したように、ダブルバッファーを用いた場合、ストリーム画像データの水平方向の画素数によっては、ホスト等からのストリーム画像データの転送が中断されてしまう場合がある。そのため、中断により転送速度が低下したり、中断を防ぐために転送速度を低下させる必要があるという課題があった。   Here, as described in the above comparative example, when a double buffer is used, transfer of stream image data from the host or the like may be interrupted depending on the number of pixels in the horizontal direction of the stream image data. For this reason, there is a problem that the transfer rate is reduced due to the interruption or the transfer rate needs to be reduced in order to prevent the interruption.

この点、本実施形態によれば、H>Nのダブルバッファーモードでは、バッファー領域BA1、BA2を有するダブルバッファーに設定されたラインバッファー200に対して書き込み処理が行われる。一方、H≦Nのシングルバッファーモードでは、シングルバッファーに設定されたラインバッファー200に対して書き込み処理が行われる。   In this regard, according to the present embodiment, in the H> N double buffer mode, the writing process is performed on the line buffer 200 set as a double buffer having the buffer areas BA1 and BA2. On the other hand, in the single buffer mode with H ≦ N, a write process is performed on the line buffer 200 set as a single buffer.

これにより、ホスト等からのストリーム画像データの転送中断を防止することが可能になる。すなわち、ダブルバッファーモードにおいて、水平方向の画素数Hが閾値画素数Nより大きいことで、一方のバッファー領域の書き込み中に他方のバッファー領域のバースト転送を完了できる。また、水平方向の画素数Hが閾値画素数N以下の場合にシングルバッファーモードに設定することで、ストリーム画像データ全体をラインバッファーに書き込むことができる。このようにして、閾値画素数Nを境にモードを切り替えることで、ストリーム画像データの転送中断を防止し、転送速度を向上できる。   Thereby, it becomes possible to prevent the transfer of stream image data from the host or the like from being interrupted. That is, in the double buffer mode, since the horizontal pixel count H is larger than the threshold pixel count N, burst transfer of the other buffer area can be completed during writing of one buffer area. Further, when the horizontal pixel count H is equal to or smaller than the threshold pixel count N, the entire stream image data can be written to the line buffer by setting the single buffer mode. In this way, by switching the mode with the threshold pixel number N as a boundary, it is possible to prevent the transfer of stream image data from being interrupted and to improve the transfer speed.

具体的には、ダブルバッファーモードでは、ラインバッファー200のバッファー領域BA1、BA2の一方にH×j画素の画像データが書き込まれ、バッファー領域BA1、BA2の他方からH×j画素の画像データが読み出される。一方、シングルバッファーモードでは、ラインバッファー200にH×V画素の画像データが書き込まれ、ラインバッファー200からH×V画素の画像データが読み出される。   Specifically, in the double buffer mode, H × j pixel image data is written to one of the buffer areas BA1 and BA2 of the line buffer 200, and H × j pixel image data is read from the other of the buffer areas BA1 and BA2. It is. On the other hand, in the single buffer mode, H × V pixel image data is written to the line buffer 200, and H × V pixel image data is read from the line buffer 200.

このようにすれば、ダブルバッファーモードにおいて、ラインバッファー200をダブルバッファーに設定し、ダブルバッファーに設定されたラインバッファー200に対して書き込み処理と読み出し処理を行うことができる。一方、シングルバッファーモードにおいて、ラインバッファー200をシングルバッファーに設定し、シングルバッファーに設定されたラインバッファー200に対して書き込み処理と読み出し処理を行うことができる。   In this way, in the double buffer mode, the line buffer 200 can be set as a double buffer, and a write process and a read process can be performed on the line buffer 200 set as a double buffer. On the other hand, in the single buffer mode, the line buffer 200 can be set as a single buffer, and write processing and read processing can be performed on the line buffer 200 set as a single buffer.

ここで、本実施形態では、ストリーム画像データの垂直方向の画素数Vが大きいほど閾値画素数Nを小さくしてもよい。具体的には、バッファー領域BA1、BA2の記憶容量が、それぞれi×j画素に対応する記憶容量である場合に、N×V≦i×2jを満たすNを設定してもよい。   Here, in the present embodiment, the threshold pixel number N may be reduced as the vertical pixel number V of the stream image data is increased. Specifically, when the storage capacities of the buffer areas BA1 and BA2 are storage capacities corresponding to i × j pixels, N satisfying N × V ≦ i × 2j may be set.

例えば、図9に示すように、各画素のデータ長が1ビットであるものとすると、1≦V≦1024の場合にN=256、1024<V≦2048の場合にN=128、2048<V≦4096の場合にN=64に設定してもよい。いずれの場合も、N×V≦i×2jを満たす。   For example, as shown in FIG. 9, if the data length of each pixel is 1 bit, N = 256 when 1 ≦ V ≦ 1024, and N = 128 and 2048 <V when 1024 <V ≦ 2048. If ≦ 4096, N = 64 may be set. In either case, N × V ≦ i × 2j is satisfied.

このようにすれば、閾値画素数Nを設定し、設定したNに基づいてH>Nにおいてダブルバッファーモードに設定し、H≦Nにおいてシングルバッファーモードに設定できる。具体的には、N×V≦i×2jを満たすことで、H≦Nのシングルバッファーモードにおいて、H×Vのストリーム画像データをi×2jのラインバッファー200に記憶できる。   In this way, it is possible to set the threshold pixel number N, set the double buffer mode when H> N based on the set N, and set the single buffer mode when H ≦ N. Specifically, by satisfying N × V ≦ i × 2j, H × V stream image data can be stored in the i × 2j line buffer 200 in the single buffer mode of H ≦ N.

本実施形態では、前述の図4に示すモード制御部240がレジスターを含んでもよく、ホスト等からそのレジスターに画素数H、Vがレジスター値として設定されてもよい。そして、設定されたレジスター値H、Vに基づいて、閾値画素数Nを設定してもよい。   In the present embodiment, the above-described mode control unit 240 shown in FIG. 4 may include a register, and the number of pixels H and V may be set as a register value from the host or the like to the register. Then, the threshold pixel number N may be set based on the set register values H and V.

なお、本実施形態では、モード制御部240は、ストリーム画像データに基づいて画素数H、Vの情報を取得し、取得したH、Vに基づいてNを設定してもよい。あるいは、モード制御部240には、ホスト等からNが直接設定されてもよく、設計時等にあらかじめ所定のNが設定されてもよい。   In the present embodiment, the mode control unit 240 may acquire information on the number of pixels H and V based on the stream image data, and set N based on the acquired H and V. Alternatively, N may be directly set in the mode control unit 240 from a host or the like, or a predetermined N may be set in advance at the time of design or the like.

5.詳細な構成例
図10に、本実施形態のバッファー制御回路の詳細な構成例を示す。このバッファー制御回路は、シーケンサー300、書き込み制御回路310、読み出し制御回路320、アンパック回路330、第1〜第3のセレクターMUX1〜MUX3、第1、第2のリードライト回路RW1、RW2を含む。なお、本実施形態のバッファー制御回路はこの構成に限定されず、その構成要素の一部を省略したり(例えば、シーケンサー、第1〜第3のセレクター)、他の構成要素を追加したりする等の種々の変形実施が可能である。
5). Detailed Configuration Example FIG. 10 shows a detailed configuration example of the buffer control circuit of this embodiment. The buffer control circuit includes a sequencer 300, a write control circuit 310, a read control circuit 320, an unpack circuit 330, first to third selectors MUX1 to MUX3, and first and second read / write circuits RW1 and RW2. Note that the buffer control circuit of the present embodiment is not limited to this configuration, and some of the components are omitted (for example, a sequencer, first to third selectors), or other components are added. Various modifications such as these are possible.

シーケンサー300は、モード切り替えや、バッファー制御回路の各構成要素の制御を行うためのものである。具体的には、シーケンサー300は、レジスター302、水平カウンター304、垂直カウンター306を含む。そして、シーケンサー300は、レジスター302のレジスター値や、水平カウンター304と垂直カウンター306のカウント値に基づいて、モード切替信号MODやバッファー切替信号WBSを出力したり、各構成要素の動作タイミングを制御したりする。   The sequencer 300 is for switching modes and controlling each component of the buffer control circuit. Specifically, the sequencer 300 includes a register 302, a horizontal counter 304, and a vertical counter 306. The sequencer 300 outputs the mode switching signal MOD and the buffer switching signal WBS based on the register value of the register 302 and the count values of the horizontal counter 304 and the vertical counter 306, and controls the operation timing of each component. Or

レジスター302には、ホスト等から、ストリーム画像データSDの画素数H、Vが設定される。水平カウンター304(画素数カウンター)は、ストリーム画像データSDの各ラインの画素数をカウントする。垂直カウンター306(ライン数カウンター)は、ストリーム画像データSDのライン数をカウントする。これらのカウンターは、例えばドットクロックCLKに基づいてカウントを行う。また、ストリーム画像データSDのイネーブル信号DATAENがアクティブ(第1の論理レベル)の期間(SD受信状態)にカウントを行う。   The number of pixels H and V of the stream image data SD is set in the register 302 from the host or the like. The horizontal counter 304 (pixel counter) counts the number of pixels in each line of the stream image data SD. The vertical counter 306 (line number counter) counts the number of lines of the stream image data SD. These counters count based on the dot clock CLK, for example. The count is performed during the period (SD reception state) in which the enable signal DATAEN of the stream image data SD is active (first logic level).

書き込み制御回路310は、ラインバッファー200への書き込み処理を制御する。具体的には、書き込み制御回路310は、書き込みアドレスWADを出力するアドレス生成回路312を含む。また、書き込み制御回路310は、セレクト信号SEL1、SEL2、書き込みリクエスト信号WRQ1、WRQ2を出力する。   The write control circuit 310 controls a write process to the line buffer 200. Specifically, the write control circuit 310 includes an address generation circuit 312 that outputs a write address WAD. The write control circuit 310 outputs select signals SEL1, SEL2 and write request signals WRQ1, WRQ2.

読み出し制御回路320は、ラインバッファー200からの読み出し処理を制御する。具体的には、読み出し制御回路320は、読み出しアドレスRADを出力するアドレス生成回路322を含む。また、読み出し制御回路320は、セレクト信号SEL3、読み出しリクエスト信号RRQ1、RRQ2を出力する。   The read control circuit 320 controls read processing from the line buffer 200. Specifically, the read control circuit 320 includes an address generation circuit 322 that outputs a read address RAD. Further, the read control circuit 320 outputs a select signal SEL3 and read request signals RRQ1 and RRQ2.

セレクターMUX1は、SEL1を受けて、アドレスWAD、RADのいずれかを選択し、選択したアドレスをAD1として出力する。セレクターMUX2は、SEL2を受けて、アドレスWAD、RADのいずれかを選択し、選択したアドレスをAD2として出力する。   Upon receiving SEL1, the selector MUX1 selects either the address WAD or RAD, and outputs the selected address as AD1. The selector MUX2 receives SEL2, selects one of the addresses WAD and RAD, and outputs the selected address as AD2.

アンパック回路330は、ストリーム画像データSDを、ラインバッファー200の各アドレスに対応するデータにアンパック(分割)し、アンパックしたデータをライトデータWDとして出力する。例えば、各アドレスのデータ長が16ビットであり、各画素のデータ長が1ビットである場合、ストリーム画像データSDを16画素のデータ毎にアンパックする。   The unpack circuit 330 unpacks (divides) the stream image data SD into data corresponding to each address of the line buffer 200, and outputs the unpacked data as write data WD. For example, when the data length of each address is 16 bits and the data length of each pixel is 1 bit, the stream image data SD is unpacked every 16 pixels of data.

リードライト回路RW1、RW2は、バッファー領域RA1、RA2に対する書き込みと、RA1、RA2からの読み出しを行う。RW1は、書き込みリクエスト信号WRQ1がアクティブのとき、アドレスAD1にデータWDを書き込む。またRW1は、読み出しリクエスト信号RRQ1がアクティブのとき、アドレスAD1からデータRD1を読み出す。RW2は、書き込みリクエスト信号WRQ2がアクティブのとき、アドレスAD2にデータWDを書き込む。またRW2は、読み出しリクエスト信号RRQ2がアクティブのとき、アドレスAD2からデータRD2を読み出す。   The read / write circuits RW1 and RW2 perform writing to the buffer areas RA1 and RA2 and reading from the RA1 and RA2. RW1 writes data WD to address AD1 when write request signal WRQ1 is active. RW1 reads data RD1 from address AD1 when read request signal RRQ1 is active. RW2 writes data WD to address AD2 when write request signal WRQ2 is active. RW2 reads data RD2 from address AD2 when read request signal RRQ2 is active.

セレクターMUX3は、SEL3を受けて、データRD1、RD2のいずれかを選択し、選択したデータをリードデータRDとして出力する。   The selector MUX3 receives SEL3, selects either data RD1 or RD2, and outputs the selected data as read data RD.

なお、モード制御部の機能は、例えば、シーケンサー300が信号WBSやMODを出力することで実現される。書き込み回路の機能は、例えば、書き込み制御回路310がアドレスWAD、信号WRQ1、WRQ2を出力し、セレクターMUX1、MUX2がアドレスWADを選択し、リードライト回路RW1、RW2がアドレスWADにデータWDを書き込むことで実現される。読み出し回路の機能は、例えば、読み出し制御回路320がアドレスRAD、信号WRQ1、WRQ2を出力し、セレクターMUX1、MUX2がアドレスRADを選択し、リードライト回路RW1、RW2がアドレスRADからデータRD1、RD2を読み出すことで実現される。   The function of the mode control unit is realized, for example, when the sequencer 300 outputs signals WBS and MOD. For example, the write control circuit 310 outputs the address WAD and signals WRQ1 and WRQ2, the selectors MUX1 and MUX2 select the address WAD, and the read / write circuits RW1 and RW2 write the data WD to the address WAD. It is realized with. For example, the read control circuit 320 outputs the address RAD and signals WRQ1 and WRQ2, the selectors MUX1 and MUX2 select the address RAD, and the read / write circuits RW1 and RW2 receive the data RD1 and RD2 from the address RAD. Realized by reading.

図11に、詳細な構成例のバッファー制御回路の動作例を示す。図11に示すように、ダブルバッファーモード(第1のモード)では、MOD=0が出力され、WBS=0または1が出力される。WBS=0の場合、AD1=WAD、AD2=RAD、RD=RD2が選択される。そして、WRQ1=RRQ2=1、WRQ2=RRQ1=0が出力され、バッファー領域BA1に書き込みが行われ、バッファー領域BA2から読み出しが行われる。一方、WSB=1の場合、AD1=RAD、AD2=WAD、RD=RD1が選択される。そして、WRQ1=RRQ2=0、WRQ2=RRQ1=1が出力され、バッファー領域BA1から読み出しが行われ、バッファー領域BA1に書き込みが行われる。   FIG. 11 shows an operation example of the buffer control circuit having a detailed configuration example. As shown in FIG. 11, in the double buffer mode (first mode), MOD = 0 is output and WBS = 0 or 1 is output. When WBS = 0, AD1 = WAD, AD2 = RAD, and RD = RD2 are selected. Then, WRQ1 = RRQ2 = 1 and WRQ2 = RRQ1 = 0 are output, data is written to the buffer area BA1, and data is read from the buffer area BA2. On the other hand, when WSB = 1, AD1 = RAD, AD2 = WAD, and RD = RD1 are selected. Then, WRQ1 = RRQ2 = 0 and WRQ2 = RRQ1 = 1 are output, read from the buffer area BA1, and write to the buffer area BA1.

シングルバッファーモード(第2のモード)では、MOD=0が出力され、WBS=0が出力される。書き込み時には、AD1=AD2=WADが選択される。そして、WRQ1=WRQ2=1、RRQ1=RRQ2=0が出力され、バッファー領域BA1とBA2に書き込みが行われる。一方、読み出し時には、AD1=AD2=RADが選択され、RDとしてRD1またはRD2が選択される。そして、WRQ1=WRQ2=0、RRQ1=RRQ2=1が出力され、バッファー領域BA1とBA2から読み出しが行われる。   In the single buffer mode (second mode), MOD = 0 is output and WBS = 0 is output. At the time of writing, AD1 = AD2 = WAD is selected. Then, WRQ1 = WRQ2 = 1 and RRQ1 = RRQ2 = 0 are output, and writing is performed to the buffer areas BA1 and BA2. On the other hand, at the time of reading, AD1 = AD2 = RAD is selected, and RD1 or RD2 is selected as RD. Then, WRQ1 = WRQ2 = 0 and RRQ1 = RRQ2 = 1 are output, and reading is performed from the buffer areas BA1 and BA2.

図12に、ダブルバッファーモードにおけるタイミングチャート例を示す。図12では、N=64、H=100(>N)、1bpp(ビットパーピクセル)、1アドレス=16ビットである場合を例に説明する。   FIG. 12 shows an example of a timing chart in the double buffer mode. In FIG. 12, a case where N = 64, H = 100 (> N), 1 bpp (bit per pixel), and 1 address = 16 bits will be described as an example.

図12のA1に示すように、垂直カウンター(Vカウンター)のカウント値VCは、ストリーム画像データの走査線のライン数に従ってカウントアップする。また、水平カウンター(Hカウンター)のカウント値HCは、各ラインにおける画素数に従ってカウントアップする。A2に示すように、VC=0〜31ではバッファー選択信号WBS=0が出力され、バッファー領域BA1のアドレス0〜8191への書き込みが選択される。例えば、A3に示すように、HC=96〜107(図12では、96等と省略して記載)に対応する画素のデータは、A4に示すように、BA1のアドレス5に書き込まれる。なお、H=100であるため、HC=100〜107に対応する画素のデータとして例えば0(ゼロ)が書き込まれる。   As indicated by A1 in FIG. 12, the count value VC of the vertical counter (V counter) is counted up in accordance with the number of scanning lines of stream image data. Further, the count value HC of the horizontal counter (H counter) is counted up according to the number of pixels in each line. As shown in A2, when VC = 0 to 31, a buffer selection signal WBS = 0 is output, and writing to addresses 0 to 8191 in the buffer area BA1 is selected. For example, pixel data corresponding to HC = 96 to 107 (abbreviated as 96 etc. in FIG. 12) as shown at A3 is written to address 5 of BA1 as shown at A4. Since H = 100, for example, 0 (zero) is written as pixel data corresponding to HC = 100 to 107.

A5に示すように、VC=32〜64ではWBS=1が出力され、バッファー領域BA2のアドレス8192〜16383への書き込みが選択される。また、A6に示すように、読み出しリクエスト信号RRQ=1が出力され、BA1のアドレス0〜8191のデータが順次バースト転送される。   As shown in A5, when VC = 32 to 64, WBS = 1 is output, and writing to addresses 8192 to 16383 in the buffer area BA2 is selected. Further, as indicated by A6, the read request signal RRQ = 1 is output, and the data at addresses 0-8191 of BA1 are sequentially burst transferred.

図13に、シングルバッファーモードにおけるタイミングチャート例を示す。図13では、N=64、H=32(≦N)、V=100、1bpp(ビットパーピクセル)、1アドレス=16ビットである場合を例に説明する。   FIG. 13 shows an example of a timing chart in the single buffer mode. In FIG. 13, a case where N = 64, H = 32 (≦ N), V = 100, 1 bpp (bit per pixel), and 1 address = 16 bits will be described as an example.

図13のB1に示すように、WBS=0が出力され、ラインバッファーのアドレス0〜16383への書き込みが行われる。具体的には、B2に示すように、VC=0〜99の1画面(1フレーム)のストリーム画像データが、シングルバッファーに設定されたラインバッファーのアドレス0〜299に書き込まれる。そして、B3に示すように、RRQ=1が出力され、シングルバッファーのアドレス0〜16383のデータが順次バースト転送される。   As shown in B1 of FIG. 13, WBS = 0 is output, and writing to addresses 0-16383 of the line buffer is performed. Specifically, as shown in B2, stream image data of one screen (one frame) with VC = 0 to 99 is written to addresses 0 to 299 of the line buffer set as a single buffer. Then, as indicated by B3, RRQ = 1 is output, and data at addresses 0 to 16383 of the single buffer are sequentially burst transferred.

なお、次の画面のストリーム画像データは、バースト転送が終了した後に受信する。例えば、ホストI/F回路が、バースト転送中にホストに対してビジー信号を出力し、バースト転送終了後にホストに対してストリーム画像データの転送開始を催促するポーリング信号を出力する。そして、ホストがポーリング信号を受けて、ストリーム画像データの転送を開始する。   The stream image data of the next screen is received after the burst transfer is completed. For example, the host I / F circuit outputs a busy signal to the host during burst transfer, and outputs a polling signal for prompting the host to start transfer of stream image data after the burst transfer ends. Then, the host receives the polling signal and starts transferring the stream image data.

6.電子機器
図14に、本実施形態の表示コントローラーを含む電子機器の構成例を示す。この電子機器は、ホスト10、表示コントローラー100、電気光学装置30、記憶部60、操作部70、通信部80を含む。なお、本実施形態はこの構成例に限定されず、その構成要素の一部を省略したり(例えば、通信部)、他の構成要素を追加したりする等の種々の変形実施が可能である。
6). Electronic Device FIG. 14 shows a configuration example of an electronic device including the display controller of this embodiment. The electronic apparatus includes a host 10, a display controller 100, an electro-optical device 30, a storage unit 60, an operation unit 70, and a communication unit 80. The present embodiment is not limited to this configuration example, and various modifications may be made such as omitting some of the components (for example, a communication unit) or adding other components. .

本実施形態の電子機器として、例えば、携帯電話端末、携帯情報端末、電子ブック端末、携帯ゲーム端末、デジタルフォトフレーム等への適用が想定できる。   As the electronic device of this embodiment, application to a mobile phone terminal, a portable information terminal, an electronic book terminal, a portable game terminal, a digital photo frame, etc. can be assumed, for example.

ホスト10は、例えばCPUで実現され、表示コントローラー100にストリーム画像データを供給したり、各構成要素の制御を行う。表示コントローラー100は、例えばASICで実現され、電気光学装置30に表示データを供給したり、電気光学装置30の表示制御を行う。電気光学装置30は、ドライバー32、電気光学パネル34を含む。ドライバー32は、データ電圧や走査信号を出力して電気光学パネル34を駆動する。電気光学パネル34は、例えば液晶パネルや電気泳動パネル(EPD:Electrophoretic Display)で実現される。記憶部60は、例えば、ROM、RAM等のメモリーや、ハードディスクドライブにより実現され、ホスト用のプログラムを記憶したり、ホストのワーキングメモリとして機能したり、ビデオメモリーとして機能したりする。操作部70は、例えば各種ボタン、タッチパネルにより構成され、操作情報が入力される。通信部80は、無線通信や有線通信により、画像データや動画データを取得する。   The host 10 is realized by a CPU, for example, and supplies stream image data to the display controller 100 and controls each component. The display controller 100 is realized by, for example, an ASIC, and supplies display data to the electro-optical device 30 or performs display control of the electro-optical device 30. The electro-optical device 30 includes a driver 32 and an electro-optical panel 34. The driver 32 drives the electro-optical panel 34 by outputting a data voltage and a scanning signal. The electro-optical panel 34 is realized by, for example, a liquid crystal panel or an electrophoretic panel (EPD). The storage unit 60 is realized by, for example, a memory such as a ROM or a RAM, or a hard disk drive, and stores a host program, functions as a host working memory, or functions as a video memory. The operation unit 70 includes, for example, various buttons and a touch panel, and operation information is input thereto. The communication unit 80 acquires image data and moving image data by wireless communication or wired communication.

なお、上記のように本実施形態について詳細に説明したが、本発明の新規事項および効果から実体的に逸脱しない多くの変形が可能であることは当業者には容易に理解できるであろう。従って、このような変形例はすべて本発明の範囲に含まれるものとする。例えば、明細書又は図面において、少なくとも一度、より広義又は同義な異なる用語(水平方向、第1のモード、第2のモード等)と共に記載された用語(走査方向、ダブルバッファーモード、シングルバッファーモード等)は、明細書又は図面のいかなる箇所においても、その異なる用語に置き換えることができる。またバッファー制御回路、表示コントローラー、電子機器等の構成、動作も本実施形態で説明したものに限定に限定されず、種々の変形実施が可能である。   Although the present embodiment has been described in detail as described above, it will be easily understood by those skilled in the art that many modifications can be made without departing from the novel matters and effects of the present invention. Accordingly, all such modifications are intended to be included in the scope of the present invention. For example, in the specification or drawings, terms (scanning direction, double buffer mode, single buffer mode, etc.) described at least once together with different terms (horizontal direction, first mode, second mode, etc.) having a broader meaning or the same meaning ) May be replaced by the different terms anywhere in the specification or drawings. Further, the configurations and operations of the buffer control circuit, the display controller, the electronic device, and the like are not limited to those described in this embodiment, and various modifications can be made.

10 ホスト、20 画像メモリー、30 電気光学装置、32 ドライバー、
34 電気光学パネル、60 記憶部、70 操作部、80 通信部、
100 表示コントローラー、110 ホストインターフェース回路、
130 バスコントローラー、140 メモリーコントローラー、
150 表示制御部、200 ラインバッファー、210 バッファー制御回路、
220 書き込み回路、230 読み出し回路、240 モード制御部、
300 シーケンサー、302 レジスター、304 水平カウンター、
306 垂直カウンター、310 書き込み制御回路、312 アドレス生成回路、
320 読み出し制御回路、322 アドレス生成回路、330 アンパック回路、
BA1 第1のバッファー領域、BA2 第2のバッファー領域、
H ストリーム画像データの水平方向の画素数、
V ストリーム画像データの垂直方向の画素数、N 閾値画素数、
MUX1〜MUX3 第1〜第3のセレクター
10 hosts, 20 image memories, 30 electro-optic devices, 32 drivers,
34 electro-optical panel, 60 storage unit, 70 operation unit, 80 communication unit,
100 display controller, 110 host interface circuit,
130 bus controller, 140 memory controller,
150 display control unit, 200 line buffer, 210 buffer control circuit,
220 writing circuit, 230 reading circuit, 240 mode control unit,
300 sequencers, 302 registers, 304 horizontal counters,
306 vertical counter, 310 write control circuit, 312 address generation circuit,
320 read control circuit, 322 address generation circuit, 330 unpack circuit,
BA1 first buffer area, BA2 second buffer area,
H The number of pixels in the horizontal direction of the stream image data,
V stream image data vertical pixel count, N threshold pixel count,
MUX1 to MUX3 1st to 3rd selector

Claims (9)

ストリーム画像データを受けて、ラインバッファーに対して前記ストリーム画像データの書き込み処理を行う書き込み回路と、
前記ラインバッファーに書き込まれた画像データの読み出し処理を行う読み出し回路と、
を含み、
前記ストリーム画像データの水平方向の画素数がH(Hは自然数)であり、モード切替えの閾値画素数がN(Nは自然数)である場合に、
前記書き込み回路は、
H>Nである第1のモードでは、第1のバッファー領域と第2のバッファー領域を有するダブルバッファーに設定された前記ラインバッファーに対して前記書き込み処理を行い、
H≦Nである第2のモードでは、シングルバッファーに設定された前記ラインバッファーに対して前記書き込み処理を行うことを特徴とするバッファー制御回路。
A writing circuit that receives the stream image data and writes the stream image data to the line buffer;
A readout circuit for performing readout processing of image data written in the line buffer;
Including
When the number of pixels in the horizontal direction of the stream image data is H (H is a natural number) and the threshold number of pixels for mode switching is N (N is a natural number),
The writing circuit includes:
In the first mode where H> N, the writing process is performed on the line buffer set in a double buffer having a first buffer area and a second buffer area,
In the second mode in which H ≦ N, the buffer control circuit performs the writing process on the line buffer set as a single buffer.
請求項1において、
前記ストリーム画像データの垂直方向の画素数がV(Vは自然数)である場合に、
前記第1のモードでは、
前記書き込み回路は、水平方向の画素数がHで垂直方向の画素数がj(jはj≦Vの自然数)の画像データを、ダブルバッファーに設定された前記ラインバッファーの前記第1のバッファー領域及び前記第2のバッファー領域の一方に書き込み、前記読み出し回路は、水平方向の画素数がHで垂直方向の画素数がjの画像データを、前記第1のバッファー領域及び前記第2のバッファー領域の他方から読み出し、
前記第2のモードでは、
前記書き込み回路は、水平方向の画素数がHで垂直方向の画素数がVの画像データを、シングルバッファーに設定された前記ラインバッファーに書き込み、前記読み出し回路は、水平方向の画素数がHで垂直方向の画素数がVの画像データを、シングルバッファーに設定された前記ラインバッファーから読み出すことを特徴とするバッファー制御回路。
In claim 1,
When the number of pixels in the vertical direction of the stream image data is V (V is a natural number),
In the first mode,
The writing circuit uses the first buffer area of the line buffer set as a double buffer for image data having a horizontal pixel count of H and a vertical pixel count of j (j is a natural number where j ≦ V). And the reading circuit writes image data having a horizontal pixel count of H and a vertical pixel count of j to the first buffer region and the second buffer region. Read from the other of
In the second mode,
The writing circuit writes image data having a horizontal pixel count of H and a vertical pixel count of V to the line buffer set as a single buffer, and the readout circuit has a horizontal pixel count of H. A buffer control circuit, wherein image data having a vertical number of pixels of V is read from the line buffer set as a single buffer.
請求項1または2において、
前記ストリーム画像データの垂直方向の画素数Vが大きいほど前記閾値画素数Nを小さくすることを特徴とするバッファー制御回路。
In claim 1 or 2,
The buffer control circuit characterized in that the threshold pixel number N is reduced as the vertical pixel number V of the stream image data is increased.
請求項1または2において、
前記第1のバッファー領域の記憶容量がi×j画素(iはi≧Hの自然数)に対応する記憶容量であり、前記第2のバッファー領域の記憶容量がi×j画素に対応する記憶容量である場合に、N×V≦i×2jを満たすことを特徴とするバッファー制御回路。
In claim 1 or 2,
The storage capacity of the first buffer area is a storage capacity corresponding to i × j pixels (i is a natural number of i ≧ H), and the storage capacity of the second buffer area is a storage capacity corresponding to i × j pixels. In this case, the buffer control circuit satisfies N × V ≦ i × 2j.
請求項1乃至4のいずれかにおいて、
前記ストリーム画像データの水平方向の画素数Hと垂直方向の画素数Vを設定するレジスターを含み、
前記レジスターの設定値に基づいて、前記第1のモードと前記第2のモードを切り替えることを特徴とするバッファー制御回路。
In any one of Claims 1 thru | or 4,
A register for setting a horizontal pixel number H and a vertical pixel number V of the stream image data;
A buffer control circuit that switches between the first mode and the second mode based on a set value of the register.
請求項1乃至5のいずれかに記載のバッファー制御回路を含むことを特徴とする表示コントローラー。   A display controller comprising the buffer control circuit according to claim 1. 請求項6において、
ホストからの前記ストリーム画像データを受けるホストインターフェース回路と、
前記読み出し回路により読み出された画像データを画像メモリーに書き込むメモリーコントローラーと、
を含むことを特徴とする表示コントローラー。
In claim 6,
A host interface circuit for receiving the stream image data from the host;
A memory controller that writes image data read by the read circuit to an image memory;
A display controller characterized by including.
請求項7において、
前記第1のモードにおいて、
前記読み出し回路は、前記ラインバッファーからの画像データをバーストモードで読み出し、前記メモリーコントローラーは、前記読み出し回路からの画像データを前記画像メモリーにバーストモードで書き込むことを特徴とする表示コントローラー。
In claim 7,
In the first mode,
The display controller reads image data from the line buffer in a burst mode, and the memory controller writes image data from the read circuit to the image memory in a burst mode.
請求項6乃至8のいずれかに記載の表示コントローラーを含むことを特徴とする電子機器。   An electronic device comprising the display controller according to claim 6.
JP2009186769A 2009-08-11 2009-08-11 Buffer control circuit, display controller and electronic apparatus Pending JP2011039302A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009186769A JP2011039302A (en) 2009-08-11 2009-08-11 Buffer control circuit, display controller and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009186769A JP2011039302A (en) 2009-08-11 2009-08-11 Buffer control circuit, display controller and electronic apparatus

Publications (1)

Publication Number Publication Date
JP2011039302A true JP2011039302A (en) 2011-02-24

Family

ID=43767135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009186769A Pending JP2011039302A (en) 2009-08-11 2009-08-11 Buffer control circuit, display controller and electronic apparatus

Country Status (1)

Country Link
JP (1) JP2011039302A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013196103A (en) * 2012-03-16 2013-09-30 Dainippon Printing Co Ltd Image processing apparatus and image processing method
US10068555B2 (en) 2015-05-19 2018-09-04 Samsung Electronics Co., Ltd. Display driving circuit and display device including the same
KR20190073535A (en) * 2017-07-05 2019-06-26 구글 엘엘씨 Hardware double buffering using special purpose operation unit

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013196103A (en) * 2012-03-16 2013-09-30 Dainippon Printing Co Ltd Image processing apparatus and image processing method
US10068555B2 (en) 2015-05-19 2018-09-04 Samsung Electronics Co., Ltd. Display driving circuit and display device including the same
KR20190073535A (en) * 2017-07-05 2019-06-26 구글 엘엘씨 Hardware double buffering using special purpose operation unit
JP2020506453A (en) * 2017-07-05 2020-02-27 グーグル エルエルシー Hardware double buffering using special purpose calculation unit
KR102309522B1 (en) 2017-07-05 2021-10-07 구글 엘엘씨 Hardware double buffering using special-purpose compute units
JP7062659B2 (en) 2017-07-05 2022-05-06 グーグル エルエルシー Hardware double buffering using special purpose calculation unit

Similar Documents

Publication Publication Date Title
JP3749147B2 (en) Display device
US7394465B2 (en) Displaying an image using memory control unit
JP2002202881A (en) Image display device
US11037518B2 (en) Display driver
US7454589B2 (en) Data buffer circuit, interface circuit and control method therefor
US8558840B2 (en) Integrated circuit device and electronic device
US9542721B2 (en) Display control device and data processing system
US20060236012A1 (en) Memory controller, image processing controller, and electronic instrument
JP2011039302A (en) Buffer control circuit, display controller and electronic apparatus
JP2011053671A (en) Semiconductor integrated circuit
US8854386B2 (en) Method and apparatus for controlling writing of data to graphic memory
JP4744277B2 (en) Portable information terminal
TW201044371A (en) Memory architecture of display device and reading method thereof
JP2005122119A (en) Video interface device in system constituted of mpu and video codec
KR100472478B1 (en) Method and apparatus for controlling memory access
JP2013195963A (en) Image processing device, integrated circuit apparatus, and image display system
KR101035591B1 (en) image resizing device
JP4021251B2 (en) Image display device
JPH075834A (en) Liquid crystal display device
JP2008046394A (en) Liquid crystal display control method, liquid crystal driver and liquid crystal display
JPS61243492A (en) Bit map display unit
KR100791176B1 (en) Interface apparatus for matching widths of digital data
JP5213394B2 (en) Image transfer device
JP2001195226A (en) Display method and display driver device
JPH10255029A (en) Transfer device for picture data