JP3691340B2 - Memory access control circuit - Google Patents
Memory access control circuit Download PDFInfo
- Publication number
- JP3691340B2 JP3691340B2 JP2000137508A JP2000137508A JP3691340B2 JP 3691340 B2 JP3691340 B2 JP 3691340B2 JP 2000137508 A JP2000137508 A JP 2000137508A JP 2000137508 A JP2000137508 A JP 2000137508A JP 3691340 B2 JP3691340 B2 JP 3691340B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- data
- memory
- read
- control circuit
- 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
Description
【0001】
【産業上の利用分野】
この発明は、メモリアクセス制御回路に関し、特にたとえば着脱可能な記録媒体に設けられたコントローラを通して同じ記録媒体内のメモリにアクセスする、メモリアクセス制御回路に関する。
【0002】
【従来の技術】
電子機器に離脱可能に装着できる記録媒体としては、コンパクトフラッシュのように、媒体内に設けられたコントローラを通して半導体メモリへのアクセスを行うものがある。ここで、コントローラのアクセス速度は、メモリの容量が大きくなるにつれて高速化する傾向がある。つまり、技術の進歩によって半導体メモリの大容量化が実現されると、コントローラのアクセス速度も技術の進歩によって高速化される。このような記録媒体にアクセスするとき、従来技術では、容量の小さな記録媒体が装着されたときでも確実にアクセス処理を行えるように、コントローラに与えるアクセス制御信号のアクティブ期間を長めに設定していた。
【0003】
【発明が解決しようとする課題】
しかし、アクセス制御信号のアクティブ期間を長めに設定することで、コントローラの性能を十分に発揮させることができないという問題があった。
【0004】
それゆえに、この発明の主たる目的は、記録媒体内に設けられたコントローラの性能を十分に発揮させることができる、メモリアクセス制御回路を提供することである。
【0005】
【課題を解決するための手段】
この発明に従うメモリアクセス制御回路は、容量値データを含むデータを格納するメモリとコントローラとを備える記録媒体が装着されたときコントローラに読み出し制御信号を与えてメモリから所望のデータを読み出すメモリアクセス制御回路において、メモリに格納された容量値データを読み出すべく読み出し制御信号のアクティブ期間を所定期間に設定する第1設定手段、第1設定手段の設定動作に関連して読み出された容量値データに基づいてメモリの容量を検出する検出手段、検出手段によって検出された容量が閾値以下のとき所定期間を読み出し制御信号のアクティブ期間として有効化する第1有効化手段、検出手段によって検出された容量が閾値を上回るとき読み出し制御信号のアクティブ期間を互いに異なる複数の期間に設定する第2設定手段、第2設定手段の設定動作に関連してメモリから読み出されたデータが正当であるか否かを判別する判別手段、および判別手段の判別結果に基づいてメモリからデータを正当に読み出すことができる最短のアクティブ期間を有効化する第2有効化手段を備え、第2設定手段によって設定される複数の期間の各々は所定期間よりも短いことを特徴とする。
【0006】
【作用】
記録媒体は、容量値データを含むデータを格納するメモリとコントローラとを備える。コントローラに読み出し制御信号を与えてメモリから所望のデータを読み出す動作は、かかる記録媒体が装着されたときに実行される。第1設定手段は、メモリに格納された容量値データを読み出すべく、読み出し制御信号のアクティブ期間を所定期間に設定する。メモリの容量は、第1設定手段の設定動作に関連して読み出された容量値データに基づいて、検出手段によって検出される。検出手段によって検出された容量が閾値以下であれば、第1有効化手段が所定期間を読み出し制御信号のアクティブ期間として有効化する。検出手段によって検出された容量が閾値を上回れば、読み出し制御信号のアクティブ期間は、第2設定手段によって互いに異なる複数の期間に設定される。判別手段は、第2設定手段の設定動作に関連してメモリから読み出されたデータが正当であるか否かを判別する。第2有効化手段は、判別手段の判別結果に基づいて、メモリからデータを正当に読み出すことができる最短のアクティブ期間を有効化する。ここで、第2設定手段によって設定される複数の期間の各々は、所定期間よりも短い。
【0007】
このように、互いにアクティブ期間の異なる複数の読み出し制御信号によって読み出されたデータの正当性が判別され、データを正当に読み出すことができる最短のアクティブ期間が有効化されるため、コントローラの性能が最大限に発揮される。
【0008】
この発明のある例では、メモリは記録媒体間で共通する共通データを格納し、第2設定手段の設定動作に関連して注目される読み出し制御信号は共通データの格納先のアドレス情報を含み、判別手段はメモリから読み出された共通データが所定値を示すか否かを判別する。
【0011】
【発明の効果】
この発明によれば、記録媒体が備えるコントローラの性能を最大限に発揮させることができる。
【0012】
この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。
【0013】
【実施例】
図1を参照して、この実施例のデータ処理装置10は、同期バス方式のCPU12を含む。CPU12は、データバス14を介してカメラASIC16および双方向バッファ20と接続される。メモリカード22は、スロット24に装着されたとき、双方向バッファ20と接続される。メモリカード22にはコントローラ22aおよびメモリ22bが設けられ、コントローラ22aが双方向バッファ20と接続される。このため、メモリ22bへのアクセスはコントローラ22aを通して行なわれる。なお、メモリカード22は、PCMCIAフォーマットに対応するコンパクトフラッシュのような記録媒体であり、着脱自在にスロット24に保持される。
【0014】
メモリカード22からデータを読み出すとき、CPU12は、アドレスストローブ信号(AS信号),チップセレクト信号(CS信号),アクセス内容を識別するR/W信号およびアドレス信号を出力する。このうち、AS信号,CS信号およびR/W信号はカメラASIC16に設けられたメモリ制御回路18に与えられ、アドレス信号はメモリカード22に与えられる。メモリ制御回路18は、入力された信号に応答して、双方向バッファ20の制御信号(Wc0信号,Wc1信号),CS信号およびアウトプットイネーブル信号(We信号)を発生する。これによって、メモリ22bの所望のアドレスからデータ信号が読み出され、読み出されたデータ信号が双方向バッファ20およびバス14を介してCPU12に出力される。なお、カメラASIC16は、データ信号がCPU12に与えられるタイミングで、READY信号を自らCPU12に出力する。
【0015】
CPU12は、具体的には、図2に示すフロー図を処理する。まずメモリカード22がスロット24に装着されたかどうかをステップS1で判断し、装着されていなければステップS3でディスプレイ(図示せず)に警告を表示する。一方、メモリカード22が装着されていれば、ステップS5でアクセス時間を最大値に設定する。具体的には、自ら出力するCS信号,R/W信号およびアドレス信号のアクティブ期間を最大値に設定するとともに、カメラASIC16に制御信号を与えてWc0信号,Wc1信号,CS信号およびWe信号のアクティブ期間を最大値に設定する。
【0016】
ステップS7では、AS信号,CS信号および“読み出し”を示すR/W信号をカメラASIC16に与えるとともに、IDデータ信号の格納アドレスを示すアドレス信号をメモリカード22に与える。メモリカード22に設けられたコントローラ22aには、アクティブ期間が最大値に設定されたCS信号,We信号およびアドレス信号が与えられ、これによってメモリ22bのID格納アドレスからIDデータ信号が読み出される。ステップS9では、読み出されたIDデータ信号からメモリ22bの容量値を検出する。つまり、IDデータ信号は、型式番号のようないずれのメモリカードにも共通する共通データならびに容量値を示す容量値データを有しており、ステップS9ではIDデータ信号から容量値データを検出する。
【0017】
ステップS11では、検出された容量値データに基づいてメモリ22bの容量値が所定値(たとえば8Mバイト)よりも大きいかどうか判断する。容量値≦所定値であれば、そのままステップS23における所望データ信号のアクセス処理に移行する。つまり、ステップS11におけるNOの判断によって、最大アクティブ期間が最適アクティブ期間(最大アクセス時間)として決定される。この結果、ステップS23ではアクティブ期間が最大となるCS信号,We信号およびアドレス信号がメモリカード22に与えられ、アクセス処理は最大アクセス時間をかけて行われる。
【0018】
一方、ステップS11で容量値>所定値と判断されると、ステップS13でアクセス時間を1ステップ短縮する。つまり、自ら出力するCS信号,R/W信号およびアドレス信号のアクティブ期間ならびにメモリ制御回路18から出力されるWc0信号,Wc1信号,CS信号およびWe信号のアクティブ期間を、現時点よりも1ステップ短い期間に設定する。ステップS15では、アクティブ期間が再設定された各種信号によってステップS7と同じ要領でメモリカード22にアクセスし、メモリ22bからIDデータ信号を読み出す。
【0019】
ステップS17では読み出されたIDデータ信号から共通データを検出し、続くステップS19では検出された共通データ値を所定値と比較してIDデータ信号が正当であるかどうかを判別する。ここで共通データ値が所定値を示せば、IDデータ信号は適切に読み出されたとみなして(IDデータ信号は正当であるとみなして)ステップS13に戻る。ステップS13に戻る結果、アクセス時間はさらに1ステップ短縮され、短縮されたアクセス時間で再度IDデータ信号が読み出される。
【0020】
アクセス時間が短縮された結果、IDデータ信号が適切に読み出されず、共通データ値が所定値と異なる値を示すと、ステップS19でNO(読み出されたIDデータ信号は不当)と判断される。このときは、ステップS21でアクセス時間を1ステップ延長する。つまり、自ら出力するCS信号,R/W信号およびアドレス信号のアクティブ期間ならびにメモリ制御回路18から出力されるWc0信号,Wc1信号,CS信号およびWe信号のアクティブ期間を、IDデータ信号が適切に読み出される最短の期間に設定する。これによって、IDデータ信号を適切に読み出すことができる最短アクティブ期間が、最適アクティブ期間として決定される。最適アクティブ期間が決定されると、ステップS23で所望のデータ信号のアクセス処理を実行する。
【0021】
メモリ制御回路18は、詳しくは図3に示すように構成される。また、最大アクセス時間をかけてIDデータ信号をメモリカード22から読み出すとき、CPU12およびメモリ制御回路18は図4に示すタイミングで動作する。
【0022】
AS信号,CS信号,アドレス信号および“読み出し”を示すR/W信号は、図4(B)〜図4(E)に示すタイミングでCPU12から出力される。AS信号およびCS信号は、いずれもアクティブローの信号である。アクセス開始回路24は、AS信号,CS信号およびR/W信号を受け、AS信号の立ち上がりに応答して、図4(F)に示すCS信号および図4(G)に示すアクセス制御窓信号(Wa信号)を出力する。CS信号およびWa信号もまたアクティブローの信号であり、かつラッチ回路26で図4(A)に示すクロックに同期される。CS信号はコントローラ22aに与えられ、Wa信号はアクセス制御用のカウンタ28に与えられ、これによって両者がアクティブにされる。なお、メモリ22bの読み出し先アドレス(ID格納アドレス)は、CPU12から直接与えられるアドレス信号によって特定される。
【0023】
カウンタ28のカウント値(Wb信号)は、クロックに応答して図4(H)に示すようにインクリメントされる。このようなカウント値が、OE制御回路30,双方向バッファ制御回路32,出力バッファ制御回路34,データラッチ制御回路36およびREADY制御回路38に与えられる。OE制御回路30は、カウント値が“1”〜“5”をとるときアウトプットイネーブル信号(We信号)を生成し、このWe信号はラッチ回路40を経て図4(K)に示すタイミングで出力される。また、双方向バッファ制御回路32は、カウント値が“0”〜“5”をとるとき制御信号(Wc0信号、Wc1信号)を生成し、これらの信号もまたラッチ回路42を経て図4(I)に示すタイミングで出力される。さらに、出力バッファ制御回路34は、カウント値が“6”〜“7”をとるとき制御信号(Wd信号)を生成し、このWd信号も図4(J)に示すタイミングで出力される。さらにまた、データラッチ制御回路36は、カウント値が“6”をとるとき図4(M)に示す制御信号(Wf信号)を生成する。また、READY制御回路38は、カウント値が“7”をとるときREADY信号を生成し、このREADY信号はラッチ回路46を介して図4(P)に示すタイミングで出力される。
【0024】
つまり、アクティブローの信号であるWc0信号,Wc1信号,Wd信号,We信号およびREADY信号は、ラッチ回路40〜46によって1クロック遅延される。一方、アクティブハイのWf信号は、遅延することなくそのまま出力される。
【0025】
ラッチ回路40から出力されたWe信号は、コントローラ22aに与えられる。上述のように、We信号はアクティブローのアウトプットイネーブル信号であるため、この信号がローレベルとなる期間に、コントローラ22aがメモリ22bからIDデータ信号を読み出す。IDデータ信号は、We信号が立ち上がった後もわずかな期間だけホールドされ、IDデータ信号の読み出しタイミングは図4(L)のように表される。一方、ラッチ回路42から出力されたWc0信号およびWc1信号は、双方向バッファ20に与えられる。Wc0信号によって双方向バッファ20に電源が投入され、Wc1信号によって、バッファ20aが不能化されるとともにバッファ20bが能動化される。したがって、図4に示す期間Aだけ、メモリカード22側からデータバス14側へのデータ転送が可能となる。この結果、読み出されたIDデータ信号(データDa)は、図4(O)に示すタイミングで双方向バッファ20およびデータバス14を通過し、メモリ制御回路18に入力される。
【0026】
データDaは、バッファ48を通してラッチ回路50に与えられ、データラッチ制御回路36から出力されたWf信号の立ち上がり期間におけるクロックの立ち上がりでラッチされる。つまり、データDaは、カウント値が“7”になった時点でラッチされる。ラッチされたIDデータ信号をDbとすると、このデータDbは、図4(N)に示すタイミングでラッチ回路50から出力され、選択回路52を介してバッファ54に入力される。バッファ54は、ラッチ回路44から出力されるWd信号によって図4に示す期間Bに能動化され、この期間BだけデータDbをデータバス14に出力する。この結果、データバス14上を転送されるIDデータ信号は、図4(O)に示すタイミングでDaからDbに切り換えられる。
【0027】
ラッチ回路46からは、カウント値が“8”になったときにREADY信号が出力される。このREADY信号は、CPU12の他にアクセス開始回路24およびカウンタ28にも与えられる。アクセス開始回路24は、READY信号の立ち上がりで不能化され、これによってCS信号およびWa信号の出力が中止される。また、カウンタ28は、READY信号の立ち上がりでリセットされる。この結果、コントローラ22aはデータDaがラッチされてから2クロック後に不能化される。一方、CPU12は、READY信号の入力期間におけるクロックの立ち上がりでデータDbを取り込み、READY信号の立ち上がりでAS信号、CS信号、R/W信号およびアドレス信号の出力を中止する。
【0028】
アクセス時間が1ステップ短縮されたとき、CPU12およびメモリ制御回路18は図5に示すタイミングで動作する。
【0029】
AS信号,CS信号,アドレス信号およびR/W信号は、図5(B)〜図5(E)に示すタイミングでCPU12から出力される。ここで、CS信号,アドレス信号およびR/W信号のアクティブ期間は、図4(B)〜図4(E)と比較して1クロック期間短い。アクセス開始回路24は、AS信号の立ち上がりに応答して図5(F)に示すCS信号および図5(G)に示すWa信号を出力する。CS信号およびWa信号もまた、図4(F)および図4(G)と比較して1クロック期間短い。
【0030】
カウンタ28のカウント値(Wb信号)は、図5(H)に示すタイミングでインクリメントされる。OE制御回路30は、カウント値が“1”〜“4”をとるときWe信号を生成し、このWe信号はラッチ回路40を経て図5(K)に示すタイミングで出力される。また、双方向バッファ制御回路32は、カウント値が“0”〜“4”をとるときWc0信号およびWc1信号を生成し、これらの信号もまたラッチ回路42を経て図5(I)に示すタイミングで出力される。さらに、出力バッファ制御回路34は、カウント値が“5”〜“6”をとるときWd信号を生成し、このWd信号も図5(J)に示すタイミングで出力される。さらにまた、データラッチ制御回路36は、カウント値が“5”をとるとき図5(M)に示すWf信号を生成する。また、READY制御回路38は、カウント値が“6”をとるときREADY信号を生成し、このREADY信号はラッチ回路46を介して図5(P)に示すタイミングで出力される。
【0031】
つまり、Wc0信号,Wc1信号およびWe信号のアクティブ期間は、図4(I)および図4(K)と比較して1クロック分短縮される。Wd信号,Wf信号およびREADY信号については、アクティブとなるタイミングが1クロック期間進められる。
【0032】
コントローラ22aは、IDデータ信号を図5(L)に示すタイミングでメモリ22bから読み出す。バッファ20bは、Wc1信号によって図5に示す期間Aに能動化される。このため、メモリ22bから読み出されたIDデータ信号(データDa)は、図5(O)に示すタイミングで双方向バッファ20およびデータバス14を通過し、メモリ制御回路18に入力される。データDaは、バッファ48を通してラッチ回路50に与えられ、Wf信号の立ち上がり期間におけるクロックの立ち上がりでラッチされる。つまり、データDaは、カウント値が“6”になった時点でラッチされる。ラッチされたIDデータ信号(データDb)は、図5(N)に示すタイミングでラッチ回路50から出力され、選択回路52を介してバッファ54に入力される。バッファ54は、Wd信号によって図5に示す期間Bに能動化され、この期間BだけデータDbをデータバス14に出力する。
【0033】
ラッチ回路46からは、カウント値が“7”になったときにREADY信号が出力される。アクセス開始回路24からのCS信号およびWa信号の出力は、READY信号の立ち上がりに応答して中止され、カウンタ28もまたREADY信号の立ち上がりでリセットされる。一方、CPU12は、READY信号の入力期間におけるクロックの立ち上がりでデータDbを取り込み、READY信号の立ち上がりでAS信号、CS信号、R/W信号およびアドレス信号の出力を中止する。
【0034】
アクセス時間がさらに1ステップ短縮されたとき、CPU12およびメモリ制御回路18は図6に示すタイミングで動作する。
【0035】
CPU12は、AS信号,CS信号,アドレス信号およびR/W信号を図6(B)〜図6(E)に示すタイミングで出力する。図5(B)〜図5(E)と比較すれば分かるように、CS信号,アドレス信号およびR/W信号のアクティブ期間は1クロック期間短縮されている。アクセス開始回路24は、AS信号の立ち上がりに応答して図5(6)に示すCS信号および図6(G)に示すWa信号を出力する。CS信号およびWa信号もまた、図5(F)および図5(G)と比較して1クロック期間短い。
【0036】
カウンタ28のカウント値(Wb信号)は、図6(H)に示すタイミングでインクリメントされる。OE制御回路30はカウント値が“1”〜“3”をとるときWe信号を生成し、生成されたWe信号は図6(K)に示すタイミングでラッチ回路40から出力される。また、双方向バッファ制御回路32は、カウント値が“0”〜“3”をとるときWc0信号およびWc1信号を生成し、Wc0信号およびWc1信号もまた図6(I)に示すタイミングでラッチ回路42から出力される。さらに、出力バッファ制御回路34は、カウント値が“4”〜“5”をとるときWd信号を生成し、このWd信号も図6(J)に示すタイミングでラッチ回路44から出力される。さらにまた、データラッチ制御回路36は、カウント値が“4”をとるとき図6(M)に示すWf信号を生成する。また、READY制御回路38は、カウント値が“5”をとるときREADY信号を生成し、このREADY信号は図6(P)に示すタイミングでラッチ回路46から出力される。
【0037】
このように、Wc0信号,Wc1信号およびWe信号のアクティブ期間は、図5(I)および図5(K)と比較して1クロック分短縮される。Wd信号,Wf信号およびREADY信号については、アクティブとなるタイミングが1クロック期間進められる。
【0038】
図6(K)に示すWe信号を受けたコントローラ22aは、IDデータ信号(データD)を図6(L)に示すタイミングでメモリ22bから読み出す。バッファ20bはWc1信号によって図6に示す期間Aに能動化されるため、読み出されたデータDaは、図6(O)に示すタイミングで双方向バッファ20およびデータバス14を通過し、メモリ制御回路18に入力される。データDaは、バッファ48を通してラッチ回路50に与えられ、Wf信号の立ち上がり期間におけるクロックの立ち上がりでラッチされる。つまり、データDaは、カウント値が“5”になった時点でラッチされる。ラッチされたIDデータ信号(データDb)は、図6(N)に示すタイミングでラッチ回路50から出力され、選択回路52を介してバッファ54に入力される。バッファ54は、Wd信号によって図6に示す期間Bに能動化され、この期間BだけデータDbをデータバス14に出力する。
【0039】
READY信号は、カウント値が“6”になったときにラッチ回路46から出力される。アクセス開始回路24からのCS信号およびWa信号の出力は、このREADY信号の立ち上がりに応答して中止され、カウンタ28もまたREADY信号の立ち上がりでリセットされる。一方、CPU12は、READY信号の入力期間におけるクロックの立ち上がりでデータDbを取り込み、READY信号の立ち上がりでAS信号,CS信号,R/W信号およびアドレス信号の出力を中止する。
【0040】
この実施例によれば、スロットに保持されたメモリカードからデータ信号を読み出すとき、まず最大アクティブ期間のアドレス信号,CS信号およびWe信号がコントローラに与えられ、メモリのID格納アドレスからIDデータ信号が読み出される。このIDデータ信号にはメモリの容量値(総容量値)データが含まれており、この容量値データによってメモリの容量が所定値よりも大きいかどうか判断される。そして、容量値が所定値以下であれば、最大アクティブ期間が最適アクティブ期間として決定される。つまり、最大アクティブ期間が有効化される。
【0041】
一方、容量値が所定値以上であれば、アクティブ期間が互いに異なるアドレス信号,CS信号およびWe信号によってメモリからIDデータ信号が読み出され、読み出された各々のIDデータ信号について正当性の有無が判別される。具体的には、IDデータ信号に含まれる共通データの値が所定値と比較され、共通データ値が所定値を示せばIDデータ信号は正当であると判断されるが、共通データ値が所定値を示さなければIDデータ信号は不当であると判断される。そして、正当であると判断されたIDデータ信号を読み出したときのアクティブ期間のうち、最短のアクティブ期間が最適アクティブ期間として決定される。つまり、IDデータ信号が適切に読み出される最短のアクティブ期間が有効化される。
【0042】
このように、メモリの容量が所定値以下であれば最大アクティブ期間を有効化し、メモリの容量が所定値よりも大きければデータ信号を適切に読み出すことができる最短のアクティブ期間を有効化するようにしている。このため、容量が所定値以下のメモリカードが装着されたときは、所望のデータのアクセスが可能となるまでの時間を短縮でき、容量が所定値を上回るメモリカードが装着されたときは、コントローラの機能を最大限に発揮させることができる。
【0043】
なお、この実施例では、IDデータ信号を適切に読み出すことができる最短アクティブ期間を求めるとき、アクティブ期間を1ステップずつ短縮するようにしているが、アクティブ期間を1ステップずつ延長して上述の最短アクティブ期間を求めるようにしてもよい。また、この実施例では、記録媒体としてコンパクトフラッシュを用いているが、コンパクトフラッシュの代わりにマイクロドライブやメモリスティックなどを用いてもよい。さらに、この実施例では制御信号Wc0,Wc1,Wd,We,WfおよびREADY信号の出力タイミングをカウンタによって制御するようにしたが、タイミングの制御にはカウンタ以外のステートマシンを用いてもよい。
【0044】
また、この実施例では読み出し動作についてのみ説明したが、この発明は書き込み動作についても有効である。
【図面の簡単な説明】
【図1】この発明の1実施例を示すブロック図である。
【図2】図1実施例の動作の一部を示すフロー図である。
【図3】メモリ制御回路を示すブロック図である。
【図4】図1実施例の動作の一部を示すタイミング図である。
【図5】図1実施例の動作の他の一部を示すタイミング図である。
【図6】図1実施例の動作のその他の一部を示すタイミング図である。
【符号の説明】
10 …データ処理装置
12 …CPU
14 …データバス
18 …メモリ制御回路
20 …双方向バッファ
22 …メモリカード[0001]
[Industrial application fields]
The present invention relates to a memory access control circuit, and more particularly to a memory access control circuit that accesses a memory in the same recording medium through a controller provided in a removable recording medium, for example.
[0002]
[Prior art]
As a recording medium that can be detachably attached to an electronic apparatus, there is a recording medium that accesses a semiconductor memory through a controller provided in the medium, such as a compact flash. Here, the access speed of the controller tends to increase as the memory capacity increases. In other words, when the increase in capacity of the semiconductor memory is realized by the advancement of technology, the access speed of the controller is also increased by the advancement of technology. When accessing such a recording medium, the prior art has set the active period of the access control signal to be given to the controller longer so that the access processing can be performed reliably even when a recording medium with a small capacity is loaded. .
[0003]
[Problems to be solved by the invention]
However, there is a problem that the performance of the controller cannot be exhibited sufficiently by setting the active period of the access control signal longer.
[0004]
SUMMARY OF THE INVENTION Therefore, a main object of the present invention is to provide a memory access control circuit capable of sufficiently exerting the performance of a controller provided in a recording medium.
[0005]
[Means for Solving the Problems]
This inventionMemory access control circuit according toIsData including capacity value dataMemory to storeWhencontrollerWhenRecording medium comprisingIn the memory access control circuit that reads a desired data from the memory by giving a read control signal to the controller when the is mounted, the active period of the read control signal is set to a predetermined period in order to read the capacitance value data stored in the memory. 1 setting means, detection means for detecting the capacity of the memory based on the capacity value data read in connection with the setting operation of the first setting means, and reading a predetermined period when the capacity detected by the detection means is less than or equal to a threshold value First enabling means for enabling as an active period of the control signal, second setting means for setting the active period of the read control signal to a plurality of different periods when the capacitance detected by the detecting means exceeds a threshold value, second setting From the memory in relation to the setting operation of the meansRead outdataIs rightnoDetermining means for determining whether or notOf discrimination meansDiscrimination resultData can be legitimately read from memory based onActivate the shortest active period2With validation meansEach of the plurality of periods set by the second setting means is shorter than the predetermined period.
[0006]
[Action]
The recording medium includes a memory for storing data including capacity value data and a controller. The operation of giving a read control signal to the controller and reading out desired data from the memory is executed when such a recording medium is loaded. The first setting means sets the active period of the read control signal to a predetermined period in order to read the capacitance value data stored in the memory. The capacity of the memory is detected by the detecting means based on the capacity value data read in connection with the setting operation of the first setting means. If the capacitance detected by the detection means is less than or equal to the threshold value, the first validation means validates the predetermined period as the active period of the read control signal. If the capacitance detected by the detection means exceeds the threshold value, the active period of the read control signal is set to a plurality of different periods by the second setting means. The discriminating unit discriminates whether or not the data read from the memory in relation to the setting operation of the second setting unit is valid. The second validation unit validates the shortest active period during which data can be legitimately read from the memory based on the discrimination result of the discrimination unit. Here, each of the plurality of periods set by the second setting means is shorter than the predetermined period.
[0007]
In this way, data is read by a plurality of read control signals having different active periods.De-OfLegitimacy is determined,Data can be read legitimatelySince the shortest active period is activated, the performance of the controller is maximized.
[0008]
In one example of this invention, the memoryIsRecording mediumIn betweenCommon common dayTStore andNoted in relation to the setting operation of the second setting meansRead control signalIssueCommon dayOfStorage locationofIncluding address information and the discriminating means reads the common data read from the memory.TWhether to show a predetermined valuenoIs determined.
[0011]
【The invention's effect】
According to this invention,RecordThe performance of the controller included in the recording medium can be maximized.
[0012]
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.
[0013]
【Example】
Referring to FIG. 1, a
[0014]
When reading data from the
[0015]
Specifically, the
[0016]
In
[0017]
In step S11, it is determined whether the capacity value of the
[0018]
On the other hand, if it is determined in step S11 that the capacity value> predetermined value, the access time is reduced by one step in step S13. That is, the active period of the CS signal, R / W signal and address signal output by itself, and the active period of the Wc0 signal, Wc1 signal, CS signal and We signal output from the
[0019]
In step S17, common data is detected from the read ID data signal, and in the subsequent step S19, the detected common data value is compared with a predetermined value to determine whether the ID data signal is valid. Here, if the common data value indicates a predetermined value, the ID data signal is regarded as being properly read (the ID data signal is regarded as valid), and the process returns to step S13. As a result of returning to step S13, the access time is further shortened by one step, and the ID data signal is read again with the shortened access time.
[0020]
As a result of shortening the access time, if the ID data signal is not properly read and the common data value shows a value different from the predetermined value, it is determined as NO (the read ID data signal is invalid) in step S19. In this case, the access time is extended by one step in step S21. That is, the ID data signal appropriately reads the active period of the CS signal, R / W signal and address signal output by itself, and the active period of the Wc0 signal, Wc1 signal, CS signal and We signal output from the
[0021]
The
[0022]
The AS signal, CS signal, address signal, and R / W signal indicating “read” are output from the
[0023]
The count value (Wb signal) of the
[0024]
That is, the active low signals Wc0, Wc1, Wd, We, and READY are delayed by one clock by the latch circuits 40-46. On the other hand, the active high Wf signal is output without delay.
[0025]
The We signal output from the
[0026]
The data Da is given to the
[0027]
The READY signal is output from the
[0028]
When the access time is shortened by one step, the
[0029]
The AS signal, CS signal, address signal, and R / W signal are output from the
[0030]
The count value (Wb signal) of the
[0031]
That is, the active period of the Wc0 signal, the Wc1 signal, and the We signal is shortened by one clock compared to FIGS. 4I and 4K. For the Wd signal, the Wf signal, and the READY signal, the timing at which the signal becomes active is advanced by one clock period.
[0032]
The
[0033]
A READY signal is output from the
[0034]
When the access time is further shortened by one step, the
[0035]
The
[0036]
The count value (Wb signal) of the
[0037]
As described above, the active periods of the Wc0 signal, the Wc1 signal, and the We signal are shortened by one clock compared to FIGS. 5 (I) and 5 (K). For the Wd signal, the Wf signal, and the READY signal, the timing at which the signal becomes active is advanced by one clock period.
[0038]
Upon receiving the We signal shown in FIG. 6K, the
[0039]
The READY signal is output from the
[0040]
According to this embodiment, when the data signal is read from the memory card held in the slot, the address signal, CS signal and We signal in the maximum active period are first supplied to the controller, and the ID data signal is received from the ID storage address of the memory. Read out. This ID data signal includes memory capacity value (total capacity value) data. Based on this capacity value data, it is determined whether the memory capacity is larger than a predetermined value. If the capacitance value is equal to or less than the predetermined value, the maximum active period is determined as the optimum active period. That is, the maximum active period is activated.
[0041]
On the other hand, if the capacitance value is equal to or greater than the predetermined value, the ID data signal is read from the memory by the address signal, CS signal, and We signal having different active periods, and each read ID data signal is validated. Is determined. Specifically, the value of the common data included in the ID data signal is compared with a predetermined value, and if the common data value indicates the predetermined value, it is determined that the ID data signal is valid. If ID is not indicated, it is determined that the ID data signal is invalid. Then, the shortest active period is determined as the optimum active period among the active periods when the ID data signal determined to be valid is read. That is, the shortest active period during which the ID data signal is appropriately read out is validated.
[0042]
As described above, the maximum active period is enabled if the memory capacity is equal to or smaller than the predetermined value, and the shortest active period in which the data signal can be appropriately read is enabled if the memory capacity is larger than the predetermined value. ing. For this reason, when a memory card with a capacity less than or equal to a predetermined value is inserted, the time until the desired data can be accessed can be shortened. When a memory card with a capacity exceeding the predetermined value is installed, the controller Can be fully utilized.
[0043]
In this embodiment, when the shortest active period during which the ID data signal can be appropriately read out is obtained, the active period is shortened by one step. However, the active period is extended by one step and the above shortest active period is obtained. The active period may be obtained. In this embodiment, a compact flash is used as a recording medium. However, a micro drive or a memory stick may be used instead of the compact flash. Further, in this embodiment, the output timing of the control signals Wc0, Wc1, Wd, We, Wf and the READY signal is controlled by the counter, but a state machine other than the counter may be used for the timing control.
[0044]
Although only the read operation has been described in this embodiment, the present invention is also effective for the write operation.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of the present invention.
FIG. 2 is a flowchart showing a part of the operation of FIG. 1 embodiment;
FIG. 3 is a block diagram showing a memory control circuit.
FIG. 4 is a timing diagram showing a part of the operation of the embodiment in FIG. 1;
FIG. 5 is a timing diagram showing another part of the operation of the embodiment in FIG. 1;
FIG. 6 is a timing chart showing another part of the operation of the embodiment in FIG. 1;
[Explanation of symbols]
10: Data processing device
12 ... CPU
14 Data bus
18. Memory control circuit
20 ... Bidirectional buffer
22 ... Memory card
Claims (3)
前記メモリに格納された容量値データを読み出すべく前記読み出し制御信号のアクティブ期間を所定期間に設定する第1設定手段、
前記第1設定手段の設定動作に関連して読み出された容量値データに基づいて前記メモリの容量を検出する検出手段、
前記検出手段によって検出された容量が閾値以下のとき前記所定期間を前記読み出し制御信号のアクティブ期間として有効化する第1有効化手段、
前記検出手段によって検出された容量が前記閾値を上回るとき前記読み出し制御信号のアクティブ期間を互いに異なる複数の期間に設定する第2設定手段、
前記第2設定手段の設定動作に関連して前記メモリから読み出されたデータが正当であるか否かを判別する判別手段、および
前記判別手段の判別結果に基づいて前記メモリからデータを正当に読み出すことができる最短のアクティブ期間を有効化する第2有効化手段を備え、
前記第2設定手段によって設定される複数の期間の各々は前記所定期間よりも短いことを特徴とする、メモリアクセス制御回路。 In the memory access control circuit for reading out desired data from said memory by applying a read control signal to the controller when the recording medium is mounted and a memory and a controller for storing data including the capacitance value data,
First setting means for setting an active period of the read control signal to a predetermined period in order to read the capacitance value data stored in the memory;
Detecting means for detecting the capacity of the memory based on capacity value data read in association with the setting operation of the first setting means;
First enabling means for enabling the predetermined period as an active period of the read control signal when the capacitance detected by the detecting means is less than or equal to a threshold;
Second setting means for setting an active period of the read control signal to a plurality of different periods when the capacitance detected by the detection means exceeds the threshold;
Determining means for determining whether the data read from the memory in relation to the setting operation of the second setting means is valid; and validating the data from the memory based on the determination result of the determining means A second enabling means for activating the shortest active period that can be read ,
Each of the plurality of period set by the second setting means you being shorter than the predetermined period, the memory access control circuit.
前記第2設定手段の設定動作に関連して注目される読み出し制御信号は前記共通データの格納先のアドレス情報を含み、
前記判別手段は前記メモリから読み出された前記共通データが所定値を示すか否かを判別する、請求項1記載のメモリアクセス制御回路。Wherein the memory stores a common data which is common among records medium,
Read control signal of interest in connection with the setting operation of the second setting means includes a storage destination address information of the common data,
It said determining means said common data read from the memory it is determined whether or not indicating the predetermined value, the memory access control circuit according to claim 1.
Priority Applications (6)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000137508A JP3691340B2 (en) | 2000-05-10 | 2000-05-10 | Memory access control circuit |
US09/780,424 US6578125B2 (en) | 2000-02-14 | 2001-02-12 | Memory access circuit and memory access control circuit |
EP01103332A EP1130521B1 (en) | 2000-02-14 | 2001-02-13 | Memory access circuit and memory access control circuit |
DE60132726T DE60132726T2 (en) | 2000-02-14 | 2001-02-13 | Memory access circuit and memory access control circuit |
KR1020010007201A KR100787710B1 (en) | 2000-02-14 | 2001-02-14 | Memory access circuit, memory access control circuit and data processing apparatus |
US10/375,000 US6742095B2 (en) | 2000-02-14 | 2003-02-28 | Memory access circuit and memory access control circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000137508A JP3691340B2 (en) | 2000-05-10 | 2000-05-10 | Memory access control circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2001318827A JP2001318827A (en) | 2001-11-16 |
JP3691340B2 true JP3691340B2 (en) | 2005-09-07 |
Family
ID=18645273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000137508A Expired - Fee Related JP3691340B2 (en) | 2000-02-14 | 2000-05-10 | Memory access control circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3691340B2 (en) |
-
2000
- 2000-05-10 JP JP2000137508A patent/JP3691340B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2001318827A (en) | 2001-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100787710B1 (en) | Memory access circuit, memory access control circuit and data processing apparatus | |
US5349566A (en) | Memory device with pulse circuit for timing data output, and method for outputting data | |
JP2000506301A (en) | Simplified clocked DRAM with fast command input | |
WO2005041055A3 (en) | Echo clock on memory system having wait information | |
JP2011227834A (en) | Signal control device and signal control method | |
US6484244B1 (en) | Method and system for storing and processing multiple memory commands | |
JP3202700B2 (en) | Signal processing device | |
US7646649B2 (en) | Memory device with programmable receivers to improve performance | |
JP3691340B2 (en) | Memory access control circuit | |
US7191295B2 (en) | Sensing word groups in a memory | |
JP3495675B2 (en) | Memory access circuit | |
US5235694A (en) | Multi i/o device system using temporary store of ram data when associated communicating i/o devices are operating at various clocking phases | |
JPH09198313A (en) | Cache memory | |
JPH1173764A (en) | Method for deciding kind of d-ram | |
JP3481156B2 (en) | Data readout circuit | |
CN112416675B (en) | Capacity expansion detection method and device for memory | |
JP3561670B2 (en) | Memory control circuit | |
JPH09311812A (en) | Microcomputer | |
JP3568384B2 (en) | Memory access circuit | |
JP2000222879A (en) | Semiconductor memory | |
JP2019109557A (en) | Semiconductor storage apparatus and image processing apparatus | |
JPH11175667A (en) | Information card processor | |
JP3518012B2 (en) | External solid-state storage device | |
JP2594678B2 (en) | System control unit | |
JPH06103026A (en) | Memory system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050217 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050315 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050512 |
|
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: 20050531 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050615 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080624 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090624 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090624 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100624 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110624 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110624 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120624 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130624 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130624 Year of fee payment: 8 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130624 Year of fee payment: 8 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |