JP2002108701A - Multiport memory device - Google Patents

Multiport memory device

Info

Publication number
JP2002108701A
JP2002108701A JP2000300945A JP2000300945A JP2002108701A JP 2002108701 A JP2002108701 A JP 2002108701A JP 2000300945 A JP2000300945 A JP 2000300945A JP 2000300945 A JP2000300945 A JP 2000300945A JP 2002108701 A JP2002108701 A JP 2002108701A
Authority
JP
Japan
Prior art keywords
serial
output
data
memory
parallel
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
JP2000300945A
Other languages
Japanese (ja)
Inventor
Koichi Toyomura
浩一 豊村
Nobuyuki Yano
修志 矢野
Takeshi Hamazaki
岳史 浜崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2000300945A priority Critical patent/JP2002108701A/en
Publication of JP2002108701A publication Critical patent/JP2002108701A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)
  • Dram (AREA)
  • Image Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To secure the number of more ports than usual with simple constitution by using a single-port memory without having any complicated arbitrating means. SOLUTION: A control sequence has prescribed cycles and the timing of access to a DRAM 4 for each input/output system in one cycle of the control sequence is fixed, and serial-parallel converting circuits 1a and 1b performs serial-parallel conversion in synchronism with write request timing from outside and write buffers 2a and 2b store the outputs of serial-parallel conversion 1a and 1b in synchronism with the phase of the control sequence. A delay serial signal is outputted from the serial-parallel converting circuit 1b and inputted to the serial-parallel converting circuit 1a, and thus the serial-parallel converting circuits 1a and 1b convert serial data inputted at a double speed into parallel data in one cycle of the control sequence and write them to the DRAM 4 at a normal speed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えばビデオカメ
ラ等に用いられ、ディジタル信号を記憶させるDRAM
等のメモリ装置に関するものである。特に、画像データ
など連続するシリアルデータの複数系統の同時書き込
み、もしくは同時読み出しが可能なマルチポートメモリ
装置に関するものである。また、このメモリ装置を用い
たデジタルビデオカメラ、デジタルスチルカメラなどの
撮像装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DRAM which is used for, for example, a video camera and stores digital signals.
And the like. In particular, the present invention relates to a multiport memory device capable of simultaneously writing or reading a plurality of systems of continuous serial data such as image data simultaneously. The present invention also relates to an imaging device such as a digital video camera and a digital still camera using the memory device.

【0002】[0002]

【従来の技術】ビデオカメラなどで用いられている画像
メモリとしては、一般にVRAMと呼ばれるデュアルポ
ートメモリや、フィールドメモリと呼ばれるFIFO構
造のメモリがある。
2. Description of the Related Art As image memories used in video cameras and the like, there are a dual-port memory generally called a VRAM and a memory having a FIFO structure called a field memory.

【0003】[0003]

【発明が解決しようとする課題】しかし、高機能化、高
画質化などを実現するためには、それらの画像メモリで
は、同時アクセス可能なポート数が限られているため、
用途によって必要なポート数を確保できないという問題
がある。
However, in order to realize higher functionality and higher image quality, the number of ports that can be accessed simultaneously in these image memories is limited.
There is a problem that the required number of ports cannot be secured depending on the application.

【0004】この解決策としては、使用する画像メモリ
の数を増やす方法や、画像メモリの動作周波数をデータ
の同期周波数の2倍等に高くして、データの書き込み・
読み出し部分でレート変換することによりメモリアクセ
スを高速化して、見かけ上の同時アクセス可能な系統数
を増やす方法などが考えられる。
As a solution to this problem, a method of increasing the number of image memories to be used or increasing the operating frequency of the image memory to twice the data synchronizing frequency or the like to write / write data is performed.
A method of speeding up memory access by performing rate conversion in the reading portion and increasing the number of systems that can be accessed simultaneously at the same time is considered.

【0005】しかしながら、前者の方法では大型化して
しまい、後者の方法は消費電力が増大してしまうなどの
問題がある。
However, the former method has a problem that the size is increased, and the latter method has a problem that power consumption is increased.

【0006】また、3ポート以上のポートを備える画像
メモリは、汎用性を高めるため、各ポートと画像メモリ
の各々の動作クロックを独立に取り扱える反面、ポート
間のメモリへのアクセスの調停手段が複雑になり、ポー
ト数を増やすことが困難であった。
An image memory having three or more ports can independently handle the operation clocks of each port and each image memory in order to enhance versatility, but the arbitration means for arbitrating access to the memory between ports is complicated. And it was difficult to increase the number of ports.

【0007】本発明は上記課題を解決し、シングルポー
トメモリを使って簡単な構成で複雑な調停手段をもたず
に、従来より多くのポート数を確保することができるマ
ルチポートメモリ装置を提供することを目的とする。
The present invention solves the above-mentioned problems, and provides a multi-port memory device which can secure a larger number of ports than the conventional one without using a single port memory and having a simple configuration and without complicated arbitration means. The purpose is to do.

【0008】[0008]

【課題を解決するための手段】本発明の請求項1記載の
マルチポートメモリ装置は、シリアルデータを所定のデ
ータ数毎にシリアル−パラレル変換してパラレルデータ
を出力し、複数のうち少なくとも一つはシリアルデータ
を所定の遅延段数だけ時間シフトされた遅延シリアルデ
ータをパラレルデータとは別に出力する複数のシリアル
−パラレル変換手段と、複数のシリアル−パラレル変換
手段の少なくとも一つのシリアルデータ入力端に設けら
れて外部入力のシリアルデータと他のシリアル−パラレ
ル変換手段から出力される遅延シリアルデータのいずれ
か一方を選択して出力するシリアルデータ選択出力手段
と、複数のシリアル−パラレル変換手段の出力を一時記
憶するライトバッファと、ライトバッファの出力の一部
を選択して出力するライトデータ選択出力手段と、ライ
トデータ選択出力手段の出力が書き込まれるメモリと、
メモリから読み出されたデータを一時記憶するリードバ
ッファと、リードバッファの出力を出力系統別にパラレ
ル−シリアル変換する1または複数のパラレル−シリア
ル変換手段と、1または複数のパラレル−シリアル変換
手段の出力を遅延する1または複数の遅延調整手段と、
メモリの書き込み・読み出しおよびアドレス制御を行う
メモリ制御手段と、ライトバッファ、ライトデータ選択
出力手段、リードバッファ、メモリ制御手段の各々の動
作の制御シーケンスを発生するシーケンス発生手段とを
備えている。
According to a first aspect of the present invention, there is provided a multi-port memory device, wherein serial data is converted from serial data into parallel data every predetermined number of data, and parallel data is output. Are provided at a serial data input end of at least one of a plurality of serial-parallel conversion means for outputting separately from parallel data delayed serial data obtained by time-shifting serial data by a predetermined number of delay stages. Serial data selection and output means for selecting and outputting one of serial data of external input and delayed serial data output from another serial-parallel conversion means, and temporarily outputting the outputs of a plurality of serial-parallel conversion means. Select and output the write buffer to be stored and a part of the output of the write buffer. A write data selection output means, a memory for outputting the write data selection output means is written,
A read buffer for temporarily storing data read from the memory, one or more parallel-serial converters for parallel-serial conversion of the output of the read buffer for each output system, and an output of one or more parallel-serial converters One or more delay adjusting means for delaying
The system includes a memory control unit that performs writing / reading and address control of the memory, and a sequence generation unit that generates a control sequence for each operation of the write buffer, the write data selection output unit, the read buffer, and the memory control unit.

【0009】そして、シーケンス発生手段で発生する制
御シーケンスは所定の周期を有し、制御シーケンスの1
周期内における入出力系統毎のメモリへのアクセスタイ
ミングおよびアクセス順は固定であるとしている。
The control sequence generated by the sequence generation means has a predetermined period, and is one of the control sequences.
The access timing and access order to the memory for each input / output system in the cycle are fixed.

【0010】また、シリアル−パラレル変換手段は外部
からの書き込み要求タイミングに同期してシリアル−パ
ラレル変換を行う。
The serial-to-parallel converter performs serial-to-parallel conversion in synchronization with an external write request timing.

【0011】また、ライトバッファはシーケンス発生手
段の出力する制御シーケンスの位相に同期してシリアル
−パラレル変換手段の出力を一時記憶する。
The write buffer temporarily stores the output of the serial-parallel converter in synchronization with the phase of the control sequence output from the sequence generator.

【0012】また、リードバッファはシーケンス発生手
段の出力する制御シーケンスの位相に同期してメモリか
ら読み出されたデータを一時記憶する。
The read buffer temporarily stores data read from the memory in synchronization with the phase of the control sequence output from the sequence generating means.

【0013】また、遅延調整手段は外部からの読み出し
要求タイミングと制御シーケンスの位相の差に基いてパ
ラレル−シリアル変換手段の出力を外部からの読み出し
要求タイミングと合致するように遅延する。
The delay adjuster delays the output of the parallel-serial converter based on the difference between the external read request timing and the phase of the control sequence so as to match the external read request timing.

【0014】また、外部入力のシリアルデータが通常の
倍速であるときに他のシリアル−パラレル変換手段に外
部入力のシリアルデータを供給する。
When the serial data of the external input is at a normal double speed, the serial data of the external input is supplied to another serial-parallel conversion means.

【0015】また、シリアルデータ選択出力手段は、外
部入力のシリアルデータが通常の倍速であるときに他の
シリアル−パラレル変換手段から出力される遅延シリア
ルデータを選択し、制御シーケンスの1周期内における
2ポート分のアクセス期間を使ってメモリに外部入力の
シリアルデータを記憶させる倍速書き込みモードで動作
させる。
The serial data selection and output means selects the delayed serial data output from another serial-parallel conversion means when the serial data of the external input is a normal double speed, and selects the serial data within one cycle of the control sequence. The operation is performed in a double speed write mode in which external input serial data is stored in a memory using an access period for two ports.

【0016】この構成によれば、シーケンス発生手段に
よってメモリへの入出力系統の各ポートのメモリへのア
クセスタイミングの順序を周期的に固定し、入力系統の
書き込みデータはこのアクセスタイミングに同期するよ
うライトバッファで一時記憶保持し、出力系統の読み出
しデータは固定されたアクセスタイミングで読み出した
後遅延調整手段で読み出し要求タイミングに合致するよ
うに遅延させることで、従来のようなポート間のメモリ
へのアクセスの調停を必要とせず、簡単にポート数を増
やし、多くの入出力ポートを得ることができる。
According to this configuration, the sequence of the access timing of each port of the input / output system to the memory is periodically fixed by the sequence generating means, and the write data of the input system is synchronized with the access timing. The data is temporarily stored and held in the write buffer, and the read data of the output system is read out at a fixed access timing and then delayed by the delay adjusting means so as to match the read request timing. Access arbitration is not required, the number of ports can be easily increased, and many input / output ports can be obtained.

【0017】また、複数のシリアル−パラレル変換手段
のうちの少なくとも一つは、シリアルデータを所定の遅
延段数だけ時間シフトされた遅延シリアルデータをパラ
レルデータとは別に出力するようにし、複数のシリアル
−パラレル変換手段の少なくとも一つのシリアルデータ
入力端にシリアルデータ選択出力手段を設け、外部入力
のシリアルデータと他のシリアル−パラレル変換手段か
ら出力される遅延シリアルデータのいずれか一方を選択
して出力するようにし、外部入力のシリアルデータが通
常の倍速であるときに他のシリアル−パラレル変換手段
から出力される遅延シリアルデータをシリアルデータ選
択出力手段が選択するようにしたので、制御シーケンス
の1周期内における2ポート分のアクセス期間を使って
メモリに外部入力のシリアルデータを記憶させる倍速書
き込みモードで動作させることが可能となる。
[0017] At least one of the plurality of serial-parallel conversion means outputs, separately from the parallel data, delayed serial data obtained by time-shifting the serial data by a predetermined number of delay stages. A serial data selection output means is provided at at least one serial data input terminal of the parallel conversion means, and selects and outputs one of serial data of an external input and delayed serial data output from another serial-parallel conversion means. The serial data selection output means selects the delayed serial data output from the other serial-parallel conversion means when the serial data of the external input is the normal double speed. Input to memory using the access period of 2 ports at It is possible to operate at double speed write mode for storing the serial data.

【0018】この際、倍速モードのシリアルデータをメ
モリに書き込む際に、ライトバッファ以降の回路、特に
メモリについては、書き込みクロックおよび読み出しク
ロックともに、通常速度のクロックを用いることがで
き、倍速入力のシリアルデータをメモリに書き込む場合
にも、消費電力が増加することはない。
At this time, when writing the serial data in the double speed mode to the memory, a normal speed clock can be used for both the write clock and the read clock for the circuits after the write buffer, particularly for the memory, and the serial input of the double speed input can be used. Even when data is written to the memory, power consumption does not increase.

【0019】また、メモリについては、倍速書き込みを
行う場合にも、通常速度のクロックを使用して書き込み
を行っており、メモリの書き込みクロックを切り替える
必要がないため、メモリの記憶データを保証することが
できる。
Also, in the case of performing double-speed writing, since writing is performed using a clock at a normal speed and there is no need to switch the writing clock of the memory, it is necessary to guarantee the data stored in the memory. Can be.

【0020】また、通常速度のシリアルデータも倍速の
シリアルデータも一つのメモリに書き込むことができ、
通常速度のシリアルデータと倍速のシリアルデータの両
方を処理する必要がある場合にも、メモリとしては通常
速度のクロックで動作する一つのマルチポートメモリ装
置だけですみ、撮像装置などにおいて、動作モードによ
ってシリアルデータの入力速度が異なる場合にも、一つ
のマルチポートメモリ装置のみで、画像処理を行うこと
が可能で、撮像装置の構成を簡単化でき、小型化、低価
格化を実現できる。
In addition, both normal-speed serial data and double-speed serial data can be written in one memory.
Even when it is necessary to process both normal-speed serial data and double-speed serial data, only one multi-port memory device that operates at a normal-speed clock is required. Even when the input speed of serial data is different, image processing can be performed with only one multiport memory device, so that the configuration of the imaging device can be simplified, and miniaturization and cost reduction can be realized.

【0021】また、静止画等の画素数の多い画像データ
を倍速モードで書き込んで処理する場合に、メモリの読
み出し側については通常速度で動作させることができ、
動画を表示する表示手段をそのまま利用してモニタ画面
上に静止画を容易に表示させることが可能となる。
Further, when writing and processing image data having a large number of pixels such as a still image in the double speed mode, the read side of the memory can be operated at the normal speed.
The still image can be easily displayed on the monitor screen by using the display means for displaying the moving image as it is.

【0022】本発明の請求項2記載の撮像装置は、R
(赤)、G(緑)、B( 青) にそれぞれ専用の撮像素子
を用い、撮像素子の水平および垂直方向の画素配列間隔
をそれぞれPh、Pvとするとき、G用の撮像素子をRおよ
びB用の撮像素子に対し、水平・垂直方向にそれぞれ
(Ph/2+a)、(Pv/2+b)(a,b は定数)だけずらし
て配置する斜め画素ずらし配置を行う3板方式の撮像装
置であって、R、G、B用の撮像素子の画素出力信号を
記憶するマルチポートメモリ装置と、輝度信号作成手段
とを備えている。
According to a second aspect of the present invention, there is provided an imaging apparatus comprising:
When dedicated image sensors are used for (red), G (green), and B (blue), respectively, and the pixel arrangement intervals in the horizontal and vertical directions of the image sensors are Ph and Pv, respectively, the G image sensors are R and An image pickup device of a three-chip system that performs an oblique pixel shift arrangement in which the image sensor for B is shifted by (Ph / 2 + a) and (Pv / 2 + b) (a and b are constants) in the horizontal and vertical directions, respectively. A multi-port memory device for storing pixel output signals of the R, G, and B image sensors, and a luminance signal generating unit.

【0023】輝度信号作成手段は、R、G、B用の撮像
素子の画素出力信号または、マルチポートメモリ装置の
出力信号を入力とし、RおよびB用の撮像素子の画素出
力信号と、RおよびB用の撮像素子の画素に対し空間的
に左下最近傍または右下最近傍に位置するG用の撮像素
子の画素出力信号とを用いて、水平方向画素数がG用の
撮像素子の2倍である第1の輝度信号を作成し、Rおよ
びB用の撮像素子の画素出力信号と、RおよびB用の撮
像素子の画素に対し空間的に左上最近傍または右上最近
傍に位置するG用の撮像素子の画素出力信号とを用い
て、水平方向画素数がG用の撮像素子の2倍である第2
の輝度信号を作成する。
The luminance signal generating means receives the pixel output signal of the image sensor for R, G, B or the output signal of the multiport memory device as an input, and outputs the pixel output signal of the image sensor for R and B, and R and B The number of pixels in the horizontal direction is twice that of the G image sensor by using the pixel output signal of the G image sensor positioned spatially nearest to the lower left or lower right of the pixels of the B image sensor. , And a pixel output signal of the R and B image sensors and a pixel output signal of the G pixel which is spatially located at the upper left nearest neighbor or the upper right nearest neighbor with respect to the pixels of the R and B image sensors. The number of pixels in the horizontal direction is twice that of the G image sensor using the pixel output signal of the image sensor of
To create a luminance signal.

【0024】マルチポートメモリ装置は、請求項1に記
載したものであり、第1および第2の輝度信号を記憶す
る場合は倍速モードとなるよう制御される。
The multi-port memory device is as described in claim 1, and is controlled to be in the double speed mode when storing the first and second luminance signals.

【0025】この構成によれば、マルチポートメモリ装
置におけるライト2ポートを1ポートとして扱えるよう
になるため、メモリアクセス速度の2倍速のデータが書
き込み可能になる。そのため、このマルチポートメモリ
装置を撮像装置に用いることで、2倍速書き込み動作が
必要なモード(例えば、画素ずらし配置されたCCDを
用いての静止画撮影モード)においても、メモリの駆動
周波数を通常状態に保ったまま実行でき、異なる2系統
の信号の蓄積用メモリ(RGB信号蓄積用メモリとY
1,Y2,C信号蓄積用メモリ)を1つのメモリで共用
することが可能になる。さらに、メモリ駆動周波数を2
fsとし、データ読み出し動作を1クロックおきに行う
方式に比べてメモリ消費電力を抑えることが可能にな
る。
According to this configuration, the two write ports in the multiport memory device can be handled as one port, so that data at twice the memory access speed can be written. Therefore, by using this multi-port memory device as an image pickup device, the drive frequency of the memory can be set to a normal value even in a mode requiring a double-speed writing operation (for example, a still image shooting mode using a CCD shifted in pixels). It can be executed while maintaining the state, and the memory for storing two different signals (the RGB signal storage memory and the Y signal storage memory).
1, Y2, C signal storage memory) can be shared by one memory. Further, the memory drive frequency is set to 2
fs, the power consumption of the memory can be reduced as compared with the method of performing the data read operation every other clock.

【0026】[0026]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図面を用いて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0027】[第1の実施の形態]図1は本発明のマル
チポートメモリ装置の実施の形態(請求項1に対応)の
全体の構成を示すブロック図である。図2から図6まで
の各図は図1のマルチポートメモリ装置の要部の具体的
な構成を示すブロック図である。
[First Embodiment] FIG. 1 is a block diagram showing the entire configuration of a multiport memory device according to an embodiment (corresponding to claim 1) of the present invention. Each of FIGS. 2 to 6 is a block diagram showing a specific configuration of a main part of the multiport memory device of FIG.

【0028】まず、図1から図6までの各図に基づい
て、本発明の実施の形態におけるマルチポートメモリ装
置の構成を説明する。
First, the configuration of a multiport memory device according to an embodiment of the present invention will be described with reference to FIGS. 1 to 6.

【0029】図1では、例として、入出力ポート数4ポ
ート、具体的には入力2ポート(WAポート,WBポー
ト)、出力2ポート(RAポート,RBポート)の4ポ
ートのマルチポートメモリ装置を示している。このマル
チポートメモリ装置は、シリアル−パラレル変換を行う
シリアル−パラレル変換手段としてのシリアル−パラレ
ル変換回路1a,1bと、データを一時記憶するライト
バッファ2a,2bと、ライトデータ選択出力手段とし
てのセレクタ3a,3b,3cと、メモリとしてのDR
AM4と、データを一時記憶するリードバッファ5a,
5bと、パラレル−シリアル変換を行うパラレル−シリ
アル変換手段としてのパラレル−シリアル変換回路6
a,6bと、遅延調整手段としての遅延調整回路7a,
7bと、メモリ制御手段としてのDRAMコントローラ
8と、シーケンス発生手段としてのシーケンス発生回路
9と、シリアルデータ選択出力手段としてのセレクタ1
0とから構成されている。このマルチポートメモリ装置
は、例えばマイクロプロセッサと同じ回路基板上に混載
されるものであり、そのデータのビット幅は、128〜
256ビット程度と単体のメモリに比べて大きいもので
ある。
In FIG. 1, as an example, a four-port multiport memory device having four input / output ports, specifically, two input ports (WA port, WB port) and two output ports (RA port, RB port) Is shown. The multiport memory device includes serial-parallel conversion circuits 1a and 1b as serial-parallel conversion means for performing serial-parallel conversion, write buffers 2a and 2b for temporarily storing data, and a selector as write data selection output means. 3a, 3b, 3c and DR as a memory
AM4 and a read buffer 5a for temporarily storing data.
5b and a parallel-serial conversion circuit 6 as parallel-serial conversion means for performing parallel-serial conversion
a, 6b and a delay adjustment circuit 7a,
7b, a DRAM controller 8 as a memory control unit, a sequence generation circuit 9 as a sequence generation unit, and a selector 1 as a serial data selection output unit.
0. This multiport memory device is, for example, mixedly mounted on the same circuit board as a microprocessor, and its data bit width is 128 to
This is about 256 bits, which is larger than that of a single memory.

【0030】上記したシリアル−パラレル変換回路1
a,1bはクロックWCKに従って動作し、ライトバッ
ファ2a,2bより後段の回路および、DRAMコント
ローラ8およびシーケンス発生回路9はクロックDCK
に従って動作する。
The above-described serial-parallel conversion circuit 1
a and 1b operate in accordance with the clock WCK, and the circuits downstream of the write buffers 2a and 2b, the DRAM controller 8 and the sequence generation circuit 9 use the clock DCK.
Works according to

【0031】図2から図6までの各図は、図1中のシリ
アル−パラレル変換回路1a、ライトバッファ2a、リ
ードバッファ5a、パラレル−シリアル変換回路6a、
遅延調整回路7aのさらに詳細な構成例を示したブロッ
ク図である。
FIGS. 2 to 6 show the serial-parallel conversion circuit 1a, write buffer 2a, read buffer 5a, parallel-serial conversion circuit 6a,
FIG. 3 is a block diagram showing a more detailed configuration example of a delay adjustment circuit 7a.

【0032】ここで、入力データWSDA,WSDBは
例えばデータ幅12ビットでクロックWCKに同期した
時系列データとしており、また、DRAM4のアクセス
データ幅は例えば120ビットであるとしている。な
お、これらのビット幅に限定されるものではない。な
お、クロックWCKは、通常モードのときはクロックD
CKと同じ周波数であり、倍速モードのときはクロック
DCKの2倍の周波数になる。
Here, the input data WSDA and WSDB are, for example, time-series data having a data width of 12 bits and synchronized with the clock WCK, and the access data width of the DRAM 4 is, for example, 120 bits. The bit width is not limited to these. The clock WCK is the clock D in the normal mode.
The frequency is the same as that of CK, and is twice the frequency of the clock DCK in the double speed mode.

【0033】シリアル−パラレル変換回路1aは、図2
に示すように、40段のシフトレジスタ21と、通常モ
ードと倍速モードとを切り替えるためのモード切替信号
MODEによって外部信号WSTRBA,WSTRBB
のいずれか一方を選択して出力するセレクタ22と、セ
レクタ22の出力信号WSTRB2Aを制御信号として
シフトレジスタ21の出力のロード、ホールド動作を行
うレジスタ23とから構成されている。シフトレジスタ
21およびレジスタ23は、クロックWCKに従って動
作する。上記のシリアル−パラレル変換回路1aは、セ
レクタ10から入力されるシリアルデータWSD2Aを
セレクタ22の出力信号WSTRB2Aのタイミングで
パラレルデータWPDAに変換して出力する。なお、セ
レクタ22は、通常モードのときには外部信号WSTR
BAを選択出力し、倍速モードのときには外部制御信号
WSTRBBを選択出力する。
The serial-to-parallel conversion circuit 1a has the configuration shown in FIG.
As shown in FIG. 7, external signals WSTRBA and WSTRBB are provided by a 40-stage shift register 21 and a mode switching signal MODE for switching between a normal mode and a double speed mode.
And a register 23 that performs a load and hold operation of the output of the shift register 21 using the output signal WSTRB2A of the selector 22 as a control signal. The shift register 21 and the register 23 operate according to the clock WCK. The serial-parallel conversion circuit 1a converts the serial data WSD2A input from the selector 10 into parallel data WPDA at the timing of the output signal WSTRB2A of the selector 22, and outputs the parallel data WPDA. Note that the selector 22 outputs the external signal WSTR in the normal mode.
BA is selectively output, and in the double speed mode, the external control signal WSTRBB is selectively output.

【0034】シリアル−パラレル変換回路1bは、図2
に示すように、40段のシフトレジスタ31と、外部制
御信号WSTRBBを制御信号としてシフトレジスタ3
1の出力のロード、ホールド動作を行うレジスタ32と
から構成されている。シフトレジスタ31およびレジス
タ32は、クロックWCKに従って動作する。上記のシ
フトレジスタ31は、外部から入力されるシリアルデー
タWSDBを外部信号WSTRBBのタイミングでパラ
レルデータWPDBに変換して出力するほか、シフトレ
ジスタ31の最終段から、シリアルデータWSDBを所
定の遅延段数(この例では40段)だけ時間シフトした
遅延シリアルデータDLYWSDBを出力し、セレクタ
10へ供給する。上記した所定の遅延段数というのは、
シリアルデータWSDBをパラレルデータWPDBに変
換するのに必要な遅延段数に等しい。
The serial-to-parallel conversion circuit 1b has the configuration shown in FIG.
As shown in the figure, a shift register 31 of forty stages and a shift register 3 using an external control signal WSTRBB as a control signal.
And a register 32 for performing a load and hold operation of the output of the register 1. The shift register 31 and the register 32 operate according to the clock WCK. The shift register 31 converts the serial data WSDB input from the outside into parallel data WPDB at the timing of the external signal WSTRBB and outputs the parallel data WPDB, and also converts the serial data WSDB from the last stage of the shift register 31 into a predetermined number of delay stages ( The delayed serial data DLYWSDB shifted in time by (in this example, 40 stages) is output and supplied to the selector 10. The above-mentioned predetermined number of delay stages is
It is equal to the number of delay stages required to convert serial data WSDB to parallel data WPDB.

【0035】セレクタ10は、モード切替信号MODE
によって、通常モードのとき(MODE=“L”)は、
外部入力のシリアルデータWSDAを選択してシリアル
−パラレル変換回路1aへ供給し、倍速モードのとき
(MODE=“H”)は、パラレル−シリアル変換回路
1bから出力される遅延シリアルデータDLYWSDB
を選択してシリアル−パラレル変換回路1aへ供給する
ことになる。
The selector 10 receives the mode switching signal MODE
In normal mode (MODE = “L”),
The external input serial data WSDA is selected and supplied to the serial-parallel conversion circuit 1a. In the double speed mode (MODE = “H”), the delayed serial data DLYWSDB output from the parallel-serial conversion circuit 1b is selected.
Is supplied to the serial-parallel conversion circuit 1a.

【0036】そして、この構成によって、通常モードの
ときは、12ビットの40個のシリアルの入力データW
SDAが480ビットの出力データWPDAに変換され
て出力され、ライトバッファ2aへ入力される。また、
12ビットの40個のシリアルの入力データWSDBが
480ビットの出力データWPDBに変換されて出力さ
れ、ライトバッファ2bへ入力さる。
With this configuration, in the normal mode, 40 12-bit serial input data W
The SDA is converted into 480-bit output data WPDA, output, and input to the write buffer 2a. Also,
Forty 12-bit serial input data WSDB are converted into 480-bit output data WPDB, output, and input to the write buffer 2b.

【0037】一方、倍速モードのときは、クロックWC
KがクロックDCKの2倍の周波数になり、またシフト
レジスタ31とシフトレジスタ21とが縦続接続された
状態になり、結果的に両者を合わせて80段のシフトレ
ジスタが構成されることになる。その結果、12ビット
の80個のシリアルの入力データWSDBが480ビッ
トずつの出力データWPDA,WPDBに変換されて出
力されることになる。
On the other hand, in the double speed mode, the clock WC
K becomes twice the frequency of the clock DCK, and the shift register 31 and the shift register 21 are cascade-connected. As a result, a shift register of 80 stages is formed by combining them. As a result, 80 serial input data WSDB of 12 bits are converted into output data WPDA and WPDB of 480 bits each and output.

【0038】ライトバッファ2aは、図3に示すよう
に、シーケンス発生回路9からの制御信号であるポート
基準信号WACTAによりロード、ホールド制御される
480ビットのレジスタ12で構成されており、DRA
M4の動作クロックDCKに同期して動作する。レジス
タ12は、図では4個の120ビットのレジスタ12
a,12b,12c,12dで構成され、それぞれ12
0ビット分ずつ保持され、それぞれ120ビットの出力
データWDDA0〜WDDA3として出力され、セレク
タ3aへ送られる。
As shown in FIG. 3, the write buffer 2a comprises a 480-bit register 12 that is loaded and held by a port reference signal WACTA, which is a control signal from the sequence generation circuit 9, and has a DRA.
It operates in synchronization with the operation clock DCK of M4. The register 12 includes four 120-bit registers 12 in the figure.
a, 12b, 12c, and 12d.
The data is held by 0 bits, output as 120-bit output data WDDA0 to WDDA3, and sent to the selector 3a.

【0039】ライトバッファ2bは、ライトバッファ2
aと同様の構成であり、シーケンス発生回路9からの制
御信号であるポート基準信号WACTBによりロード、
ホールド制御され、DRAM4の動作クロックDCKに
同期して動作して、4個の120ビットの出力データW
DDB0〜WDDB3として出力され、セレクタ3bへ
送られる。
The write buffer 2b is a write buffer 2
a, which is loaded by a port reference signal WACTB which is a control signal from the sequence generation circuit 9;
The hold control is performed, the operation is performed in synchronization with the operation clock DCK of the DRAM 4, and the four 120-bit output data W are output.
The data is output as DDB0 to WDDB3 and sent to the selector 3b.

【0040】セレクタ3aは、ライトバッファ2aの出
力データWDDA0〜WDDA3をシーケンス発生回路
9からの書き込みデータ選択信号WDSELに従って出
力データWDDAとして選択的に出力する。
The selector 3a selectively outputs the output data WDDA0 to WDDA3 of the write buffer 2a as the output data WDDA according to the write data selection signal WDSEL from the sequence generation circuit 9.

【0041】セレクタ3bは、ライトバッファ2bの出
力データWDDB0〜WDDB3をシーケンス発生回路
9からの書き込みデータ選択信号WDSELに従って出
力データWDDBとして選択的に出力する。
The selector 3b selectively outputs the output data WDDB0 to WDDB3 of the write buffer 2b as the output data WDDB according to the write data selection signal WDSEL from the sequence generation circuit 9.

【0042】セレクタ3cは、セレクタ3aの出力デー
タWDDAとセレクタ3bの出力データWDDBとをシ
ーケンス発生回路9からの書き込みデータ選択信号WP
SELに従って120ビットの出力データWDDとして
選択的に出力し、DRAM4へ送る。
The selector 3c converts the output data WDDA of the selector 3a and the output data WDDB of the selector 3b into a write data selection signal WP from the sequence generation circuit 9.
The data is selectively output as 120-bit output data WDD according to the SEL and sent to the DRAM 4.

【0043】DRAM4は、DRAMコントローラ8か
らのRAS(ローアドレスストローブ)制御信号NRA
S,CAS(カラムアドレスストローブ)制御信号NC
AS,メモリ番地を指定する列アドレスCAD,行アド
レスRAD,書き込み読み出し許可状態を示すWE(ラ
イトイネーブル)制御信号NWEに従って書き込みおよ
び読み出し動作が行われる。
DRAM 4 receives a RAS (row address strobe) control signal NRA from DRAM controller 8.
S, CAS (column address strobe) control signal NC
Write and read operations are performed in accordance with AS, a column address CAD specifying a memory address, a row address RAD, and a WE (write enable) control signal NWE indicating a write / read permission state.

【0044】リードバッファ5aは、図4に示すよう
に、DRAM4の出力データRDDを入力とし、読み出
しデータ選択信号RDSELA0,RDSELA1,R
DSELA2,RDSELA3(図1では、RDSEL
Aとまとめて記している)によって、120ビット毎に
異なるタイミングでロード、ホールド制御されるレジス
タ13a,13b,13c,13dで構成されている。
レジスタ13a,13b,13c,13dはそれぞれ1
20ビットのデータRPDA0〜RPDA3を出力す
る。さらに、これらのデータRPDA0〜RPDA3は
480ビットのデータRPDAとしてまとめられて、パ
ラレル−シリアル変換回路6aに入力される。
As shown in FIG. 4, the read buffer 5a receives the output data RDD of the DRAM 4 as an input, and outputs read data select signals RDSELA0, RDSELA1, R
DSELA2, RDSELA3 (In FIG. 1, RDSELA
A), registers 13a, 13b, 13c, and 13d are loaded and held at different timings every 120 bits.
Each of the registers 13a, 13b, 13c, and 13d is 1
It outputs 20-bit data RPDA0 to RPDA3. Further, these data RPDA0 to RPDA3 are collected as 480-bit data RPDA and input to the parallel-serial conversion circuit 6a.

【0045】リードバッファ5bは、リードバッファ5
aと同様の構成で、DRAM4の出力データRDDを入
力とし、選択信号RDSELBによって120ビット毎
に異なるタイミングでロード、ホールド制御され、48
0ビットのデータRPDBを出力し、パラレル−シリア
ル変換回路6bに送られる。
The read buffer 5b is a read buffer 5
In the same configuration as in FIG. 4A, the output data RDD of the DRAM 4 is input, and the load and the hold are controlled at different timings every 120 bits by the selection signal RDSELB.
It outputs 0-bit data RPDB and sends it to the parallel-serial conversion circuit 6b.

【0046】パラレル−シリアル変換回路6aは、図5
に示すように、シーケンス発生回路9からの出力信号で
あるポート基準信号RACTAを一定時間遅延させる遅
延回路14とその遅延回路14の出力信号RACTA’
によって前段レジスタ出力かリードバッファ5a出力か
が選択制御されるセレクタ15とシフトレジスタ16と
から構成されていて、DRAM4のクロックDCKに従
って動作する。この構成によって、480ビットのデー
タRPDAは40個の12ビットのデータRSDPAに
変換されて、遅延調整回路7aへ送られることになる。
The parallel-to-serial conversion circuit 6a has the configuration shown in FIG.
As shown in FIG. 7, a delay circuit 14 for delaying a port reference signal RACTA which is an output signal from the sequence generation circuit 9 for a predetermined time, and an output signal RACTA 'of the delay circuit 14
A shift register 16 and a selector 15 that selectively controls the output of the preceding stage register or the output of the read buffer 5a, and operates according to the clock DCK of the DRAM 4. With this configuration, the 480-bit data RPDA is converted into 40 12-bit data RSDPA and sent to the delay adjustment circuit 7a.

【0047】パラレル−シリアル変換回路6bは、パラ
レル−シリアル変換回路6aと同様の構成であり、シー
ケンス発生回路9からの出力信号であるポート基準信号
RACTBに従って480ビットのデータRPDBを4
0個の12ビットのデータRSDPBに変換して遅延調
整回路7bへ送る。
The parallel-serial conversion circuit 6b has the same structure as the parallel-serial conversion circuit 6a, and outputs 480-bit data RPDB in accordance with the port reference signal RACTB output from the sequence generation circuit 9.
The data is converted to zero 12-bit data RSDPB and sent to the delay adjustment circuit 7b.

【0048】遅延調整回路7aは、図6に示すように、
パラレル−シリアル変換回路6aの出力データRSDP
Aを所望の時間遅延させて出力するデュアルポートRA
M16(例えばSRAM)とその書き込みアドレスWA
DR,読み出しアドレスRADRを発生するアドレス生
成回路17とから構成されている。そして、同一アドレ
スの書き込みタイミングと読み出しタイミングとをずら
せることにより、入力されたデータRSDPAを所定時
間遅延してデータRSDAとして出力することになる。
これによって、シリアルデータの出力タイミングが外部
からの読み出し要求タイミングに合致することになる。
As shown in FIG. 6, the delay adjustment circuit 7a
Output data RSDP of the parallel-serial conversion circuit 6a
Dual port RA that outputs A with a desired time delay
M16 (for example, SRAM) and its write address WA
DR and an address generation circuit 17 for generating a read address RADR. By shifting the write timing and read timing of the same address, the input data RSDPA is output as data RSDA with a predetermined delay.
As a result, the output timing of the serial data matches the external read request timing.

【0049】この場合の遅延時間(クロック数)は、ア
ドレス生成回路17に加える遅延設定値RDLYAによ
って任意に設定できる。この場合、デュアルポートRA
M16は、書き込み動作はクロックDCKに従い、読み
出し動作はクロックRCKに従う。
The delay time (the number of clocks) in this case can be arbitrarily set by the delay setting value RDLYA added to the address generation circuit 17. In this case, the dual port RA
In M16, the write operation follows the clock DCK, and the read operation follows the clock RCK.

【0050】遅延調整回路7bは、遅延調整回路7aと
同様の構成であり、遅延設定値RDLYBに従い、パラ
レル−シリアル変換回路6bの出力データRSDPBを
所望の時間遅延させてデータRSDBとして出力する。
The delay adjustment circuit 7b has the same configuration as the delay adjustment circuit 7a, and delays the output data RSDPB of the parallel-serial conversion circuit 6b by a desired time according to the delay set value RDLYB and outputs the result as data RSDB.

【0051】シーケンス発生回路9は、外部リセット信
号RSTR、クロックWCK,DCKに従って各種信号
WACTA,WACTB,WDSEL,WPSEL,R
DSELA,RDSELB,RACTA,RACTB,
RDLYA,RDLYB,PSEQを出力する。
The sequence generating circuit 9 outputs various signals WACTA, WACTB, WDSEL, WPSEL, R in accordance with the external reset signal RSTR and clocks WCK, DCK.
DSELA, RDSELB, RACTA, RACTB,
RDLYA, RDLYB, and PSEQ are output.

【0052】DRAMコントローラ8は、外部信号WS
TRBA,WSTRBB,RSTRBA,RSTRB
B,ブロックアドレスWADRA,WADRB,RAD
RA,RADRBと、シーケンス発生回路9のシーケン
ス信号PSEQと、クロックDCKに従って、RAS制
御信号NRAS,CAS制御信号NCAS,列アドレス
CAD,行アドレスRAD,WE制御信号NWEを出力
する。
The DRAM controller 8 receives the external signal WS
TRBA, WSTRBB, RSTRBA, RSTRB
B, block address WADRA, WADRB, RAD
RAS control signal NRAS, CAS control signal NCAS, column address CAD, row address RAD, WE control signal NWE are output in accordance with RA, RADRB, sequence signal PSEQ of sequence generation circuit 9 and clock DCK.

【0053】なお、上記の外部信号WSTRBA,WS
TRBBは外部からの書き込み要求タイミングに対応し
ている。また、外部信号RSTRBA,RSTRBBは
外部からの読み出し要求タイミングに対応している。す
なわち、外部信号WSTRBA,WSTRBBがアクテ
ィブとなったタイミングが外部からの書き込み要求タイ
ミングに対応し、外部信号RSTRBA,RSTRBB
がアクティブとなったタイミングが外部からの読み出し
要求タイミングに対応する。
The external signals WSTRBA, WS
TRBB corresponds to an external write request timing. The external signals RSTRBA and RSTRBB correspond to external read request timings. That is, the timing at which the external signals WSTRBA and WSTRBB become active corresponds to the write request timing from outside, and the external signals RSTRBA and RSTRBB
Becomes active corresponds to the read request timing from the outside.

【0054】つぎに、図7〜図9を用いて、通常モード
において、入力系統のデータがDRAM4に書き込まれ
る動作を説明する。
Next, the operation of writing data of the input system to the DRAM 4 in the normal mode will be described with reference to FIGS.

【0055】図7は、シリアル−パラレル変換回路1
a,1bにおける、入出力信号のタイミング関係を示す
タイミングチャートである。このときのクロックWCK
はクロックDCKと同じ周波数である。
FIG. 7 shows a serial-parallel conversion circuit 1.
4 is a timing chart showing a timing relationship between input and output signals in a and 1b. The clock WCK at this time
Is the same frequency as the clock DCK.

【0056】WAポート、WBポートにクロックWCK
に従ってそれぞれ入力される12ビットの時系列データ
WSDA(WA1,WA2,・・・・・・・・),WS
DB(WB1,WB2,・・・・・・・・・)は、シリ
アル−パラレル変換回路1a,1bで図7に示すとお
り、有効データのタイミングに同期した40データの周
期をもつ外部信号WSTRBA,WSTRBBの各タイ
ミングで40データ単位(480ビット単位)でパラレ
ルデータWPDA,WPDBに変換される。なお、図中
の記号Xは任意の数値を示している。
Clock WCK is applied to WA port and WB port.
, WSDA (WA1, WA2,...), WS
DB (WB1, WB2,...) Are serial-parallel converters 1a and 1b, as shown in FIG. 7, which are external signals WSTRBA, 40 having a period of 40 data synchronized with the timing of valid data. At each timing of WSTRBB, the data is converted into parallel data WPDA and WPDB in 40 data units (480 bit units). Note that the symbol X in the figure indicates an arbitrary numerical value.

【0057】図8は、シーケンス発生回路9で外部リセ
ット信号RSTRを基準に生成されるDRAM基本サイ
クル信号CYCLEと、各ポートのメモリへのアクセス
の順序、タイミングを固定したシーケンス信号PSEQ
と、DRAM基本サイクル信号CYCLEの周期内のポ
ート別の割り当て期間のスタートタイミングを示すポー
ト基準信号WACTA,WACTB,RACTA,RA
CTBとの関係を示すタイミングチャートである。図8
にはクロックDCKも示している。
FIG. 8 shows a DRAM basic cycle signal CYCLE generated by the sequence generation circuit 9 based on the external reset signal RSTR, and a sequence signal PSEQ in which the order and timing of accessing the memory of each port are fixed.
And port reference signals WACTA, WACTB, RACTA, RA indicating start timing of an allocation period for each port in the cycle of DRAM basic cycle signal CYCLE.
6 is a timing chart showing a relationship with CTB. FIG.
Also shows a clock DCK.

【0058】図8に示すように、シーケンス発生回路9
では、外部リセット信号RSTRを基準に、40T周期
(TはDRAMクロックDCKの周期;=40DCK=
40WCK)のDRAM基本サイクル信号CYCLEが
生成され、この周期内で6T間隔でWAポート,WBポ
ート、RAポート、RBポートの専用アクセス期間を規
定するシーケンス信号PSEQが生成される。
As shown in FIG. 8, the sequence generation circuit 9
Then, based on the external reset signal RSTR, a period of 40T (T is a period of the DRAM clock DCK; = 40DCK =
(40WCK) DRAM basic cycle signal CYCLE is generated, and a sequence signal PSEQ which defines a dedicated access period of the WA port, WB port, RA port, and RB port is generated at intervals of 6T in this cycle.

【0059】図8では、PSEQ=1のときWAポート
の専用アクセス期間であり、PSEQ=2のときWBポ
ートの専用アクセス期間であり、PSEQ=3のときR
Aポートの専用アクセス期間であり、PSEQ=4のと
きRBポートの専用アクセス期間であるとした例を示し
ている。
In FIG. 8, when PSEQ = 1, it is a dedicated access period for the WA port, when PSEQ = 2, it is a dedicated access period for the WB port, and when PSEQ = 3, it is R
An example is shown in which it is a dedicated access period for the A port and a dedicated access period for the RB port when PSEQ = 4.

【0060】また、ポート基準信号WACTA,WAC
TB,RACTA,RACTBが、図8に示すようにシ
ーケンス信号PSEQに同期するかたちで生成される。
Also, the port reference signals WACTA, WAC
TB, RACTA, and RACTB are generated in synchronization with the sequence signal PSEQ as shown in FIG.

【0061】シリアル−パラレル変換回路1a,1bで
パラレル化されたデータWPDA,WPDBは、上記に
示したポート基準信号WACTA, WACTBのタイミ
ングでライトバッファ2a,2bにそれぞれ一時記憶さ
れる。このとき、データWPDA,WPDBは120ビ
ット単位で各々4分割されて一時記憶される。
The data WPDA and WPDB parallelized by the serial-parallel conversion circuits 1a and 1b are temporarily stored in the write buffers 2a and 2b at the timing of the port reference signals WACTA and WACTB described above. At this time, the data WPDA and WPDB are each divided into four in units of 120 bits and temporarily stored.

【0062】図9は、ライトバッファ2a,2bの動
作、ならびにシーケンス発生回路9で生成された書き込
みデータ選択信号WDSEL,WPSELに基づいてセ
レクタ3a,3b,3cの各出力信号が切り替わる状態
を示したタイミングチャートである。図中のXは任意の
数値を示している。
FIG. 9 shows the operation of the write buffers 2a and 2b and the state in which the output signals of the selectors 3a, 3b and 3c are switched based on the write data selection signals WDSEL and WPSEL generated by the sequence generation circuit 9. It is a timing chart. X in the figure indicates an arbitrary numerical value.

【0063】シーケンス発生回路9のシーケンス信号P
SEQが1の期間の最初のタイミングで発生するポート
基準信号WACTAに対応してシリアル−パラレル変換
回路1aの出力データWPDAがロード・ホールドさ
れ、それによってホールドされたデータWDDA0〜W
DDA3がライトバッファ2aから出力される。また、
シーケンス発生回路9のシーケンス信号PSEQが2の
期間の最初のタイミングで発生するポート基準信号WA
CTBに対応してシリアル−パラレル変換回路1bの出
力データWPDBがロード・ホールドされ、それによっ
てホールドされたデータWDDB0〜WDDB3がライ
トバッファ2bから出力される。
Sequence signal P of sequence generation circuit 9
The output data WPDA of the serial-parallel conversion circuit 1a is loaded and held in response to the port reference signal WACTA generated at the first timing of the period in which SEQ is 1, and the data WDDA0-W held thereby are held.
DDA 3 is output from write buffer 2a. Also,
The port reference signal WA generated at the first timing of the period when the sequence signal PSEQ of the sequence generation circuit 9 is 2.
The output data WPDB of the serial-parallel conversion circuit 1b is loaded and held corresponding to the CTB, and the held data WDDB0 to WDDB3 are output from the write buffer 2b.

【0064】そして、WDSEL=0のときセレクタ3
a,3bでWDDA0,WDDB0が各々選択され、デ
ータWDDA,WDDBとして出力される。また、WD
SEL=1のときセレクタ3a,3bでWDDA1,W
DDB1が各々選択され、データWDDA,WDDBと
して出力される。また、WDSEL=2のときセレクタ
3a,3bでWDDA2,WDDB2が各々選択され、
データWDDA,WDDBとして出力される。また、W
DSEL=3のときセレクタ3a,3bでWDDA3,
WDDB3とが各々選択され、データWDDA,WDD
Bとして出力される。
When WDSEL = 0, the selector 3
WDDA0 and WDDB0 are respectively selected by a and 3b, and are output as data WDDA and WDDB. Also, WD
When SEL = 1, the selectors 3a, 3b use WDDA1, W
DDB1 is selected and output as data WDDA and WDDB. When WDSEL = 2, WDDA2 and WDDB2 are selected by selectors 3a and 3b, respectively.
The data is output as data WDDA and WDDB. Also, W
When DSEL = 3, the selectors 3a, 3b use WDDA3,
WDDB3 are selected, and data WDDA and WDD are selected.
Output as B.

【0065】WPSEL=0(ローレベル)のときセレ
クタ3cでWAポート側のデータ(セレクタ3aの出力
データWDDA)が選択され、データWDDとして出力
される。また、WPSEL=1(ハイレベル)のときW
Bポート側のデータ(セレクタ3bの出力データWDD
B)が選択され、データWDDとして出力される。
When WPSEL = 0 (low level), the data on the WA port side (output data WDDA of the selector 3a) is selected by the selector 3c and output as the data WDD. When WPSEL = 1 (high level), W
B port side data (output data WDD of selector 3b)
B) is selected and output as data WDD.

【0066】以上のようにして、分割データのうちの1
データがセレクタ3a,3b,3cで選択され、DRA
M4へ出力され、DRAMコントローラ8によってDR
AM4の所定アドレスへの書き込み動作が行われる。
As described above, one of the divided data
The data is selected by the selectors 3a, 3b, 3c and the DRA
M4 and output by the DRAM controller 8 to the DR
A write operation to a predetermined address of AM4 is performed.

【0067】つぎに、図10および図11を用いて、倍
速モードにおいて、入力系統のデータがDRAM4に書
き込まれる動作を説明する。
Next, the operation of writing data of the input system to the DRAM 4 in the double speed mode will be described with reference to FIGS.

【0068】図10は、シリアル−パラレル変換回路1
a,1bにおける、入出力信号のタイミング関係を示す
タイミングチャートである。このときのクロックWCK
はクロックDCKの2倍の周波数である。
FIG. 10 shows a serial-parallel conversion circuit 1.
4 is a timing chart showing a timing relationship between input and output signals in a and 1b. The clock WCK at this time
Is twice the frequency of the clock DCK.

【0069】WBポートにクロックWCKに従って12
ビットの時系列データWSDB(WB1,WB2,・・
・・・・・・・)が入力されると、シリアル−パラレル
変換回路1bで図10に示すとおり、40WCK分遅延
され、遅延シリアルデータDLYWSDBが出力され、
これがセレクタ10を介して時系列データWSD2Aと
してクロックWCKに従って入力される。このとき、W
Pポートには、その後に続く12ビットの時系列データ
WSDB(WB41,WB42,・・・・・・・・・)
が入力される。そして、これらの時系列データWSDB
(WB1,WB2,・・・・・,WB41,WB42,
・・・・・・・・・)は、有効データのタイミングに同
期した80データの周期をもつ外部信号WSTRB2
A,WSTRBBの各タイミングで40データ単位(4
80ビット単位)でパラレルデータWPDA,WPDB
に変換される。なお、図中の記号Xは任意の数値を示し
ている。
The WB port receives 12 clocks according to the clock WCK.
Bit time series data WSDB (WB1, WB2,...
...) Are input, the serial-parallel conversion circuit 1b delays by 40 WCK as shown in FIG. 10, and outputs delayed serial data DLYWSDB.
This is input as time-series data WSD2A via the selector 10 according to the clock WCK. At this time, W
In the P port, the subsequent 12-bit time series data WSDB (WB41, WB42,...)
Is entered. And these time series data WSDB
(WB1, WB2,..., WB41, WB42,
...) Is an external signal WSTRB2 having a cycle of 80 data synchronized with the timing of valid data.
A, 40 data units at each timing of WSTRBB (4
Parallel data WPDA, WPDB in units of 80 bits)
Is converted to Note that the symbol X in the figure indicates an arbitrary numerical value.

【0070】図11は、シーケンス発生回路9で外部リ
セット信号RSTRを基準に生成されるDRAM基本サ
イクル信号CYCLEと、各ポートのメモリへのアクセ
スの順序、タイミングを固定したシーケンス信号PSE
Qと、DRAM基本サイクル信号CYCLEの周期内の
ポート別の割り当て期間のスタートタイミングを示すポ
ート基準信号WACTA,WACTBとの関係を示すタ
イミングチャートである。また、図11には、ライトバ
ッファ2a,2bの動作、ならびにシーケンス発生回路
9で生成された書き込みデータ選択信号WDSEL,W
PSELに基づいてセレクタ3a,3b,3cの各出力
信号が切り替わる状態も併せて示している。さらに、図
11にはクロックWCKおよびDCKも示されている。
図中のXは任意の数値を示している。
FIG. 11 shows a DRAM basic cycle signal CYCLE generated by the sequence generating circuit 9 on the basis of the external reset signal RSTR, and a sequence signal PSE in which the order and timing of accessing the memory of each port are fixed.
6 is a timing chart showing a relationship between Q and port reference signals WACTA and WACTB indicating start timing of an allocation period for each port within a cycle of a DRAM basic cycle signal CYCLE. FIG. 11 shows the operations of the write buffers 2a and 2b and the write data selection signals WDSEL and W generated by the sequence generation circuit 9.
The state where each output signal of the selectors 3a, 3b, 3c is switched based on the PSEL is also shown. FIG. 11 also shows clocks WCK and DCK.
X in the figure indicates an arbitrary numerical value.

【0071】図11に示すように、シーケンス発生回路
9では、外部リセット信号RSTRを基準に、40DC
K周期(=80WCK周期)のDRAM基本サイクル信
号CYCLEが生成され、この周期内で6DCK間隔で
WAポート,WBポート、RAポート、RBポートの専
用アクセス期間を規定するシーケンス信号PSEQが生
成される。
As shown in FIG. 11, in the sequence generation circuit 9, 40 DC
A DRAM basic cycle signal CYCLE of K cycles (= 80 WCK cycles) is generated, and a sequence signal PSEQ that defines a dedicated access period of the WA port, WB port, RA port, and RB port is generated at intervals of 6 DCKs in this cycle.

【0072】図11では、PSEQ=1のときWAポー
トの専用アクセス期間であり、PSEQ=2のときWB
ポートの専用アクセス期間であり、PSEQ=3のとき
RAポートの専用アクセス期間であり、PSEQ=4の
ときRBポートの専用アクセス期間であるとした例を示
している。
In FIG. 11, when PSEQ = 1, it is a dedicated access period of the WA port, and when PSEQ = 2, WB
An example is shown in which a dedicated access period of a port is set, a PSEQ = 3 indicates a dedicated access period of an RA port, and a PSEQ = 4 indicates a dedicated access period of an RB port.

【0073】また、ポート基準信号WACTA,WAC
TBが、図11に示すようにシーケンス信号PSEQに
同期するかたちで生成される。ポート基準信号RACT
A,RACTBについても、図示はしていないが、シー
ケンス信号PSEQに同期している。
Also, the port reference signals WACTA, WAC
TB is generated in synchronization with the sequence signal PSEQ as shown in FIG. Port reference signal RACT
Although not shown, A and RACTB are also synchronized with the sequence signal PSEQ.

【0074】シリアル−パラレル変換回路1a,1bで
パラレル化されたデータWPDA,WPDBは、上記に
示したポート基準信号WACTA, WACTBのタイミ
ングでライトバッファ2a,2bにそれぞれ一時記憶さ
れる。このとき、データWPDA,WPDBは120ビ
ット単位で各々4分割されて一時記憶される。
The data WPDA and WPDB parallelized by the serial-parallel conversion circuits 1a and 1b are temporarily stored in the write buffers 2a and 2b at the timings of the port reference signals WACTA and WACTB described above. At this time, the data WPDA and WPDB are each divided into four in units of 120 bits and temporarily stored.

【0075】具体的に説明すると、シーケンス発生回路
9のシーケンス信号PSEQが1の期間の最初のタイミ
ングで発生するポート基準信号WACTAに対応してシ
リアル−パラレル変換回路1aの出力データWPDA
(WB40〜1)がライトバッファ2aでロード・ホー
ルドされ、それによってホールドされたデータWDDA
0〜WDDA3がライトバッファ2aから出力される。
また、シーケンス発生回路9のシーケンス信号PSEQ
が2の期間の最初のタイミングで発生するポート基準信
号WACTBに対応してシリアル−パラレル変換回路1
bの出力データWPDB(WB80〜41)がライトバ
ッファ2bでロード・ホールドされ、それによってホー
ルドされたデータWDDB0〜WDDB3がライトバッ
ファ2bから出力される。
More specifically, the output data WPDA of the serial-parallel conversion circuit 1a corresponds to the port reference signal WACTA generated at the first timing of the period when the sequence signal PSEQ of the sequence generation circuit 9 is 1.
(WB40-1) are loaded and held in the write buffer 2a, and the data WDDA held thereby is held.
0 to WDDA3 are output from the write buffer 2a.
Also, the sequence signal PSEQ of the sequence generation circuit 9
Corresponds to the port reference signal WACTB generated at the first timing of the period of 2.
b is loaded and held by the write buffer 2b, and the held data WDDB0 to WDDB3 are output from the write buffer 2b.

【0076】そして、WDSEL=0のときセレクタ3
a,3bでWDDA0,WDDB0が各々選択され、デ
ータWDDA,WDDBとして出力される。また、WD
SEL=1のときセレクタ3a,3bでWDDA1,W
DDB1が各々選択され、データWDDA,WDDBと
して出力される。また、WDSEL=2のときセレクタ
3a,3bでWDDA2,WDDB2が各々選択され、
データWDDA,WDDBとして出力される。また、W
DSEL=3のときセレクタ3a,3bでWDDA3,
WDDB3とが各々選択され、データWDDA,WDD
Bとして出力される。
When WDSEL = 0, the selector 3
WDDA0 and WDDB0 are respectively selected by a and 3b, and are output as data WDDA and WDDB. Also, WD
When SEL = 1, the selectors 3a, 3b use WDDA1, W
DDB1 is selected and output as data WDDA and WDDB. When WDSEL = 2, WDDA2 and WDDB2 are selected by selectors 3a and 3b, respectively.
The data is output as data WDDA and WDDB. Also, W
When DSEL = 3, the selectors 3a, 3b use WDDA3,
WDDB3 are selected, and data WDDA and WDD are selected.
Output as B.

【0077】WPSEL=0(ローレベル)のときセレ
クタ3cでWAポート側のデータ(セレクタ3aの出力
データWDDA)が選択され、データWDDとして出力
される。また、WPSEL=1(ハイレベル)のときW
Bポート側のデータ(セレクタ3bの出力データWDD
B)が選択され、データWDDとして出力される。
When WPSEL = 0 (low level), data on the WA port side (output data WDDA of the selector 3a) is selected by the selector 3c and output as data WDD. When WPSEL = 1 (high level), W
B port side data (output data WDD of selector 3b)
B) is selected and output as data WDD.

【0078】以上のようにして、分割データのうちの1
データがセレクタ3a,3b,3cで選択され、DRA
M4へ出力され、DRAMコントローラ8によってDR
AM4の所定アドレスへの書き込み動作が行われる。
As described above, one of the divided data
The data is selected by the selectors 3a, 3b, 3c and the DRA
M4 and output by the DRAM controller 8 to the DR
A write operation to a predetermined address of AM4 is performed.

【0079】つぎに、DRAMコントローラ8によって
DRAM4から読み出されたデータがRAポート,RB
ポートから出力されるまでの動作を図12を用いて説明
する。
Next, the data read from the DRAM 4 by the DRAM controller 8 is transferred to the RA port, RB
The operation until output from the port will be described with reference to FIG.

【0080】図12は、シーケンス発生回路9で生成さ
れた読み出しデータ選択信号RDSELA0〜RDSE
LA3,RDSELB0〜RDSELB3とその信号で
制御されるリードバッファ5a,5bのパラレル出力デ
ータRPDA(RPDA0〜RPDA3),RPDB
(RPDB0〜RPDB3)との関係を示したタイミン
グチャートであり、図中のRPDA0〜RPDA3は、
図4に示すリードバッファ5aのレジスタ13a,13
b,13c,13dの各120ビットデータ出力であ
り、RPDB0〜RPDB3は、同様の構成をもつリー
ドバッファ5bの内部のレジスタ出力(図省略)であ
る。なお、図12には、シーケンス信号PSEQとポー
ト基準信号RACTA,RACTBが併せて示されてい
る。
FIG. 12 shows the read data selection signals RDSELA0 to RDSEA generated by the sequence generation circuit 9.
LA3, RDSELB0 to RDSELB3, and parallel output data RPDA (RPDA0 to RPDA3), RPDB of read buffers 5a, 5b controlled by the signals.
6 is a timing chart showing a relationship with (RPDB0 to RPDB3), where RPDA0 to RPDA3 in the figure are:
Registers 13a and 13 of read buffer 5a shown in FIG.
b, 13c, and 13d, each of which is a 120-bit data output. RPDB0 to RPDB3 are register outputs (not shown) inside the read buffer 5b having the same configuration. FIG. 12 also shows the sequence signal PSEQ and the port reference signals RACTA and RACTB.

【0081】図12に示すように、DRAMコントロー
ラ8によって120ビット単位でDRAM4から読み出
されたデータRDDは、リードバッファ5a,5bで、
シーケンス発生回路9からの制御信号である読み出しデ
ータ選択信号RDSELA0〜RDSELA3,RDS
ESB0〜RDSESB3によりリードバッファ5a,
5bをそれぞれ構成する各レジスタに一時記憶され、リ
ードバッファ5a,5bからデータRPDA(RPDA
0〜RPDA3),RPDB(RPDB0〜RPDB
3)として出力される。
As shown in FIG. 12, data RDD read from the DRAM 4 by the DRAM controller 8 in units of 120 bits is read by the read buffers 5a and 5b.
Read data selection signals RDSELA0 to RDSELA3, RDS which are control signals from the sequence generation circuit 9.
The read buffer 5a is provided by ESB0 to RDESB3.
5b is temporarily stored in each of the registers constituting the data RPDA (RPDA) from the read buffers 5a and 5b.
0 to RPDA3), RPDB (RPDB0 to RPDB)
Output as 3).

【0082】パラレル−シリアル変換回路6a,6bで
は、リードバッファ5a,5bの出力データRPDA,
RPDBが、図8で示したシーケンス発生回路9から出
力されるポート基準信号RACTA,RACTBの一定
遅延された信号RACTA’,RACTB’(図示せ
ず)によってシリアルデータに変換され、データRSD
PA,RSDPBとして出力される。ここで一定遅延を
与えているのは、リードバッファ5a,5bのレジスタ
の480ビットデータがすべて更新された後にシリアル
変換させるためである。
In the parallel-serial conversion circuits 6a and 6b, the output data RPDA of the read buffers 5a and 5b,
RPDB is converted into serial data by a constant delayed signal RACTA ', RACTB' (not shown) of port reference signals RACTA, RACTB output from sequence generating circuit 9 shown in FIG.
Output as PA and RSDPB. The reason why the constant delay is given here is to perform serial conversion after all the 480-bit data in the registers of the read buffers 5a and 5b are updated.

【0083】そのためには、4分割されて読み出された
データがレジスタに一時記憶された後からつぎに更新さ
れるまでの期間内にパラレル−シリアル変換されるよう
にポート基準信号RACTA,RACTBを遅延させれ
ばよい。例えば、6T遅延(TはクロックDCKの周
期)とし、信号RACTA’,RACTB’を各々のポ
ートにおいて4分割データがすべてリードバッファ5
a,5bに一時記憶された直後となるように発生させれ
ば、7T以上とした場合に比べ、より早く読み出しポー
トより出力することができ、また遅延回路も小さく構成
できることになる。
For this purpose, the port reference signals RACTA and RACTB are converted so that parallel-to-serial conversion is performed within a period from the time when the data read out by dividing into four is temporarily stored in the register to the next update. What is necessary is just to delay. For example, with a 6T delay (T is the cycle of the clock DCK), the signals RACTA 'and RACTB' are all divided into four parts at each port by the read buffer 5.
If the signal is generated immediately after the temporary storage in a and 5b, the data can be output from the read port earlier and the delay circuit can be made smaller than in the case of 7T or more.

【0084】シリアル化されたデータRSDPA,RS
DPBは後段の遅延調整回路7a,7bによって遅延調
整され、2系統の出力ポートに各々データRSDA,R
SDBとして出力される。ここでの遅延調整量は、シー
ケンス発生回路9から出力される遅延設定値RDLY
A,RDLYBで決定される。
Serialized data RSDPA, RS
The DPB is delay-adjusted by delay adjustment circuits 7a and 7b at the subsequent stage, and data RSDA and R are supplied to two output ports respectively.
Output as SDB. The delay adjustment amount here is the delay set value RDLY output from the sequence generation circuit 9.
A, RDLYB.

【0085】図13は、RAポートについて、シーケン
ス発生回路9から出力された信号である遅延設定値RD
LYA(=d:整数)と、図6に示した遅延調整回路7
aの内部のアドレス生成回路17で生成される書き込み
アドレスWADRと読み出しアドレスRADRおよびデ
ータの入出力の関係を示したタイミングチャートであ
る。なお、図13には、先に説明したシーケンス信号と
ポート基準信号RACTAおよびその遅延信号RACT
A’とパラレル−シリアル変換回路6aへの入力データ
RPDAとクロックRCKも併せて示している。
FIG. 13 shows a delay setting value RD which is a signal output from the sequence generation circuit 9 for the RA port.
LYA (= d: integer) and the delay adjustment circuit 7 shown in FIG.
5A is a timing chart showing the relationship between a write address WADR and a read address RADR generated by an address generation circuit 17 in FIG. FIG. 13 shows the sequence signal, port reference signal RACTA and its delay signal RACT described above.
A ′, input data RPDA to the parallel-serial conversion circuit 6a, and a clock RCK are also shown.

【0086】図13に示すとおり、アドレス生成回路1
7では、遅延設定値RDLYAに連動して書き込みアド
レスWADRと読み出しアドレスRADRに値dだけ差
を持たせており、これにより読み出しタイミングをずら
すことができる。また、デュアルポートRAM16のリ
ード側のクロックをDRAM動作クロックDCKと位相
関係が自由なクロックRCKに同期してシリアルデータ
RSDA,RSDBを出力することができる。この場
合、RDLYAを値dに設定することで、書き込みタイ
ミングに対して読み出しタイミングdクロック(RC
K)分遅らせることができる。
As shown in FIG. 13, address generation circuit 1
In No. 7, the write address WADR and the read address RADR are different from each other by the value d in conjunction with the delay setting value RDLYA, whereby the read timing can be shifted. Also, the serial data RSDA and RSDB can be output by synchronizing the clock on the read side of the dual port RAM 16 with the clock RCK having a free phase relationship with the DRAM operation clock DCK. In this case, by setting RDLYA to a value d, the read timing d clock (RC
K) Can be delayed by minutes.

【0087】ここで、書き込みアドレスWADRと読み
出しアドレスRADRの各アドレスはアドレス最大値に
到達すると0アドレスに戻るように、巡回動作をさせ
る。ここでデュアルポートRAM16のワード長は、D
RAM動作クロックDCKと読み出し用クロックRCK
が同一周波数ならば、RACTA' ,RACTB' の周
期に相当するワード数(本例では40ワード)を有すれ
ば、その周期内で任意の読み出しタイミングに調整する
ことができる。
Here, a cyclic operation is performed so that each of the write address WADR and the read address RADR returns to the zero address when it reaches the maximum address value. Here, the word length of the dual port RAM 16 is D
RAM operation clock DCK and read clock RCK
Are the same frequency, if there is a word number (40 words in this example) corresponding to the cycle of RACTA 'and RACTB', it is possible to adjust to an arbitrary read timing within the cycle.

【0088】ここで、図8に示したとおり、外部リセッ
ト信号RSTRによってDRAM基本サイクル信号CY
CLEの位相が確定し、これにより各リードポートのメ
モリアクセスタイミングが決定されるため、読み出しタ
イミングは、この外部リセット信号RSTRの位相と、
この遅延調整回路7a,7bへのシーケンス発生回路9
からの遅延設定値RDLYA,RDLYBによって、外
部からの読み出し要求タイミングに一致するように調整
することになる。この遅延設定値RDLYA,RDLY
Bは例えばマイコンからのレジスタ書き込みにより設定
すればよい。
Here, as shown in FIG. 8, the DRAM basic cycle signal CY is generated by the external reset signal RSTR.
Since the phase of CLE is determined and the memory access timing of each read port is determined by this, the read timing is determined by the phase of the external reset signal RSTR and the phase of the external reset signal RSTR.
Sequence generation circuit 9 for delay adjustment circuits 7a and 7b
RLDYA and RDLYB are adjusted so as to coincide with external read request timings. These delay setting values RDLYA, RDLY
B may be set, for example, by writing a register from a microcomputer.

【0089】ここで、外部リセット信号RSTRからの
有効データの読み出しスタートタイミングは、遅延設定
値RDLYA,RDLYBを同一にしても、各ポートの
メモリアクセスタイミングが6Tずれて固定されている
ため、RAポートがRBポートよりも6T早く出力され
る。これに対して、パラレル−シリアル変換回路6aの
遅延回路14での遅延量を、RBポート用の同様の遅延
回路(図示せず)での遅延量よりも6T多くなるように
するか、もしくは遅延設定値RDLYAと遅延設定値R
DLYBの値が同一でも、遅延調整回路7a,7bでの
書き込みアドレスWADRと読み出しアドレスRADR
の差をポート間で6ずらし、RAポート用の遅延調整回
路7aのほうを6だけ差が大きくなるように図6におけ
るアドレス生成回路17を構成すれば、出力系統のアク
セスタイミングのずれを遅延調整回路7aで補正するこ
とができ、この読み出しタイミングのポート間のズレを
無くすことができ、外部からの読み出し要求タイミング
と各ポートの遅延設定値を一律に取り扱えるためタイミ
ング制御が容易になる。
Here, the read start timing of the valid data from the external reset signal RSTR is fixed by shifting the memory access timing of each port by 6T even if the delay setting values RDLYA and RDLYB are the same. It is output 6T earlier than the RB port. On the other hand, the delay amount of the delay circuit 14 of the parallel-serial conversion circuit 6a is set to be 6T larger than the delay amount of a similar delay circuit (not shown) for the RB port, or Set value RDLYA and delay set value R
Even if the value of DLYB is the same, the write address WADR and the read address RADR in the delay adjustment circuits 7a and 7b
The address generation circuit 17 in FIG. 6 is configured such that the difference between the two is shifted by 6 between the ports, and the delay adjustment circuit 7a for the RA port has a larger difference by 6 by delay adjustment. The correction can be made by the circuit 7a, the deviation between the read timings between the ports can be eliminated, and the read request timing from the outside and the delay set value of each port can be uniformly handled, thereby facilitating the timing control.

【0090】つぎに、図14から図18までの各図を用
いて、通常モードおよび倍速モードにおいて、シーケン
ス発生回路9により規定されたタイミングで各ポートの
データおよびアドレス等を選択し、DRAM4を制御す
るDRAMコントローラ8の動作を説明する。
Next, referring to FIGS. 14 to 18, in the normal mode and the double speed mode, the data and address of each port are selected at the timing specified by the sequence generation circuit 9, and the DRAM 4 is controlled. The operation of the DRAM controller 8 will be described.

【0091】DRAM4は、クロックDCKに従い、D
RAMコントローラ8から出力されるDRAM制御に必
要なRAS制御信号NRAS,CAS制御信号NCAS
および書き込み読み出し許可状態を示すWE制御信号N
WEおよびメモリ番地を指定する行アドレスRAD,列
アドレスCADによって、書き込み動作、読み出し動作
を行う。
The DRAM 4 operates in accordance with the clock DCK,
RAS control signal NRAS and CAS control signal NCAS required for DRAM control output from RAM controller 8
And WE control signal N indicating write / read permission state
A write operation and a read operation are performed by WE and a row address RAD and a column address CAD that specify a memory address.

【0092】図14は、通常モードにおいて、外部リセ
ット信号RSTRと、DRAM基本サイクル信号CYC
LEと、クロックDCKと、シーケンス発生回路9で生
成されたシーケンス信号PSEQと、DRAM4を制御
するためにDRAMコントローラ8で生成されるRAS
制御信号NRAS,CAS制御信号NCAS,WE制御
信号NWE,行アドレスRAD,列アドレスCADの各
々のタイミング関係を示したチャートである。
FIG. 14 shows an external reset signal RSTR and a DRAM basic cycle signal CYC in the normal mode.
LE, a clock DCK, a sequence signal PSEQ generated by the sequence generation circuit 9, and a RAS generated by the DRAM controller 8 for controlling the DRAM 4.
5 is a chart showing timing relationships among a control signal NRAS, a CAS control signal NCAS, a WE control signal NWE, a row address RAD, and a column address CAD.

【0093】図15は、倍速モードにおいて、外部リセ
ット信号RSTRと、DRAM基本サイクル信号CYC
LEと、クロックDCKと、シーケンス発生回路9で生
成されたシーケンス信号PSEQと、DRAM4を制御
するためにDRAMコントローラ8で生成されるRAS
制御信号NRAS,CAS制御信号NCAS,WE制御
信号NWE,行アドレスRAD,列アドレスCADの各
々のタイミング関係を示したチャートである。
FIG. 15 shows an external reset signal RSTR and a DRAM basic cycle signal CYC in the double speed mode.
LE, a clock DCK, a sequence signal PSEQ generated by the sequence generation circuit 9, and a RAS generated by the DRAM controller 8 for controlling the DRAM 4.
5 is a chart showing timing relationships among a control signal NRAS, a CAS control signal NCAS, a WE control signal NWE, a row address RAD, and a column address CAD.

【0094】ここでは、1つの行アドレス設定に対し
て、列アドレスは4アドレス連続して書き込み、読み出
し可能なページモード動作を行わせている。このDRA
M4が、プリチャージ期間1Tと行アドレス設定期間1
Tが必要だとして、列アドレス設定期間の4Tとあわせ
て、1ポートあたりトータル6Tで480画素のデータ
の書き込み、読み出しを実現している。
In this case, for one row address setting, a page mode operation in which four consecutive column addresses can be written and read is performed. This DRA
M4 is the precharge period 1T and the row address setting period 1
Assuming that T is required, writing and reading of data of 480 pixels are realized with a total of 6T per port, together with 4T during the column address setting period.

【0095】図16は、最大ページ長を16(16カラ
ム)とした場合のDRAM4のメモリマップを模式的に
示した図である。
FIG. 16 is a diagram schematically showing a memory map of the DRAM 4 when the maximum page length is 16 (16 columns).

【0096】図17は図16のようなDRAM4に対し
て、従来のVRAMに与えていたようなブロックアドレ
スWADRAを外部入力とした場合において、DRAM
コントローラ8の内部でWAポート用に行アドレスWR
A、列アドレスWCAを生成する回路、つまりアドレス
のビット分割を行う回路の構成例を示すブロック図であ
る。図17において、81は外部入力のブロックアドレ
スWADRAを、WAポートのアクセススタートの基準
となるポート基準信号WACTAによってラッチしたブ
ロックアドレスWADRA’を入力とし、このブロック
アドレスWADRA’の2ビットダウンシフトを行う2
ビットダウン回路である。82はブロックアドレスWA
DRA’の下位2ビットを抽出する下位2ビット抽出回
路である。83は下位2ビット抽出回路82の出力デー
タの2ビットアップシフトを行う2ビットアップ回路で
ある。84は2ビットアップ回路83の出力データを初
期値としてクロックDCKのカウントを行う4ビットカ
ウンタである。
FIG. 17 shows a case where the block address WADRA given to the conventional VRAM is externally input to the DRAM 4 shown in FIG.
Row address WR for WA port inside controller 8
A is a block diagram illustrating a configuration example of a circuit that generates a column address WCA, that is, a circuit that performs bit division of an address. In FIG. 17, reference numeral 81 denotes an input of an externally input block address WADRA, a block address WADRA 'latched by a port reference signal WAACTA serving as a reference for access start of a WA port, and a 2-bit downshift of the block address WADRA'. 2
It is a bit down circuit. 82 is a block address WA
This is a lower 2 bit extracting circuit for extracting lower 2 bits of DRA '. Reference numeral 83 denotes a 2-bit up circuit that performs a 2-bit up-shift of the output data of the lower 2-bit extraction circuit 82. A 4-bit counter 84 counts the clock DCK with the output data of the 2-bit up circuit 83 as an initial value.

【0097】図18はその行アドレスWRA、列アドレ
スWCAと外部入力のブロックアドレスWADRAの具
体値との関係を例示したものである。なお、図18に
は、DRAM基本サイクル信号CYCLEとシーケンス
信号PSEQと外部信号WSTRBAが併せて示されて
いる。
FIG. 18 shows an example of the relationship between the row address WRA, column address WCA and the specific value of the externally input block address WADRA. FIG. 18 also shows the DRAM basic cycle signal CYCLE, the sequence signal PSEQ, and the external signal WSTRBA.

【0098】図18に示すとおり、外部入力のブロック
アドレスWADRAは、WAポートのアクセススタート
の基準となるポート基準信号WACTAによってラッチ
されWADRA’となり、このラッチ後のブロックアド
レスWADRA’は、図17のような回路構成により、
行アドレスWRAと列アドレスWCAに変換される。
As shown in FIG. 18, the externally input block address WADRA is latched by a port reference signal WAACTA serving as a reference for the access start of the WA port and becomes WADRA '. The latched block address WADRA' is With such a circuit configuration,
It is converted into a row address WRA and a column address WCA.

【0099】同様にしてWBポート,RAポート,RB
ポート用のブロックアドレスWADRB, RADRA,
RADRBから行アドレスWRB,RRA,RRBおよ
び列アドレスWCB,RCA,RCBが生成される。こ
れらの行アドレス、列アドレスは、図14または図15
で示したように、DRAM基本サイクル信号CYCLE
の周期内で決められたタイミングでDRAM4の行アド
レスRAD、列アドレスRCDとして選択されDRAM
4へ出力される。
Similarly, the WB port, RA port, and RB
Block addresses for ports WADRB, RADRA,
From RADRB, row addresses WRB, RRA, RRB and column addresses WCB, RCA, RCB are generated. These row addresses and column addresses are shown in FIG. 14 or FIG.
As shown, the DRAM basic cycle signal CYCLE
Are selected as the row address RAD and the column address RCD of the DRAM 4 at the timing determined within the cycle of
4 is output.

【0100】ここで、行アドレスWRA,列アドレスW
CAを生成する回路は、図17に示したとおり、2ビッ
トダウン回路81,下位2ビット抽出回路82,2ビッ
トアップ回路83および4ビットカウンタ84だけの簡
単な構成で実現できる。これは、メモリの最大ページ長
が16(2のC乗、Cは2の2乗)でかつ、使用するペ
ージ長Pが4(2の2乗)であるため、ブロックアドレ
スが0,1,2,3,4,5・・・・のとき、行アドレ
スWRAは0,0,0,0,1,1・・・・、DRAM
基本サイクル信号CYCLEの周期内での各ポートの列
アドレスWCAのスタートアドレスは0,4,8,1
2,0,4,・・・・のようになる。すなわち、行アド
レスWRAは、ブロックアドレスをCで割った商、DR
AM基本サイクル信号CYCLEの周期内での各ポート
の列アドレスWCAのスタートアドレスはブロックアド
レスをCで割った剰余をP倍したものとなり、これら
C,Pの値が2のべき乗になるようにDRAM基本サイ
クルを決定しているからである。
Here, the row address WRA and the column address W
As shown in FIG. 17, the circuit for generating the CA can be realized with a simple configuration including only the 2-bit down circuit 81, the lower 2-bit extraction circuit 82, the 2-bit up circuit 83 and the 4-bit counter 84. This is because the maximum page length of the memory is 16 (2 to the power of C, C is 2 to the power of 2) and the page length P to be used is 4 (2 to the power of 2), so that the block address is 0, 1, In the case of 2, 3, 4, 5,..., The row address WRA is 0, 0, 0, 0, 1, 1,.
The start address of the column address WCA of each port in the cycle of the basic cycle signal CYCLE is 0, 4, 8, 1
2, 0, 4,... That is, the row address WRA is a quotient obtained by dividing the block address by C, DR
The start address of the column address WCA of each port in the cycle of the AM basic cycle signal CYCLE is obtained by multiplying the remainder obtained by dividing the block address by C by P. The DRAM is set so that the values of C and P become a power of two. This is because the basic cycle is determined.

【0101】以上のことを一般化すると、以下のように
なる。すなわち、メモリは、行アドレスと列アドレスを
有し、行アドレスに対して連続した列アドレスの書き込
みおよび読み出しが可能なページ動作を行うものである
とし、制御シーケンス(CYCLEの1周期)内の1ポ
ートがメモリにアクセスするためのページ長をP、シリ
アルデータのビット幅をSビット、メモリの最大ページ
長を2のC乗、メモリのアクセスデータ幅をAビットと
すると、シーケンス発生手段の周期Wクロックは、シリ
アルデータのビット幅Sビット、メモリのアクセスデー
タ幅Aビットおよびページ長Pに対して W=(A/S)×P の関係とし、かつCおよびPの値が2のべき乗となるよ
うシーケンス発生手段およびメモリが構成されるという
ことになる。
The above can be generalized as follows. That is, it is assumed that the memory has a row address and a column address, and performs a page operation in which a continuous column address can be written to and read from the row address, and one in a control sequence (one cycle of CYCLE). Assuming that the page length for the port to access the memory is P, the bit width of the serial data is S bits, the maximum page length of the memory is 2 C, and the access data width of the memory is A bits, the cycle W The clock has a relation of W = (A / S) × P with respect to the bit width S bits of serial data, the access data width A bits of the memory, and the page length P, and the values of C and P are powers of two. Thus, the sequence generating means and the memory are configured.

【0102】実施の形態では、A=120ビット、S=
12ビット、P=4(=22 )、C=16( =24 ) と
なっている。
In the embodiment, A = 120 bits, S =
12 bits, P = 4 (= 2 2 ), and C = 16 (= 2 4 ).

【0103】以上のような構成および動作により、各ポ
ート間の調停手段を持たずに4ポートの入出力系統を有
するマルチポートメモリ装置を実現することが可能とな
る。
With the above configuration and operation, it is possible to realize a multiport memory device having a 4-port input / output system without arbitration means between the ports.

【0104】また、複数のシリアル−パラレル変換回路
1a,1bのうちの少なくとも一つは、シリアルデータ
WSDBを所定の遅延段数だけ時間シフトされた遅延シ
リアルデータDLYWSDBをパラレルデータWPDB
とは別に出力するようにし、複数のシリアル−パラレル
変換回路1a,1bの少なくとも一つのシリアルデータ
入力端にセレクタ10を設け、外部入力のシリアルデー
タWSDAと他のシリアル−パラレル変換回路1bから
出力される遅延シリアルデータDLYWSDBのいずれ
か一方を選択して出力するようにし、外部入力のシリア
ルデータWSDAが通常の倍速であるときに他のシリア
ル−パラレル変換回路1bから出力される遅延シリアル
データをセレクタ10が選択するようにしたので、制御
シーケンスの1周期内における2ポート分のアクセス期
間を使ってDRAM4に外部入力のシリアルデータを記
憶させる倍速書き込みモードで動作させることが可能と
なる。
At least one of the plurality of serial-parallel conversion circuits 1a and 1b converts delayed serial data DLYWSDB obtained by time-shifting serial data WSDB by a predetermined number of delay stages into parallel data WPDB.
A selector 10 is provided at at least one of the serial data input terminals of the plurality of serial-parallel conversion circuits 1a and 1b to output the serial data WSDA of the external input and another serial-parallel conversion circuit 1b. One of the delayed serial data DLYWSDB is selected and output. When the externally input serial data WSDA is at a normal double speed, the delayed serial data output from the other serial-parallel conversion circuit 1b is selected by the selector 10. Is selected, it is possible to operate in the double-speed write mode in which the DRAM 4 stores the serial data of the external input using the access period for two ports in one cycle of the control sequence.

【0105】この際、倍速モードのシリアルデータWS
DBをDRAM4に書き込む際に、ライトバッファ2
a,2b以降の回路、特にDRAM4については、書き
込みクロックおよび読み出しクロックともに、通常速度
のクロックを用いることができ、倍速入力のシリアルデ
ータをメモリに書き込む場合にも、消費電力が増加する
ことはない。
At this time, the serial data WS in the double speed mode
When writing the DB to the DRAM 4, the write buffer 2
For the circuits a and 2b and thereafter, particularly the DRAM 4, both the write clock and the read clock can use a normal-speed clock, and the power consumption does not increase even when writing double-speed input serial data to the memory. .

【0106】また、DRAM4については、倍速書き込
みを行う場合にも、通常速度のクロックを使用して書き
込みを行うので、DRAM4のの書き込みクロックを2
倍にするのとは異なり、メモリの記憶データを保証する
ことができる。また、通常速度のシリアルデータも倍速
のシリアルデータも一つのメモリに書き込むことがで
き、通常速度のシリアルデータと倍速のシリアルデータ
の両方を処理する必要がある場合にも、メモリとしては
通常速度のクロックで動作する一つのマルチポートメモ
リ装置だけですみ、撮像装置などにおいて、動作モード
によってシリアルデータの入力速度が異なる場合にも、
一つのマルチポートメモリ装置のみで、画像処理を行う
ことが可能で、撮像装置の構成を簡単化でき、小型化、
低価格化を実現できる。
Also, in the case of double-speed writing, since writing is performed using a normal-speed clock, the write clock of the DRAM 4 is set to 2 times.
Unlike doubling, data stored in the memory can be guaranteed. In addition, both normal-speed serial data and double-speed serial data can be written to one memory.When both normal-speed serial data and double-speed serial data need to be processed, the Only one multi-port memory device that operates with a clock is required, and even if the input speed of serial data differs depending on the operation mode in an imaging device,
Image processing can be performed with only one multiport memory device, and the configuration of the imaging device can be simplified, miniaturized,
The price can be reduced.

【0107】また、静止画等の画素数の多い画像データ
を倍速モードで書き込んで処理する場合に、DRAM4
の読み出し側については通常速度で動作させることがで
き、動画を表示する表示手段をそのまま利用してモニタ
画面上に静止画を容易に表示させることが可能となる。
When writing and processing image data having a large number of pixels such as still images in the double speed mode, the DRAM 4
Can be operated at the normal speed, and a still image can be easily displayed on the monitor screen by using the display means for displaying a moving image as it is.

【0108】なお、本実施の形態では、遅延調整回路7
a,7bとしてデュアルポートRAMを用いたが、DR
AM動作クロックDCKと読み出し用クロックRCKの
位相が規定され、かつ同一周波数である場合ならば、例
えばFIFO−RAMあるいは、シフトレジスタとその
各レジスタ出力のセレクタ構成による遅延調整でも同様
の効果を持たせることが可能である。
In this embodiment, the delay adjustment circuit 7
Although a dual port RAM was used as a and 7b, DR
If the phase of the AM operation clock DCK and the phase of the read clock RCK are specified and have the same frequency, the same effect can be obtained by delay adjustment using a FIFO-RAM or a shift register and a selector configuration of each register output. It is possible.

【0109】また、シリアル−パラレル変換回路1a,
1bおよびライトバッファ2a,2bおよびリードバッ
ファ5a,5bの詳細な構成例として、本実施の形態で
はロードホールド型のDフリップフロップで構成した
が、この限りではなく、同等の機能を有するものであれ
ば他の構成でもよい。
The serial-parallel conversion circuit 1a,
1b, the write buffers 2a and 2b, and the read buffers 5a and 5b are configured as load-hold type D flip-flops in the present embodiment as a detailed configuration example. However, the present invention is not limited to this, and may have equivalent functions. Other configurations may be used.

【0110】また、本実施の形態では、DRAM基本サ
イクル内での各ポートのアクセスタイミングの固定順序
をWA,WB,RA,RBの順としたが、この順に制限
されるものではなく任意に決定してよい。例えば、R
A,RB,WA,WBなど入力系統より出力系統のアク
セスタイミングが前になるように固定すれば、外部リセ
ット信号RSTRと読み出しポートのメモリへのアクセ
スタイミングの差が小さくなり、読み出しタイミングの
遅れ量(レーテンシ)をより小さくできる効果がある。
In the present embodiment, the access timing of each port is fixed in the order of WA, WB, RA, and RB in the DRAM basic cycle. However, the order is not limited to this order, and may be arbitrarily determined. May do it. For example, R
If the access timing of the output system such as A, RB, WA, WB is fixed before the input system, the difference between the external reset signal RSTR and the access timing to the memory of the read port becomes small, and the delay amount of the read timing is reduced. (Latency) can be reduced.

【0111】また、本実施の形態では、メモリとしてア
クセスデータ幅が120ビット、DRAM4の最大ペー
ジ長16のDRAMを使用したが、この限りではなく、
例えば120ビットより広い240ビットのアクセスデ
ータ幅を有するDRAMを用いれば、ライトバッファ2
a,2bにおけるデータの分割数およびセレクタ3a,
3bへの入力は各々2系統で済み、セレクタ制御信号も
それにあわせて減らすことができる。また、480ビッ
トのアクセスデータ幅を有するDRAMを使用すれば、
セレクタ3a,3bは省くことができる。
In this embodiment, a DRAM having an access data width of 120 bits and a maximum page length of 16 of the DRAM 4 is used as a memory.
For example, if a DRAM having an access data width of 240 bits wider than 120 bits is used, the write buffer 2
a, 2b and the number of data divisions and selectors 3a,
Only two systems are required for input to 3b, and the selector control signal can be reduced accordingly. Also, if a DRAM having an access data width of 480 bits is used,
The selectors 3a and 3b can be omitted.

【0112】また、本実施の形態では、入力2ポート、
出力2ポートとしたがこの限りではなく、例えば、入力
1ポート、出力3ポートとしてもよく、この場合は入力
系統用のシリアル−パラレル変換回路、ライトバッフ
ァ、セレクタが1系統のみでよく、図1のセレクタ3c
は必要ない。また、出力系統用のリードバッファ、パラ
レル−シリアル変換回路、遅延調整回路は3系統に増や
せばよい。シーケンス発生回路では、例えば図19に示
すように固定した制御シーケンスによって各ブロックの
動作を制御すればよい。入出力ポート数が同じであれ
ば、シリアル−パラレル変換の段数等は変える必要はな
い。図19では、クロックDCKと、外部リセット信号
RSTRと、DRAM基本サイクル信号CYCLEと、
シーケンス信号PSEQと、ポート基準信号RACT
A,RACTB,RACTC,WACTAが示されてい
る。なお、入力ポートの数は、1個、2個に限らず3個
以上であってもよい。また、出力ポートの数について
も、2個、3個に限らず、1個または4個以上であって
もよい。
In this embodiment, two input ports,
Although two output ports are used, the present invention is not limited to this. For example, one input port and three output ports may be used. In this case, only one serial-parallel conversion circuit, write buffer, and selector for the input system may be used. Selector 3c
Is not required. Further, the read buffer, the parallel-serial conversion circuit, and the delay adjustment circuit for the output system may be increased to three systems. In the sequence generation circuit, for example, the operation of each block may be controlled by a fixed control sequence as shown in FIG. If the number of input / output ports is the same, the number of serial-parallel conversion stages does not need to be changed. In FIG. 19, a clock DCK, an external reset signal RSTR, a DRAM basic cycle signal CYCLE,
Sequence signal PSEQ and port reference signal RACT
A, RACTB, RACTC, and WACTA are shown. The number of input ports is not limited to one and two, but may be three or more. The number of output ports is not limited to two or three, but may be one or four or more.

【0113】また入出力ポートの合計ポート数は4ポー
トと限るものでもなく、必要なポート数Nと、使用する
メモリの仕様(アクセスデータのビット幅A、最大ペー
ジ長=2のC乗ビット、Cは2のべき乗とする)と、ポ
ートのシリアルデータのビット幅Sとに応じて、DRA
M基本シーケンスの周期Wを決定する。
The total number of input / output ports is not limited to four, but the required number of ports N and the specifications of the memory to be used (access data bit width A, maximum page length = 2 C-th bit, C is a power of 2) and the bit width S of the serial data of the port.
The period W of the M basic sequence is determined.

【0114】ここで、DRAM基本シーケンスの周期W
は、セレクタの入力系統数を2のべき乗となるように決
定し、かつW≧n×N(n:1周期内で1ポートあたり
のメモリへのアクセス期間のクロック数)の条件を満た
す範囲の最小値をとるように決定すれば、メモリのアド
レスを計算する場合に端数が出ないので、DRAMコン
トローラの行アドレス発生回路、列アドレス発生回路を
前述のとおり、ビットシフトによる簡単な構成で実現で
き、かつ必要以上の回路規模増加を抑えた最適な構成の
マルチポートメモリ装置を得ることが可能になる。
Here, the period W of the DRAM basic sequence
Is a range in which the number of input systems of the selector is determined to be a power of 2, and the condition of W ≧ n × N (where n is the number of clocks of a memory access period per port in one cycle) is satisfied. If the minimum value is determined, there will be no fraction when calculating the memory address, so that the row address generation circuit and column address generation circuit of the DRAM controller can be realized with a simple configuration by bit shifting as described above. In addition, it is possible to obtain a multi-port memory device having an optimum configuration in which an unnecessary increase in circuit size is suppressed.

【0115】なお、入力ポートが1ポートのみで、S×
W=Aならば、本実施の形態のセレクタ3a,3b,3
cはいずれも必要なく、シリアル−パラレル変換回路出
力のパラレルデータがそのままDRAMへの書き込みデ
ータとして選択されることは言うまでもない。
Note that there is only one input port and S ×
If W = A, the selectors 3a, 3b, 3 of the present embodiment
It is needless to say that neither c is necessary, and the parallel data output from the serial-parallel conversion circuit is directly selected as write data to the DRAM.

【0116】なお、本実施の形態ではメモリとしてシン
グルポートのDRAMを用いたが、これに制限されるも
のでなく、行アドレス、列アドレスを有する半導体メモ
リであればよい。
In this embodiment, a single-port DRAM is used as a memory. However, the present invention is not limited to this, and any semiconductor memory having a row address and a column address may be used.

【0117】[第2の実施の形態]つぎに、本願発明の
請求項3に示す発明に対応した実施の形態について説明
する。図20は本願請求項3に示す発明の実施の形態の
撮像装置を示すブロック図である。CCD101−1〜
101−3は、それぞれR, G, B用インターレース
(飛び越し走査)CCDを示す。以下では、説明の簡略
化のため、CCDは垂直画素混合をしないものとする。
[Second Embodiment] Next, an embodiment corresponding to the third aspect of the present invention will be described. FIG. 20 is a block diagram illustrating an imaging apparatus according to an embodiment of the present invention. CCD 101-1-
Reference numeral 101-3 denotes an interlace (interlaced scan) CCD for R, G, and B, respectively. In the following, for simplification of description, it is assumed that the CCD does not mix vertical pixels.

【0118】図21は、CCD1−1〜1−3の画素の
空間的な位置関係を示すものである。斜め方向の画素ず
らし配置により、G信号の画素G11,G12, ...
は、RおよびB信号の画素R11,R12,...およ
びB11, B12, ...に対して、右下方向に水平垂
直方向に1/2画素分ずれている。
FIG. 21 shows the spatial positional relationship between the pixels of the CCDs 1-1 to 1-3. The pixels G11, G12,. . .
Are pixels R11, R12,. . . And B11, B12,. . . Is shifted by 1/2 pixel in the horizontal and vertical directions in the lower right direction.

【0119】図21の空間位置関係にあるRGB信号
は、CCDから垂直方向1画素おきに出力される。G信
号の画素を例にとると、奇数フィールドでの垂直方向は
G11,G31,...の順で、偶数フィールドでの垂
直方向はG21,G41,...の順で出力される。R
信号、B信号についても同様である。つまり、1フィー
ルド期間ではCCDの全画素データを出力できないため
2フィールド期間かけて出力する必要がある。
The RGB signals having the spatial positional relationship shown in FIG. 21 are output from the CCD every other pixel in the vertical direction. Taking the pixel of the G signal as an example, the vertical direction in the odd field is G11, G31,. . . , The vertical direction in the even field is G21, G41,. . . Are output in this order. R
The same applies to the signal and the B signal. That is, since all pixel data of the CCD cannot be output in one field period, it is necessary to output data over two field periods.

【0120】そこで、これらのRGB信号は2フィール
ド期間かけてCCD101−1〜101−3から出力さ
れ、アナログ処理部102、A/D変換器103−1〜
103−3でそれぞれアナログ処理、デジタル信号への
変換が行われ、メモリ手段108のライトポートに入力
される。この結果、メモリ手段108にはRGBの全画
素分のデータが蓄積される。
Therefore, these RGB signals are output from the CCDs 101-1 to 101-3 over a two-field period, and are processed by the analog processing unit 102 and the A / D converters 103-1 to 103-1.
At 103-3, analog processing and conversion into digital signals are performed, respectively, and input to the write port of the memory means 108. As a result, data for all RGB pixels is accumulated in the memory means 108.

【0121】メモリ手段108のリードポートからは、
CCD上の空間位置を再現するようにRGB信号が出力
される。G信号の画素を例にとると、垂直方向はG1
1,G21,G31,...の順で出力される。R信
号、B信号についても同様である。メモリ手段108の
出力は、輝度信号作成手段であるマトリクス回路104
に入力される。
From the read port of the memory means 108,
RGB signals are output so as to reproduce the spatial position on the CCD. Taking a G signal pixel as an example, the vertical direction is G1
1, G21, G31,. . . Are output in this order. The same applies to the R signal and the B signal. The output of the memory means 108 is output to the matrix circuit 104 which is a luminance signal creating means.
Is input to

【0122】マトリクス回路104では、RGB信号か
ら2系統のY信号および1系統のC信号に変換される。
マトリクス回路104の動作を以下に示す。
In the matrix circuit 104, the RGB signals are converted into two Y signals and one C signal.
The operation of the matrix circuit 104 is described below.

【0123】図22に示すように、Y1用マトリクス回
路115には、メモリ手段8からのRGB画素信号がサ
ンプリング周波数fsで入力され、G信号の画素G2
1,G22, ...と、RおよびB信号の画素R21,
R22,...およびB21,B22,...から、数
1のようにY信号の画素Y21,Y22,...を求
め、これをY1信号としてサンプリング周波数2fsで
出力する。
As shown in FIG. 22, an RGB pixel signal from the memory means 8 is input to the Y1 matrix circuit 115 at a sampling frequency fs, and a G signal pixel G2
1, G22,. . . And R and B signal pixels R21,
R22,. . . And B21, B22,. . . , The pixels Y21, Y22,. . . And outputs it as a Y1 signal at a sampling frequency of 2 fs.

【0124】[0124]

【数1】 (Equation 1)

【0125】同様に、Y2用マトリクス回路116に
は、メモリ手段108からのRGB画素信号がサンプリ
ング周波数fsで入力され、G信号の画素G11,G1
2, ...と、RおよびB信号の画素R21,R2
2,...およびB21,B22,...から数2のよ
うにY信号の画素Y11,Y12,...を求め、これ
をY2信号としてサンプリング周波数2fsで出力す
る。
Similarly, the RGB pixel signal from the memory means 108 is input to the Y2 matrix circuit 116 at the sampling frequency fs, and the G signal pixels G11, G1
2,. . . And pixels R21 and R2 of R and B signals
2,. . . And B21, B22,. . . , The pixels Y11, Y12,. . . And outputs it as a Y2 signal at a sampling frequency of 2 fs.

【0126】[0126]

【数2】 (Equation 2)

【0127】Y1およびY2の空間位置を図23に●で
示す。以上のようにY信号の画素を求めることにより、
水平方向にGの2倍の画素数を持つY信号を得ることが
でき、Y1,Y2信号を併せると垂直方向にもGの2倍
の画素数を持つY信号が得られることになる。例とし
て、RGB画素信号が水平768画素、垂直480画素
の場合、Y1およびY2信号は共に水平1536画素、
垂直480画素となり、Y1とY2を併せると水平15
36画素、垂直960画素のY信号となる。このとき、
fs=15.75MHzとすれば、2fs=31.5M
Hzとなる。
The spatial positions of Y1 and Y2 are indicated by ● in FIG. By obtaining the pixel of the Y signal as described above,
A Y signal having twice as many pixels as G can be obtained in the horizontal direction, and a Y signal having twice as many pixels as G in the vertical direction can be obtained by combining the Y1 and Y2 signals. For example, if the RGB pixel signals are 768 horizontal pixels and 480 vertical pixels, the Y1 and Y2 signals are both 1536 horizontal pixels,
480 pixels vertically, and when Y1 and Y2 are combined, 15 pixels
It becomes a Y signal of 36 pixels and 960 vertical pixels. At this time,
If fs = 15.75 MHz, 2fs = 31.5M
Hz.

【0128】また、C信号は数3のように1系統のみ求
める。人間の視覚特性から、C信号はそれほど高い帯域
を必要としないため、1系統で充分である。Cの空間位
置は、Gと同じ位置となるが、図23の簡略化のため図
示していない。
Further, as for the C signal, only one system is obtained as shown in Expression 3. From human visual characteristics, the C signal does not require a very high band, so one system is sufficient. The spatial position of C is the same as that of G, but is not shown for simplification of FIG.

【0129】[0129]

【数3】 (Equation 3)

【0130】マトリクス回路104の内部構成を図22
に従って説明する。入力されたRおよびB信号はそれぞ
れ1Hラインメモリ111(H:水平方向走査期間)、
112およびCマトリクス回路117に入力される。1
Hラインメモリ111、112の出力はY1用マトリク
ス回路115およびY2用マトリクス回路116に入力
される。
FIG. 22 shows the internal configuration of the matrix circuit 104.
It will be described according to. The input R and B signals are respectively 1H line memory 111 (H: horizontal scanning period),
112 and the C matrix circuit 117. 1
Outputs of the H line memories 111 and 112 are input to a matrix circuit 115 for Y1 and a matrix circuit 116 for Y2.

【0131】一方、入力されたG信号は1Hラインメモ
リ113に入力され、1Hラインメモリ113の出力は
Y1用マトリクス回路115およびCマトリクス回路1
17および1Hラインメモリ114に入力される。1H
ラインメモリ114の出力はY2用マトリクス回路11
6に入力される。
On the other hand, the input G signal is input to the 1H line memory 113, and the output of the 1H line memory 113 is output to the Y1 matrix circuit 115 and the C matrix circuit 1.
17 and 1H are input to the line memory 114. 1H
The output of the line memory 114 is the Y2 matrix circuit 11
6 is input.

【0132】このように構成することにより、Y1用マ
トリクス回路115にはR21,R22,...、G2
1,G22,...、B21,B22,...が、Y2
用マトリクス回路116にはR21,R22,...、
G11,G12,...、B21,B22,...が、
C用マトリクス回路117にはR21,R2
2,...、R31,R32,...、G21,G2
2,...、B21,B22,...、B31,B3
2,...が、それぞれ入力されることになる。
With this configuration, the Y1 matrix circuit 115 has R21, R22,. . . , G2
1, G22,. . . , B21, B22,. . . But Y2
R21, R22,. . . ,
G11, G12,. . . , B21, B22,. . . But,
The C matrix circuit 117 has R21, R2
2,. . . , R31, R32,. . . , G21, G2
2,. . . , B21, B22,. . . , B31, B3
2,. . . Are respectively input.

【0133】マトリクス回路104の出力は水平ズーム
回路105に入力され、正方画素変換される。ここで、
正方画素変換について説明する。一般に、デジタルスチ
ルカメラ用のCCDでは水平および垂直方向の画素間隔
が等しくなっている(正方画素配列)が、ビデオカメラ
用のCCDでは異なった間隔になっており、これをその
ままパソコンの画面に出力すると、縦または横に延びた
画像になってしまうため、電子的に水平方向にズーム処
理を行い、YおよびC信号の水平垂直方向の画素間隔を
揃える、つまり水平垂直の画素数の比を4:3にするこ
とが必要になる。水平1536画素、垂直960画素の
Y信号を考えた場合、水平方向に約0.83倍の水平ズーム
を施すことにより、水平1280画素、垂直960画素
の正方画素データが得られる。
The output of the matrix circuit 104 is input to the horizontal zoom circuit 105 and is converted to a square pixel. here,
The square pixel conversion will be described. In general, CCDs for digital still cameras have the same horizontal and vertical pixel spacing (square pixel array), but CCDs for video cameras have different spacings and output them as they are to the screen of a personal computer. As a result, an image that extends vertically or horizontally is obtained. Therefore, zoom processing is performed electronically in the horizontal direction, and the pixel intervals in the horizontal and vertical directions of the Y and C signals are made uniform. : 3 is required. When a Y signal of 1536 horizontal pixels and 960 vertical pixels is considered, square pixel data of 1280 horizontal pixels and 960 vertical pixels can be obtained by performing a horizontal zoom of about 0.83 times in the horizontal direction.

【0134】水平ズーム回路105の出力は、セレクタ
106を介して、メモリ手段108のライトポートに入
力される。前述のように、メモリ手段108のリードポ
ートからはサンプリング周波数fsでRGBデータが読
み出され、ライトポートにはマトリクス回路104から
のY1,Y2,Cデータがサンプリング周波数2fsで
入力される。いま、メモリ手段108の駆動周波数がf
sだとすると、ライトポートからの入力されるサンプリ
ング周波数2fsのデータを書き込むには、メモリ手段
108は駆動周波数の2倍の速度で書き込みを行うこと
が必要になる。
The output of the horizontal zoom circuit 105 is input to the write port of the memory means 108 via the selector 106. As described above, the RGB data is read from the read port of the memory means 108 at the sampling frequency fs, and the Y1, Y2, and C data from the matrix circuit 104 are input to the write port at the sampling frequency 2fs. Now, the driving frequency of the memory means 108 is f
If it is s, in order to write data at a sampling frequency of 2 fs input from the write port, it is necessary for the memory means 108 to write at twice the driving frequency.

【0135】ここで、メモリ手段108として第1の実
施の形態に示したマルチポートメモリ装置(例えばライ
ト3ポート、リード3ポート)を用いることにより、駆
動周波数の2倍の速度でのデータ書き込みが可能にな
る。この結果、メモリ手段108には、正方画素変換後
のY,C信号、つまり水平1280画素、垂直480画
素のY1,Y2,C信号が得られる。
Here, by using the multiport memory device (for example, three-port write, three-port read) described in the first embodiment as the memory means 108, data can be written at twice the driving frequency. Will be possible. As a result, Y and C signals after square pixel conversion, that is, Y1, Y2, and C signals of 1280 horizontal pixels and 480 vertical pixels are obtained in the memory unit 108.

【0136】メモリ手段108のリードポートからのY
信号出力は、空間的に上に位置するY2信号から出力が
開始され、以後Y1信号、Y2信号を交互に出力するこ
とで、垂直960画素分のY信号を出力する。メモリ手
段108からのC信号出力は、インターレース補正回路
107に入力される。
Y from the read port of the memory means 108
The signal output starts from the spatially upper Y2 signal, and thereafter, the Y1 signal and the Y2 signal are alternately output to output the Y signal for 960 vertical pixels. The C signal output from the memory means 108 is input to the interlace correction circuit 107.

【0137】インターレース補正回路107では、垂直
480画素のC信号を垂直方向に補間し、垂直960画
素のC信号として出力する。インターレース補正回路1
06の内部構成を図24に示す。入力されたC信号は1
Hラインメモリ121、加算器122、セレクタ124
に入力される。1Hラインメモリ121で1H期間遅延
されたC信号は、加算器122で入力C信号と加算さ
れ、除算手段123で1/2のゲインがかけられた後、
セレクタ124に入力される。セレクタ124は、1H
期間毎に入力C信号または除算手段123の出力信号の
一方を選択して出力する。インターレース補正回路10
7の出力はカメラ出力として出力される。この結果、カ
メラ出力は水平1280画素、垂直960画素のY,C
信号となる。
The interlace correction circuit 107 interpolates the vertical 480 pixel C signal in the vertical direction and outputs the vertical 960 pixel C signal. Interlace correction circuit 1
FIG. 24 shows the internal configuration of the module 06. The input C signal is 1
H line memory 121, adder 122, selector 124
Is input to The C signal delayed by 1H in the 1H line memory 121 is added to the input C signal in the adder 122, and after a 1 / gain is applied in the divider 123,
The data is input to the selector 124. The selector 124 is 1H
One of the input C signal and the output signal of the dividing means 123 is selected and output every period. Interlace correction circuit 10
The output of 7 is output as a camera output. As a result, the camera output is Y, C of 1280 horizontal pixels and 960 vertical pixels.
Signal.

【0138】以上のような構成とすれば、メモリに蓄積
されたRGB信号をサンプリング周波数fsで読み出
し、マトリクス回路でサンプリング周波数2fsのY
1,Y2,C信号に変換した後、2倍速の書き込み動作
でメモリに再蓄積するといった一連の処理を、メモリの
駆動周波数をfsに保ったまま実行でき、RGB信号蓄
積用メモリとY1,Y2,C信号蓄積用メモリを1つの
メモリで共用することが可能になる。さらに、メモリ駆
動周波数を2fsとし、データ読み出し動作を1クロッ
クおきに行う方式に比べてメモリ消費電力を抑えること
が可能になる。
With the above configuration, the RGB signals stored in the memory are read out at the sampling frequency fs, and the Y signal having the sampling frequency of 2 fs is read out by the matrix circuit.
1, Y2, and C signals, and a series of processes such as re-accumulation in the memory by a double-speed writing operation can be performed while the drive frequency of the memory is kept at fs, and the RGB signal accumulation memory and the Y1, Y2 , C signal storage memory can be shared by one memory. Further, it is possible to reduce the memory power consumption as compared with a method in which the memory drive frequency is set to 2 fs and the data read operation is performed every other clock.

【0139】[0139]

【発明の効果】以上のように本発明のマルチポートメモ
リ装置によれば、シーケンス発生手段によってメモリへ
の入出力系統の各ポートのメモリへのアクセスタイミン
グの順序を周期的に固定し、入力系統の書き込みデータ
はこのアクセスタイミングに同期するようライトバッフ
ァで一時記憶保持し、出力系統の読み出しデータは固定
されたアクセスタイミングで読み出した後遅延調整手段
で読み出し要求タイミングに合致するように遅延させる
ことで、従来のようなポート間のメモリへのアクセスの
調停を必要とせず、簡単にポート数を増やすことができ
る。また、このマルチポートメモリ装置を用いれば、画
像メモリとしてだけでなく、ポート数を多く持たせ、こ
れらのポートを用いて、従来のFIFOメモリやデュア
ルポートSRAM等で実現していた1Hメモリ(Hは映
像信号の水平走査期間)機能を実現することもでき、こ
れにより、例えば回路面積の縮小化が図れるなどの効果
も得られる。
As described above, according to the multiport memory device of the present invention, the sequence generation means fixes the order of access timing of each port of the input / output system to the memory to the memory periodically, and The write data is temporarily stored and held in a write buffer so as to be synchronized with the access timing, and the read data of the output system is read out at a fixed access timing and then delayed by a delay adjusting means so as to match the read request timing. In addition, the number of ports can be easily increased without the need for arbitration of memory access between ports as in the related art. Further, if this multi-port memory device is used, not only an image memory but also a large number of ports are provided, and a 1H memory (H) realized by a conventional FIFO memory or a dual-port SRAM using these ports is used. (Horizontal scanning period of a video signal) can also be realized, thereby obtaining an effect of, for example, reducing the circuit area.

【0140】また、複数のシリアル−パラレル変換手段
のうちの少なくとも一つは、シリアルデータを所定の遅
延段数だけ時間シフトされた遅延シリアルデータをパラ
レルデータとは別に出力するようにし、複数のシリアル
−パラレル変換手段の少なくとも一つのシリアルデータ
入力端にシリアルデータ選択出力手段を設け、外部入力
のシリアルデータと他のシリアル−パラレル変換手段か
ら出力される遅延シリアルデータのいずれか一方を選択
して出力するようにし、外部入力のシリアルデータが通
常の倍速であるときに他のシリアル−パラレル変換手段
から出力される遅延シリアルデータをシリアルデータ選
択出力手段が選択するようにしたので、制御シーケンス
の1周期内における2ポート分のアクセス期間を使って
メモリに外部入力のシリアルデータを記憶させる倍速書
き込みモードで動作させることが可能となる。
Further, at least one of the plurality of serial-parallel conversion means outputs separately from the parallel data delayed serial data obtained by time-shifting the serial data by a predetermined number of delay stages. A serial data selection output means is provided at at least one serial data input terminal of the parallel conversion means, and selects and outputs one of serial data of an external input and delayed serial data output from another serial-parallel conversion means. The serial data selection output means selects the delayed serial data output from the other serial-parallel conversion means when the serial data of the external input is the normal double speed. Input to memory using the access period of 2 ports at It is possible to operate at double speed write mode for storing the serial data.

【0141】この際、倍速モードのシリアルデータをメ
モリに書き込む際に、ライトバッファ以降の回路、特に
メモリについては、書き込みクロックおよび読み出しク
ロックともに、通常速度のクロックを用いることがで
き、倍速入力のシリアルデータをメモリに書き込む場合
にも、消費電力が増加することはない。
At this time, when writing the serial data in the double speed mode to the memory, a normal speed clock can be used for both the write clock and the read clock for the circuits after the write buffer, especially for the memory, and the serial input of the double speed input can be used. Even when data is written to the memory, power consumption does not increase.

【0142】また、メモリについては、倍速書き込みを
行う場合にも、通常速度のクロックを使用して書き込み
を行っており、メモリの書き込みクロックを切り替える
必要がないため、メモリの記憶データを保証することが
できる。
Also, in the case of performing double-speed writing, since writing is performed using a normal-speed clock and there is no need to switch the memory writing clock, it is necessary to guarantee data stored in the memory. Can be.

【0143】また、通常速度のシリアルデータも倍速の
シリアルデータも一つのメモリに書き込むことができ、
通常速度のシリアルデータと倍速のシリアルデータの両
方を処理する必要がある場合にも、メモリとしては通常
速度のクロックで動作する一つのマルチポートメモリ装
置だけですみ、撮像装置などにおいて、動作モードによ
ってシリアルデータの入力速度が異なる場合にも、一つ
のマルチポートメモリ装置のみで、画像処理を行うこと
が可能で、撮像装置の構成を簡単化でき、小型化、低価
格化を実現できる。
Both normal speed serial data and double speed serial data can be written in one memory.
Even when it is necessary to process both normal-speed serial data and double-speed serial data, only one multi-port memory device that operates at a normal-speed clock is required. Even when the input speed of serial data is different, image processing can be performed with only one multiport memory device, so that the configuration of the imaging device can be simplified, and miniaturization and cost reduction can be realized.

【0144】また、静止画等の画素数の多い画像データ
を倍速モードで書き込んで処理する場合に、メモリの読
み出し側については通常速度で動作させることができ、
動画を表示する表示手段をそのまま利用してモニタ画面
上に静止画を容易に表示させることが可能となる。
When writing and processing image data having a large number of pixels such as still images in the double speed mode, the memory read side can be operated at the normal speed.
The still image can be easily displayed on the monitor screen by using the display means for displaying the moving image as it is.

【0145】また、本発明の撮像装置によれば、上記し
たように、マルチポートメモリ装置におけるライト2ポ
ートを1ポートとして扱えるようになるため、メモリア
クセス速度の2倍速のデータが書き込み可能になる。そ
のため、このマルチポートメモリ装置を撮像装置に用い
ることで、2倍速書き込み動作が必要なモード(例え
ば、画素ずらし配置されたCCDを用いての静止画撮影
モード)においても、メモリの駆動周波数を通常状態に
保ったまま実行でき、異なる2系統の信号の蓄積用メモ
リ(RGB信号蓄積用メモリとY1,Y2,C信号蓄積
用メモリ)を1つのメモリで共用することが可能にな
る。さらに、メモリ駆動周波数を2fsとし、データ読
み出し動作を1クロックおきに行う方式に比べてメモリ
消費電力を抑えることが可能になる。
According to the imaging apparatus of the present invention, as described above, two ports of write in a multiport memory device can be handled as one port, so that data at twice the memory access speed can be written. . Therefore, by using this multi-port memory device as an image pickup device, the drive frequency of the memory can be set to a normal value even in a mode requiring a double-speed writing operation (for example, a still image shooting mode using a CCD shifted in pixels). It can be executed while keeping the state, and the memory for storing two different systems of signals (the memory for storing RGB signals and the memory for storing Y1, Y2, and C signals) can be shared by one memory. Further, it is possible to reduce the memory power consumption as compared with a method in which the memory drive frequency is set to 2 fs and the data read operation is performed every other clock.

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

【図1】本発明の第1の実施の形態のマルチポートメモ
リ装置の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a multiport memory device according to a first embodiment of the present invention.

【図2】シリアル−パラレル変換回路の具体的な構成を
示すブロック図である。
FIG. 2 is a block diagram illustrating a specific configuration of a serial-parallel conversion circuit.

【図3】ライトバッファの具体的な構成を示すブロック
図である。
FIG. 3 is a block diagram showing a specific configuration of a write buffer.

【図4】リードバッファの具体的な構成を示すブロック
図である。
FIG. 4 is a block diagram showing a specific configuration of a read buffer.

【図5】パラレル−シリアル変換回路の具体的な構成を
示すブロック図である。
FIG. 5 is a block diagram showing a specific configuration of a parallel-serial conversion circuit.

【図6】遅延調整回路の具体的な構成を示すブロック図
である。
FIG. 6 is a block diagram showing a specific configuration of a delay adjustment circuit.

【図7】シリアル−パラレル変換回路における通常モー
ドの入出力信号のタイミング関係を示すタイミングチャ
ートである。
FIG. 7 is a timing chart showing a timing relationship of input / output signals in a normal mode in the serial-parallel conversion circuit.

【図8】通常モードにおいて入力2ポート、出力2ポー
トの場合シーケンス発生回路の発生する各種制御シーケ
ンスの信号を示すタイミングチャートである。
FIG. 8 is a timing chart showing signals of various control sequences generated by the sequence generation circuit in the case of two input ports and two output ports in the normal mode.

【図9】通常モードにおいてシーケンス発生回路の発生
する各種制御シーケンスの信号とライトバッファの動作
状態を示すタイミングチャートである。
FIG. 9 is a timing chart showing signals of various control sequences generated by a sequence generation circuit and an operation state of a write buffer in a normal mode.

【図10】シリアル−パラレル変換回路における倍速モ
ードの入出力信号のタイミング関係を示すタイミングチ
ャートである。
FIG. 10 is a timing chart showing a timing relationship of input / output signals in a double speed mode in the serial-parallel conversion circuit.

【図11】倍速モードにおいて入力2ポート、出力2ポ
ートの場合シーケンス発生回路の発生する各種制御シー
ケンスの信号を示すともに、シーケンス発生回路の発生
する各種制御シーケンスの信号とライトバッファの動作
状態を示すタイミングチャートである。
FIG. 11 shows signals of various control sequences generated by the sequence generation circuit in the case of 2 input ports and 2 output ports in the double speed mode, and also shows various control sequence signals generated by the sequence generation circuit and the operation state of the write buffer. It is a timing chart.

【図12】シーケンス発生回路の発生する各種制御シー
ケンスの信号とリードバッファの動作状態を示すタイミ
ングチャートである。
FIG. 12 is a timing chart showing signals of various control sequences generated by a sequence generation circuit and an operation state of a read buffer.

【図13】シーケンス発生回路の発生する各種制御シー
ケンスの信号と遅延調整回路の動作状態を示すタイミン
グチャートである。
FIG. 13 is a timing chart showing signals of various control sequences generated by the sequence generation circuit and operation states of the delay adjustment circuit.

【図14】通常モードにおいてシーケンス発生回路の発
生する各種制御シーケンスの信号とDRAMコントロー
ラの動作状態を示すタイミングチャートである。
FIG. 14 is a timing chart showing signals of various control sequences generated by a sequence generation circuit in a normal mode and an operation state of a DRAM controller.

【図15】倍速モードにおいてシーケンス発生回路の発
生する各種制御シーケンスの信号とDRAMコントロー
ラの動作状態を示すタイミングチャートである。
FIG. 15 is a timing chart showing signals of various control sequences generated by the sequence generation circuit in double speed mode and the operation state of the DRAM controller.

【図16】DRAMのメモリマップを示した模式図であ
る。
FIG. 16 is a schematic diagram showing a memory map of a DRAM.

【図17】DRAMコントローラ内部の行、列アドレス
を生成するための回路構成を示すブロック図である。
FIG. 17 is a block diagram showing a circuit configuration for generating a row and column address inside the DRAM controller.

【図18】行、列アドレスと外部入力のブロックアドレ
スの具体値を例示したタイミングチャートである。
FIG. 18 is a timing chart illustrating specific values of row and column addresses and block addresses of external inputs.

【図19】入力1ポート、出力3ポートの場合のシーケ
ンス発生回路の発生する各種制御シーケンスの信号を示
すタイミングチャートである。
FIG. 19 is a timing chart showing signals of various control sequences generated by the sequence generation circuit in the case of one input port and three output ports.

【図20】マルチポートメモリ装置を利用した本発明の
第2の実施の形態の撮像装置の構成を示すブロック図で
ある。
FIG. 20 is a block diagram illustrating a configuration of an imaging device according to a second embodiment of the present invention using a multiport memory device.

【図21】撮像装置におけるCCDの画素の空間的な位
置関係を示す模式図である。
FIG. 21 is a schematic diagram illustrating a spatial positional relationship between pixels of a CCD in the imaging apparatus.

【図22】図20のマトリクス回路の具体的な構成を示
すブロック図である。
FIG. 22 is a block diagram showing a specific configuration of the matrix circuit of FIG.

【図23】Y1およびY2の空間位置を模式図である。FIG. 23 is a schematic diagram showing spatial positions of Y1 and Y2.

【図24】図20におけるインターレース補正回路の具
体構成を示すブロック図である。
24 is a block diagram showing a specific configuration of the interlace correction circuit in FIG.

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

1a,1b シリアル−パラレル変換回路 2a,2b ライトバッファ 3a,3b,3c セレクタ 4 DRAM 5a,5b リードバッファ 6a,6b パラレル−シリアル変換回路 7a,7b 遅延調整回路 8 DRAMコントローラ 9 シーケンス発生回路 10 セレクタ 1a, 1b Serial-parallel conversion circuit 2a, 2b Write buffer 3a, 3b, 3c selector 4 DRAM 5a, 5b Read buffer 6a, 6b Parallel-serial conversion circuit 7a, 7b Delay adjustment circuit 8 DRAM controller 9 Sequence generation circuit 10 Selector

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G11C 11/401 H04N 9/09 A H04N 9/09 9/64 R 9/64 G11C 11/34 362G 371H (72)発明者 浜崎 岳史 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 Fターム(参考) 5B024 AA15 BA21 BA29 CA13 CA18 5B047 AB04 BB04 BC01 EA06 EB04 EB11 5B060 CB01 GA01 KA01 KA04 5C065 AA01 BB48 DD02 GG01 GG18 GG19 GG29 GG30 5C066 AA01 AA11 CA01 DD01 KE04 KE08 KE09 KE11 KE16 KE19 KF05 KG01 KM02 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification code FI Theme coat ゛ (Reference) G11C 11/401 H04N 9/09 A H04N 9/09 9/64 R 9/64 G11C 11/34 362G 371H ( 72) Inventor Takefumi Hamasaki 1006 Kazuma Kadoma, Kadoma City, Osaka Prefecture F-term in Matsushita Electric Industrial Co., Ltd. (reference) GG29 GG30 5C066 AA01 AA11 CA01 DD01 KE04 KE08 KE09 KE11 KE16 KE19 KF05 KG01 KM02

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 シリアルデータを所定のデータ数毎にシ
リアル−パラレル変換してパラレルデータを出力し、複
数のうち少なくとも一つは前記シリアルデータを所定の
遅延段数だけ時間シフトされた遅延シリアルデータを前
記パラレルデータとは別に出力する複数のシリアル−パ
ラレル変換手段と、 前記複数のシリアル−パラレル変換手段の少なくとも一
つのシリアルデータ入力端に設けられて外部入力のシリ
アルデータと他のシリアル−パラレル変換手段から出力
される遅延シリアルデータのいずれか一方を選択して出
力するシリアルデータ選択出力手段と、 前記複数のシリアル−パラレル変換手段の出力を一時記
憶するライトバッファと、 前記ライトバッファの出力の一部を選択して出力するラ
イトデータ選択出力手段と、 前記ライトデータ選択出力手段の出力が書き込まれるメ
モリと、 前記メモリから読み出されたデータを一時記憶するリー
ドバッファと、 前記リードバッファの出力を出力系統別にパラレル−シ
リアル変換する1または複数のパラレル−シリアル変換
手段と、 前記1または複数のパラレル−シリアル変換手段の出力
を遅延する1または複数の遅延調整手段と、 前記メモリの書き込み・読み出しおよびアドレス制御を
行うメモリ制御手段と、 前記ライトバッファ、前記ライトデータ選択出力手段、
前記リードバッファ、前記メモリ制御手段の各々の動作
の制御シーケンスを発生するシーケンス発生手段とを備
え、 前記シーケンス発生手段で発生する制御シーケンスは所
定の周期を有し、前記制御シーケンスの1周期内におけ
る入出力系統毎の前記メモリへのアクセスタイミングお
よびアクセス順は固定であるとし、 前記シリアル−パラレル変換手段は外部からの書き込み
要求タイミングに同期してシリアル−パラレル変換を行
い、 前記ライトバッファは前記シーケンス発生手段の出力す
る制御シーケンスの位相に同期して前記シリアル−パラ
レル変換手段の出力を一時記憶し、 前記リードバッファは前記シーケンス発生手段の出力す
る制御シーケンスの位相に同期して前記メモリから読み
出されたデータを一時記憶し、 前記遅延調整手段は外部からの読み出し要求タイミング
と前記制御シーケンスの位相の差に基いて前記パラレル
−シリアル変換手段の出力を前記外部からの読み出し要
求タイミングと合致するように遅延し、 外部入力のシリアルデータが通常の倍速であるときに前
記他のシリアル−パラレル変換手段に前記外部入力のシ
リアルデータを供給し、 前記シリアルデータ選択出力手段は、前記外部入力のシ
リアルデータが通常の倍速であるときに前記他のシリア
ル−パラレル変換手段から出力される遅延シリアルデー
タを選択し、前記制御シーケンスの1周期内における2
ポート分のアクセス期間を使って前記メモリに前記外部
入力のシリアルデータを記憶させる倍速書き込みモード
で動作させるようにしたことを特徴とするマルチポート
メモリ装置。
1. A method for serial-parallel conversion of serial data every predetermined number of data to output parallel data, wherein at least one of the plurality of the serial data is a serial data obtained by time-shifting the serial data by a predetermined number of delay stages. A plurality of serial-parallel conversion means for outputting separately from the parallel data; and an externally-input serial data provided at at least one serial data input end of the plurality of serial-parallel conversion means and another serial-parallel conversion means. Serial data selection and output means for selecting and outputting any one of the delayed serial data output from the CPU, a write buffer for temporarily storing outputs of the plurality of serial-parallel conversion means, and a part of an output of the write buffer Write data selection output means for selecting and outputting A memory to which the output of the data selection output means is written; a read buffer for temporarily storing data read from the memory; and one or more parallel-serial converters for performing parallel-serial conversion on the output of the read buffer for each output system Conversion means; one or more delay adjustment means for delaying the output of the one or more parallel-serial conversion means; memory control means for performing writing / reading and address control of the memory; Data selection output means,
The read buffer includes a sequence generation unit that generates a control sequence for each operation of the memory control unit. The control sequence generated by the sequence generation unit has a predetermined cycle, and is included in one cycle of the control sequence. The access timing and access order to the memory for each input / output system are fixed, the serial-parallel conversion means performs serial-parallel conversion in synchronization with an external write request timing, and the write buffer The output of the serial-parallel conversion means is temporarily stored in synchronization with the phase of the control sequence output from the generation means, and the read buffer is read from the memory in synchronization with the phase of the control sequence output from the sequence generation means. Temporarily stored data, and adjusts the delay. The stage delays the output of the parallel-serial conversion means to match the external read request timing based on the difference between the external read request timing and the phase of the control sequence. The serial data of the external input is supplied to the other serial-parallel conversion means when the serial data of the external input is a normal double speed. The delay serial data output from the serial-parallel conversion means is selected, and 2 in one cycle of the control sequence is selected.
A multi-port memory device, wherein the multi-port memory device is operated in a double speed write mode in which the serial data of the external input is stored in the memory using an access period for a port.
【請求項2】 R(赤)、G(緑)、B( 青) にそれぞ
れ専用の撮像素子を用い、前記撮像素子の水平および垂
直方向の画素配列間隔をそれぞれPh、Pvとするとき、前
記G用の撮像素子を前記RおよびB用の撮像素子に対
し、水平・垂直方向にそれぞれ(Ph/2+a)、(Pv/2+
b)(a,b は定数)だけずらして配置する斜め画素ずら
し配置を行う3板方式の撮像装置であって、 前記R、G、B用の撮像素子の画素出力信号を記憶する
マルチポートメモリ装置を備え、 前記R、G、B用の撮像素子の画素出力信号または、前
記マルチポートメモリ装置の出力信号を入力とし、前記
RおよびB用の撮像素子の画素出力信号と、前記Rおよ
びB用の撮像素子の画素に対し空間的に左下最近傍また
は右下最近傍に位置する前記G用の撮像素子の画素出力
信号とを用いて、水平方向画素数が前記G用の撮像素子
の2倍である第1の輝度信号を作成し、前記RおよびB
用の撮像素子の画素出力信号と、前記RおよびB用の撮
像素子の画素に対し空間的に左上最近傍または右上最近
傍に位置する前記G用の撮像素子の画素出力信号とを用
いて、水平方向画素数が前記G用の撮像素子の2倍であ
る第2の輝度信号を作成する輝度信号作成手段を備え、 前記マルチポートメモリ装置は、シリアルデータを所定
のデータ数毎にシリアル−パラレル変換してパラレルデ
ータを出力し、複数のうち少なくとも一つは前記シリア
ルデータを所定の遅延段数だけ時間シフトされた遅延シ
リアルデータを前記パラレルデータとは別に出力する複
数のシリアル−パラレル変換手段と、 前記複数のシリアル−パラレル変換手段の少なくとも一
つのシリアルデータ入力端に設けられて外部入力のシリ
アルデータと他のシリアル−パラレル変換手段から出力
される遅延シリアルデータのいずれか一方を選択して出
力するシリアルデータ選択出力手段と、 前記複数のシリアル−パラレル変換手段の出力を一時記
憶するライトバッファと、 前記ライトバッファの出力の一部を選択して出力するラ
イトデータ選択出力手段と、 前記ライトデータ選択出力手段の出力が書き込まれるメ
モリと、 前記メモリから読み出されたデータを一時記憶するリー
ドバッファと、 前記リードバッファの出力を出力系統別にパラレル−シ
リアル変換する1または複数のパラレル−シリアル変換
手段と、 前記1または複数のパラレル−シリアル変換手段の出力
を遅延する1または複数の遅延調整手段と、 前記メモリの書き込み・読み出しおよびアドレス制御を
行うメモリ制御手段と、 前記ライトバッファ、前記ライトデータ選択出力手段、
前記リードバッファ、前記メモリ制御手段の各々の動作
の制御シーケンスを発生するシーケンス発生手段とを備
え、 前記シーケンス発生手段で発生する制御シーケンスは所
定の周期を有し、前記制御シーケンスの1周期内におけ
る入出力系統毎の前記メモリへのアクセスタイミングお
よびアクセス順は固定であるとし、 前記シリアル−パラレル変換手段は外部からの書き込み
要求タイミングに同期してシリアル−パラレル変換を行
い、 前記ライトバッファは前記シーケンス発生手段の出力す
る制御シーケンスの位相に同期して前記シリアル−パラ
レル変換手段の出力を一時記憶し、 前記リードバッファは前記シーケンス発生手段の出力す
る制御シーケンスの位相に同期して前記メモリから読み
出されたデータを一時記憶し、 前記遅延調整手段は外部からの読み出し要求タイミング
と前記制御シーケンスの位相の差に基いて前記パラレル
−シリアル変換手段の出力を前記外部からの読み出し要
求タイミングと合致するように遅延し、 外部入力のシリアルデータが通常の倍速であるときに前
記他のシリアル−パラレル変換手段に前記外部入力のシ
リアルデータを供給し、 前記シリアルデータ選択出力手段は、前記外部入力のシ
リアルデータが通常の倍速であるときに前記他のシリア
ル−パラレル変換手段から出力される遅延シリアルデー
タを選択し、前記制御シーケンスの1周期内における2
ポート分のアクセス期間を使って前記メモリに前記外部
入力のシリアルデータを記憶させる倍速書き込みモード
で動作させるようにし、 前記マルチポートメモリ装置は前記第1および第2の輝
度信号を記憶する場合は倍速モードとなるよう制御され
ることを特徴とする撮像装置。
2. When dedicated image sensors are used for R (red), G (green), and B (blue), and the pixel arrangement intervals in the horizontal and vertical directions of the image sensors are Ph and Pv, respectively. The G image pickup device is horizontally and vertically (Ph / 2 + a) and (Pv / 2 +) with respect to the R and B image pickup devices.
b) An image pickup device of a three-plate type which performs oblique pixel shift arrangement in which shift is performed by (a, b are constants), wherein the multi-port memory stores pixel output signals of the R, G, and B image sensors. A pixel output signal of the image sensor for R, G, B or an output signal of the multiport memory device, and a pixel output signal of the image sensor for R and B; The number of pixels in the horizontal direction is 2 of the G image sensor by using the pixel output signal of the G image sensor that is spatially located in the lower left nearest neighborhood or the lower right nearest neighborhood with respect to the pixel of the G image sensor. Create a first luminance signal that is twice
Using the pixel output signal of the image sensor for the, and the pixel output signal of the image sensor for the G located in the upper left nearest neighbor or the upper right nearest neighbor spatially for the pixels of the R and B image sensor, The multi-port memory device includes a luminance signal generation unit that generates a second luminance signal having a horizontal pixel number twice as large as that of the G image pickup device. A plurality of serial-parallel conversion means for converting and outputting parallel data, at least one of the plurality of serial-parallel conversion means for outputting separately from the parallel data delayed serial data obtained by time-shifting the serial data by a predetermined number of delay stages, At least one serial data input terminal of the plurality of serial-parallel conversion means is provided with externally input serial data and another serial-parallel data. Serial data selection and output means for selecting and outputting one of the delayed serial data output from the serial conversion means, a write buffer for temporarily storing outputs of the plurality of serial-parallel conversion means, and an output of the write buffer Write data selection and output means for selecting and outputting a part of the data; a memory to which the output of the write data selection and output means is written; a read buffer for temporarily storing data read from the memory; One or a plurality of parallel-serial conversion means for performing parallel-serial conversion of an output for each output system; one or a plurality of delay adjustment means for delaying the output of the one or a plurality of parallel-serial conversion means; Memory control means for performing read and address control; §, the write data selection output means,
The read buffer includes a sequence generation unit that generates a control sequence for each operation of the memory control unit. The control sequence generated by the sequence generation unit has a predetermined cycle, and is included in one cycle of the control sequence. The access timing and access order to the memory for each input / output system are fixed, the serial-parallel conversion means performs serial-parallel conversion in synchronization with an external write request timing, and the write buffer The output of the serial-parallel conversion means is temporarily stored in synchronization with the phase of the control sequence output from the generation means, and the read buffer is read from the memory in synchronization with the phase of the control sequence output from the sequence generation means. Temporarily stored data, and adjusts the delay. The stage delays the output of the parallel-serial conversion means to match the external read request timing based on the difference between the external read request timing and the phase of the control sequence. The serial data of the external input is supplied to the other serial-parallel conversion means when the serial data of the external input is a normal double speed. The delay serial data output from the serial-parallel conversion means is selected, and 2 in one cycle of the control sequence is selected.
The multiport memory device is operated in a double-speed write mode in which the serial data of the external input is stored in the memory using an access period for a port, and the multiport memory device operates at a double speed when storing the first and second luminance signals. An imaging device controlled to be in a mode.
JP2000300945A 2000-09-29 2000-09-29 Multiport memory device Pending JP2002108701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000300945A JP2002108701A (en) 2000-09-29 2000-09-29 Multiport memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000300945A JP2002108701A (en) 2000-09-29 2000-09-29 Multiport memory device

Publications (1)

Publication Number Publication Date
JP2002108701A true JP2002108701A (en) 2002-04-12

Family

ID=18782549

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000300945A Pending JP2002108701A (en) 2000-09-29 2000-09-29 Multiport memory device

Country Status (1)

Country Link
JP (1) JP2002108701A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009252038A (en) * 2008-04-08 2009-10-29 Toshiba Corp Ofdm transmission unit, its signal separation unit, and memory access control method
US8164692B2 (en) 2007-01-26 2012-04-24 Kabushiki Kaisha Toshiba Gamma correction circuit, gamma correction method, and image processing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8164692B2 (en) 2007-01-26 2012-04-24 Kabushiki Kaisha Toshiba Gamma correction circuit, gamma correction method, and image processing apparatus
JP2009252038A (en) * 2008-04-08 2009-10-29 Toshiba Corp Ofdm transmission unit, its signal separation unit, and memory access control method

Similar Documents

Publication Publication Date Title
US5742274A (en) Video interface system utilizing reduced frequency video signal processing
JP2008506295A (en) Method and system for displaying a series of image frames
JP4790227B2 (en) Display control apparatus and display control method
JP2004023279A (en) Semiconductor device, portable terminal system and sensor module
US6593965B1 (en) CCD data pixel interpolation circuit and digital still camera equipped with it
JP3489228B2 (en) Image storage device
US7079165B2 (en) Display apparatus and control circuit thereof
JP2002108701A (en) Multiport memory device
JP2001285644A (en) Control method for line memory
US7209186B2 (en) Image processing apparatus and image processing method for high speed real-time processing
KR100510677B1 (en) Memory access control apparatus
JP2002108690A (en) Multi-port memory device
JP3573406B2 (en) Image processing device
JP4415785B2 (en) Image signal processing apparatus and method
JP3679025B2 (en) Video signal processing device
JP3895946B2 (en) Display device and control circuit thereof
JP4489245B2 (en) Image processing apparatus and control method thereof
JPH05198167A (en) Semiconductor memory device
JP2002108695A (en) Multi-port memory device
JP2000284771A (en) Video data processor
JP2000059800A (en) Image signal processing circuit
JP2006003481A (en) Image size conversion apparatus and image pickup apparatus
JP2002354313A (en) Display apparatus and control circuit thereof
JP2002109877A (en) Multiport memory device
JP2005011520A (en) Image data storage device