JPS63217447A - Deciding system for cache function - Google Patents

Deciding system for cache function

Info

Publication number
JPS63217447A
JPS63217447A JP62051333A JP5133387A JPS63217447A JP S63217447 A JPS63217447 A JP S63217447A JP 62051333 A JP62051333 A JP 62051333A JP 5133387 A JP5133387 A JP 5133387A JP S63217447 A JPS63217447 A JP S63217447A
Authority
JP
Japan
Prior art keywords
cache
absence
cache function
software
board
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
JP62051333A
Other languages
Japanese (ja)
Inventor
Shizuo Kanbayashi
静夫 神林
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP62051333A priority Critical patent/JPS63217447A/en
Publication of JPS63217447A publication Critical patent/JPS63217447A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To omit the echange of software when boards are exchanged by diagnosing the boards to decide the presence or absence of a cache function and setting the software in response to the cache function. CONSTITUTION:The presence or absence of a cache buffer 13 is checked by a board diagnosing means. Then the presence or absence of a table comparator 10 is checked. Thus it is decided whether both checks are erroneous or not for decision of the presence or absence of a cache function. In such way of decision for presence or absence of the cache function, only the reading/writing speed varies despite the exchange of boards and it is not required to exchange the software in response to the exchange of boards. Thus the software can work smoothly in the same system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はキャッシュ機能の判定方式、特にオプションと
してボードを交換した場合に、そのボードがキャッシュ
機能を有しているか否かを判定してアクセス方法を採択
するためのキャッシュ機能の判定方式に間する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a method for determining a cache function, and in particular, a method for determining whether or not a board has a cache function when the board is replaced as an option. A method for determining the cache function for selecting a method is discussed.

〔発明の背景〕[Background of the invention]

一般的に、メモリの有無等によってボードのコストは変
化するので、オプションとしてボードを交換することが
行なわれているが、従来はこのボードの交換と対応して
ソフトも新たに購入しなければならない不都合があった
Generally, the cost of a board changes depending on the presence or absence of memory, so replacing the board is an option, but conventionally, replacing the board requires purchasing new software as well. There was an inconvenience.

〔発明の目的〕[Purpose of the invention]

そこで、本発明は上記した従来の実状に着目してなされ
たもので、かかる問題点を解消して。
Therefore, the present invention has been made by paying attention to the above-mentioned conventional situation, and has solved such problems.

ボードを交換してボードが異なるものとなっても同一の
ソフトで同じシステムで支障なく動作できることとし、
ソフトをボードに合わせて取り換える必要性のないもの
としたキャッシュ機能の判定方式を提供することを目的
としている。
Even if the board is replaced and the board becomes different, it will be possible to operate the same system with the same software without any problems.
The purpose is to provide a cache function determination method that eliminates the need to replace software to match the board.

〔問題点を解決しようとするための手段〕この目的を達
成するために1本発明に係るキャー2シユ機能の判定方
式は、ボードの診断手段によってキャッシュバッファの
有無をチェックし、次いでテーブルコンパレータの有無
をチェックし、前記チェックが両方ともエラーであるか
のデシジョンを行なってキャッシュ機能の有無を決定す
ることを特徴としている。
[Means for solving the problem] In order to achieve this object, the cache function determination method according to the present invention is to check the presence or absence of a cache buffer by the diagnostic means of the board, and then check the presence or absence of the cache buffer by the table comparator. The cache function is characterized in that the presence or absence of the cache function is determined by checking the presence or absence of the cache function and determining whether both of the above checks result in an error.

〔作用〕[Effect]

上記したようにキャッシュ機能の有無を判定して決定す
ることによって、ボードが交換されてもリード/ライト
のスピードが変わるだけで、そのボードに合わせてソフ
トを交換する必要がなくなり、ソフトは同一のシステム
で支障なく動作することとなるのである。
By determining the presence or absence of the cache function as described above, even if the board is replaced, only the read/write speed will change, and there is no need to replace the software to match the board, and the software will remain the same. The system will now operate without any problems.

〔実施例〕〔Example〕

次に、本発明の実施の一例を第1図乃至第7図を参照し
て詳細に説明する。
Next, an example of implementation of the present invention will be described in detail with reference to FIGS. 1 to 7.

第1図は本発明に係るキャッシュ機能の判定方式の処理
を表わすフローチャート図であり、図中1はボードの診
断手段を示している。この診断手段lは初期設定にあっ
てタスクで動かされるものとなっており、ボードにキャ
ッシュバッファとしてのRAMがあるか否かをRAMの
アドレスをリード/ライトすることにより実行される。
FIG. 1 is a flowchart showing the processing of the cache function determination method according to the present invention, and numeral 1 in the figure indicates a board diagnostic means. This diagnostic means 1 is initially set to be operated by a task, and is executed by reading/writing the address of the RAM to determine whether or not the board has a RAM as a cache buffer.

 RAMの載っているボードはキャッシュ機能が働くこ
ととなるので、エラーとなればRAMが無いこと、もし
くは壊れていることとなる。このキャッシュバッファの
有無のチェー7りに次いで、RAMエリアに登録がされ
ている場合に何シリンダの何セクタ目を持っているか、
即ち実際に欲しいデータが登録されているか否かを見つ
けるテーブルコンパレータの有無をチェックして1両方
のチェックがエラーであるか否かのデシジョンが行なわ
れる。この結果、両方がエラーとなればキャッシュ機能
が無いこととなり、エラーでなければキャッシュ機能を
有していることとなる。又、キャッシュバッファかテー
ブルコンパレータのいずれか一方のチェックがエラーと
いう場合にはボードが壊れていることになる。
A board with RAM on it has a cache function, so if an error occurs, it means that the RAM is missing or broken. Next to checking the presence or absence of this cache buffer, if it is registered in the RAM area, what cylinder and what sector does it have?
That is, the presence or absence of a table comparator for finding out whether or not the desired data is actually registered is checked, and a decision is made as to whether or not one or both of the checks are errors. As a result, if there is an error in both, it means that there is no cache function, and if there is no error, it means that the cache function is present. Also, if either the cache buffer or the table comparator is checked and an error occurs, it means that the board is broken.

又、第2図として示すのはディスクキャッシュシステム
のブロック構成図であり、ディスクキャッシュシステム
は大別して初期設定部2(ここで診断も行なわれる)、
割込処理部3、モニタ一部4、キャッシュの有無に各々
対応するコマンド処理タスク5ae5b、バックグラウ
ンド処理タスク6、ハードディスク7を接続する/\−
ドディスクドライバー8となる。尚、図中9はキーボー
ドと接続されたCRTと接続され、プログラムの不良箇
所を摘出するディバッガである。このディスクキャッシ
ュシステムはキャッシュを用いない動作も行なうことが
できるのでタスクファイルの割込によって動作するコマ
ンド処理タスクはキャッシュの有無に対応する二基列5
a・5bとなっている。
Moreover, what is shown in FIG. 2 is a block configuration diagram of the disk cache system, and the disk cache system is roughly divided into an initial setting section 2 (diagnosis is also performed here),
Interrupt processing unit 3, monitor part 4, command processing task 5ae5b corresponding to presence/absence of cache, background processing task 6, and hard disk 7 are connected/\-
This will be the disk driver 8. In the figure, numeral 9 is a debugger connected to a CRT connected to a keyboard and for extracting defective parts of the program. Since this disk cache system can also perform operations without using a cache, the command processing task that operates by interrupting the task file has two base columns 5 and 5 corresponding to the presence or absence of cache.
It is a and 5b.

更に、第3図はテーブルコンパレータ10のフォーマッ
トを示す概念図であり、このテーブルコンパレータ10
は前述したようにキャッシュアドレスを求めるために使
用されるもので、高速のスタティックRAMと24ビツ
トのハードウェアによる比較ロジックによってキャッシ
ュのヒツト/エラーを高速に判定することができる1図
はlセクタ512のときのキャッシュテーブルの先頭を
示し、キャッシュテーブルは4バイト構成となっており
、第4バイト目は未使用とされ、この未使用部分はハー
ドウェアによる比較の対象とはならない。
Furthermore, FIG. 3 is a conceptual diagram showing the format of the table comparator 10.
As mentioned above, this is used to find the cache address, and cache hits/errors can be determined quickly using high-speed static RAM and 24-bit hardware comparison logic. The cache table has a 4-byte structure, and the fourth byte is unused, and this unused portion is not compared by the hardware.

又、第4図として示すのはキャッシュシステム内でのデ
ィスクアドレスの表現状態を表わす概念図であり、第1
バイトの2ビツトにユニットナンバー、第1バイトから
第2バイトにかかる10ビツトにシリンダナンバー、第
2バイトの残り4ビツトにヘッドナンバー、そして第3
バイトの3ビツトは予備とされ残°す5ビツトはセクタ
ナンバーとなっている。
Also, FIG. 4 is a conceptual diagram showing the representation state of disk addresses within the cache system.
The 2 bits of the byte are the unit number, the 10 bits from the first byte to the second byte are the cylinder number, the remaining 4 bits of the second byte are the head number, and the third byte is the unit number.
Three bits of the byte are reserved and the remaining five bits are the sector number.

更に、第5図として示すのはキャー7シユバツフア管理
テーブル11の概念図であり、1セクタ512の場合の
先頭アドレスである。このキャッシュバッファ管理テー
ブル11は前記したキャッシュテーブルとキャッシュバ
ッファの対応を取るために用いられ、又、各キャッシュ
バッファのブロックを用途に応じてリンクすることによ
ってキャッシュの生成、消去、書込等の処理の効率を上
げることができる。このキャッシュバッファ管理テーブ
ル11の管理ブロックllaには、キャッシュバッファ
の1セクタを示すポインタであるキャッシュブロックポ
インタ12a、前にリンクされているキャッシュバッフ
ァ管理ブロック11aのナンバーを示す前方リンクポイ
ンタ12b(最前の場合はFFFF)、後にリンクされ
ているキャッシュバッファ管理ブロックllaのナンバ
ーを示す後方リンクポインタ12c (最後の場合には
FFFF)、及びフラグ12dがあり、残りは予備とさ
れている。第6図はこのフラグ12dを示し、8ビツト
構成のフラグ12dには読み込みセクタ、常駐セクタ、
書き込み待ちフラグ、書き込みエラーのパートを形成し
ている。
Furthermore, FIG. 5 is a conceptual diagram of the carrier 7 buffer management table 11, and shows the start address in the case of one sector 512. This cache buffer management table 11 is used to establish the correspondence between the cache table and cache buffer described above, and also processes cache generation, erasure, writing, etc. by linking the blocks of each cache buffer according to the purpose. efficiency can be increased. The management block lla of this cache buffer management table 11 includes a cache block pointer 12a which is a pointer indicating one sector of the cache buffer, and a forward link pointer 12b (the number of the previous linked cache buffer management block 11a) which is a pointer indicating one sector of the cache buffer. (FFFF in the last case), a backward link pointer 12c (FFFF in the last case) indicating the number of the cache buffer management block lla linked later, and a flag 12d, and the rest are reserved. FIG. 6 shows this flag 12d, and the 8-bit flag 12d includes read sector, resident sector,
It forms part of the write wait flag and write error.

又、第7図は前記したテーブルコンパレータ10、キャ
ッシュバッファ管理テーブル11及びキャッシュバー2
フア13の関係を示す概念図であり、キャッシュバッフ
ァ管理テーブル11の各ブロックは各種リンクで継げら
れ、キャッシュバッファ13とテーブルコンパレータl
Oとを対応させており、又、書き込み待ちリンクや書き
込みエラーリンクはバッテリーでバックアップされたR
AMと対応されている。
FIG. 7 also shows the table comparator 10, cache buffer management table 11, and cache bar 2 described above.
It is a conceptual diagram showing the relationship between the cache buffer 13 and the table comparator l, in which each block of the cache buffer management table 11 is connected by various links, and the cache buffer 13 and the table comparator l
Also, write waiting links and write error links are supported by battery-backed R.
It is compatible with AM.

〔発明の効果〕〔Effect of the invention〕

上述したように本発明に係るキャッシュ機能の判定方式
によれば、ボードを診断してキャッシュ機能の有無を決
定してソフトを対応させるので、ボードが交換されても
それに合わせてソフトを交換する必要性はなくなり、ソ
フトはスピードが変わるだけで支障なく同一のシステム
で動作することができるものとなっている。
As described above, according to the cache function determination method according to the present invention, the board is diagnosed and the presence or absence of the cache function is determined, and the software is adapted accordingly, so even if the board is replaced, there is no need to replace the software accordingly. Now, software can run on the same system without any problems, just by changing the speed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係るキャッシュ機能の判定方式の処理
を表わすフローチャート図、第2図は同ディスクキャッ
シュシステムのブロック構成図。 第3図は同テーブルコンパレータのフォーマットを示す
概念図、第4図は同キャッシュシステム内でのディスク
アドレスを表現した概念図、第5図は同キャッシュバッ
ファ管理テーブルの概念図。 第6図は同フラグの概念図、第7図は同テーブルコンパ
レータ、キャッシュバッファ管理テーブル、キャッシュ
バッファの関係を示す概念図である。 1・・・診断手段 10・・・テーブルコンパレータ1
1・・・キャッシュバッファ管理テーブル13・・・キ
ャッシュバッファ 第1図 第2図 、J2 第3図 p 第5図 +2d 第7図
FIG. 1 is a flowchart showing processing of a cache function determination method according to the present invention, and FIG. 2 is a block diagram of the disk cache system. FIG. 3 is a conceptual diagram showing the format of the table comparator, FIG. 4 is a conceptual diagram representing disk addresses in the cache system, and FIG. 5 is a conceptual diagram of the cache buffer management table. FIG. 6 is a conceptual diagram of the flag, and FIG. 7 is a conceptual diagram showing the relationship among the table comparator, cache buffer management table, and cache buffer. 1...Diagnostic means 10...Table comparator 1
1... Cache buffer management table 13... Cache buffer Figure 1 Figure 2, J2 Figure 3 p Figure 5 + 2d Figure 7

Claims (1)

【特許請求の範囲】[Claims] ボードの診断手段によってキャッシュバッファの有無を
チェックし、次いでテーブルコンパレータの有無をチェ
ックし、前記チェックが両方ともエラーであるかのデシ
ジョンを行なってキャッシュ機能の有無を決定すること
を特徴とするキャッシュ機能の判定方式。
A cache function characterized in that the presence or absence of a cache buffer is checked by diagnostic means of the board, then the presence or absence of a table comparator is checked, and a decision is made as to whether both of the above checks result in an error, thereby determining the presence or absence of a cache function. Judgment method.
JP62051333A 1987-03-06 1987-03-06 Deciding system for cache function Pending JPS63217447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62051333A JPS63217447A (en) 1987-03-06 1987-03-06 Deciding system for cache function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62051333A JPS63217447A (en) 1987-03-06 1987-03-06 Deciding system for cache function

Publications (1)

Publication Number Publication Date
JPS63217447A true JPS63217447A (en) 1988-09-09

Family

ID=12883993

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62051333A Pending JPS63217447A (en) 1987-03-06 1987-03-06 Deciding system for cache function

Country Status (1)

Country Link
JP (1) JPS63217447A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007058253A1 (en) * 2005-11-16 2007-05-24 Nikon Corporation Electronic still camera

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007058253A1 (en) * 2005-11-16 2007-05-24 Nikon Corporation Electronic still camera
JP5136062B2 (en) * 2005-11-16 2013-02-06 株式会社ニコン Camera, electronic still camera, and camera system
US8558916B2 (en) 2005-11-16 2013-10-15 Nikon Corporation Electronic still camera having cache control function

Similar Documents

Publication Publication Date Title
CA1073553A (en) Error recovery and control in a mass storage system
US5295251A (en) Method of accessing multiple virtual address spaces and computer system
US4623962A (en) Register control processing system
CN111813670B (en) Non-invasive MC/DC coverage statistical analysis method
JPS63217447A (en) Deciding system for cache function
CN114168073B (en) Solid state disk debugging space access method and device
JP2000099370A (en) Signal processor
JP2850340B2 (en) Cache memory control circuit
JPH02126340A (en) Data processing system
JP2510663B2 (en) Error control method
JPH0793225A (en) Memory check system
JP2878014B2 (en) RAM test method
JPH0325646A (en) Parity error discriminating system
JPH0689199A (en) Cache function diagnosis method
JP2806976B2 (en) Program content inspection device
JP2002358102A (en) Programming device for programmable logic controller
JPH0528056A (en) Memory device
JPH0883218A (en) Computer system
JP2001142742A (en) Debugging information output device
JP2002215471A (en) Memory port, storage device and information processing system
US20040078646A1 (en) Recovery processing of a faulty block in a memory unit
JPS6132153A (en) Memory controller
JPH05210535A (en) Tracing process system
JPH01205799A (en) Memory circuit testing machine
JPH0293847A (en) Memory test system at time of initial diagnosis