JP4640434B2 - Digital camera - Google Patents
Digital camera Download PDFInfo
- Publication number
- JP4640434B2 JP4640434B2 JP2008102299A JP2008102299A JP4640434B2 JP 4640434 B2 JP4640434 B2 JP 4640434B2 JP 2008102299 A JP2008102299 A JP 2008102299A JP 2008102299 A JP2008102299 A JP 2008102299A JP 4640434 B2 JP4640434 B2 JP 4640434B2
- Authority
- JP
- Japan
- Prior art keywords
- memory
- signal processing
- processing circuit
- data
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Cameras In General (AREA)
- Bus Control (AREA)
- Color Television Image Signal Generators (AREA)
Description
本発明は効率のよい画像メモリの制御により、画像信号処理時間を向上させたデジタルカメラを提供することを目的とする。 It is an object of the present invention to provide a digital camera with improved image signal processing time by efficient image memory control.
デジタルカメラで静止画もしくは動画を撮影する際に、CCDデータ取り込み処理、輝度信号と色差信号への分離処理(Y/C分離処理)、液晶モニターへの表示処理、JPEG圧縮処理、記録メディアへの記録処理等の各信号処理において、各信号処理間で発生するデータを一時的に画像メモリに蓄積させて処理を行うことは一般的である。 When taking still images or movies with a digital camera, CCD data capture processing, separation processing into luminance and color difference signals (Y / C separation processing), display processing on the LCD monitor, JPEG compression processing, recording media In each signal processing such as recording processing, it is common to perform processing by temporarily storing data generated between each signal processing in an image memory.
従来のデジタルカメラではこれらの処理を、画像メモリのアクセス速度が不十分であったり、複数の画像処理により発生するメモリアクセスを並列に処理することが複雑であるため、まずCCDデータ出力に同期して決められた期間内に終了させる必要があるCCDデータ取り込みを優先して行い、1画面分のCCDデータを画像メモリへの取り込み、その後1画面分のY/C分離処理を行い、1画面分のY色差信号を画像メモリへ取り込み、その後モニター表示処理、JPEG圧縮処理、外部メディアへの記録処理などを行っていた。そのため、トータルとしての信号処理時間が長くかかってしまうという問題があった。 In conventional digital cameras, these processes are performed in synchronization with CCD data output because the access speed of the image memory is insufficient or it is complicated to process memory accesses generated by multiple image processes in parallel. Priority is given to the acquisition of CCD data that must be completed within a predetermined period of time, and the CCD data for one screen is imported to the image memory, and then Y / C separation processing for one screen is performed for one screen. The Y color difference signal was taken into the image memory, and then monitor display processing, JPEG compression processing, recording processing to external media, etc. were performed. Therefore, there has been a problem that it takes a long time for signal processing as a total.
本発明のデジタルカメラは、撮像素子の出力をデジタル化する撮像回路と、メモリに格納された映像信号を一時記憶する第一のバッファメモリと、前記第一のバッファメモリに一時記憶されたデジタル化された映像信号を前記撮像素子の出力に同期して処理するY/C分離処理手段と、メモリに格納された映像信号を一時記憶する第二のバッファメモリと、前記第二のバッファメモリに一時記憶されたデジタル化された映像信号を前記撮像素子の出力に同期せずに処理する圧縮処理手段と、メモリと、前記圧縮処理手段から発行される前記メモリに対するアクセス要求よりも前記Y/C分離処理手段から発行される前記メモリに対するアクセス要求を優先するアービタとを備え、前記第一のバッファメモリの容量は、前記第二のバッファメモリの容量よりも小さい、ことを特徴とする。 The digital camera of the present invention includes an imaging circuit for digitizing the output of the imaging device, a first buffer memory for temporarily storing a video signal stored in the memory, and a digitization temporarily stored in the first buffer memory . Y / C separation processing means for processing the recorded video signal in synchronization with the output of the image sensor, a second buffer memory for temporarily storing the video signal stored in the memory, and a temporary storage in the second buffer memory Compression processing means for processing the stored digitized video signal without synchronizing with the output of the imaging device, a memory, and the Y / C separation from the access request to the memory issued from the compression processing means and a arbiter to prioritize access request to the memory issued from the processing unit, the capacity of the first buffer memory, said second buffer memory Smaller than the capacity, characterized in that.
以上の様な手段により本発明は、効率のよいメモリ制御により、複数の信号処理の並列処理を実現させ、信号処理時間の向上により、撮影間隔の短縮、高速連写機能、撮影データの液晶モニターへの表示速度などを向上させたデジタルカメラを提供できる。 By the means as described above, the present invention realizes parallel processing of a plurality of signal processing by efficient memory control, and shortens the shooting interval, high-speed continuous shooting function, and liquid crystal monitor of shooting data by improving the signal processing time. A digital camera with improved display speed can be provided.
このように本発明のデジタルカメラによれば、以上のように本発明のデジタルカメラによれば、効率のよいメモリ制御により、複数の信号処理の並列処理を実現させ、信号処理時間の向上により、撮影間隔の短縮、高速連写機能、撮影データの液晶モニターへの表示速度などを向上させたデジタルカメラを提供する。 Thus, according to the digital camera of the present invention, as described above, the digital camera of the present invention realizes parallel processing of a plurality of signal processes by efficient memory control, and improves the signal processing time. We provide digital cameras that improve shooting interval reduction, high-speed continuous shooting function, and display speed of shooting data on the LCD monitor.
(具体的な実施の形態)
(実施の形態1)
本実施の形態は、効率のよいメモリ制御により、複数の信号処理の並列処理を実現させ、信号処理時間の向上により、撮影間隔の短縮、高速連写機能、撮影データの液晶モニターへの表示速度などを向上させたデジタルカメラを実現するものである。
(Specific embodiment)
(Embodiment 1)
This embodiment realizes parallel processing of multiple signal processing through efficient memory control, shortens the shooting interval, improves high-speed continuous shooting function, and displays the shooting data on the LCD monitor by improving the signal processing time This is to realize a digital camera with improved performance.
以下、本発明の実施の形態1を図に基づいて説明する。
図1は、本発明の実施の形態1に係るデジタルカメラの構成図である。
FIG. 1 is a configuration diagram of a digital camera according to
図1において、101は撮像素子の出力をデジタル化する撮像回路であり、102はメインメモリにデータを書き込むもしくは、読み出す必要がある複数の信号処理回路である。103は102の信号処理回路からのメモリアクセス要求を調停するアービタであり、104は102の信号処理回路からのメモリアクセスを中継するメモリ制御回路であり、105はメインメモリであり106は撮像データに対する信号処理後最終的に生成された画像ファイルを保存する、記録メディアである。
In FIG. 1,
110は複数の信号処理回路102からのメモリアクセス要求信号であり、111はアービタ103からのメモリアクセス許可信号である。112は複数の信号処理回路102の各信号処理回路から出力されるメインメモリへのメモリアドレスであり、113はメモリ制御回路を中継して、メインメモリ105と複数の信号処理回路102間のデータ転送である。
110 is a memory access request signal from the plurality of
114はアービタ103からメモリアクセス許可が与えられた信号処理回路とメインメモリ間でデータ転送ができるようにメモリ制御回路104で切り換える、メモリアクセス切り換え信号である。115はメモリ制御回路104からメインメモリ105に与えるメモリアドレスであり、116はメモリ制御回路104とメインメモリ105間のデータ転送であり、117はメモリ制御回路117からメインメモリ105に与えるコマンドである。
A memory
アービタ103は複数の信号処理回路102からのメモリアクセス要求信号に応じて信号処理回路にアクセス許可信号を出力し、アクセス許可を受けた信号処理回路がメモリ制御回路を介してメインメモリにアクセスする構成になっている。
図2に図1中のアービタ103の構成を示す。
FIG. 2 shows the configuration of the
アービタ103では、優先順位判定回路201において、あらかじめ定められた優先順位に従って複数の信号処理回路102の中で、最も優先度の高いメモリアクセス要求信号に対してアクセス許可信号を出し、アクセス許可信号によって選択された信号処理回路はメモリ制御回路を介してメモリアクセスを行う。
In the
このように、メモリアクセス要求をアービタ103によって統合して制御することにより、1つのメインメモリに対して複数のメモリ制御手段をもつことなく簡単にメインメモリを制御でき、複数の信号処理回路から同時にメモリアクセス、要求が発生した場合でも、優先度の高い信号処理を優先して処理することができる。
As described above, the memory access request is integrated and controlled by the
アクセス許可信号によって選択された信号処理回路が行うメモリアクセスは、予め決められた一定期間であり、アービタ103は一定期間事に、その時点で最も優先順位が高い要求信号に応じてアクセス許可信号を出力する。
The memory access performed by the signal processing circuit selected by the access permission signal is a predetermined period, and the
このように、一定時間の短いタイムサイクルでメモリアクセスを切り換えることで、1つの信号処理で長い時間メインメモリとアクセスすることがないため、優先順位の低い信号処理のメモリアクセスが長く待たされることがなく、複数の信号処理を破綻することなく処理することができる。 In this way, by switching the memory access in a short time cycle of a certain time, the main memory is not accessed for a long time by one signal processing, so that the memory access of the signal processing with a low priority may be waited for a long time. Therefore, it is possible to process a plurality of signal processing without failing.
図3にメモリ制御回路104の構成を示す。
FIG. 3 shows the configuration of the
図3において、301はメモリアドレス切換え処理回路であり、アービタによってアクセス許可が与えられた信号処理回路からのメモリアドレスをメインメモリに与えるように切り換える構成になっている。302はメモリデータ切換え処理回路であり、アービタによってアクセス許可が与えられた信号処理回路とメインメモリ間でデータやりとりの処理を行う回路である。303はメモリコマンド生成回路であり、アービタによってアクセス許可が与えられた信号処理回路が、書き込み処理を行うか、読み出し処理を行うかに応じて切り換えを行う回路である。メモリ制御回路104では、アービタ103から出力されたメモリアクセス切り換え信号によって、メモリアクセスが許可された信号処理回路がメインメモリとアクセスできるように切り換える構成になっている。
In FIG. 3,
図4に複数の信号処理回路102中の各信号処理回路の構成を示す。図4において、401は信号処理部、402はバッファメモリ、403はバッファメモリ制御回路、404はメモリアドレス発生回路である。 FIG. 4 shows the configuration of each signal processing circuit in the plurality of signal processing circuits 102. In FIG. 4, 401 is a signal processing unit, 402 is a buffer memory, 403 is a buffer memory control circuit, and 404 is a memory address generation circuit.
図4において、複数の信号処理回路102中の各信号処理回路がメモリ制御回路104を中継して、メインメモリに書き込む処理を行う際には、信号処理部401での信号処理後のデータを一旦バッファメモリ402に蓄え、バッファメモリ402上のデータが一定量を上回った場合にバッファメモリ制御回路403はアービタ103にアクセス要求信号を出力する。アービタによってアクセス要求が受け付けられ、メモリアクセスが許可されると、バッファメモリからのデータ読み出しとメインメモリへデータを書き込むためのメモリアドレスを出力する。
In FIG. 4, when each signal processing circuit in the plurality of signal processing circuits 102 relays the
このように、バッファメモリ上の未処理のデータが一定量を下回った場合、またはバッファメモリ上の処理済みのデータが一定量を上回った場合にメモリアクセス要求信号を出力してアクセス権を獲得し、その上で信号処理回路が必要とするデータのメインメモリからの取り込み、またはバッファメモリ上の処理済のデータのメインメモリへの吐き出しを行うことにより、バッファメモリ上に信号処理回路が必要とするデータがあり、かつ信号処理済みのデータを蓄える余裕がある状態が自動的に維持されるので、メモリアクセスしていない期間も継続的に信号処理する事が可能になる。 In this way, when the unprocessed data on the buffer memory falls below a certain amount, or when the processed data on the buffer memory exceeds a certain amount, the memory access request signal is output to acquire the access right. In addition, the signal processing circuit needs the signal on the buffer memory by fetching the data required by the signal processing circuit from the main memory or discharging the processed data on the buffer memory to the main memory. Since a state where there is data and there is room for storing signal-processed data is automatically maintained, it is possible to perform signal processing continuously even during a period when memory access is not being performed.
また図4において、複数の信号処理回路102中の各信号処理回路がメモリ制御回路104を中継して、メインメモリからデータを読み出す処理を行う際には、メインメモリから読み出したデータを一旦バッファメモリ402に蓄え、バッファメモリ402上のデータが一定量を下回った場合にバッファメモリ制御回路403はアービタ103にアクセス要求信号を出力する。アービタによってアクセス要求が受け付けられ、メモリアクセスが許可されると、バッファメモリへのデータ書き込みとメインメモリからデータを読み出すためのメモリアドレスを出力する。
In FIG. 4, when each signal processing circuit in the plurality of signal processing circuits 102 relays the
複数の信号処理回路から同時にメモリアクセス要求があった場合の優先順位の決め方は、一定時間内に終了させる必要がある信号処理に関するものには上位の順位を与え、メモリアクセスの遅延が許される信号処理に対しては、下位の順位を与える。 When there is a memory access request from a plurality of signal processing circuits at the same time, the priority order is determined by giving a higher order to signal processing that needs to be completed within a certain time, and allowing memory access delays. For processing, a lower rank is given.
このように、メモリアクセスを一定時間内に終了させる必要がある信号処理回路が破綻をきたさない様に処理でき、優先順位が高いメモリアクセスがアクセスしない空き時間に、優先順位が低いメモリアクセスが受け付けられるため、メモリアクセスの空き時間を無くし、効率のよい複数の信号処理を並列に行うことができる。 In this way, the signal processing circuit that needs to finish memory access within a certain time can be processed so as not to fail, and memory access with lower priority is accepted during idle time when memory access with higher priority is not accessed. Therefore, it is possible to eliminate the idle time of memory access and perform a plurality of efficient signal processing in parallel.
信号処理回路102が持つバッファメモリ402が十分に大きければ、メモリアクセスが間欠的であっても信号処理が停止することは無いが、必要以上のバッファメモリを持つことは信号処理回路のコストを引き上げることになるので、容量の最適化が必要である。 If the buffer memory 402 of the signal processing circuit 102 is sufficiently large, signal processing will not stop even if memory access is intermittent, but having more buffer memory than necessary increases the cost of the signal processing circuit. Therefore, optimization of capacity is necessary.
よって、同時に発生するメモリアクセス要求のうち2つ以上が一定時間内に終了させる必要がある信号処理に関するものであったり、メモリアクセスの遅延が許される信号処理に関するメモリアクセスの場合には、単位時間内にアクセスするデータ量がより多い信号処理回路に対しては上位の順位を与え、単位時間内にアクセスするデータ量がより少ない信号処理に対しては、下位の順位を与える。 Therefore, in the case of memory access related to signal processing in which two or more simultaneously generated memory access requests need to be completed within a certain time, or in memory access related to signal processing in which delay of memory access is allowed, unit time An upper rank is given to a signal processing circuit having a larger amount of data accessed within, and a lower rank is assigned to a signal processing having a smaller amount of data accessed within a unit time.
このように、同期間のメモリアクセス待ち時間において、単位時間内にアクセスするデータ量がより多い信号処理回路の方が多くのバッファ容量を必要とするため、単位時間内にアクセスするデータ量がより多い信号処理回路に対しては上位の順位を与えることで、バッファメモリの容量を抑えることができる。 In this way, in the memory access waiting time during the synchronization, the signal processing circuit having a larger amount of data accessed within the unit time requires a larger buffer capacity, so that the amount of data accessed within the unit time is larger. By giving higher ranks to many signal processing circuits, the capacity of the buffer memory can be suppressed.
また、複数の信号処理回路102からのメモリアクセス要求が同時に発生し、最も高い優先順位の信号処理回路がメモリアクセスしてから、順々に優先順位の高いものからメモリアクセスし、最も優先順位が低い信号処理回路がメモリアクセスするまでに各信号処理回路が1回ずつメモリアクセスするような場合には、メモリアクセス要求を出してからメモリアクセス許可が与えられるまでの時間の最大値、即ち最大待ち時間は信号処理回路に与えられた順位に比例する。全期間を通して信号処理回路を動作させ続ける為には、最大待ち時間の間に信号処理回路が処理するデータをバッファメモリが蓄える必要があるので、結局、バッファメモリとしては信号処理回路のデータ処理の速度と、信号処理回路に与えられた順位の積に比例した容量を備える必要がある。 Also, memory access requests from a plurality of signal processing circuits 102 are generated at the same time, and the signal processing circuit with the highest priority level accesses the memory, and then the memory access is performed in descending order of priority. When each signal processing circuit accesses the memory once before the low signal processing circuit accesses the memory, the maximum value of the time from when the memory access request is issued until the memory access permission is given, that is, the maximum waiting time Time is proportional to the rank given to the signal processing circuit. In order to keep the signal processing circuit operating throughout the entire period, the buffer memory needs to store data processed by the signal processing circuit during the maximum waiting time. It is necessary to provide a capacity proportional to the product of the speed and the order given to the signal processing circuit.
このように、信号処理回路が持つバッファメモリの容量を必要最小限に抑えることができる。 Thus, the capacity of the buffer memory included in the signal processing circuit can be minimized.
実際に複数のメモリアクセス要求が発生した場合の制御方法について、図5を用いて信号処理回路A1021と信号処理回路B1022と信号処理回路C1023から同時にメモリアクセス要求が発生した場合について説明する。信号処理回路A1021と信号処理回路B1022と信号処理回路C1023から発生するメモリアクセス要求をそれぞれ要求A、要求B、要求Cとする。ここで、1回のメモリアクセス許可信号によって選択された信号処理回路が行うメモリアクセス時間をTとし、信号処理回路A1021と信号処理回路B1022と信号処理回路C1023の単位時間当たりのデータ処理量をそれぞれ、K、L、Mとし、メインメモリの処理速度をNとする。
A control method when a plurality of memory access requests are actually generated will be described with reference to FIG. 5 when a memory access request is simultaneously generated from the signal
ここで、上記3つの信号処理を破綻なく行うための条件として、K+L+M<Nを満足するメインメモリの処理速度が必要である。説明を簡単にするため、信号処理回路A1021と信号処理回路B1022と信号処理回路C1023はそれぞれメインメモリに書き込み処理を行うものとし、それぞれのバッファメモリに、T期間にメインメモリが処理するデータ量つまり、N×Tがバッファメモリ上に蓄積されたらアービタに対して、メモリアクセス要求を出す。ここで、信号処理回路A1021と信号処理回路B1022と信号処理回路C1023の信号処理回路からのメモリアクセス要求をそれぞれ要求A、要求B、要求Cとし、優先順位が要求A、要求B、要求Cの順番で与えられているとする。
Here, as a condition for performing the above three signal processes without failure, a processing speed of the main memory that satisfies K + L + M <N is required. In order to simplify the description, it is assumed that the signal
この様な条件において、メモリアクセス要求と、メモリアクセス許可と、メインメモリとのデータアクセスの関係について、図5に示す。図5において優先順位の判定はt=0時に最初の優先順位判定が行われ、以降T期間毎に優先順位の判定を行う。また図5中のt=t0において、信号処理回路A1021と信号処理回路B1022と信号処理回路C1023上のバッファメモリにおいてN×Tのデータ量が蓄積されたため、同時にメモリアクセス要求を出すものとする。図5では、説明を簡単にするためにK=4、L=2、M=1、N=8の場合について説明するが、本発明はこれに限られるものではない。 FIG. 5 shows the relationship between the memory access request, the memory access permission, and the data access to the main memory under such conditions. In FIG. 5, the priority order is determined first at t = 0, and thereafter the priority order is determined every T period. Further, at t = t0 in FIG. 5, since the N × T data amount is accumulated in the buffer memories on the signal processing circuit A1021, the signal processing circuit B1022, and the signal processing circuit C1023, it is assumed that a memory access request is issued simultaneously. In FIG. 5, the case of K = 4, L = 2, M = 1, and N = 8 will be described for the sake of simplicity, but the present invention is not limited to this.
t=T時において、要求A、要求B、要求Cの要求が発生しており、この場合、優先順位が一番高い、要求Aが受け付けられ、要求Aへのアクセス許可信号がHIになり、信号処理回路A1021はメインメモリにデータの書き込み処理を行う。要求Aのアクセス許可信号がHIになったら、直後に要求AをLOに落とす。t=T時において、要求Aが受け付けられたため、信号処理回路A1021上のバッファメモリ上にN×Tのデータ量が蓄積されるのは、t=t0からN/K×T=8/4T=2T経過したt=t1のタイミングにおいて要求Aを出す。
At t = T, request A, request B, and request C are generated.In this case, request A with the highest priority is accepted, and the access permission signal to request A becomes HI. The signal
t=2T時において、要求B、要求Cの要求が発生しており、この場合、優先順位が一番高い、要求Bが受け付けられ、要求Bへのアクセス許可信号がHIになり、信号処理回路B1022はメインメモリにデータの書き込み処理を行う。要求Aのアクセス許可信号がHIになったら、直後に要求BをLOに落とす。t=2T時において、要求Bが受け付けられたため、信号処理回路B1022上のバッファメモリ上にN×Tのデータ量が蓄積されるのは、t=t0からN/L×T=8/2T=4T経過したt=t2のタイミングにおいて要求Bを出す。 At t = 2T, request B and request C are generated. In this case, request B with the highest priority is accepted, the access permission signal to request B becomes HI, and the signal processing circuit B1022 performs a data write process to the main memory. When the access permission signal of request A becomes HI, immediately after, request B is dropped to LO. Since the request B is accepted at t = 2T, the data amount of N × T is accumulated in the buffer memory on the signal processing circuit B1022 from t = t0 to N / L × T = 8 / 2T = Request 4 is issued at the timing of t = t2 when 4T has elapsed.
t=3T時において、要求A、要求Cの要求が発生しており、この場合、優先順位が一番高い、要求Aが受け付けられ、要求Aへのアクセス許可信号がHIになり、信号処理回路A1021はメインメモリにデータの書き込み処理を行う。要求Aのアクセス許可信号がHIになったら、直後に要求AをLOに落とす。t=3T時において、要求Aが受け付けられたため、信号処理回路A1021上のバッファメモリ上にN×Tのデータ量が蓄積されるのは、t=t0からN/K×T+t1=8/4T+2T=4T経過したt=t2のタイミングにおいて要求Aを出す。
At time t = 3T, request A and request C are generated. In this case, request A having the highest priority is accepted, the access permission signal to request A becomes HI, and the signal processing circuit A1021 performs a data write process to the main memory. When the access permission signal of request A becomes HI, immediately after request A is dropped to LO. Since the request A has been accepted at t = 3T, the N × T data amount is accumulated in the buffer memory on the signal
t=4T時において、要求Cの要求だけが発生しており、この場合、要求Cが受け付けられ、要求Cへのアクセス許可信号がHIになり、信号処理回路C1023はメインメモリにデータの書き込み処理を行う。要求Cのアクセス許可信号がHIになったら、直後に要求CをLOに落とす。t=4T時において、要求Cが受け付けられたため、信号処理回路C1023上のバッファメモリ上にN×Tのデータ量が蓄積されるのは、t=t0からN/M×T=8/1T=8T経過したt=t4のタイミングにおいて要求Cを出す。 At time t = 4T, only the request C is generated. In this case, the request C is accepted, the access permission signal to the request C becomes HI, and the signal processing circuit C1023 performs a data write process to the main memory. I do. When the access permission signal of request C becomes HI, request C is dropped to LO immediately after. Since the request C is accepted at t = 4T, the N × T data amount is accumulated in the buffer memory on the signal processing circuit C1023 from t = t0 to N / M × T = 8 / 1T = Request C is issued at the timing of t = t4 when 8T has elapsed.
t=5T時において、要求A、要求Bの要求が発生しており、この場合、優先順位が一番高い、要求Aが受け付けられ、要求Aへのアクセス許可信号がHIになり、信号処理回路A1021はメインメモリにデータの書き込み処理を行う。要求Aのアクセス許可信号がHIになったら、直後に要求AをLOに落とす。t=5T時において、要求Bが受け付けられたため、信号処理回路A1021上のバッファメモリ上にN×Tのデータ量が蓄積されるのは、t=t0からN/K×T+t2=8/4T+4T=6T経過したt=t3のタイミングにおいて要求Aを出す。
At t = 5T, request A and request B are generated. In this case, request A with the highest priority is accepted, and the access permission signal to request A becomes HI, and the signal processing circuit A1021 performs a data write process to the main memory. When the access permission signal of request A becomes HI, immediately after request A is dropped to LO. Since the request B is accepted at t = 5T, the N × T data amount is accumulated in the buffer memory on the signal
t=6T時において、要求Bの要求だけが発生しており、この場合、要求Bが受け付けられ、要求Bへのアクセス許可信号がHIになり、信号処理回路B1022はメインメモリにデータの書き込み処理を行う。要求Bのアクセス許可信号がHIになったら、直後に要求BをLOに落とす。t=6T時において、要求Bが受け付けられたため、信号処理回路A1022上のバッファメモリ上にN×Tのデータ量が蓄積されるのは、t=t0からN/L×T+t2=8/2T+4T=8T経過したt=t4のタイミングにおいて要求Bを出す。
At t = 6T, only the request B is generated. In this case, the request B is accepted, the access permission signal to the request B becomes HI, and the signal processing circuit B1022 performs a data write process to the main memory. I do. When the access permission signal for request B becomes HI, immediately after request B is dropped to LO. Since the request B is accepted at t = 6T, the data amount of N × T is accumulated in the buffer memory on the signal
t=7T時において、要求Aの要求だけが発生しており、この場合、要求Aが受け付けられ、要求Aへのアクセス許可信号がHIになり、信号処理回路A1021はメインメモリにデータの書き込み処理を行う。要求Aのアクセス許可信号がHIになったら、直後に要求AをLOに落とす。t=7T時において、要求Aが受け付けられたため、信号処理回路A1021上のバッファメモリ上にN×Tのデータ量が蓄積されるのは、t=t0からN/K×T+t3=8/4T+6T=8T経過したt=t4のタイミングにおいて要求Aを出す。
At time t = 7T, only the request A is generated. In this case, the request A is accepted, the access permission signal to the request A becomes HI, and the signal processing circuit A1021 performs a data write process to the main memory. I do. When the access permission signal of request A becomes HI, immediately after request A is dropped to LO. Since the request A is accepted at t = 7T, the N × T data amount is accumulated in the buffer memory on the signal
t=8T時において、要求A、要求B、要求Cのいずれの要求も発生していないため、この場合、メインメモリはどの信号処理回路ともデータ転送処理を行わない。 Since no requests A, B, and C are generated at t = 8T, the main memory does not perform data transfer processing with any signal processing circuit in this case.
t=t4時において,要求A、要求B、要求Cを同時に出しているため、t=9T時においての優先順位の判定は、t=T時と全く同様であり、以降上記説明の通りのメインメモリとのデータ転送を繰り返す。 Since request A, request B, and request C are issued simultaneously at t = t4, priority determination at t = 9T is exactly the same as at t = T. Repeat data transfer with memory.
以上の様な構成で制御を行うことで、上記3つの回路の信号処理に破綻をきたすことなく、効率のよいメモリ制御により複数の信号処理の並列処理を実現させることができる。 By performing control with the above-described configuration, parallel processing of a plurality of signal processes can be realized by efficient memory control without causing failure in signal processing of the three circuits.
また、上記説明では、信号処理回路A1021と信号処理回路B1022と信号処理回路C1023について説明したが、本発明はそれに限られるわけではなく、信号処理回路A1021と信号処理回路B1022と信号処理回路C1023からのメモリアクセス要求に加えて、優先順位が低い複数の信号処理回路からの要求があり、信号処理回路A1021と信号処理回路B1022と信号処理回路C1023の信号処理以外の単位時間当たりのデータ処理量がPであり、K+L+M+P<Nを満足するならば、それら複数の信号処理も並列に処理することができる。
In the above description, the signal processing circuit A1021, the signal processing circuit B1022, and the signal processing circuit C1023 have been described. However, the present invention is not limited thereto, and the signal processing circuit A1021, the signal processing circuit B1022, and the signal processing circuit C1023 In addition to the memory access request, there is a request from a plurality of signal processing circuits with low priority, and the data processing amount per unit time other than the signal processing of the signal
図6に本実施の形態1のデジタルカメラにおいて、高速連写撮影時の構成を示す。図6中の601〜608は図1中の複数の信号処理回路102に相当するものであり、601は撮像回路101によりデジタル化された撮像データをメインメモリに書き込み処理を行うCCDデータ処理回路であり、602はCCDデータ処理回路601で書き込み処理を行ったデータをメインメモリから読み出し、輝度信号と色差信号に分離(以下Y/C分離)するY/C分離処理回路であり、603はY/C分離処理回路602でY/C分離された信号を画像ファイル生成用に画素数変換した記録用Y/Cデータをメインメモリに書き込み処理を行う記録用Y/C生成処理回路であり、604はY/C分離処理回路602でY/C分離された信号を液晶表示用に画素数変換した表示用Y/Cデータを、メインメモリに書き込み処理を行う表示用Y/C生成処理回路であり、605は表示用Y/C生成処理回路604で書き込み処理を行った表示用Y/Cデータをメインメモリから読み出し、液晶表示させる表示データ読み出し処理回路604であり、606は記録用Y/C生成処理回路603で書き込み処理を行った記録用Y/Cデータをメインメモリから読み出し、圧縮処理を行う圧縮処理回路であり、607は圧縮処理回路606で生成された符号データをメインメモリに書き込み処理を行う符号データ処理回路であり、608は符号データ処理回路607で書き込み処理を行ったデータをメインメモリから読み出し、記録メディアに記録処理を行うメディア記録処理回路である。
FIG. 6 shows a configuration at the time of high-speed continuous shooting in the digital camera of the first embodiment. 601 to 608 in FIG. 6 correspond to the plurality of signal processing circuits 102 in FIG. 1, and 601 is a CCD data processing circuit that writes imaging data digitized by the
以下、高速連写撮影モード時の動作について、図7のタイミング図を用いて説明する。 Hereinafter, the operation in the high-speed continuous shooting mode will be described with reference to the timing chart of FIG.
図7の(1)の期間において、CCDは1コマ目の撮像を行う。CCDから撮像した信号を出力する際の読み出しの方法はフレーム読み出しで行い、まず(2)の期間において、CCD上の奇数ラインに相当する第1フィールド信号が出力され、デジタル信号に変換後、CCDデータ処理回路601に入力され、そのデータをメインメモリへの書き込み処理を行う。この期間において、各信号処理回路601〜608から出力されるメモリアクセス要求はCCDデータ処理回路601からのみであり、メインメモリを独占して書き込み処理を行う。
In the period (1) in FIG. 7, the CCD performs the first frame imaging. The readout method when outputting the imaged signal from the CCD is by frame readout. First, during the period (2), the first field signal corresponding to the odd line on the CCD is output, converted into a digital signal, and then the CCD. The data is input to the
ここで(1)の期間においてCCDデータ処理回路601における単位時間当たりの信号処理速度がaであるとし、メインメモリの単位時間当たりの信号処理速度をNとすると、a<Nであれば、(1)の期間における処理に破綻をきたすことはない。
Here, if the signal processing speed per unit time in the CCD
図7の(2)の期間においては、CCD上の偶数ラインに相当する第2フィールド信号が出力され、デジタル信号に変換後、CCDデータ処理回路601に入力され、Y/C分離処理回路602においてメインメモリから読み出され第1フィールド信号と、CCDデータ処理回路601から出力される第2フィールド信号を用いてY/C分離処理を行う。また、それと並行して、前記説明した、記録Y/C生成処理回路603と表示用Y/C生成処理回路604と圧縮処理回路606と符号データ処理回路607と符号データ処理回路608における処理を並行して行う。
In the period (2) in FIG. 7, the second field signal corresponding to the even lines on the CCD is output, converted into a digital signal, input to the CCD
(2)の期間において、各信号処理回路から同時に発生するメインメモリへのメモリアクセス要求に対し優先順位を決め、優先順位の最も高い信号処理にメモリアクセス許可を出す。Y/C分離処理回路602と記録Y/C生成処理回路603と表示用Y/C生成処理回路604の各信号処理はCCDの垂直同期信号に合わせて(2)の期間内に終了させる必要があるため優先順位を高く設定し、圧縮処理回路606と符号データ処理回路607とメディア記録処理回路608の各信号処理は、メモリアクセスの遅延が許されるので優先順位を低く設定する。
In the period (2), priorities are determined for the memory access requests to the main memory generated simultaneously from the signal processing circuits, and memory access permission is given to the signal processing with the highest priority. Each signal processing of the Y / C
ここで(2)の期間においてY/C分離処理回路602と、記録Y/C生成処理回路603と、表示用Y/C生成処理回路604と圧縮処理回路606と符号データ処理回路607とメディア記録処理回路608の各信号処理における単位時間当たりの信号処理速度をそれぞれ、b,c,d,e,f,gであるとし、メインメモリの単位時間当たりの信号処理速度をNとすると、b+c+d+e+f+g<Nであれば、(2)の期間における処理に破綻をきたすことはない。
Here, in the period (2), the Y / C
図7の(3)の期間においては、CCDは2コマ目の露光を開始し、2コマ目の露光と並行して表示データ読み出し処理回路605によって表示用Y/Cデータをメインメモリから読み出し液晶表示させる処理と、(2)の期間から引き続き圧縮処理回路606と符号データ処理回路607とメディア記録処理回路608による処理を行う。
In the period of (3) in FIG. 7, the CCD starts exposure of the second frame, and in parallel with the exposure of the second frame, the display data read
ここで(3)の期間において表示データ読み出し処理回路605における単位時間当たりの信号処理速度をそれぞれ、hであるとし、メインメモリの単位時間当たりの信号処理速度をNとすると、e+f+g+h<Nであれば、(3)の期間における処理に破綻をきたすことはない。
Here, assuming that the signal processing speed per unit time in the display data read
次に2コマ目の露光が終了後、CCDから2コマ目の映像信号がフレーム読み出しで、まずCCD上の奇数ラインに相当するフィールド信号が撮像回路からCCDデータ処理回路601に入力され、そのデータをメインメモリへ書き込み処理を行う。並行して(3)から引き続き表示データ読み出し処理回路605と圧縮処理回路606と符号データ処理回路607とメディア記録処理回路608による処理を行う。
Next, after the exposure of the second frame is completed, the video signal of the second frame from the CCD is read out from the frame. First, a field signal corresponding to an odd line on the CCD is input from the imaging circuit to the CCD
(4)の期間において、a+e+f+g+h<Nであれば(4)の期間における処理に破綻をきたすことはない。 In the period (4), if a + e + f + g + h <N, the process in the period (4) will not fail.
(5)の期間においては、(2)の期間と同様にCCD上の偶数ラインに相当する第2フィールド信号が出力され、2コマ目のY/C分離処理602と記録Y/C生成処理回路603と表示用Y/C生成処理回路604と圧縮処理回路606と符号データ処理回路607と(4)から引き続き、1コマ目の表示用Y/C読み出し処理と、メディア記録処理を行う。
In the period (5), as in the period (2), the second field signal corresponding to the even lines on the CCD is output, and the Y /
(5)の期間において、b+c+d+e+f+g+h<Nであれば、(5)の期間における処理に破綻をきたすことはない。 If b + c + d + e + f + g + h <N in the period of (5), the process in the period of (5) will not fail.
(5)の期間終了後、3コマ目の露光動作になるが、3コマ目の露光開始以降は、(2)、(3)、(4)の繰り返しになるため、説明を省略する。 After the period of (5), the exposure operation for the third frame is performed, but since the exposure of the third frame is started, (2), (3), and (4) are repeated, and thus the description thereof is omitted.
連写時において以上のような処理を行うことで、複数の信号処理を並列に実行し、メインメモリアクセスの空き時間をほとんど無くすことでCCDの駆動速度と同じ速度で、高速連写を実現できる。 By performing the above processing during continuous shooting, multiple signal processing can be executed in parallel, and the high-speed continuous shooting can be realized at the same speed as the CCD drive speed by eliminating the main memory access idle time. .
以上のような本発明の実施の形態1により、一定時間内に終了させる必要がある、CCDデータ処理、Y/C分離処理、記録用Y/C生成処理、表示用Y/C生成処理、表示用Y/C読み出し処理には信号処理には上位の優先順位を与え、上位の優先順位の信号処理回路がアクセスしない期間に、圧縮処理、符号データ処理、記録メディア記録処理遅延が許される信号処理を行うことで、複数の信号処理の並列処理を実現させ、信号処理時間の向上により、撮影間隔の短縮、高速連写機能、撮影データの液晶モニターへの表示速度などを向上させたデジタルカメラを構築できる。 According to the first embodiment of the present invention as described above, the CCD data processing, the Y / C separation processing, the recording Y / C generation processing, the display Y / C generation processing, and the display that need to be completed within a predetermined time. Signal processing that gives higher priority to signal processing for Y / C read processing and allows delays in compression processing, code data processing, and recording media recording processing during periods when the signal processing circuit with higher priority is not accessed The digital camera that realizes parallel processing of multiple signal processing and shortens the shooting interval, high-speed continuous shooting function, display speed of shooting data on the LCD monitor, etc. by improving the signal processing time Can be built.
(実施の形態2)
本実施の形態2は、効率のよいメモリ制御により、複数の信号処理の並列処理を実現させ、信号処理時間の向上により、撮影間隔の短縮、高速連写機能、撮影データの液晶モニターへの表示速度などを向上するとともに、操作に対する応答速度を向上させたデジタルカメラを実現するものである。
(Embodiment 2)
The second embodiment realizes parallel processing of a plurality of signal processing by efficient memory control, and shortens the shooting interval, high-speed continuous shooting function, and displays the shooting data on the liquid crystal monitor by improving the signal processing time. The present invention realizes a digital camera that improves the speed and the response speed of the operation.
以下、本発明の実施の形態2を図8に基づいて説明する。 The second embodiment of the present invention will be described below with reference to FIG.
図8は、本発明の実施の形態2に係るデジタルカメラの構成図である。図8において101は撮像素子の出力をデジタル化する撮像回路であり、102はメインメモリにデータを書き込むもしくは、読み出す必要がある複数の信号処理回路である。
FIG. 8 is a block diagram of a digital camera according to Embodiment 2 of the present invention. In FIG. 8,
103は102の信号処理回路からのメモリアクセス要求を調停するアービタであり、104は102の信号処理回路からのメモリアクセスを中継するメモリ制御回路であり、105はメインメモリであり106は撮像データに対する信号処理後最終的に生成された画像ファイルを保存する、記録メディアである。
103 is an arbiter that arbitrates memory access requests from the
110は複数の信号処理回路102からのメモリアクセス要求信号であり、111はアービタ103からのメモリアクセス許可信号である。112は複数の信号処理回路102の各信号処理回路から出力されるメインメモリへのメモリアドレスであり、113はメモリ制御回路を中継して、メインメモリ105と複数の信号処理回路102間のデータ転送である。114はアービタ103からメモリアクセス許可が与えられた信号処理回路とメインメモリ間でデータ転送ができるようにメモリ制御回路104で切り換える、メモリアクセス切り換え信号である。
110 is a memory access request signal from the plurality of
115はメモリ制御回路104からメインメモリ105に与えるメモリアドレスであり、116はメモリ制御回路104とメインメモリ105間のデータ転送であり、117はメモリ制御回路117からメインメモリ105に与えるコマンドである。
118はマイコンであり、ユーザーの操作を受け付けて信号処理回路A,B,C〜nを操作するとともに、メインメモリ上の表示データを操作して、液晶表示にユーザーの操作に対応した応答画面を表示する。アービタ119は複数の信号処理回路102およびマイコンからのメモリアクセス要求信号に応じて信号処理回路にアクセス許可信号を出力し、アクセス許可を受けた信号処理回路がメモリ制御回路を介してメインメモリにアクセスする構成になっている。
A
図9に図8中のアービタ119の構成を示す。アービタは優先順位判定回路とカウンタからなる。優先順位判定回路はあらかじめ定められた優先順位に従って複数の信号処理回路102とマイコンの中で、最も優先度の高いメモリアクセス要求信号に対してアクセス許可信号を出し、カウンタが0を示すまでアクセス許可信号を保持する。カウンタは、カウンタが0の時に優先順位判定回路がアクセス許可信号を出したならば、アクセス許可信号毎に予め定められた値をロードし、以後、0に達するまで1クロック毎にカウントダウンする。優先順位判定回路はカウンタが0に達した時点で最も優先度の高いメモリアクセス要求信号に対して新たなアクセス許可信号を出す。本構成によれば、カウンタがロードする値を大きくすれば長い時間アクセス許可が与えられ、カウンタがロードする値を小さくすれば短い時間だけアクセス許可が与えられる。 FIG. 9 shows the configuration of the arbiter 119 in FIG. The arbiter includes a priority determination circuit and a counter. The priority determination circuit issues an access permission signal to the memory access request signal having the highest priority among the plurality of signal processing circuits 102 and the microcomputer according to a predetermined priority, and permits access until the counter indicates 0. Hold the signal. If the priority determination circuit outputs an access permission signal when the counter is 0, the counter is loaded with a predetermined value for each access permission signal, and thereafter counts down every clock until reaching 0. The priority determination circuit issues a new access permission signal in response to the memory access request signal with the highest priority when the counter reaches zero. According to this configuration, if the value loaded by the counter is increased, access permission is given for a long time, and if the value loaded by the counter is reduced, access permission is given only for a short time.
図8において複数の信号処理回路を並列に動作させる為には、一回のアクセス許可信号の長さを長くして、メモリにメモリアドレスを与えたりデータバスの転送方向を切り替えたりする頻度を抑え、これらに要する時間の割合がデータ転送に要する時間と比較して、より小さくなる方が望ましい。一方、マイコンは短い時間を単位としてメインメモリにアクセスするので、長い時間アクセス許可が与えられても無駄なだけであり、他のメモリアクセスを要する信号処理回路の動作余裕を圧迫する事になりかねない。 In FIG. 8, in order to operate a plurality of signal processing circuits in parallel, the length of one access permission signal is lengthened to suppress the frequency of giving a memory address to the memory and switching the data bus transfer direction. It is desirable that the ratio of time required for these is smaller than the time required for data transfer. On the other hand, since the microcomputer accesses the main memory in units of a short time, even if access permission is granted for a long time, it is only useless, and it may put pressure on the operation margin of other signal processing circuits that require memory access. Absent.
しかし、長い時間の連続アクセスを必要とする信号処理回路に対しては図9においてカウンタがロードする値を大きく設定することによりアクセス許可信号の継続時間を長くし、短時間のアクセスしか必要としないマイコンに対してはカウンタがロードする値を小さく設定することによりアクセス許可信号の継続時間を短くすることで、アクセス許可の割り当てを最適化することが出来る。 However, for a signal processing circuit that requires continuous access for a long time, the duration of the access permission signal is lengthened by setting a large value to be loaded by the counter in FIG. 9, and only a short time access is required. By setting the value loaded by the counter to be small for the microcomputer, the access permission assignment can be optimized by shortening the duration of the access permission signal.
また、アクセス許可時間の長さを最適化する技術を開示する。先述のようにメモリにメモリアドレスを与えたりデータバスの転送方向を切り替えたりする頻度を抑えることで、これらに要する時間の比率を小さくし、マイコンおよび信号処理回路がデータ転送を行う時間の比率を高めることができるが、データ転送を一定時間連続して行う為には、信号処理回路がデータ転送を行う時間に比例したバッファメモリを持たねばならないので、一回のアクセス許可時間を無闇に長くすることはコストアップを招くことになる。そこで、本発明の請求項9によれば、一定の時間を定めて各信号処理回路がアクセスするデータ量を求め、各信号処理回路には前記データ量に比例した容量のバッファメモリを持たせ、アービタは前記データ量に比例した時間のアクセス許可信号を出すようカウンタを設定する。この場合、アービタは一定時間内に各信号処理回路に一回ずつアクセス許可を与えればよいのでアクセス許可信号の切り替え回数は最小であり、アクセス許可時間は各信号処理回路のバッファ容量に合わせて最大であるので、限られたバッファメモリ容量の制限の中でアクセス許可信号の切り替えに伴うロスタイムを最小限に抑えることができる。このように、アクセス許可時間の長さを最適化することができる。 In addition, a technique for optimizing the length of access permission time is disclosed. By reducing the frequency of giving memory addresses to the memory and switching the transfer direction of the data bus as described above, the time ratio required for these is reduced, and the time ratio for data transfer between the microcomputer and the signal processing circuit is reduced. However, in order to perform data transfer continuously for a certain period of time, the signal processing circuit must have a buffer memory that is proportional to the time for data transfer. This will increase costs. Therefore, according to claim 9 of the present invention, a fixed amount of time is determined to determine the amount of data accessed by each signal processing circuit, and each signal processing circuit has a buffer memory having a capacity proportional to the amount of data, The arbiter sets a counter so as to issue an access permission signal having a time proportional to the data amount. In this case, since the arbiter only needs to grant access permission to each signal processing circuit once within a fixed time, the number of times the access permission signal is switched is minimum, and the access permission time is the maximum according to the buffer capacity of each signal processing circuit. Therefore, the loss time associated with switching of the access permission signal can be minimized while the buffer memory capacity is limited. In this way, the length of the access permission time can be optimized.
以上のような本発明の実施の形態2により、マイコンに割り当てるアクセス許可信号の時間を短く設定すれば、マイコンの優先順位を高くしても他の信号処理回路のアクセスが待たされる時間は少ししか増えないので、マイコンからメインメモリへのアクセスを優先して許可することによりアクセスタイムを短縮することができる。その結果、ユーザーの操作に対する応答が、より短時間でメインメモリ上の表示データに反映されることになり、ユーザーの使用感は、より良好になる。 According to the second embodiment of the present invention as described above, if the time of the access permission signal to be assigned to the microcomputer is set short, even if the priority of the microcomputer is increased, the time to wait for access of other signal processing circuits is little. Since it does not increase, the access time can be shortened by giving priority to the access from the microcomputer to the main memory. As a result, the response to the user's operation is reflected in the display data on the main memory in a shorter time, and the user's feeling of use becomes better.
(実施の形態3)
本実施の形態3は、効率のよいメモリ制御により、複数の信号処理の並列処理を実現させ、信号処理時間の向上により、撮影間隔の短縮、高速連写機能、撮影データの液晶モニターへの表示速度などを向上させたデジタルカメラを実現するものである。
(Embodiment 3)
The third embodiment realizes parallel processing of a plurality of signal processing by efficient memory control, and shortens the shooting interval, high-speed continuous shooting function, and display of shooting data on the liquid crystal monitor by improving the signal processing time. A digital camera with improved speed and the like is realized.
以下、本発明の実施の形態3を図に基づいて説明する。図10は、本発明の実施の形態3に係るデジタルカメラの構成図である。 The third embodiment of the present invention will be described below with reference to the drawings. FIG. 10 is a block diagram of a digital camera according to Embodiment 3 of the present invention.
図10において、101は撮像素子の出力をデジタル化する撮像回路であり、102はメインメモリにデータを書き込むもしくは、読み出す必要がある複数の信号処理回路である。103は102の信号処理回路からのメモリアクセス要求を調停するアービタであり、104は102の信号処理回路からのメモリアクセスを中継するメモリ制御回路であり、105はメインメモリであり、106は撮像データに対する信号処理後最終的に生成された画像ファイルを保存する、記録メディアである。
In FIG. 10,
121は信号処理回路102からの第一のメモリアクセス要求信号であり、121は信号処理回路102からの第二のメモリアクセス要求信号、111はアービタ103からのメモリアクセス許可信号である。112は複数の信号処理回路102の各信号処理回路から出力されるメインメモリへのメモリアドレスであり、113はメモリ制御回路を中継して、メインメモリ105と複数の信号処理回路102間のデータ転送である。114はアービタ103からメモリアクセス許可が与えられた信号処理回路とメインメモリ間でデータ転送ができるようにメモリ制御回路104で切り換える、メモリアクセス切り換え信号である。
121 is a first memory access request signal from the signal processing circuit 102, 121 is a second memory access request signal from the
115はメモリ制御回路104からメインメモリ105に与えるメモリアドレスであり、116はメモリ制御回路104とメインメモリ105間のデータ転送であり、117はメモリ制御回路117からメインメモリ105に与えるコマンドである。1024は2つのメモリアクセス要求をもつ信号処理回路Dである。
ここで信号処理回路102中のある信号処理回路D1024が間欠的に多量のデータを出力するものであり、信号処理回路D1024が唯一つのメモリアクセス要求信号しか持たないと仮定すると、信号処理回路D1024に高い優先順位を与えれば、信号処理回路D1024はバッファメモリが空になるまでメモリアクセス要求信号を出し続けることになり、その間は優先順位が下位の信号処理回路はメモリアクセスが出来なくなってしまう恐れが有り、逆に、信号処理回路D1024に他の信号処理回路より低い優先順位を与えれば、メモリアクセス許可信号を多量のデータの転送に必要なだけの時間、確保できる保証が無くなって、信号処理回路からメインメモリに未転送のデータがバッファメモリの容量以上になったり(データオーバーフロー)、メインメモリから信号処理回路へ転送した信号処理未処理のデータがバッファメモリ上に存在しない状態(データアンダーフロー)になる恐れがある。 Here, it is assumed that a certain signal processing circuit D1024 in the signal processing circuit 102 intermittently outputs a large amount of data, and the signal processing circuit D1024 has only one memory access request signal. If a high priority is given, the signal processing circuit D1024 will continue to issue a memory access request signal until the buffer memory is empty, and the signal processing circuit with a lower priority may not be able to access the memory during that time. Yes, and conversely, if the signal processing circuit D1024 is given a lower priority than the other signal processing circuits, there is no guarantee that the memory access permission signal can be secured for the time necessary for transferring a large amount of data. The data not yet transferred from the main memory to the main memory exceeds the buffer memory capacity (data overflow Over), there is a possibility that data of the signal processing unprocessed transferred from main memory to the signal processing circuit is in a state that does not exist in the buffer memory (data underflow).
このようなジレンマを解消する為の技術を開示する。信号処理回路において、メモリアクセス要求信号を出力する回路は二つの閾値と二つのメモリアクセス要求出力を持ち、バッファメモリに第一の閾値を上回わるデータがある間は第一のメモリアクセス要求信号を出し、前記アービタ103においては、第一のメモリアクセス要求信号1101に対しては下位の順位を与えて、他のアクセス要求が無い場合に限ってメモリアクセス許可信号を与えるので、他の信号処理回路のメモリアクセスを妨げることがなく、信号処理回路がデータの出力を始めてデータ量が第二の閾値を上回った時には第二のメモリアクセス要求信号1101を出し、前記アービタ103においては第二のメモリアクセス要求信号に対しては他の信号処理回路に優先してメモリアクセス許可を与えるので、短時間でバッファメモリ上のデータ量を第二の閾値以下に減らしてデータオーバーフローを回避することができる。第二のメモリアクセス要求信号が出ている期間は、他のアクセス要求が受け付けられないが、信号処理回路D1024が連続してメモリアクセス権を取るためにバッファメモリのデータ量は急速に消費され、第二のメモリアクセス要求信号が出ている期間は短時間に抑えられるので、実用上問題ない。
A technique for eliminating such a dilemma is disclosed. In the signal processing circuit, the circuit that outputs the memory access request signal has two threshold values and two memory access request outputs, and the first memory access request signal while there is data exceeding the first threshold value in the buffer memory. The
以上のような本発明の実施の形態3により、異なる優先順位を持つ二つのメモリアクセス要求信号を使い分けることにより、低い優先度のアクセス要求信号によって他の信号処理回路がメモリアクセスしない期間を有効に利用してデータ転送を行い、高い優先度のアクセス要求信号によってデータオーバーフローまたはデータアンダーフローの回避を保証することが可能であり、これにより効率がよく信頼性が高いメモリシステムを構築できる。 According to the third embodiment of the present invention as described above, by using two memory access request signals having different priorities, a period during which no other signal processing circuit accesses the memory due to a low priority access request signal is made effective. It is possible to transfer data by using it, and to ensure that data overflow or data underflow is avoided by a high priority access request signal, whereby an efficient and highly reliable memory system can be constructed.
Claims (1)
前記生成された映像信号に基づく映像信号を格納するメモリと、
前記メモリに格納された映像信号を一時記憶する第一のバッファメモリと、
前記第一のバッファメモリに一時記憶された映像信号に対して前記撮像手段の動作タイミングに同期して処理を施すために、前記メモリにアクセス要求を発行するY/C分離処理手段と、
前記メモリに格納された映像信号を一時記憶する第二のバッファメモリと、
前記第二のバッファメモリに一時記憶された映像信号に対して前記撮像手段の動作タイミングに同期せずに処理を施すために、前記メモリにアクセス要求を発行する圧縮処理手段と、
前記圧縮処理手段から発行される前記メモリに対するアクセス要求よりも前記Y/C分離処理手段から発行される前記メモリに対するアクセス要求を優先するアービタと、
を備え、
前記第一のバッファメモリの容量は、前記第二のバッファメモリの容量よりも小さい、
ことを特徴とするデジタルカメラ。 Imaging means for capturing a subject image and generating a video signal;
A memory for storing a video signal based on the generated video signal;
A first buffer memory for temporarily storing the video signal stored in the memory;
The first facilities in synchronization with the processing to the operation timing of the imaging unit with respect temporarily stored video signal in the buffer memory Sutame, a Y / C separation means for issuing an access request to said memory,
A second buffer memory for temporarily storing the video signal stored in the memory;
Wherein the second facilities the process without synchronism with the operation timing of the imaging unit with respect temporarily stored video signal in the buffer memory Sutame, a compression processing means for issuing an access request to said memory,
An arbiter that prioritizes an access request to the memory issued from the Y / C separation processing means over an access request to the memory issued from the compression processing means ;
With
The capacity of the first buffer memory is smaller than the capacity of the second buffer memory,
A digital camera characterized by that.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008102299A JP4640434B2 (en) | 2008-04-10 | 2008-04-10 | Digital camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008102299A JP4640434B2 (en) | 2008-04-10 | 2008-04-10 | Digital camera |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001320166A Division JP2003122705A (en) | 2001-10-18 | 2001-10-18 | Digital camera |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008186479A JP2008186479A (en) | 2008-08-14 |
JP4640434B2 true JP4640434B2 (en) | 2011-03-02 |
Family
ID=39729416
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008102299A Expired - Fee Related JP4640434B2 (en) | 2008-04-10 | 2008-04-10 | Digital camera |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4640434B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5154361B2 (en) | 2008-10-20 | 2013-02-27 | 三星電子株式会社 | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05336385A (en) * | 1992-05-29 | 1993-12-17 | Fuji Xerox Co Ltd | Image processing device |
JP2000050127A (en) * | 1998-07-30 | 2000-02-18 | Casio Comput Co Ltd | Electronic still camera and its control method |
-
2008
- 2008-04-10 JP JP2008102299A patent/JP4640434B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05336385A (en) * | 1992-05-29 | 1993-12-17 | Fuji Xerox Co Ltd | Image processing device |
JP2000050127A (en) * | 1998-07-30 | 2000-02-18 | Casio Comput Co Ltd | Electronic still camera and its control method |
Also Published As
Publication number | Publication date |
---|---|
JP2008186479A (en) | 2008-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107636631B (en) | Image processing apparatus, image processing method, and program | |
JP6210743B2 (en) | Data processing device and data transfer control device | |
JP6676162B2 (en) | Memory access control device, image processing device, and imaging device | |
US7996603B2 (en) | DRAM controller that forces a refresh after a failed refresh request | |
US10719458B2 (en) | Data transfer device, image processing device, and imaging device | |
US20190324646A1 (en) | Memory access device, image-processing device, and imaging device | |
JP6006083B2 (en) | Imaging apparatus and imaging method | |
JP4328906B2 (en) | Bus control method and apparatus, and digital camera | |
JP4640434B2 (en) | Digital camera | |
JP2003122705A (en) | Digital camera | |
JP6539509B2 (en) | Data transfer apparatus and data transfer method | |
JP2008172410A (en) | Imaging apparatus, image processing apparatus, image processing method, program for image processing method, and recording medium recorded with program for image processing method | |
US9547330B2 (en) | Processor and control method for processor | |
US11314664B2 (en) | Memory access device, image processing device and imaging device | |
WO2019043822A1 (en) | Memory access device, image processing device, and imaging device | |
JP4284458B2 (en) | Digital camera | |
US6897895B1 (en) | Digital camera | |
JP2006039672A (en) | Bus request control circuit | |
JP5623150B2 (en) | Electronic device and control method thereof | |
JP2006330806A (en) | Memory control circuit | |
JP5017601B2 (en) | Data transfer control device and data transfer method | |
JP2009104529A (en) | Information processor, recording device of moving image with sound, and information processing method | |
JP2006109222A (en) | Signal processing apparatus | |
JP2006099585A (en) | Data processing system | |
JP2004242126A (en) | Digital camera |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20091130 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100615 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100806 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100907 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101007 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20101102 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20101115 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4640434 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131210 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131210 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141210 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |