JP2004303118A - Memory control device and method - Google Patents

Memory control device and method Download PDF

Info

Publication number
JP2004303118A
JP2004303118A JP2003097581A JP2003097581A JP2004303118A JP 2004303118 A JP2004303118 A JP 2004303118A JP 2003097581 A JP2003097581 A JP 2003097581A JP 2003097581 A JP2003097581 A JP 2003097581A JP 2004303118 A JP2004303118 A JP 2004303118A
Authority
JP
Japan
Prior art keywords
memory
processing
access
priority
processing means
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
JP2003097581A
Other languages
Japanese (ja)
Inventor
Masakazu Ikeda
政和 池田
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.)
Hitachi Ltd
Hitachi LG Data Storage Inc
Original Assignee
Hitachi Ltd
Hitachi LG Data Storage Inc
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 Hitachi Ltd, Hitachi LG Data Storage Inc filed Critical Hitachi Ltd
Priority to JP2003097581A priority Critical patent/JP2004303118A/en
Publication of JP2004303118A publication Critical patent/JP2004303118A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a memory control device and a memory control method using an efficient access control in the input and output control of data to a memory shared by a plurality of processing circuits. <P>SOLUTION: This memory control device is provided with a means for detecting the continuity of access permitting situations with respect to a memory access request to control access permission in an independent priority order in continuous access time and under discontinuous access conditions. Thus, access rights to memory access are easily and equally distributed in a lower priority order, thereby realizing the efficient memory access control. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、データ処理に用いられるメモリへのアクセスを制御するメモリ制御装置及び方法に関する。
【0002】
【従来の技術】
従来より光ディスク等のメディアの記録再生処理にはメモリを用いて誤り訂正などのデータ処理が行われている。近年の信号処理の高速化、回路の高集積化の傾向の下、複数の処理回路が一つのメモリを共用する場合がある。このとき、複数の処理回路が同時に一つのメモリに対するアクセス要求することがあるため、メモリアクセスの調停が必要となる。
【0003】
従来のメモリ制御方法として、それぞれの要求信号に対して予め優先順位を定め、優先順位に基づいてアクセスの許可を与える方法がある(例えば特許文献1参照)。
【0004】
特許文献1に示された従来のメモリ制御装置を図4に示す。401はメモリ制御回路、102はデータを格納するメモリ、103、104はメモリにアクセスする処理回路A及び処理回路B、405は処理回路からのメモリアクセス要求であるリクエスト(REQ)の優先順位を判定する優先順位判定回路、106は選択されたリクエスト信号に応じて許可信号(ACK)を生成する許可信号生成回路、107はメモリ102へのアクセスコマンドを生成するコマンド生成回路である。ここでは、処理回路A、処理回路Bの順番のリクエスト優先順位を持つものとする。
【0005】
処理回路からのリクエストとメモリ制御回路からの許可信号とのタイミング図である図3を用いて図4の従来の回路の動作について説明する。REQ−Aは、処理回路Aからのメモリアクセス要求であるリクエスト信号(“Hi”Active)、ACK−Aは、処理回路Aに対するアクセス許可信号(“Hi”Active)である。REQ−Bは、処理回路Bからのメモリアクセス要求であるリクエスト信号(“Hi”Active)、ACK−Bは、処理回路Bに対するアクセス許可信号(“Hi”Active)である。
【0006】
図3のメモリアクセスは、メモリにアクセスしている処理回路を示し、REQ選択はREQを検出するタイミング(図3の△印)を示す。優先順位判定回路405は一定周期の取込タイミングでREQ−A、または、REQ−Bを検出し、両REQ信号が共に検出される場合は、優先順位の高いREQ−Aを選択出力し、許可信号生成回路106は処理回路Aに対しメモリアクセス許可を行なう。何れかのREQ信号のみが検出されるときには、許可信号生成回路406は検出されたREQ信号に対応する処理回路に対しメモリアクセス許可を行なう。また、リクエストを受け付けたメモリ制御回路401では所定のコマンド及びアドレスを生成してメモリ102へ出力し、メモリ102に対して各処理回路からのデータの入出力を行う。
【0007】
【特許文献1】
特開平11−65919号公報
【0008】
【発明が解決しようとする課題】
信号処理の高速化に伴い、複数の処理回路から発せられたアクセス要求が重複する回数も増加するため、メモリアクセスの空きサイクルの少ない効率的なメモリアクセス調停が必要となる。
【0009】
図3を用いて従来の回路において発生する問題を説明する。図3の後半部分に見られるように優先順位上位にある処理回路Aから連続してリクエストREQ−Aが出力される場合、同時に優先順位下位の処理回路BからのリクエストREQ−Bが出力されたとしても、リクエストREQ−Aが停止するまで下位順位のリクエストREQ−Bを受け付けることができずに、処理回路Bに待ち状態が発生してしまう。
【0010】
そこで、下位の処理回路にもアクセスを許可するため、上位の優先順位を持つ処理回路では、1回のアクセス許可毎に一旦リクエストREQ−A出力を停止し、下位の処理回路のアクセスを受け付けた後、リクエストREQ−A出力を再開することが考えられる。すなわち、REQ−Aを間欠的に出力し、REQ−Aが出力されていない期間にREQ−Bに基づくACK−Bを得ることができる。
【0011】
しかし、リクエストREQ−A出力を一旦停止した際に、下位のリクエストREQ−Bが出力されていない場合には、処理回路A,Bの何れもメモリにアクセスできないため、メモリアクセスの空きサイクルが生じてしまうこととなる。また、処理回路Bのメモリアクセス終了後、リクエストREQ−A出力再開のタイミングが遅れた場合にも、メモリアクセスの空きサイクルが生じてしまう。
【0012】
【課題を解決するための手段】
上記課題は、メモリアクセス要求に対するアクセス許可状況の連続性を検出する手段を有し、連続アクセス条件下と非連続アクセス条件下により優先順位を変更することで、優先順位下位にある処理回路のメモリアクセス要求に対してもアクセス権を均等に配分し、無駄な空き時間を生成することなく効率よくメモリアクセスすることで改善できる。
【0013】
【発明の実施の形態】
以下、図面を参照して本発明の実施例について説明する。
【0014】
図1は、本発明の第1の実施例であるメモリ制御装置の構成を示すブロック図である。図4と同等のものについては説明を省略する。101はメモリ制御回路、105は、処理回路からのリクエストを優先順位により判定する優先順位判定回路、108は選択されたリクエストにより連続性を検出する連続性検出回路、109〜112はリクエスト信号の入力を制御するANDゲート、113及び114は値を反転するインバーターである。
【0015】
図1におけるリクエスト連続性検出回路108の詳細図を図5に示す。図5の501、502はリクエストの選択連続回数をカウントするカウンタで該当する処理回路のリクエストが選択されて許可信号が出力される毎にインクリメントされ、非選択時にリセットされる。503は、連続回数を所定回数(N:自然数)に設定する所定回数設定回路、504及び505は、それぞれのカウンタ値と所定回数との比較を行い、カウンタ値が所定回数Nより1差し引いた値(N−1)に達した際に連続性検出信号を出力する比較器である。
【0016】
所定回数設定回路503に設定される値が”2”の場合、一方のリクエストが選択されて許可信号が出力されれば“Hi”、次のリクエスト取込タイミングで“Low”に戻る連続性検出信号を生成して出力する。
【0017】
以下、第1の実施例であるメモリ制御装置における動作について図6のタイミング図を用いて説明する。図6の連続性−A、連続性−Bはそれぞれ処理回路A、処理回路Bにおけるリクエスト連続性検出信号(“Hi”Active)である。その他は図3と同等とする。
【0018】
ここで、本実施例では、連続性検出信号を用いて、リクエストの優先順位を、REQ−A(連続性検出信号”Low”)、REQ−B(連続性検出信号”Low”)、REQ−A(連続性検出信号”Hi”)、REQ−B(連続性検出信号”Hi”)とする。
【0019】
所定回数連続するリクエストREQ−AはリクエストREQ−Bよりも更に低い優先順位であるため、リクエストREQ−Aの終了を待たなくてもリクエスト連続性検出信号を用いて所定の割合で下位の優先順位を持つ処理回路Bのリクエスト(REQ−B)に対してアクセス要求許可することが可能となる。
【0020】
より具体的に説明すると、図6に示すように同時に2つのリクエスト(REQ−A,REQ−B)が出力された場合、最初の取込タイミングでは優先順位判定回路105は優先順位上位である処理回路Aのリクエストを選択し、許可信号生成手段106は処理回路Aに対して許可信号ACK−Aを出力する。しかし、次の取込タイミングでは、REQ−Aは出力されたままであるものの、連続性検出回路108で生成された連続性検出信号が出力されているために、処理回路Aによるリクエストは処理回路Bのリクエストの優先順位より下位となり、優先順位判定回路105は処理回路Bのリクエストを選択し、許可信号生成手段106は処理回路Bに対して許可信号ACK−Bを出力する。なお、REQ−Aが連続出力されている場合であっても、REQ−Bが出力されていない場合は、REQ−Aが連続して許可されるため、処理回路Aは連続してメモリアクセスができる。
【0021】
図2は、本発明の第1の実施例であるメモリ制御装置を光ディスク記録再生装置に適用した構成を示すブロック図である。201はディスクであり、202はディスク201のデータ記録/再生を行うピックアップ、203はディスク201を回転させるスピンドルモータ、204はディスク201より得られたアナログ再生信号の波形等価処理等のアナログ処理を行うAFE(Analog Flont End)、205はデータの2値化及び同期クロック生成を行うRD−CH(Read Channel)、206はドライブ機構におけるサーボ制御処理を行うサーボ、207はディスクより読まれたデジタルデータに復調処理、誤り訂正処理、出スクランブル処理を行うデーコード回路、208は入力されたデータにスクランブル処理、誤り訂正符号付加、変調処理を施して記録データを生成するエンコード回路、209はLDD(Laser Diode Driver)、210は、外部ホスト(例えばパソコン)、211はホスト210からの入出力データを扱うI/F(Interface)、212はシステムを統括するマイコンである。
【0022】
図2のような記録再生装置において、記録再生時におけるデータデコード/エンコード処理、ホストへの入出力データの格納時にはメモリ102が用いられ、各処理のメモリアクセスの調停をメモリ制御回路101が行う。高速処理時には、データデコード/エンコード処理における複数の演算処理によるメモリアクセス、ホストへの入出力におけるメモリアクセスが増大するが、第1の実施例で説明したメモリ制御回路101を用いることで、効率よくメモリアクセスが可能となり高速処理が実現できる。
【0023】
以上により第1の実施例では、優先順位変更信号(本実施例では、連続性検出信号)により優先順位を変更することで、高速処理に対応可能な効率よいメモリ制御が容易に実現できる。また、処理回路として下位優先順位のアクセスを考慮する必要がないため、出力するリクエスト信号の生成も容易となる。
【0024】
ここで、本実施例に対応する装置の構成は、従来のメモリ制御装置に、優先順位変更信号生成回路、および、ANDゲートやインバーターを加えた構成であるため、大幅な回路変更、大規模な回路増加を行うことなく実現できる。また、リクエスト取込タイミングとしては、一定周期により行っていたが、無選択時には続けて取り込みタイミングを生成する可変周期においても同様に構成可能である。
【0025】
なお、本実施例ではリクエストの優先順位の変更のための連続リクエスト回数を「2」としたが、本発明はこれに限られるものではなく、1を除く適切な自然数を設定することができる。また、処理回路が2つである例を示し発明を説明したが、処理回路の数はこれに限られるものではなく適切な数を選択可能である。
【0026】
N(自然数)個の処理回路における優先順位として、1番目の処理回路のREQ(連続性検出信号”Low”)、‥、N番目の処理回路のREQ(連続性検出信号”Low”)、1番目の処理回路のREQ(連続性検出信号”Hi”)、‥、N番目の処理回路のREQ(連続性検出信号”Hi”)で構成される。また、本実施例ではすべての処理回路に対応する連続性検出信号を用いて説明したが、適切な数の処理回路に対して優先順位最下位の処理回路に対応する連続性検出信号は使用しなくても同様に構成可能である。N(自然数)個の処理回路における優先順位として、1番目の処理回路のREQ(連続性検出信号”Low”)、‥、(N−1)番目の処理回路のREQ(連続性検出信号”Low”)、N番目の処理回路のREQ、1番目の処理回路のREQ(連続性検出信号”Hi”)、‥、(N−1)番目の処理回路のREQ(連続性検出信号”Hi”)で構成される。
【0027】
図7は、本発明の第2の実施例であるメモリ制御装置の構成を示すブロック図である。701はメモリ制御回路、702、703は各々のリクエスト許可信号(ACK)をクロックにより1回ラッチするフリップフロップ(FF)である。図1と同等のものについては説明を省略する。
【0028】
以下、第2の実施例であるメモリ制御装置における動作について図8のタイミング図を用いて説明する。図8における1ラッチは、それぞれACK−A、ACK−Bのアクセス許可信号をクロックにより1回ラッチした信号である。その他は図6と同等とする。
【0029】
各処理信号へのリクエスト許可信号をフリップフロップによりラッチしてタイミング調整して2回連続性検出信号の代替として用い、リクエスト信号と組み合わせることにより、一つの処理回路のリクエストに対して優先順位の変更が容易に実現できる。
【0030】
本実施例では、リクエストの優先順位を、処理回路Aのリクエスト1回目、処理回路Bのリクエスト1回目、処理回路Aのリクエスト連続2回目、処理回路Bのリクエスト連続2回目、の順番とする。
【0031】
よって、優先順位上位の処理回路Aのリクエスト(REQ−A)により複数回アクセスする場合に、所定回数(図では2回)行うまでリクエスト出力を終了しなくても、2回に1回は下位の優先順位を持つ処理回路Bのリクエスト(REQ−B)に対してアクセス要求許可を配分することが容易となる。
【0032】
以上により第2の実施例では、優先順位変更信号(本実施例では、許可信号)により優先順位を変更することで、高速処理に対応可能な効率よいメモリ制御が容易に実現できる。また、処理回路として下位優先順位のアクセスを考慮する必要がないため、出力するリクエスト信号の生成も容易となる。更に本実施例では、2回連続の連続性の検出回路を持つメモリ制御装置として限定すれば、新規に切り替え信号を生成する回路を追加する必要もなく許可信号をタイミング調整するだけで対応できるため、第1の実施例に比べて簡単な構成で実現できる。
【0033】
図9は、本発明の第3の実施例であるメモリ制御装置の構成を示すブロック図である。901はメモリ制御回路、902は外部マイコン、903は外部マイコン902による設定により優先順位の切り替え信号を生成する回路である。図1と同等のものについては説明を省略する。
【0034】
以下、第3の実施例であるメモリ制御装置における動作について図10のタイミング図を用いて説明する。図10における切り替え信号−A、切り替え信号−Bはそれぞれ処理回路A、処理回路Bに対応する切り替え信号であり、マイコン902で任意に設定できるものとする。リクエスト信号とマイコンから設定可能な切り替え信号と組み合わせることにより、一つの処理回路のリクエストに対して優先順位変更が容易に実現できる。これにより優先順位の変更を外部マイコンにより制御可能となり、本来優先順位上位の処理回路の優先順位を一時的に下位に下げることが可能となる。
【0035】
本実施例では、図10に見られるように、通常時の切り替え信号を全ての処理回路に対して”Low”とすれば、優先順位としては1番、2番が有効となり、処理回路A、処理回路Bの順番の優先順位として制御される。そこで、優先順位上位の処理回路Aに対する切り替え信号のみ”Hi”とすれば、優先順位としては2番、3番が有効となるため、処理回路B、処理回路Aの順番の優先順位のシステムとして変更可能である。
【0036】
以上により第3の実施例では、優先順位をある程度変更可能なメモリ制御回路を大幅な回路変更、大規模な回路増加を行うことなく実現できる。
【0037】
【発明の効果】
以上説明したように、本発明のメモリ制御装置では、下位優先順位の処理回路のメモリアクセス要求へのアクセス権を適切に配分することができ、効率よいメモリアクセスが可能となる。
【図面の簡単な説明】
【図1】本発明の第1の実施例であるメモリ制御装置の構成を示すブロック図
【図2】本発明の第1の実施例であるメモリ制御装置を用いた光ディスク記録再生装置の構成を示すブロック図
【図3】処理回路からのリクエストとメモリ制御回路からの許可信号とのタイミング図
【図4】従来のメモリ制御装置の構成を示すブロック図
【図5】本発明の第1の実施例であるメモリ制御装置におけるリクエスト連続性検出回路の詳細図
【図6】本発明の第1の実施例での連続アクセス処理時の処理回路からのリクエストとメモリ制御回路からの許可信号とのタイミング図
【図7】本発明の第2の実施例であるメモリ制御装置の構成を示すブロック図
【図8】本発明の第2の実施例での連続アクセス処理時の処理回路からのリクエストとメモリ制御回路からの許可信号とのタイミング図
【図9】本発明の第3の実施例であるメモリ制御装置の構成を示すブロック図
【図10】本発明の第3の実施例での連続アクセス処理時の処理回路からのリクエストとメモリ制御回路からの許可信号とのタイミング図
【符号の説明】
101…メモリ制御回路、102…メモリ、103…処理回路A、104…処理回路B、105…優先順位判定回路、106…許可信号生成回路、107…コマンド生成回路、108…リクエスト連続性検出回路、109…ANDゲート、110…ANDゲート、111…ANDゲート、112…ANDゲート、113…インバーター、114…インバーター、201…光ディスク、202…ピックアップ、203…スピンドルモータ、204…AFE、205…RD−CH、206…サーボ、207…デコード回路、208…エンコード回路、209…LDD、210…ホスト、211…I/F、212…マイコン、401…メモリ制御回路、405…優先順位判定回路、501…カウンタA、502…カウンタB、503…所定回数設定回路、504…比較器A、505…比較器B、701…メモリ制御回路、702…フリップフロップ、703…フリップフロップ、901…メモリ制御回路、902…マイコン、903…切り替え信号生成回路
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a memory control device and method for controlling access to a memory used for data processing.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, data processing such as error correction has been performed using a memory in recording and reproduction processing of a medium such as an optical disk. 2. Description of the Related Art In recent years, with the trend of high-speed signal processing and high integration of circuits, a plurality of processing circuits may share one memory. At this time, arbitration of memory access is required because a plurality of processing circuits may simultaneously request access to one memory.
[0003]
As a conventional memory control method, there is a method of prioritizing each request signal in advance and granting access permission based on the priority (for example, see Patent Document 1).
[0004]
FIG. 4 shows a conventional memory control device disclosed in Patent Document 1. 401 is a memory control circuit, 102 is a memory for storing data, 103 and 104 are processing circuits A and B for accessing the memory, and 405 is the priority of a request (REQ) which is a memory access request from the processing circuit. , A permission signal generation circuit that generates a permission signal (ACK) in accordance with the selected request signal, and a command generation circuit that generates an access command to the memory 102. Here, it is assumed that the processing circuits A and B have the request priority in order.
[0005]
The operation of the conventional circuit of FIG. 4 will be described with reference to FIG. 3, which is a timing chart of a request from the processing circuit and a permission signal from the memory control circuit. REQ-A is a request signal (“Hi” Active) which is a memory access request from the processing circuit A, and ACK-A is an access permission signal (“Hi” Active) to the processing circuit A. REQ-B is a request signal (“Hi” Active) which is a memory access request from the processing circuit B, and ACK-B is an access permission signal (“Hi” Active) to the processing circuit B.
[0006]
The memory access in FIG. 3 indicates a processing circuit accessing the memory, and the REQ selection indicates a timing for detecting the REQ (indicated by a triangle in FIG. 3). The priority determination circuit 405 detects REQ-A or REQ-B at a certain period of capture timing, and when both REQ signals are detected, selects and outputs REQ-A having a higher priority and permits The signal generation circuit 106 permits the memory access to the processing circuit A. When only one of the REQ signals is detected, the permission signal generation circuit 406 permits memory access to the processing circuit corresponding to the detected REQ signal. In addition, the memory control circuit 401 that has received the request generates a predetermined command and address, outputs the command and address to the memory 102, and inputs and outputs data from each processing circuit to the memory 102.
[0007]
[Patent Document 1]
Japanese Patent Application Laid-Open No. H11-65919
[Problems to be solved by the invention]
With an increase in the speed of signal processing, the number of times access requests issued from a plurality of processing circuits are duplicated also increases. Therefore, efficient memory access arbitration with few empty cycles of memory access is required.
[0009]
A problem occurring in the conventional circuit will be described with reference to FIG. As shown in the latter half of FIG. 3, when the request REQ-A is continuously output from the processing circuit A having the higher priority, the request REQ-B is output from the processing circuit B having the lower priority at the same time. Even if the request REQ-A stops, the lower-order request REQ-B cannot be accepted, and a wait state occurs in the processing circuit B.
[0010]
Therefore, in order to permit access to the lower processing circuit, the processing circuit having the higher priority temporarily stops the output of the request REQ-A for each access permission and accepts the access of the lower processing circuit. Thereafter, the output of the request REQ-A may be restarted. That is, REQ-A is output intermittently, and ACK-B based on REQ-B can be obtained during the period when REQ-A is not output.
[0011]
However, if the lower request REQ-B is not output when the output of the request REQ-A is temporarily stopped, neither of the processing circuits A and B can access the memory. Will be. Further, even if the timing of resuming the output of the request REQ-A is delayed after the end of the memory access of the processing circuit B, an empty cycle of the memory access occurs.
[0012]
[Means for Solving the Problems]
The above object has a means for detecting continuity of an access permission state for a memory access request, and changing a priority order under a continuous access condition and a non-consecutive access condition to thereby obtain a memory of a processing circuit having a lower priority order. This can be improved by distributing the access right evenly to the access request and efficiently accessing the memory without generating useless idle time.
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0014]
FIG. 1 is a block diagram showing a configuration of a memory control device according to a first embodiment of the present invention. The description of those equivalent to those in FIG. 4 is omitted. 101 is a memory control circuit, 105 is a priority determination circuit that determines a request from a processing circuit based on priority, 108 is a continuity detection circuit that detects continuity based on a selected request, and 109 to 112 are input of request signals. AND gates 113 and 114 are inverters for inverting the values.
[0015]
FIG. 5 shows a detailed diagram of the request continuity detection circuit 108 in FIG. Reference numerals 501 and 502 in FIG. 5 denote increments each time a request of a corresponding processing circuit is selected and a permission signal is output, and is reset when the request is not selected. Reference numeral 503 denotes a predetermined number setting circuit for setting the number of consecutive times to a predetermined number (N: natural number). Reference numerals 504 and 505 compare the respective counter values with the predetermined number, and decrement the counter value by one from the predetermined number N. This is a comparator that outputs a continuity detection signal when it reaches (N-1).
[0016]
When the value set in the predetermined number setting circuit 503 is "2", the continuity detection returns to "Hi" when one of the requests is selected and the permission signal is output, and returns to "Low" at the next request fetch timing. Generate and output signals.
[0017]
Hereinafter, the operation of the memory control device according to the first embodiment will be described with reference to the timing chart of FIG. In FIG. 6, continuity-A and continuity-B are request continuity detection signals (“Hi” Active) in the processing circuits A and B, respectively. Others are equivalent to FIG.
[0018]
Here, in this embodiment, using the continuity detection signal, the priority of the request is determined by REQ-A (continuity detection signal “Low”), REQ-B (continuity detection signal “Low”), REQ- A (continuity detection signal “Hi”) and REQ-B (continuity detection signal “Hi”).
[0019]
Since the request REQ-A that is repeated a predetermined number of times has a lower priority than the request REQ-B, the request REQ-A has a lower priority at a predetermined ratio using the request continuity detection signal without waiting for the end of the request REQ-A. It is possible to permit an access request for the request (REQ-B) of the processing circuit B having
[0020]
More specifically, when two requests (REQ-A, REQ-B) are output at the same time as shown in FIG. 6, at the first fetch timing, the priority determination circuit 105 performs the processing with the higher priority. The request of the circuit A is selected, and the permission signal generation means 106 outputs a permission signal ACK-A to the processing circuit A. However, at the next fetch timing, although the REQ-A is still output, the request from the processing circuit A is sent to the processing circuit B because the continuity detection signal generated by the continuity detection circuit 108 is output. , The priority determination circuit 105 selects a request from the processing circuit B, and the permission signal generation means 106 outputs a permission signal ACK-B to the processing circuit B. Note that even when REQ-A is continuously output, when REQ-B is not output, REQ-A is continuously enabled, so that the processing circuit A continuously performs memory access. it can.
[0021]
FIG. 2 is a block diagram showing a configuration in which the memory control device according to the first embodiment of the present invention is applied to an optical disk recording / reproducing device. 201 is a disk, 202 is a pickup for recording / reproducing data on the disk 201, 203 is a spindle motor for rotating the disk 201, and 204 is an analog processing such as a waveform equalization processing of an analog reproduction signal obtained from the disk 201. AFE (Analog Front End), 205 is an RD-CH (Read Channel) for binarizing data and generating a synchronous clock, 206 is a servo for performing servo control processing in a drive mechanism, and 207 is for digital data read from a disk. A decoding circuit 208 performs demodulation processing, error correction processing, and output scrambling processing. An encoding circuit 208 performs scramble processing, error correction code addition, and modulation processing on input data to generate recording data. river), 210 is an external host (e.g. a personal computer), 211 deals with input and output data from the host 210 I / F (Interface), 212 is a microcomputer which controls the system.
[0022]
In the recording / reproducing apparatus as shown in FIG. 2, the memory 102 is used when data decoding / encoding processing during recording / reproducing and when input / output data is stored in the host, and the memory control circuit 101 performs arbitration of memory access for each processing. At the time of high-speed processing, memory access by a plurality of arithmetic processing in data decoding / encoding processing and memory access in input / output to the host increase. However, by using the memory control circuit 101 described in the first embodiment, it is possible to efficiently perform the processing. Memory access becomes possible and high-speed processing can be realized.
[0023]
As described above, in the first embodiment, by changing the priority by the priority change signal (in this embodiment, the continuity detection signal), efficient memory control capable of coping with high-speed processing can be easily realized. Further, since it is not necessary for the processing circuit to consider the access of the lower priority, it is easy to generate the request signal to be output.
[0024]
Here, the configuration of the device corresponding to the present embodiment is a configuration in which a priority change signal generation circuit, an AND gate, and an inverter are added to the conventional memory control device. This can be realized without increasing the number of circuits. In addition, although the request fetch timing is performed at a fixed cycle, the same configuration can be made in a variable cycle in which the fetch timing is continuously generated when no request is selected.
[0025]
In the present embodiment, the number of consecutive requests for changing the priority of requests is set to “2”. However, the present invention is not limited to this, and an appropriate natural number other than 1 can be set. Also, the invention has been described with an example in which there are two processing circuits, but the number of processing circuits is not limited to this, and an appropriate number can be selected.
[0026]
Priority (continuity detection signal “Low”) of the first processing circuit, ‥, REQ (continuity detection signal “Low”) of the Nth processing circuit, REQ (continuity detection signal “Hi”) of the Nth processing circuit, ‥, and REQ (continuity detection signal “Hi”) of the Nth processing circuit. In this embodiment, the continuity detection signals corresponding to all the processing circuits have been described. However, the continuity detection signals corresponding to the lowest priority processing circuits are used for an appropriate number of processing circuits. A similar configuration is possible without this. Priority (continuity detection signal “Low”) of the first processing circuit, ‥, REQ (continuity detection signal “Low”) of the (N−1) th processing circuit as priority in the N (natural number) processing circuits. ), REQ of Nth processing circuit, REQ of first processing circuit (continuity detection signal “Hi”), Δ, REQ of (N−1) th processing circuit (continuity detection signal “Hi”) It consists of.
[0027]
FIG. 7 is a block diagram showing a configuration of a memory control device according to a second embodiment of the present invention. Reference numeral 701 denotes a memory control circuit, and reference numerals 702 and 703 denote flip-flops (FF) for latching each request permission signal (ACK) once by a clock. The description of the same components as those in FIG. 1 is omitted.
[0028]
Hereinafter, the operation of the memory control device according to the second embodiment will be described with reference to the timing chart of FIG. 8 is a signal obtained by latching the ACK-A and ACK-B access permission signals once by a clock. Others are equivalent to FIG.
[0029]
The request permission signal for each processing signal is latched by a flip-flop and the timing is adjusted to use it as a substitute for the continuity detection signal twice. By combining this signal with the request signal, the priority of one processing circuit request can be changed. Can be easily realized.
[0030]
In this embodiment, the priority order of the requests is the order of the first request of the processing circuit A, the first request of the processing circuit B, the second consecutive request of the processing circuit A, and the second consecutive request of the processing circuit B.
[0031]
Therefore, in the case of accessing a plurality of times by the request (REQ-A) of the processing circuit A having the higher priority, even if the request output is not completed until the predetermined number of times (two times in the figure), the request is output once every two times. , The access request permission can be easily allocated to the request (REQ-B) of the processing circuit B having the priority of (1).
[0032]
As described above, in the second embodiment, by changing the priority using the priority change signal (in this embodiment, the permission signal), efficient memory control capable of coping with high-speed processing can be easily realized. Further, since it is not necessary for the processing circuit to consider the access of the lower priority, it is easy to generate the request signal to be output. Furthermore, in the present embodiment, if the memory control device is limited to a memory control device having a continuity detection circuit for two consecutive times, it is possible to cope with it only by adjusting the timing of the permission signal without adding a new circuit for generating a switching signal. , Can be realized with a simpler configuration than in the first embodiment.
[0033]
FIG. 9 is a block diagram showing the configuration of the memory control device according to the third embodiment of the present invention. Reference numeral 901 denotes a memory control circuit; 902, an external microcomputer; and 903, a circuit for generating a priority switching signal based on settings by the external microcomputer 902. The description of the same components as those in FIG. 1 is omitted.
[0034]
Hereinafter, the operation of the memory control device according to the third embodiment will be described with reference to the timing chart of FIG. The switching signal-A and the switching signal-B in FIG. 10 are switching signals corresponding to the processing circuits A and B, respectively, and can be arbitrarily set by the microcomputer 902. By combining the request signal with a switching signal that can be set from the microcomputer, it is possible to easily change the priority of a request from one processing circuit. As a result, the change of the priority can be controlled by the external microcomputer, and the priority of the processing circuit having the higher priority can be temporarily reduced to the lower.
[0035]
In this embodiment, as shown in FIG. 10, if the normal switching signal is set to “Low” for all the processing circuits, the first and second priorities become valid, and the processing circuits A, The priority order of the processing circuit B is controlled. Therefore, if only the switching signal for the processing circuit A having the higher priority is set to “Hi”, the second and third priorities are effective, and thus the processing circuit B and the processing circuit A are arranged in a priority system. Can be changed.
[0036]
As described above, in the third embodiment, a memory control circuit capable of changing the priority order to some extent can be realized without a large circuit change and a large-scale circuit increase.
[0037]
【The invention's effect】
As described above, in the memory control device of the present invention, the right to access the memory access request of the lower priority processing circuit can be appropriately allocated, and efficient memory access can be performed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing the configuration of a memory control device according to a first embodiment of the present invention; FIG. 2 is a block diagram showing the configuration of an optical disk recording / reproducing device using the memory control device according to the first embodiment of the present invention; FIG. 3 is a timing chart of a request from a processing circuit and a permission signal from a memory control circuit. FIG. 4 is a block diagram showing a configuration of a conventional memory control device. FIG. 5 is a first embodiment of the present invention. FIG. 6 is a detailed diagram of a request continuity detection circuit in a memory control device as an example. FIG. 6 is a timing chart of a request from a processing circuit and a permission signal from the memory control circuit during a continuous access process according to the first embodiment of the present invention. FIG. 7 is a block diagram illustrating a configuration of a memory control device according to a second embodiment of the present invention. FIG. 8 is a diagram illustrating a request and a memory from a processing circuit during a continuous access process according to the second embodiment of the present invention. control FIG. 9 is a block diagram showing a configuration of a memory control device according to a third embodiment of the present invention. FIG. 10 is a diagram showing a continuous access process in the third embodiment of the present invention. Diagram of the request from the processing circuit of FIG. 1 and the permission signal from the memory control circuit
101: memory control circuit, 102: memory, 103: processing circuit A, 104: processing circuit B, 105: priority determination circuit, 106: permission signal generation circuit, 107: command generation circuit, 108: request continuity detection circuit, 109 AND gate, 110 AND gate, 111 AND gate, 112 AND gate, 113 inverter, 114 inverter, 201 optical disk, 202 pickup, 203 spindle motor, 204 AFE, 205 RD-CH , 206 servo, 207 decode circuit, 208 encode circuit, 209 LDD, 210 host, 211 I / F, 212 microcomputer, 401 memory control circuit, 405 priority determination circuit, 501 counter A , 502... Counter B, 503... Predetermined number of times setting Road, 504 ... comparator A, 505 ... comparator B, 701 ... memory controller, 702 ... flip-flop, 703 ... flip-flop, 901 ... memory controller, 902 ... microcomputer, 903 ... switching signal generating circuit

Claims (7)

所定のデータ単位で処理を行う複数の処理手段と、
該処理手段が対象とする処理データを一時記憶するメモリと、
該メモリと前記複数の処理手段との間のデータ入出力制御を優先順位に基づいて行う制御手段と、
前記処理手段による前記メモリへの連続アクセス回数を検出する連続アクセス検出手段と、
を具備することを特徴とするメモリ制御装置。
A plurality of processing means for performing processing in a predetermined data unit,
A memory for temporarily storing processing data targeted by the processing means,
Control means for performing data input / output control between the memory and the plurality of processing means based on priority;
Continuous access detection means for detecting the number of continuous accesses to the memory by the processing means,
A memory control device comprising:
請求項1記載のメモリ制御装置において、
前記連続アクセス検出手段は、前記各処理手段毎に連続アクセス検出信号を独立して生成し、該当する処理手段が所定単位毎に前記メモリへ所定のデータ単位でアクセスする毎にアクセス数をインクリメントするカウント手段を具備することを特徴とするメモリ制御装置。
The memory control device according to claim 1,
The continuous access detection means independently generates a continuous access detection signal for each processing means, and increments the number of accesses each time the corresponding processing means accesses the memory in predetermined data units for each predetermined unit. A memory control device comprising counting means.
請求項1または2記載のメモリ制御装置において、
前記連続アクセス検出手段は、前記何れかの処理手段による前記メモリへの連続アクセス数が所定回数に達したときに連続アクセス検出信号を出力することを特徴とするメモリ制御装置。
The memory control device according to claim 1 or 2,
The memory control device according to claim 1, wherein said continuous access detection means outputs a continuous access detection signal when the number of continuous accesses to said memory by any of said processing means reaches a predetermined number.
請求項1記載のメモリ制御装置において、
前記制御手段は、各処理手段からのメモリへのアクセス要求に対して、連続アクセス検出時と未検出時とでアクセス要求の優先順位を変更することによりアクセス可能な処理手段を判定する優先順位判定手段を具備することを特徴とするメモリ制御装置。
The memory control device according to claim 1,
The control means determines a processing means that can access the memory access request from each processing means by changing a priority of the access request between a continuous access detection time and a non-detection time. A memory control device comprising means.
処理対象データを一時的に蓄えるメモリと、
前記メモリから取得したデータに対し第1の信号処理を行う第1の処理手段と、
前記メモリから取得したデータに対し第2の信号処理を行う第2の処理手段と、
前記第1の処理手段、または、前記第2の処理手段から出力されるメモリへのアクセス要求信号の何れかのアクセス要求信号を優先順位に基づき選択する選択手段と、
該選択手段にて選択されたアクセス要求信号を出力した処理手段に対し前記メモリへのアクセスを許可するメモリアクセス許可手段と、
前記第1のメモリアクセス要求信号の連続する回数をカウントするカウンタと、を具備しており、
前記カウンタが所定回数連続して第1のメモリアクセス要求信号をカウントしたときは前記第1のメモリアクセス要求信号の優先順位と前記第2のメモリアクセス要求信号の優先順位を変更することを特徴とするメモリ管理装置。
A memory for temporarily storing data to be processed,
First processing means for performing first signal processing on data obtained from the memory;
Second processing means for performing a second signal processing on the data obtained from the memory;
Selecting means for selecting any one of the access request signals to the memory output from the first processing means or the memory output from the second processing means based on the priority order;
Memory access permitting means for permitting the processing means that has output the access request signal selected by the selecting means to access the memory;
A counter that counts the number of consecutive times of the first memory access request signal,
When the counter counts the first memory access request signal continuously for a predetermined number of times, the priority of the first memory access request signal and the priority of the second memory access request signal are changed. Memory management device.
処理対象データを一時的に蓄えるメモリと、該メモリから取得したデータに対し信号処理を行う処理手段を複数、有する装置におけるメモリ制御方法であって、
前記複数の処理手段の各々が前記メモリにアクセスするときに出力する各々のアクセス要求に対する優先順位を、何れかの処理手段が前記メモリに所定回数(2以上の整数回数)連続アクセスした場合に変更することを特徴とするメモリ制御方法。
A memory control method in an apparatus having a memory for temporarily storing data to be processed and a plurality of processing means for performing signal processing on data obtained from the memory,
A priority order for each access request output when each of the plurality of processing units accesses the memory is changed when any processing unit continuously accesses the memory a predetermined number of times (an integer number of 2 or more). A memory control method.
処理対象データを一時的に蓄えるメモリと、該メモリから取得したデータに対し信号処理を行う処理手段を複数、有する装置におけるメモリ制御方法であって、
前記複数の処理手段の各々が前記メモリにアクセスするときに出力する各々のアクセス要求に対する優先順位を、外部からの優先順位変更信号に基づき変更することを特徴とするメモリ制御方法。
A memory control method in an apparatus having a memory for temporarily storing data to be processed and a plurality of processing means for performing signal processing on data obtained from the memory,
A memory control method, wherein priority of each access request output when each of the plurality of processing units accesses the memory is changed based on a priority change signal from outside.
JP2003097581A 2003-04-01 2003-04-01 Memory control device and method Pending JP2004303118A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003097581A JP2004303118A (en) 2003-04-01 2003-04-01 Memory control device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003097581A JP2004303118A (en) 2003-04-01 2003-04-01 Memory control device and method

Publications (1)

Publication Number Publication Date
JP2004303118A true JP2004303118A (en) 2004-10-28

Family

ID=33409326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003097581A Pending JP2004303118A (en) 2003-04-01 2003-04-01 Memory control device and method

Country Status (1)

Country Link
JP (1) JP2004303118A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013156908A (en) * 2012-01-31 2013-08-15 Fujitsu Ltd Connection device, storage device, connection request transmission control method and connection request transmission control program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013156908A (en) * 2012-01-31 2013-08-15 Fujitsu Ltd Connection device, storage device, connection request transmission control method and connection request transmission control program

Similar Documents

Publication Publication Date Title
US7555201B2 (en) Optical disc player system and method of controlling a decoding unit in the optical disc player system to read encoded bitstream data from a buffer memory
JP2011113119A (en) Device, method, and program for memory sharing between data flow and processor
JP2004303118A (en) Memory control device and method
JPH1097492A (en) Device and method for priority control for memory access
JP2008033896A (en) Bus system
JP4081843B2 (en) Memory control device
JP4384387B2 (en) Optical disk device
KR100218109B1 (en) Device for processing time code for simultaneous recording and reproducing in a video recording and reproducing device
JP2837698B2 (en) Direct memory access controller
JP2006309530A (en) Bus arbitration circuit
JP2006059303A (en) Computer system
KR100246459B1 (en) Device and method for fast-controlling interface of dram
JP4371486B2 (en) Arbitration circuit and recording medium device incorporating the same
JP3996982B2 (en) Processor
US20030046506A1 (en) Dynamic access control of a function to a collective resource
JPH0683756A (en) Data processor
JP2002319233A (en) Recording and reproducing device for digital signal
JP5125296B2 (en) Transfer amount control device
JPH11242647A (en) Information processor
JP2005050428A (en) Error correction device
JP2959446B2 (en) Memory monitoring circuit
KR100209627B1 (en) Access apparatus of cd-rom memory decoder
JP2000148657A (en) Dma controller
JP2007316805A (en) Semiconductor integrated circuit
JP2005141341A (en) Memory control unit and memory control method