JP2009211364A - Memory control circuit - Google Patents
Memory control circuit Download PDFInfo
- Publication number
- JP2009211364A JP2009211364A JP2008053143A JP2008053143A JP2009211364A JP 2009211364 A JP2009211364 A JP 2009211364A JP 2008053143 A JP2008053143 A JP 2008053143A JP 2008053143 A JP2008053143 A JP 2008053143A JP 2009211364 A JP2009211364 A JP 2009211364A
- Authority
- JP
- Japan
- Prior art keywords
- access
- replacement frame
- access request
- replacement
- column
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
この発明は、メモリ制御回路に関し、特に複数のメモリ領域に選択的にアクセスする、メモリ制御回路に関する。 The present invention relates to a memory control circuit, and more particularly to a memory control circuit that selectively accesses a plurality of memory areas.
この種の回路の一例が、特許文献1に開示されている。この背景技術によれば、複数のフラッシュメモリが準備される。連続する複数ワードのデータの書き込み動作を実行するとき、プロセッサは、或るフラッシュメモリを1ワードのデータの書き込み先として指定した後、他のフラッシュメモリを次の1ワードのデータの書き込み先として指定する。これによって、1ワードの書き込み動作毎に発生する数マイクロ秒〜数十マイクロ秒の待ち時間に関わらず、書き込み速度を高速化できる。
しかし、背景技術では、互いに異なる優先度が各ワードのデータに割り当てられることはなく、データ書き込みに際して優先度が考慮されることはない。 However, in the background art, different priorities are not assigned to the data of each word, and the priorities are not considered when writing data.
それゆえに、この発明の主たる目的は、アクセス要求元に割り当てられた優先度を考慮しつつ実効アクセス時間を短縮することができる、メモリ制御回路を提供することである。 Therefore, a main object of the present invention is to provide a memory control circuit capable of reducing the effective access time while considering the priority assigned to the access request source.
この発明に従うメモリ制御回路(22:実施例で相当する参照符号。以下同じ)は、メモリ(24)に設けられた複数のバンクのいずれか1つを指定したアクセス要求を互いに異なる優先度を各々が有する複数の要求元から受け付ける受付手段(S1)、N個(N:2以上の整数)のカラムを指定する入替枠をM個(M:Nを上回る整数)のカラムを有するレジスタ(50r)上で上位から下位に向けて移動させる移動手段(S13, S23)、受付手段によって受け付けられたアクセス要求を入替枠よりも下位のカラムに優先度に従う順序で設定する設定手段(S5)、隣り合う2つのアクセス要求が互いに異なるバンクを指定するように入替枠内のアクセス要求を入れ替える入れ替え手段(S17~S21)、および入替枠よりも上位のカラムに設定されたアクセス要求に従うアクセス処理を順に実行するアクセス手段(52)を備える。 The memory control circuit according to the present invention (22: reference numeral corresponding to the embodiment; the same applies hereinafter) assigns different priority to access requests specifying any one of a plurality of banks provided in the memory (24). Accepting means (S1) for accepting from a plurality of request sources possessed by N, a register (50r) having M (M: integer greater than N) columns of replacement frames for designating N (N: integer greater than or equal to 2) columns Moving means (S13, S23) for moving from upper to lower on the upper side, setting means (S5) for setting the access requests accepted by the accepting means in the column below the replacement frame in order according to the priority, adjacent Replacement means (S17 to S21) for switching access requests in the replacement frame so that the two access requests specify different banks, and access processing according to the access request set in the column above the replacement frame. Access means (52) to be executed.
受付手段は、メモリに設けられた複数のバンクのいずれか1つを指定したアクセス要求を、互いに異なる優先度を各々が有する複数の要求元から受け付ける。N個(N:2以上の整数)のカラムを指定する入替枠は、M個(M:Nを上回る整数)のカラムを有するレジスタ上で上位から下位に向けて移動手段によって移動される。設定手段は、受付手段によって受け付けられたアクセス要求を、入替枠よりも下位のカラムに優先度に従う順序で設定する。入替枠内のアクセス要求は、隣り合う2つのアクセス要求が互いに異なるバンクを指定するように、入れ替え手段によって入れ替えられる。アクセス手段は、入替枠よりも上位のカラムに設定されたアクセス要求に従うアクセス処理を順に実行する。 The accepting unit accepts an access request designating any one of a plurality of banks provided in the memory from a plurality of request sources each having a different priority. The replacement frame for designating N (N: integer greater than or equal to 2) columns is moved by the moving means from the upper side to the lower side on a register having M (M: integer greater than N) columns. The setting unit sets the access request received by the receiving unit in an order according to the priority in a column lower than the replacement frame. The access requests within the replacement frame are switched by the switching means so that two adjacent access requests specify different banks. The access means sequentially executes access processing according to the access request set in the column above the replacement frame.
このように、アクセス要求は入替枠よりも下位のカラムに優先度に従う順序で設定され、入替枠内のアクセス要求は隣り合う2つのアクセス要求が互いに異なるバンクを指定するように入れ替えられ、そして入替枠よりも上位のカラムに設定されたアクセス要求に従うアクセス処理が順に実行される。これによって、優先度を考慮したバンクインタリーブアクセスが可能となり、実効アクセス時間の短縮化が実現される。 In this way, the access requests are set in the order of priority in the lower column than the replacement frame, and the access requests in the replacement frame are switched so that two adjacent access requests specify different banks. Access processes according to the access request set in the column above the frame are executed in order. As a result, bank interleaved access in consideration of priority becomes possible, and the effective access time can be shortened.
好ましくは、入替枠は少なくとも3つのカラムを指定し、入れ替え手段は、第1条件および第2条件の両方が満足されるとき入替処理を実行する一方、第1条件および第2条件の少なくとも一方が満足されないとき入替処理を中止し、第1条件は入替枠内の最上位のカラムに設定されたアクセス要求と入替枠内の第2位のカラムに設定されたアクセス要求との間で指定バンクが一致するという条件に相当し、第2条件は入替枠内の最上位のカラムに設定されたアクセス要求と入替枠内の第3位のカラムに設定されたアクセス要求との間で指定バンクが相違するという条件に相当する。 Preferably, the replacement frame specifies at least three columns, and the replacement means executes replacement processing when both the first condition and the second condition are satisfied, while at least one of the first condition and the second condition is If not satisfied, the replacement process is stopped, and the first condition is that the designated bank is set between the access request set in the highest column in the replacement frame and the access request set in the second column in the replacement frame. Corresponding to the condition of matching, the second condition is that the specified bank is different between the access request set in the top column in the replacement frame and the access request set in the third column in the replacement frame It corresponds to the condition of doing.
好ましくは、移動手段は、移動前の入替枠内のカラムが移動後の入替枠内のカラムと部分的に重複するように入替枠を段階的に移動させる。 Preferably, the moving means moves the replacement frame stepwise so that the column in the replacement frame before the movement partially overlaps the column in the replacement frame after the movement.
好ましくは、メモリはバンクインタリーブアクセスを採用するメモリである。 Preferably, the memory is a memory that employs bank interleave access.
好ましくは、受付手段によって受け付けられるアクセス要求はデータ書き込みおよびデータ読み出しのいずれか一方を示すアクセス態様情報を伴い、アクセス手段はアクセス態様情報を参照してメモリにアクセスする。 Preferably, the access request accepted by the accepting unit is accompanied by access mode information indicating one of data writing and data reading, and the access unit accesses the memory with reference to the access mode information.
この発明によれば、アクセス要求は入替枠よりも下位のカラムに優先度に従う順序で設定され、入替枠内のアクセス要求は隣り合う2つのアクセス要求が互いに異なるバンクを指定するように入れ替えられ、そして入替枠よりも上位のカラムに設定されたアクセス要求に従うアクセス処理が順に実行される。これによって、優先度を考慮したバンクインタリーブアクセスが可能となり、実効アクセス時間の短縮化が実現される。 According to the present invention, the access request is set in the order in accordance with the priority in the column below the replacement frame, and the access request in the replacement frame is switched so that two adjacent access requests specify different banks, Then, the access processes according to the access request set in the column above the replacement frame are executed in order. As a result, bank interleaved access in consideration of priority becomes possible, and the effective access time can be shortened.
この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。 The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.
図1を参照して、この実施例のディジタルカメラ10は、光学レンズ12を含む。被写界を表す光学像は、光学レンズ12を経て撮像装置14の撮像面に照射される。ドライバ16は、撮像面を周期的に露光し、これによって生成された電荷をラスタ走査態様で撮像面から読み出す。撮像装置14からは、読み出された電荷に基づく生画像データが周期的に出力される。
Referring to FIG. 1, a
出力された生画像データは、前処理回路18によってディジタルクランプや画素欠陥補正などの処理を施された後、バッファ回路20のSRAM20mに書き込まれる。バッファ回路20は、SRAM20mに格納された生画像データをSDRAM24のバンク0または1に既定量ずつ書き込むべく、メモリ制御回路22に向けてアクセス要求を繰り返し発行する。バッファ回路20は、メモリ制御回路22から承認信号が返送される毎に、SRAM20mに格納された既定量の生画像データをメモリ制御回路22に向けて出力する。出力された生画像データは、メモリ制御回路22によってSDRAM24のバンク0または1に書き込まれる。
The output raw image data is subjected to processing such as digital clamping and pixel defect correction by the preprocessing
なお、SDRAM24はDDR型のSDRAMであり、メモリ制御回路22はクロックの立ち上がりおよび立ち下がりの各々に応答して1ワードのアクセス動作を実行する。
Note that the
バッファ回路26は、SDRAM24のバンク0または1に格納された生画像データを既定量ずつ読み出すべく、メモリ制御回路22に向けてアクセス要求を繰り返し発行する。メモリ制御回路22は、発行されたアクセス要求の承認に関連して、承認信号を要求元であるバッファ回路26に返送し、かつ既定量の生画像データをSDRAM24のバンク0または1から読み出す。読み出された生画像データは、バッファ回路26に設けられたSRAM26mに書き込まれる。後処理回路28は、SRAM26mに格納された生画像データを読み出し、読み出された生画像データに色分離,白バランス調整,YUV変換などの処理を施す。これによって生成されたYUV画像データは、バッファ回路30に設けられたSRAM30mに書き込まれる。
The
バッファ回路30もまた、メモリ制御回路22に向けてアクセス要求を繰り返し発行し、SRAM30mに格納された既定量のYUV画像データをメモリ制御回路22からの承認信号に応答してメモリ制御回路22に出力する。出力されたYUV画像データは、メモリ制御回路22によってSDRAM24のバンク0または1に書き込まれる。
The
バッファ回路32は、SDRAM24のバンク0または1に格納されたYUV画像データを既定量ずつ読み出すべく、メモリ制御回路22に向けてアクセス要求を繰り返し発行する。メモリ制御回路22は、発行されたアクセス要求を承認するとき、承認信号をバッファ回路32に返送し、かつ既定量のYUV画像データをSDRAM24のバンク0または1から読み出す。読み出されたYUV画像データはバッファ回路32に設けられたSRAM32mを経てLCDドライバ34に与えられる。LCDドライバ34は、与えられたYUV画像データに基づいてLCDモニタ36を駆動する。この結果、被写界を表す動画像がLCDモニタ36から出力される。
The
バッファ回路38は、記録開始指示が発行されたとき、SDRAM24のバンク0または1に格納されたYUV画像データを既定量ずつ読み出すべく、メモリ制御回路22に向けてアクセス要求を繰り返し発行する。メモリ制御回路22は、発行されたアクセス要求の承認に関連して、承認信号を要求元であるバッファ回路38に返送し、かつ既定量のYUV画像データをSDRAM24のバンク0または1から読み出す。読み出されたYUV画像データは、バッファ回路38に設けられたSRAM38mを経てH264エンコーダ40に与えられる。H264エンコーダ40は、与えられたYUV画像データをH264方式で圧縮し、これによって生成された圧縮画像データをバッファ回路42に設けられたSRAM42mに書き込む。
When a recording start instruction is issued, the
バッファ回路42も、メモリ制御回路22に向けてアクセス要求を繰り返し発行し、SRAM42mに格納された既定量の圧縮画像データをメモリ制御回路22からの承認信号に応答してメモリ制御回路22に出力する。出力された圧縮画像データは、メモリ制御回路22によってSDRAM24のバンク0または1に書き込まれる。
The
バッファ回路44は、SDRAM24のバンク0または1に格納された圧縮画像データを既定量ずつ読み出すべく、メモリ制御回路22に向けてアクセス要求を繰り返し発行する。メモリ制御回路22は、発行されたアクセス要求を承認するとき、承認信号をバッファ回路44に返送し、かつ既定量の圧縮画像データをSDRAM24のバンク0または1から読み出す。読み出された圧縮画像データは、バッファ回路44に設けられたSRAM44mを経てI/F46に与えられる。圧縮画像データは、I/F46によって記録媒体48に書き込まれる。
The
なお、上述のようなバッファ回路38〜44,H264エンコーダ40およびI/F44の動作は、記録終了指示に応答して終了される。
The operations of the
メモリ制御回路22は、図2に示すように構成される。バッファ回路20からの生画像データ,バッファ回路30からのYUV画像データおよびバッファ回路42からの圧縮画像データは、セレクタ54cを介してSDRAM24に書き込まれる。SDRAM24から読み出された生画像データはセレクタ54cを介してバッファ回路26に与えられ、SDRAM24から読み出されたYUV画像データはセレクタ54cを介してバッファ回路32または38に与えられ、SDRAM24から読み出された圧縮画像データはセレクタ54cを介してバッファ回路44に与えられる。
The
バッファ回路20,26,30,32,38,42および44の各々から発行されるアクセス要求は、“書き込み”および“読み出し”のいずれか一方のアクセス態様を示すコントロール信号とアクセス先の先頭アドレスを示すアドレス信号とを伴う。アクセス要求はアクセス状態管理回路50に与えられ、付随するコントロール信号およびアドレス信号はセレクタ54aおよび54bにそれぞれ与えられる。
An access request issued from each of the
以下では、説明の便宜上、バッファ回路20,26,30,32,38,42および44に参照番号1〜7をそれぞれ割り当て、バッファ回路1〜7からそれぞれ発行される7つのアクセス要求に符号REQ1〜REQ7を割り当て、バッファ回路1〜7にそれぞれ返送される7つ承認信号にACK1〜ACK7をそれぞれ割り当てる。さらに、アクセス要求REQ1〜REQ7にそれぞれ付随する7つのコントロール信号に符号CTL1〜CTL7を割り当て、アクセス要求REQ1〜REQ7にそれぞれ付随する7つのアドレス信号にADRS1〜ADRS7を割り当てる。
Hereinafter, for convenience of explanation,
バッファ回路1〜7の各々には、互いに異なる優先度が予め割り当てられる。この優先度は、アクセス状態管理回路50に設けられたテーブル50t(図3参照)によって管理される。図3によれば、優先度は、バッファ回路1→バッファ回路2→バッファ回路3→バッファ回路4→バッファ回路5→バッファ回路6→バッファ回路7の順で低下する。
Different priority levels are assigned to the
アクセス状態管理回路50はまた、与えられたアクセス要求REQ1〜REQ7を登録するためのレジスタ50r(図4参照)を有する。図4によれば、レジスタ50rは100個のカラムを有する。後述する入替枠FRMが設定されるまでは最上位から10個のカラムが登録領域として指定され、入替枠FRMが設定された後は入替枠FRMよりも下位の10個のカラムが登録領域として指定される。アクセス要求REQ1〜REQ7は、こうして指定された登録領域に上述の優先度に従う順序で登録される。
The access
デコーダ52は、アドレス信号ADRS1〜ADRS7の各々によって示される先頭アドレスを参照してアクセス先のバンクを特定し、特定したバンクをアクセス状態管理回路50に通知する。
The
アクセス状態管理回路50は、レジスタ50rに3つ以上のアクセス要求が登録された後に、3つのカラム(3つのアクセス要求)を指定する入替枠FRMをレジスタ50r上に設定する。アクセス状態管理回路50はさらに、設定された入替枠FRM内の3つのアクセス要求にそれぞれ対応する3つのバンクをデコーダ52からの通知に基づいて特定し、特定された3つのバンクの状態に応じて入替枠FRM内の3つのアクセス要求の順位を入れ替える。
The access
具体的には、アクセス先のバンクが1番目のアクセス要求と2番目のアクセス要求との間で一致しかつ1番目のアクセス要求と3番目のアクセス要求との間で相違する場合、2番目のアクセス要求と3番目のアクセス要求とを入れ替える。一方、アクセス先のバンクが1番目のアクセス要求と2番目のアクセス要求との間で相違するか或いは全てのアクセス要求の間で一致する場合は、アクセス要求の入れ替えは中止される。 Specifically, if the bank to be accessed matches between the first access request and the second access request and is different between the first access request and the third access request, the second The access request and the third access request are switched. On the other hand, when the access destination bank is different between the first access request and the second access request, or is coincident between all the access requests, the replacement of the access requests is stopped.
こうしてアクセス要求の順位が制御されることで、3つのアクセス要求の全てが同じバンクに対応する場合を除き、2番目のアクセス要求に対応するバンクは1番目のアクセス要求に対応するバンクと相違することとなる。 By controlling the order of access requests in this way, the bank corresponding to the second access request is different from the bank corresponding to the first access request, except when all three access requests correspond to the same bank. It will be.
入替枠FRM内の3つのアクセス要求の順位が確定すると、入替枠FRMが2カラムだけ下位に進められる。移動後の入替枠FRM内の1番目のアクセス要求は、移動前の入替枠FRM内の3番目のアクセス要求と一致する。上述のような順位の入れ替えは、移動後の入替枠FRMに属する3つのリクエストに注目して実行される。 When the order of the three access requests in the replacement frame FRM is determined, the replacement frame FRM is advanced by two columns. The first access request in the replacement frame FRM after movement matches the third access request in the replacement frame FRM before movement. The order change as described above is executed by paying attention to the three requests belonging to the replacement frame FRM after movement.
このような順位の入れ替えおよび入替枠FRMの移動の一例を、図5(A)〜図5(D)に示す。図5(A)によれば、入替枠FRMはアクセス要求REQ2〜REQ4を指定する。アクセス要求REQ2およびREQ3の各々はバンク0に対応し、アクセス要求REQ4はバンク1に対応する。このときは、アクセス要求REQ3およびREQ4が図5(B)に示すように入れ替えられる。入替枠FRMは、アクセス要求の順位が確定した後に図5(C)に示す位置に移動する。
An example of such order switching and movement of the replacement frame FRM is shown in FIGS. 5 (A) to 5 (D). According to FIG. 5A, the replacement frame FRM specifies the access requests REQ2 to REQ4. Each of access requests REQ2 and REQ3 corresponds to bank 0, and access request REQ4 corresponds to
図5(C)によれば、移動後の入替枠FRMは、アクセス要求REQ3,REQ1およびREQ2を指定する。アクセス要求REQ3およびREQ1はバンク0に対応し、アクセス要求REQ2はバンク1に対応する。このときは、アクセス要求REQ1およびREQ2が図5(D)に示すように入れ替えられる。
According to FIG. 5C, the replacement frame FRM after movement designates the access requests REQ3, REQ1, and REQ2. Access requests REQ3 and REQ1 correspond to bank 0, and access request REQ2 corresponds to
図2に戻って、デコーダ52は、入替枠FRMが指定するカラムよりも上位のカラムに登録されたアクセス要求に従うアクセス処理を順に実行する。デコーダ52はまず、注目するアクセス要求をACK生成回路60に通知する。ACK生成回路60は、注目するアクセス要求の発行元に承認信号ACKを送信する。デコーダ52は次に、注目するアクセス要求に対応するコントロール信号の選択をセレクタ54aに通知し、注目するアクセス要求に対応するアドレス信号の選択をセレクタ54bに通知し、そして注目するアクセス要求に対応する画像データの選択をセレクタ54cに通知する。
Returning to FIG. 2, the
コマンド生成回路56は、セククタ54aによって選択されたコントロール信号に基づいてコマンドを生成し、生成されたコマンドをSDRAM24に与える。書き込み動作を実行するとき、コマンドは、アクティブコマンド,ライトコマンド,プリチャージコマンドの順で生成される。読み出し動作を実行するとき、コマンドは、アクティブコマンド,リードコマンド,プリチャージコマンドの順で生成される。アドレスコンバータ58は、セレクタ54bによって選択されたアドレス信号をSDRAM24の実アドレスに変換し、変換されたアドレス信号をSDRAM24に与える。変換されたアドレス信号には、1つのロウアドレスと複数のカラムアドレスとが含まれる。
The
注目するアクセス要求が書き込み動作を要求する場合、セレクタ54cから出力された画像データは、コマンド生成回路56によって生成されたコマンドおよびアドレスコンバータ58によって生成されたアドレス信号に従ってSDRAM24に書き込まれる。注目するアクセス要求が読み出し動作を要求する場合、画像データはコマンド生成回路56によって生成されたコマンドおよびアドレスコンバータ58によって生成されたアドレス信号に従ってSDRAM24から読み出され、セレクタ54cに与えられる。
When the access request to be noticed requests a write operation, the image data output from the
コマンド生成回路56はまた、注目するアクセス要求に従う書き込み動作または読み出し動作が完了する毎に、終了通知をデコーダ52に与える。デコーダ52は、終了したアクセス要求をレジスタ50rから削除し、レジスタ50r上の次のアクセス要求に従うアクセス処理を実行する。
The
アクセス状態管理回路50は、図6に示すレジスタ設定処理および図7に示す順位変更処理を並列的に実行する。
The access
図6を参照して、ステップS1ではアクセス要求REQ1〜REQ7のいずれか1つが入力されたか否かを判別し、YESであれば入替枠FRMがレジスタ50rに設定済みであるか否かをステップS3で判別する。ここでYESであればステップS5に進み、入替枠FRMよりも下位の10個のカラムを登録領域として指定する。一方、NOであればステップS7に進み、レジスタ50rの最上位から10個のカラムを登録領域として指定する。ステップS9では、入力されたアクセス要求を指定された登録領域に登録する。登録の順序は、テーブル50tに記述された優先度に従う。ステップS9の処理が完了すると、ステップS1に戻る。
Referring to FIG. 6, in step S1, it is determined whether any one of access requests REQ1 to REQ7 has been input. If YES, it is determined whether or not replacement frame FRM has been set in
図7を参照して、ステップS11ではレジスタ50rに登録されたアクセス要求の数が“3”以上であるか否かを判別し、YESであればステップS13で変数Nを“1”に設定する。変数Nは“100”を上限とし、“100”に達すると“1”に戻る。ステップS15では、N番目以降の3つのアクセス要求を指定するように入替枠FRMをレジスタ50r上に配置する。ステップS17では、入替枠FRM内の1番目のアクセス要求と2番目のアクセス要求との間でアクセス先のバンクが一致するか否かを判別する。ステップS19では、入替枠FRM内の1番目のアクセス要求と3番目のアクセス要求との間でアクセス先のバンクが相違するか否かを判別する。
Referring to FIG. 7, in step S11, it is determined whether or not the number of access requests registered in
ステップS17およびS19の両方でYESであれば、ステップS21で入替枠FRM内の2番目のアクセス要求と3番目のアクセス要求とを入れ替える。入れ替えが完了すると、ステップS23で変数Nに“2”を加算してからステップS15に戻る。一方、ステップS17またはS19でNOであれば、ステップS21の処理を実行することなくステップS23に進み、その後にステップS15に戻る。 If YES in both steps S17 and S19, the second access request and the third access request in the replacement frame FRM are switched in step S21. When the replacement is completed, “2” is added to the variable N in step S23, and then the process returns to step S15. On the other hand, if NO in step S17 or S19, the process proceeds to step S23 without executing the process of step S21, and then returns to step S15.
入替枠FRMによって指定された3つのアクセス要求がいずれも“バンク0”へのデータ書き込みを要求するものである場合、書き込み動作は図8(A)〜図8(F)に示す要領で実行される。コマンドは、図8(A)に示すクロックに同期して図8(B)に示すように発行される。ここで、“A”はアクティブコマンドに相当し、“W”はライトコマンドに相当し、“Pr”はプリチャージコマンドに相当する。図8(C)に示すように、アクセス先のバンクはいずれも“バンク0”である。このため、バンク0の状態は、図8(D)に示すように、アクティブコマンドが発行されてプリチャージコマンドが発行されるまで期間にアクティブとなる。一方、バンク1の状態は、図8(E)に示すように常にネガティブとなる。図8(F)に示すように、書き込むべき画像データは、ライトコマンドが発行される毎に8ワードずつ出力される。
When all of the three access requests designated by the replacement frame FRM request data writing to “bank 0”, the write operation is executed as shown in FIG. 8 (A) to FIG. 8 (F). The The command is issued as shown in FIG. 8B in synchronization with the clock shown in FIG. Here, “A” corresponds to an active command, “W” corresponds to a write command, and “Pr” corresponds to a precharge command. As shown in FIG. 8C, all the banks to be accessed are “bank 0”. For this reason, as shown in FIG. 8D, the state of the bank 0 becomes active during a period from when the active command is issued until the precharge command is issued. On the other hand, the state of
入替枠FRMによって指定された3つのアクセス要求が“バンク1”,“バンク0”および“バンク0”へのデータ書き込みを要求するものである場合、書き込み動作は図9(A)〜図9(F)に示す要領で実行される。コマンドは図9(A)に示すクロックに同期して図9(B)に示すように発行され、アクセス先のバンクは図9(C)に示すように“バンク1”→“バンク0”→“バンク0”の順で遷移する。“バンク1”を指定する期間と“バンク0”を指定する期間とが部分的に重複するため、バンク1へのアクセスのために発行される3つのコマンドとバンク0へのアクセスのために発行される3つのコマンドとが部分的に錯綜する。また、図9(D)および図9(E)に示すように、バンク1がアクティブとなる期間は、バンク0がアクティブとなる期間と部分的に重複する。この結果、バンク0および1の各々に書き込むべき画像データは、図9(F)に示すタイミングで出力される。
When the three access requests designated by the replacement frame FRM request data write to “
入替枠FRMによって指定された3つのアクセス要求が“バンク0”,“バンク1”および“バンク0”へのデータ書き込みを要求するものである場合、書き込み動作は図10(A)〜図10(F)に示す要領で実行される。コマンドは図10(A)に示すクロックに同期して図10(B)に示すように発行され、アクセス先のバンクは図10(C)に示すように“バンク0”→“バンク1”→“バンク0”の順で遷移する。“バンク0”を指定する期間と“バンク1”を指定する期間とが部分的に重複するため、バンク0へのアクセスのために発行される3つのコマンドとバンク1へのアクセスのために発行される3つのコマンドとが部分的に錯綜する。また、図10(D)および図10(E)に示すように、バンク0がアクティブとなる期間は、バンク1がアクティブとなる期間と部分的に重複する。この結果、バンク0および1の各々に書き込むべき画像データは、図10(F)に示すタイミングで出力される。
When the three access requests designated by the replacement frame FRM request data write to “bank 0”, “
以上の説明から分かるように、アクセス状態管理回路50は、SDRAM24に設けられた複数のバンク0および1のいずれか一方を指定したアクセス要求REQ1〜REQ7を、互いに異なる優先度を各々が有する複数のバッファ回路1〜7から受け付ける(S1)。アクセス状態管理回路50はまた、N個(N:2以上の整数)のカラムを指定する入替枠FRMを、M個(M:Nを上回る整数)のカラムを有するレジスタ50r上で上位から下位に向けて移動させる(S13, S23)。バッファ回路1〜7から受け付けたアクセス要求REQ1〜REQ7は、入替枠FRMよりも下位のカラムに優先度に従う順序で設定される(S9)。入替枠FRM内のアクセス要求は、隣り合う2つのアクセス要求が互いに異なるバンクを指定するように入れ替えられる(S21)。デコーダ52は、入替枠FRMよりも上位のカラムに設定されたアクセス要求に従うアクセス処理を順に実行する。
As can be understood from the above description, the access
このように、アクセス要求は入替枠FRMよりも下位のカラムに優先度に従う順序で設定され、入替枠FRM内のアクセス要求は隣り合う2つのアクセス要求が互いに異なるバンクを指定するように入れ替えられ、そして入替枠FRMよりも上位のカラムに設定されたアクセス要求に従うアクセス処理が順に実行される。これによって、優先度を考慮したバンクインタリーブアクセスが可能となり、実効アクセス時間の短縮化が実現される。 In this way, the access requests are set in the order according to the priority in the lower column than the replacement frame FRM, and the access requests in the replacement frame FRM are switched so that two adjacent access requests specify different banks, Then, the access processing according to the access request set in the column above the replacement frame FRM is executed in order. As a result, bank interleaved access in consideration of priority becomes possible, and the effective access time can be shortened.
なお、この実施例では、入替枠FRMによって指定するアクセス要求の数を3つとしているが、指定するアクセス要求の数は4つ以上でもよく、さらに指定するアクセス要求の数をモードに応じて可変とするようにしてもよい。 In this embodiment, the number of access requests specified by the replacement frame FRM is three. However, the number of access requests to be specified may be four or more, and the number of access requests to be specified is variable depending on the mode. You may make it.
10 …ディジタルカメラ
22 …メモリ制御回路
50 …アクセス状態管理回路
52 …デコーダ
54a〜54c …セレクタ
56 …コマンド生成回路
58 …アドレスコンバータ
60 …ACK生成回路
DESCRIPTION OF
Claims (5)
N個(N:2以上の整数)のカラムを指定する入替枠をM個(M:Nを上回る整数)のカラムを有するレジスタ上で上位から下位に向けて移動させる移動手段、
前記受付手段によって受け付けられたアクセス要求を前記入替枠よりも下位のカラムに前記優先度に従う順序で設定する設定手段、
隣り合う2つのアクセス要求が互いに異なるバンクを指定するように前記入替枠内のアクセス要求を入れ替える入れ替え手段、および
前記入替枠よりも上位のカラムに設定されたアクセス要求に従うアクセス処理を順に実行するアクセス手段を備える、メモリ制御回路。 Accepting means for accepting an access request designating any one of a plurality of banks provided in a memory from a plurality of request sources each having a different priority;
Moving means for moving a replacement frame for designating N (N: integer greater than or equal to 2) columns from upper to lower on a register having M (M: integer greater than N) columns;
Setting means for setting the access request accepted by the accepting means in a column according to the priority in a column below the replacement frame;
A replacement means for switching access requests in the replacement frame so that two adjacent access requests specify different banks, and an access that sequentially executes access processing according to the access request set in a column higher than the replacement frame A memory control circuit comprising means.
前記入れ替え手段は、第1条件および第2条件の両方が満足されるとき入替処理を実行する一方、前記第1条件および前記第2条件の少なくとも一方が満足されないとき前記入替処理を中止し、
前記第1条件は前記入替枠内の最上位のカラムに設定されたアクセス要求と前記入替枠内の第2位のカラムに設定されたアクセス要求との間で指定バンクが一致するという条件に相当し、
前記第2条件は前記入替枠内の最上位のカラムに設定されたアクセス要求と前記入替枠内の第3位のカラムに設定されたアクセス要求との間で指定バンクが相違するという条件に相当する、請求項1記載のメモリ制御回路。 The permutation frame specifies at least three columns,
The replacement means executes a replacement process when both the first condition and the second condition are satisfied, and stops the replacement process when at least one of the first condition and the second condition is not satisfied,
The first condition corresponds to the condition that the designated bank matches between the access request set in the highest column in the replacement frame and the access request set in the second column in the replacement frame. And
The second condition corresponds to the condition that the designated bank is different between the access request set in the highest column in the replacement frame and the access request set in the third column in the replacement frame. The memory control circuit according to claim 1.
前記アクセス手段は前記アクセス態様情報を参照して前記メモリにアクセスする、請求項1ないし4のいずれかに記載のメモリ制御回路。 The access request accepted by the accepting means is accompanied by access mode information indicating one of data writing and data reading,
5. The memory control circuit according to claim 1, wherein the access unit accesses the memory with reference to the access mode information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008053143A JP2009211364A (en) | 2008-03-04 | 2008-03-04 | Memory control circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008053143A JP2009211364A (en) | 2008-03-04 | 2008-03-04 | Memory control circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009211364A true JP2009211364A (en) | 2009-09-17 |
Family
ID=41184444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008053143A Pending JP2009211364A (en) | 2008-03-04 | 2008-03-04 | Memory control circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009211364A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1124984A (en) * | 1997-05-02 | 1999-01-29 | Matsushita Electric Ind Co Ltd | Plural address holding storage device |
JP2000242545A (en) * | 1999-02-08 | 2000-09-08 | Sun Microsyst Inc | Device and method for processing memory access request in data processing system |
-
2008
- 2008-03-04 JP JP2008053143A patent/JP2009211364A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1124984A (en) * | 1997-05-02 | 1999-01-29 | Matsushita Electric Ind Co Ltd | Plural address holding storage device |
JP2000242545A (en) * | 1999-02-08 | 2000-09-08 | Sun Microsyst Inc | Device and method for processing memory access request in data processing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5137374B2 (en) | Memory mapping method and apparatus | |
US8904069B2 (en) | Data processing apparatus and image processing apparatus | |
US7370161B2 (en) | Bank arbiter system which grants access based on the count of access requests | |
JPWO2006051780A1 (en) | Nonvolatile memory device and method of accessing nonvolatile memory device | |
JP2010020715A (en) | Semiconductor memory controller and semiconductor memory system | |
JP2014154119A (en) | Memory controller and semiconductor storage device | |
KR101086417B1 (en) | Apparatus and method for partial access of dynamic random access memory | |
JP6131357B1 (en) | Semiconductor memory device and address control method thereof | |
US20160110286A1 (en) | Data writing method and memory system | |
US20050174857A1 (en) | Nonvolatile memory controlling method and nonvolatile memory controlling apparatus | |
JP2003223785A (en) | Semiconductor memory device with high-speed operation and method of using and designing the same | |
JP2009211364A (en) | Memory control circuit | |
JP2000293432A (en) | Bank variable memory | |
KR100674712B1 (en) | Data scan system and the method using ddr | |
US11086534B2 (en) | Memory data distribution based on communication channel utilization | |
CA2802666C (en) | Image processing device | |
JP2010129029A (en) | Memory access control apparatus and memory access control method | |
JP2014013506A (en) | Information processing apparatus, control method, and program | |
JP4640366B2 (en) | MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD | |
JP4969811B2 (en) | Information processing system and memory control device | |
EP4379721A1 (en) | Address decoding method, and memory controller and semiconductor memory system using the same | |
US20080263290A1 (en) | Memory control apparatus and memory control method | |
JP2010061498A (en) | Memory control device, semiconductor test apparatus and memory control method | |
JP4983160B2 (en) | Moving image processing device | |
JP2008021335A (en) | Nonvolatile storage device, writing method of nonvolatile storage memory and controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Effective date: 20110225 Free format text: JAPANESE INTERMEDIATE CODE: A621 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20121015 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121023 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20130305 |