JPH04353946A - Confirming method for memory storage capacity - Google Patents

Confirming method for memory storage capacity

Info

Publication number
JPH04353946A
JPH04353946A JP3129101A JP12910191A JPH04353946A JP H04353946 A JPH04353946 A JP H04353946A JP 3129101 A JP3129101 A JP 3129101A JP 12910191 A JP12910191 A JP 12910191A JP H04353946 A JPH04353946 A JP H04353946A
Authority
JP
Japan
Prior art keywords
address
memory space
register
storage capacity
error
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.)
Withdrawn
Application number
JP3129101A
Other languages
Japanese (ja)
Inventor
Nagakatsu Sudo
須藤 永勝
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3129101A priority Critical patent/JPH04353946A/en
Publication of JPH04353946A publication Critical patent/JPH04353946A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To automatically confirm the setting address and the storage capacity of an extension memory space at high speed without the need of work for setting the start address and the storage capacity of the extension memory space. CONSTITUTION:At first, the prescribed address of the memory space 21 is accessed and the address is compared and checked. Then, access is executed by enlarging a setting period in the memory space 21 in one direction until the presence or absence of the occurrence of the error is switched. When the presence or absence of the occurrence of the error is switched, the access direction of the address is switched in an opposite direction, the setting period is reduced and access is executed. When an operation is repeated and the start address and the end address are detected, the setting address and the storage capacity of an extension memory space 22 can be confirmed based on the both addresses.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、メモリ増設時における
メモリ記憶容量確認方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for checking memory storage capacity when expanding memory.

【0002】0002

【従来の技術】従来、各種機器のメモリ記憶容量が不足
する場合に、メモリを増設することができるようになっ
ていて、その場合、増設メモリの記憶容量は次に述べる
方法によって確認するようになっている。図2は従来の
メモリ記憶容量確認方法の説明図である。
[Prior Art] Conventionally, when the memory storage capacity of various devices is insufficient, it has been possible to expand the memory. It has become. FIG. 2 is an explanatory diagram of a conventional method for checking memory storage capacity.

【0003】図において、1はメモリ空間であり、2,
3は増設メモリチップ、2aはスタートアドレスがAH
 、記憶容量がXの増設メモリ空間、3aはスタートア
ドレスがBH 、記憶容量がX′の増設メモリ空間であ
る。4,5は上記増設メモリチップ2,3において、ス
タートアドレスAH,BH を設定するスイッチであり
、6,7は上記増設メモリチップ2,3において、記憶
容量X,X′を設定するスイッチである。
In the figure, 1 is a memory space, 2,
3 is an expansion memory chip, 2a has a start address of AH
, an additional memory space with a storage capacity of X, and 3a is an additional memory space with a start address of BH and a storage capacity of X'. 4 and 5 are switches for setting the start addresses AH and BH in the expansion memory chips 2 and 3, and 6 and 7 are switches for setting the storage capacities X and X' in the expansion memory chips 2 and 3. .

【0004】これらのスイッチ4〜7は、図示しないシ
ステムの要求に対応してそれぞれ個々に設定するように
なっており、図示しないマイクロプロセッサは上記増設
メモリチップ2,3のスイッチ6,7の設定内容に対応
するデータを読み取り、記憶容量Xの増設メモリチップ
2であるか、記憶容量X′の増設メモリチップ3である
かを認識する。
These switches 4 to 7 are configured to be set individually according to the requirements of a system (not shown), and a microprocessor (not shown) adjusts the settings of the switches 6, 7 of the expansion memory chips 2, 3. The data corresponding to the contents is read and it is recognized whether the memory chip 2 is an expansion memory chip 2 with a storage capacity of X or an expansion memory chip 3 with a storage capacity X'.

【0005】また、他の確認方法の場合、増設メモリチ
ップ2,3を実装することによって得られる増設メモリ
空間2a,3aの各アドレスにアクセスして、特定デー
タの書込み及び読出しを行ってコンペアチェックを行い
、コンペアチェックの結果の正常と異常の切り換わり点
を検出し、増設メモリチップ2,3が実装されているか
否か、増設メモリ空間2a,3aの設定番地及び記憶容
量X,X′を確認するようになっている。
In the case of another confirmation method, a compare check is performed by accessing each address of the additional memory spaces 2a and 3a obtained by mounting the additional memory chips 2 and 3, and writing and reading specific data. The switching point between normal and abnormal results of the compare check is detected, and whether or not the expansion memory chips 2 and 3 are installed, the set addresses and storage capacities X and X' of the expansion memory spaces 2a and 3a are determined. It is supposed to be confirmed.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来のメモリ記憶容量確認方法においては、増設メモリチ
ップ2,3にスタートアドレスAH ,BH を設定す
るためのスイッチ4,5や記憶容量X,X′を設定する
ためのスイッチ6,7を設ける方法の場合、メモリチッ
プを増設する時に必ずスイッチ4〜7を設定しておかな
ければならず、その作業が煩雑であるとともに設定誤り
が発生することがある。
However, in the conventional memory storage capacity confirmation method described above, the switches 4 and 5 for setting the start addresses AH and BH in the expansion memory chips 2 and 3 and the storage capacities X and X' In the case of the method of providing switches 6 and 7 for setting the memory chips, it is necessary to set the switches 4 to 7 before adding memory chips, which is complicated and may lead to setting errors. be.

【0007】また、プロセッサが増設メモリチップ2,
3による増設メモリ空間2a,3aをコンペアチェック
することによって、増設メモリチップ2,3が実装され
ているか否か、増設メモリ空間2a,3aの設定番地及
び記憶容量X,X′を確認する方法の場合、増設メモリ
空間2a,3aが大きいとコンペアチェックの作業に時
間がかかりすぎる。
[0007] Furthermore, the processor has an additional memory chip 2,
3, by comparing and checking the additional memory spaces 2a, 3a, it is possible to check whether or not the additional memory chips 2, 3 are mounted, and the set address and storage capacity X, X' of the additional memory spaces 2a, 3a. In this case, if the additional memory spaces 2a and 3a are large, it takes too much time to perform the compare check.

【0008】本発明は、上記従来のメモリ記憶容量確認
方法の問題点を解決して、増設メモリ空間のスタートア
ドレスの設定や記憶容量の設定のための作業を必要とせ
ず、増設メモリ空間の設定番地及び記憶容量を自動的に
かつ高速で認識することのできるメモリ記憶容量確認方
法を提供することを目的とする。
[0008] The present invention solves the problems of the conventional memory storage capacity confirmation method described above, and allows setting of an additional memory space without requiring work for setting the start address of the additional memory space or setting the storage capacity. An object of the present invention is to provide a memory storage capacity confirmation method that can automatically and quickly recognize an address and storage capacity.

【0009】[0009]

【課題を解決するための手段】そのために、本発明のメ
モリ記憶容量確認方法においては、システムのメモリ空
間にRAMで構成される増設メモリ空間を割り付ける場
合、まず、メモリ空間の所定のアドレスがアクセスされ
、そのアドレスに対して、データの書込み、読出し及び
コンペアチェックが行われ、エラーが発生したか否かが
判断される。
[Means for Solving the Problems] To this end, in the memory storage capacity confirmation method of the present invention, when allocating an additional memory space composed of RAM to the system memory space, first, a predetermined address of the memory space is accessed. Data is written, read and compared to that address, and it is determined whether an error has occurred.

【0010】エラーの発生の有無が切り換わるまで、メ
モリ空間のアドレスを低アドレス側から高アドレス側、
又は高アドレス側から低アドレス側に向けて、一方向に
次第に大きくなる設定周期でアクセスが行われる。エラ
ーの発生の有無が切り換わるたびに、一つ手前のアドレ
スに対してコンペアチェックが行われ、この時再びエラ
ーの発生の有無が切り換わることによって増設メモリ空
間のスタートアドレス又はエンドアドレスが検出される
[0010] The address of the memory space is changed from the low address side to the high address side until the occurrence of an error is switched.
Alternatively, access is performed at a set cycle that gradually increases in one direction from the high address side to the low address side. Each time the presence or absence of an error is switched, a compare check is performed on the previous address, and at this time, the start address or end address of the additional memory space is detected by switching again between the presence and absence of an error. Ru.

【0011】該スタートアドレス又はエンドアドレスが
検出されない場合には、反対方向に次第に小さくなる設
定周期でアクセスが行われる。上記メモリ空間をアクセ
スするための設定周期は、上記システムで使用されるメ
モリチップの中で最も記憶容量の小さいメモリチップの
ビット数を基準とするか、2のM(整数)乗とする。
[0011] If the start address or end address is not detected, access is performed in the opposite direction at a set cycle that gradually becomes smaller. The set cycle for accessing the memory space is based on the number of bits of a memory chip with the smallest storage capacity among the memory chips used in the system, or is set to the power of 2 M (an integer).

【0012】0012

【作用】本発明によれば、上記のようにシステムのメモ
リ空間にRAMで構成される増設メモリ空間を割り付け
る場合、まず、メモリ空間の所定のアドレスがアクセス
され、そのアドレスに対して、データの書込み、読出し
及びコンペアチェックが行われ、エラーが発生したか否
かが判断される。
[Operation] According to the present invention, when an additional memory space consisting of RAM is allocated to the system memory space as described above, a predetermined address in the memory space is first accessed, and data is stored at that address. Writing, reading, and compare checking are performed to determine whether an error has occurred.

【0013】エラーの発生の有無が切り換わるまで、メ
モリ空間のアドレスを低アドレス側から高アドレス側、
又は高アドレス側から低アドレス側に向けて、一方向に
次第に大きくなる設定周期でアクセスが行われる。エラ
ーの発生の有無が切り換わると、一つ手前のアドレスに
対してコンペアチェックが行われ、この時再びエラーの
発生の有無が切り換わることによって増設メモリ空間の
スタートアドレス又はエンドアドレスが検出される。
[0013] Until the occurrence of an error is switched, the address of the memory space is changed from the low address side to the high address side.
Alternatively, access is performed at a set cycle that gradually increases in one direction from the high address side to the low address side. When the presence or absence of an error is switched, a compare check is performed on the previous address, and at this time, the presence or absence of an error is switched again, thereby detecting the start address or end address of the additional memory space. .

【0014】該スタートアドレス又はエンドアドレスが
検出されない場合には、アドレスのアクセスの方向が反
対方向に切り換えられるとともに、次第に小さくなる設
定周期でアクセスが行われる。そして、エラーの発生の
有無が切り換わると、一つ手前のアドレスに対してコン
ペアチェックが行われ、スタートアドレス又はエンドア
ドレスが検出されない場合には、再びアドレスのアクセ
スの方向が切り換えられるとともに、アクセスの設定周
期が小さくされる。
[0014] If the start address or end address is not detected, the direction of address access is switched to the opposite direction, and access is performed at a set cycle that gradually becomes smaller. Then, when the presence or absence of an error is switched, a compare check is performed on the previous address, and if the start address or end address is not detected, the direction of address access is switched again, and the access direction is changed again. The setting cycle of is made smaller.

【0015】上記動作が繰り返され、スタートアドレス
とエンドアドレスが検出されると、両アドレスに基づい
て、増設メモリ空間の設定番地及び記憶容量を確認する
ことができる。上記メモリ空間をアクセスするための設
定周期は、上記システムで使用されるメモリチップの中
で最も記憶容量の小さいメモリチップのビット数を基準
とするか、2のM(整数)乗とする。
When the above operation is repeated and the start address and end address are detected, the set address and storage capacity of the additional memory space can be confirmed based on both addresses. The set cycle for accessing the memory space is based on the number of bits of a memory chip with the smallest storage capacity among the memory chips used in the system, or is set to the power of 2 M (an integer).

【0016】[0016]

【実施例】以下、本発明の実施例について図面を参照し
ながら詳細に説明する。図1は本発明のメモリ記憶容量
確認方法の説明図、図3は増設メモリ空間のスタートア
ドレスの検出動作の第1のフローチャート、図4は増設
メモリ空間のスタートアドレスの検出動作の第2のフロ
ーチャート、図5は増設メモリ空間のエンドアドレスの
検出動作の第1のフローチャート、図6は増設メモリ空
間のエンドアドレスの検出動作の第2のフローチャート
である。
Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is an explanatory diagram of the memory storage capacity confirmation method of the present invention, FIG. 3 is a first flowchart of the operation of detecting the start address of the additional memory space, and FIG. 4 is a second flowchart of the operation of detecting the start address of the additional memory space. , FIG. 5 is a first flowchart of the operation for detecting the end address of the additional memory space, and FIG. 6 is a second flowchart of the operation for detecting the end address of the additional memory space.

【0017】図1において、21はメモリ空間、22は
該メモリ空間21の所定位置に増設される増設メモリ空
間である。図3及び図4に基づいて、メモリ空間21を
設定周期でアクセスし、エラーの発生の有無によって、
上記増設メモリ空間22のスタートアドレスを検出する
方法について説明する。ステップS1  所定のメモリ
アドレス値(例えば、2のN乗)をACレジスタ(カレ
ントアドレスを指定するレジスタ)に格納する。ステッ
プS2  上記ACレジスタに格納され指定されたアド
レスに対して、特定データの書込み及び読出しを行い、
コンペアチェックを行う。ステップS3,S4  コン
ペアチェックの結果がエラーか否かを判断する。増設メ
モリ空間22がなければエラーとなり、上記ACレジス
タの内容をAOLレジスタ(低アドレス側の旧アドレス
を記憶するレジスタ)に格納するとともに、設定周期を
2のM乗として再度アクセスするために、上記ACレジ
スタの内容を2倍して再度上記ACレジスタに格納し直
す。この時、アクセスの設定周期は2のN乗である(M
=N)。そして、新たに指定されたアドレスに対して再
びコンペアチェックを行う。この場合のアドレスは、2
の(N+1)乗となるため、上記2のN乗のアドレスと
同様にエラーとなり、アドレスが2の(N+2)乗にな
った時点でコンペアチェックが正常に行われる。この時
の設定周期は、2の(N+1)乗である(M=N+1)
In FIG. 1, 21 is a memory space, and 22 is an additional memory space that is added to a predetermined position of the memory space 21. In FIG. Based on FIGS. 3 and 4, the memory space 21 is accessed at a set period, and depending on whether an error occurs,
A method for detecting the start address of the additional memory space 22 will be explained. Step S1: Store a predetermined memory address value (for example, 2 to the Nth power) in an AC register (register that specifies the current address). Step S2 Writes and reads specific data to and from the specified address stored in the AC register,
Perform a compare check. Steps S3 and S4: Determine whether or not the result of the compare check is an error. If there is no additional memory space 22, an error will occur, and the contents of the above AC register will be stored in the AOL register (a register that stores the old address on the low address side), and the setting period will be set to the M power of 2 to access again. The contents of the AC register are doubled and stored in the AC register again. At this time, the access setting cycle is 2 to the N power (M
=N). Then, a compare check is performed again on the newly specified address. In this case, the address is 2
Since the address is raised to the (N+1) power, an error occurs in the same manner as the address of 2 to the N+th power, and the compare check is normally performed when the address becomes 2 to the (N+2) power. The set cycle at this time is 2 to the (N+1) power (M=N+1)
.

【0018】なお、ステップS4でACレジスタの内容
を2倍しているのは、低アドレス側から高アドレス方向
にアクセスするためであり、高アドレス側から低アドレ
ス方向にアクセスする場合は、ACレジスタの内容を1
/2倍すれば良い。ステップS5  コンペアチェック
が正常に行われた時点で、増設メモリ空間22のスター
トアドレスか否かを確認するため、ACレジスタが指定
しているアドレスの一つ前のアドレス(AC−1番地)
に対して、同様のコンペアチェックを行う。ステップS
6  コンペアチェックの結果がエラーか否かを判断す
る。 エラーが発生すればステップS23に進み、ACレジス
タの内容によって増設メモリ空間22のスタートアドレ
スを検出する。ステップS7  コンペアチェックでエ
ラーが発生しない場合は、ACレジスタの内容(この時
は2の(N+2)乗)をAOHレジスタ(高アドレス側
の旧アドレスを記憶するレジスタ)に格納し、AOLレ
ジスタの内容は前の値のまま2の(N+1)乗とし、A
CレジスタにはAOHレジスタの値とAOLレジスタの
値の中間の値を新たに設定する。この時の設定周期は、
2のN乗である(M=N)。ステップS8  ACレジ
スタに設定されたアドレス(この場合、2の(N+1)
乗+2のN乗)に対してコンペアチェックを行う。ステ
ップS9,S10  コンペアチェックの結果がエラー
か否かを判断する。増設メモリ空間22がない場合は、
コンペアチェックがエラーとなるため、ACレジスタの
内容をAOLレジスタに格納し、AOHレジスタの内容
は前の値のまま2の(N+2)乗とし、ACレジスタに
はAOHレジスタの値とAOLレジスタの値の中間の値
を新たに設定する。ステップS11〜S14  ACレ
ジスタの指定する新たなアドレスに対してコンペアチェ
ックを行い、正常終了するまでそれを繰り返し、正常終
了した場合は、ACレジスタが指定しているアドレスの
一つ前のアドレス(AC−1番地)に対してコンペアチ
ェックを行う。エラーが発生すればステップS23に進
み、ACレジスタの値が増設メモリ空間22のスタート
アドレスとなる。エラーが発生しなければステップS7
に戻り、上述した動作を繰り返す。ステップS15  
ステップS9においてエラーが発生しない場合には、A
Cレジスタが指定しているアドレスの一つ前のアドレス
(AC−1番地)に対してコンペアチェックを行う。本
実施例の場合、ステップS8のコンペアチェックにおい
て、ACレジスタの指定するアドレスには増設メモリ空
間22が存在するため、エラーは発生しない。ステップ
S16  コンペアチェックの結果がエラーか否かを判
断する。エラーが発生すればステップS23に進み、ス
タートアドレスを検出する。ステップS17,S18 
 エラーが発生しなければ、ACレジスタの内容(この
時は、2の(N+1)乗+2のN乗)をAOHレジスタ
に格納し、AOLレジスタの内容は前の値のまま2の(
N+1)乗とし、ACレジスタにはAOHレジスタの値
とAOLレジスタの値の中間の値を新たに設定し、AC
レジスタに設定されたアドレス(この場合、2の(N+
1)乗+2の(N−1)乗)に対してコンペアチェック
を行う。この時の設定周期は、2の(N−1)乗である
(M=N−1)。ステップS19〜S23  増設メモ
リ空間22がない場合は、コンペアチェックの結果がエ
ラーとなるため、ACレジスタの内容をAOLレジスタ
に格納し、AOHレジスタの内容は前の値のまま2の(
N+1)乗+2のN乗とし、ACレジスタにはAOHレ
ジスタの値とAOLレジスタの値の中間の値を新たに設
定し、ACレジスタの指定する新たなアドレスに対して
コンペアチェックを行い、正常終了するまで繰り返す。 正常終了した場合は、上述したのと同様にステップS1
5に戻り、ACレジスタが指定しているアドレスの一つ
前のアドレス(AC−1番地)に対してコンペアチェッ
クを行う。本実施例の場合、ステップS18のコンペア
チェックにおいては、ACレジスタの指定するアドレス
には増設メモリ空間22が存在するため、エラーは発生
しない。そして、上記動作を繰り返し行い(ステップS
15,S16,S17,S18,S19,S15,S1
6,…)、増設メモリ空間22のスタートアドレスとし
て、2の(N+1)乗+2の(N−1)乗+2の(N−
3)乗を検出する。この時の設定周期は、2の(N−3
)乗である(M=N−3)。
Note that the reason why the contents of the AC register are doubled in step S4 is to access from the low address side to the high address direction, and when accessing from the high address side to the low address direction, the AC register contents are doubled. The contents of 1
/ Multiply by 2. Step S5 When the compare check is successfully performed, in order to check whether it is the start address of the expansion memory space 22, check the address (AC-1 address) immediately before the address specified by the AC register.
A similar compare check is performed on . Step S
6 Determine whether the result of the compare check is an error. If an error occurs, the process advances to step S23, where the start address of the additional memory space 22 is detected based on the contents of the AC register. Step S7 If no error occurs in the compare check, store the contents of the AC register (in this case, 2 to the power of (N+2)) in the AOH register (register that stores the old address on the high address side), and store the contents of the AOL register. remains the previous value and sets 2 to the (N+1) power, and A
A new value intermediate between the value of the AOH register and the value of the AOL register is set in the C register. The setting cycle at this time is
It is 2 to the N power (M=N). Step S8 Address set in the AC register (in this case, 2(N+1)
2 to the Nth power)). Steps S9 and S10: Determine whether or not the result of the compare check is an error. If there is no additional memory space 22,
Since the compare check results in an error, the contents of the AC register are stored in the AOL register, the contents of the AOH register are set to the power of 2 (N+2) with the previous value, and the value of the AOH register and the value of the AOL register are stored in the AC register. Set a new intermediate value. Steps S11 to S14 Perform a compare check on the new address specified by the AC register, repeat this until it completes normally, and if it completes normally, check the address immediately before the address specified by the AC register (AC -1 address). If an error occurs, the process advances to step S23, and the value of the AC register becomes the start address of the additional memory space 22. If no error occurs, step S7
Return to , and repeat the operations described above. Step S15
If no error occurs in step S9, A
A compare check is performed on the address (AC-1 address) immediately before the address specified by the C register. In the case of this embodiment, no error occurs in the compare check in step S8 because the additional memory space 22 exists at the address specified by the AC register. Step S16: It is determined whether the result of the compare check is an error. If an error occurs, the process advances to step S23 and the start address is detected. Steps S17, S18
If no error occurs, the contents of the AC register (in this case, 2 to the power of (N+1) + 2 to the power of N) are stored in the AOH register, and the contents of the AOL register remain as the previous value.
N+1) power, set a new value in the AC register between the value of the AOH register and the value of the AOL register, and
The address set in the register (in this case, 2 (N+
1) A compare check is performed on the (N-1) power of +2 to the (N-1) power). The set cycle at this time is 2 to the (N-1) power (M=N-1). Steps S19 to S23 If there is no additional memory space 22, the result of the compare check will be an error, so the contents of the AC register are stored in the AOL register, and the contents of the AOH register remain as the previous value (2).
N + 1) power + 2 to the N power, set a new value in the AC register between the value of the AOH register and the value of the AOL register, perform a compare check on the new address specified by the AC register, and complete normally. Repeat until. If the process ends normally, proceed to step S1 in the same way as described above.
Returning to step 5, a compare check is performed on the address (AC-1 address) immediately before the address specified by the AC register. In the case of this embodiment, no error occurs in the compare check in step S18 because the additional memory space 22 exists at the address specified by the AC register. Then, repeat the above operation (step S
15, S16, S17, S18, S19, S15, S1
6,...), the start address of the additional memory space 22 is 2 to the power of (N+1) + 2 to the power of (N-1) + 2 to the power of (N-
3) Detect the power. The setting cycle at this time is 2 (N-3
) power (M=N-3).

【0019】次に、図5及び図6に基づいて、上記増設
メモリ空間22のエンドアドレスの検出動作について説
明する。ステップS30,S31  所定のメモリアド
レス値(増設メモリ空間22の特定アドレス、例えば2
のN1乗)をACレジスタに格納し、上記ACレジスタ
に指定されたアドレスに対して特定データの書込み及び
読出しを行い、コンペアチェックを行う。ステップS3
2,S33  コンペアチェックの結果がエラーか否か
を判断する。本実施例では、ACレジスタの指定するア
ドレスには増設メモリ空間22があるためエラーとなら
ず、上記ACレジスタの内容を上記AOLレジスタに格
納するとともに、上記ACレジスタの内容を2倍して、
再度上記ACレジスタに格納し直し、新たに指定された
アドレスに対してコンペアチェックを行う。ステップS
34  コンペアチェックエラーが発生するまで(本実
施例では、ACレジスタのアドレスが2の(N+3)乗
になるまで)、上記動作を順次繰り返す。そして、エラ
ーが発生した時点で、増設メモリ空間22のエンドアド
レスか否かを確認するため、ACレジスタが指定してい
るアドレスの一つ前のアドレス(AC−1番地)に対し
てコンペアチェックを行う。ステップS35〜S37 
 コンペアチェックの結果がエラーか否かを判断する。 本実施例では、まだこの時点でエラーが発生するため、
ACレジスタの内容(この時は、2の(N+3)乗)を
上記AOHレジスタに格納し、上記AOLレジスタの内
容は前の値のまま2のN1乗とし、ACレジスタにはA
OHレジスタの値とAOLレジスタの値の中間の値を新
たに設定し、ACレジスタに設定されたアドレスに対し
てコンペアチェックを行う。ステップS38,S39コ
ンペアチェックの結果がエラーか否かを判断する。エラ
ーが発生した場合は、増設メモリ空間22のエンドアド
レスか否かを確認するため、ACレジスタが指定してい
るアドレスの一つ前のアドレス(AC−1番地)に対し
てコンペアチェックを行う。ステップS40  コンペ
アチェックの結果がエラーか否かを判断する。増設メモ
リ空間22のエンドアドレスでない場合は、エラーとな
るため上記ステップS36,S37,S38,S39,
S40の動作を繰り返し行い、ステップS38でエラー
が発生しなくなると(増設メモリ空間22内をアクセス
すると)、ステップS41に進む。ステップS41〜S
43  ACレジスタの内容をAOLレジスタに格納し
、AOHレジスタの内容は前の値のまま2の(N+3)
乗とし、ACレジスタにはAOHレジスタの値とAOL
レジスタの値の中間の値を新たに設定し、ACレジスタ
の指定する新たなアドレスに対してコンペアチェックを
行い、エラーが発生するまで繰り返す。ステップS44
  エラーが発生すると、ACレジスタが指定している
アドレスの一つ前のアドレス(AC−1番地)に対して
コンペアチェックを行う。ステップS45  コンペア
チェックの結果がエラーか否かを判断する。エラーが発
生するとステップS36に戻り、上記動作を繰り返し行
い、増設メモリ空間22のエンドアドレスとして、2の
(N+2)乗+2のN乗+2の(N−3)乗−1を検出
する。
Next, the operation of detecting the end address of the additional memory space 22 will be explained based on FIGS. 5 and 6. Steps S30, S31 A predetermined memory address value (a specific address in the additional memory space 22, for example 2
(N1 power)) is stored in the AC register, specific data is written to and read from the address specified in the AC register, and a compare check is performed. Step S3
2, S33 Determine whether or not the result of the compare check is an error. In this embodiment, since there is an additional memory space 22 at the address specified by the AC register, no error occurs, and the contents of the AC register are stored in the AOL register, and the contents of the AC register are doubled.
The data is stored in the AC register again, and a compare check is performed on the newly designated address. Step S
34 Repeat the above operations in sequence until a compare check error occurs (in this embodiment, until the address of the AC register becomes 2 to the (N+3) power). When an error occurs, a compare check is performed on the address immediately before the address specified by the AC register (AC-1 address) to check whether it is the end address of the additional memory space 22. conduct. Steps S35 to S37
Determine whether or not the result of the compare check is an error. In this example, an error still occurs at this point, so
The contents of the AC register (in this case, 2 to the power of (N+3)) are stored in the AOH register, the contents of the AOL register are kept as 2 to the power of N1, and A is stored in the AC register.
A new value between the value of the OH register and the value of the AOL register is set, and a compare check is performed on the address set in the AC register. It is determined whether or not the result of the compare check in steps S38 and S39 is an error. If an error occurs, a compare check is performed on the address immediately before the address specified by the AC register (AC-1 address) in order to confirm whether it is the end address of the additional memory space 22. Step S40: Determine whether or not the result of the compare check is an error. If it is not the end address of the additional memory space 22, an error occurs and steps S36, S37, S38, S39,
The operation in S40 is repeated, and when no error occurs in step S38 (when the additional memory space 22 is accessed), the process advances to step S41. Steps S41-S
43 Store the contents of the AC register in the AOL register, and keep the contents of the AOH register as 2 (N+3).
and the AC register contains the value of the AOH register and AOL
A new intermediate value between the register values is set, a compare check is performed on the new address specified by the AC register, and the process is repeated until an error occurs. Step S44
When an error occurs, a compare check is performed on the address (AC-1 address) immediately before the address specified by the AC register. Step S45: It is determined whether the result of the compare check is an error. If an error occurs, the process returns to step S36, repeats the above operations, and detects 2 to the (N+2) power + 2 to the N power + 2 to the (N-3) power - 1 as the end address of the additional memory space 22.

【0020】このようにして、メモリ空間21の全域を
アクセスすることなく、かつ、少ないアクセス回数で自
動的に増設メモリ空間22のスタートアドレス、エンド
アドレス及び記憶容量を検出することができ、特にシス
テムのメモリ空間21が広い場合や、各種の増設メモリ
チップを扱う場合に効果が大きい。なお、本実施例では
増設メモリ空間22のスタートアドレス、エンドアドレ
ス及び記憶容量を自由な値に決めた場合でも検出できる
方法を説明したが、増設メモリ空間22のスタートアド
レス、エンドアドレス及び記憶容量が、例えば64Kビ
ットの整数倍になる実施例の場合においては、64Kビ
ットの周期でコンペアチェックを行うようにしてもよい
In this way, the start address, end address, and storage capacity of the additional memory space 22 can be automatically detected without accessing the entire area of the memory space 21 and with a small number of accesses. This is particularly effective when the memory space 21 of the system is large or when handling various types of additional memory chips. In addition, in this embodiment, a method that can be detected even when the start address, end address, and storage capacity of the expansion memory space 22 are set to arbitrary values has been explained. However, if the start address, end address, and storage capacity of the expansion memory space 22 are For example, in the case of an embodiment in which the number of bits is an integral multiple of 64K bits, the compare check may be performed at a cycle of 64K bits.

【0021】特に、メモリチップは、64Kビット,1
28Kビット,256Kビット,1Mビット,4Mビッ
ト等と2倍又は4倍の大きさで記憶容量がアップするた
め、該システムのメモリ空間21に割り付けられる増設
メモリ空間22に使用されるメモリチップの中で最も小
さいメモリチップのビット数をコンペアチェックの周期
とするとよい。
In particular, the memory chip is 64K bits, 1
Since the memory capacity increases by doubling or quadrupling the size to 28K bits, 256K bits, 1M bits, 4M bits, etc., the memory chips used in the additional memory space 22 allocated to the memory space 21 of the system are It is preferable to set the compare check period to the bit number of the smallest memory chip.

【0022】なお、本発明は上記実施例に限定されるも
のではなく、本発明の趣旨に基づいて種々変形すること
が可能であり、これらを本発明の範囲から排除するもの
ではない。
It should be noted that the present invention is not limited to the above-mentioned embodiments, and various modifications can be made based on the spirit of the present invention, and these are not excluded from the scope of the present invention.

【0023】[0023]

【発明の効果】以上詳細に説明したように、本発明によ
れば、メモリ空間のアドレスがアクセスされ、そのアド
レスに対してコンペアチェックが行われ、エラーが発生
したか否かが判断される。そして、エラーの発生の有無
が切り換わるまで、一方向に次第に大きくなる設定周期
でアクセスが行われ、エラーの発生の有無が切り換わる
たびに増設メモリ空間のスタートアドレス又はエンドア
ドレスのチェックが行われ、スタートアドレス又はエン
ドアドレスが検出されない場合には、アクセスの方向が
反対方向に切り換えられるとともに、次第に小さくなる
設定周期でアクセスが行われる。
As described in detail above, according to the present invention, an address in a memory space is accessed, a compare check is performed on the address, and it is determined whether an error has occurred. Then, access is performed at a set cycle that gradually increases in one direction until the presence or absence of an error is switched, and each time the presence or absence of an error is switched, the start address or end address of the additional memory space is checked. If the start address or end address is not detected, the direction of access is switched to the opposite direction, and access is performed at a set cycle that gradually becomes smaller.

【0024】したがって、少ないアクセス回数でかつ自
動的に、増設メモリ空間のスタートアドレス及びエンド
アドレスを検出することができ、上記増設メモリ空間の
システムのメモリ空間における位置と記憶容量を確認す
ることができる。また、メモリチップの記憶容量(増設
メモリ空間)は2のM(整数)乗で表現することができ
るとともに、例えば64Kビット,128Kビット,2
56Kビット,1Mビット,4Mビット等と2倍又は4
倍の大きさで記憶容量がアップするため、増設メモリ空
間のスタートアドレス、エンドアドレス及び記憶容量は
、使用されるメモリチップの中で最も記憶容量の小さな
メモリチップの整数倍になる。したがって、メモリ空間
をアクセスするための設定周期を、上記システムで使用
されるメモリチップの中で最も記憶容量の小さいメモリ
チップのビット数とするか、2のM(整数)乗とすると
、増設メモリ空間のスタートアドレス及びエンドアドレ
スを検出するまでのアクセス回数を少なくすることがで
きる。
[0024] Therefore, the start address and end address of the extended memory space can be automatically detected with a small number of accesses, and the position and storage capacity of the extended memory space in the system memory space can be confirmed. . In addition, the storage capacity of a memory chip (expansion memory space) can be expressed as 2 to the power of M (an integer), and for example, 64K bits, 128K bits, 2
56K bits, 1M bits, 4M bits, etc. and double or 4
Since the storage capacity increases by doubling the size, the start address, end address, and storage capacity of the expanded memory space are integral multiples of the memory chip with the smallest storage capacity among the memory chips used. Therefore, if the setting cycle for accessing the memory space is set to the number of bits of the memory chip with the smallest storage capacity among the memory chips used in the above system, or to the power of 2 M (an integer), then the additional memory The number of accesses required to detect the start address and end address of the space can be reduced.

【0025】特に、記憶容量の異なる複数種類の増設メ
モリチップを扱う場合でも容易に記憶容量を確認するこ
とができる。
In particular, even when dealing with multiple types of additional memory chips with different storage capacities, the storage capacity can be easily checked.

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

【図1】本発明のメモリ記憶容量確認方法の説明図であ
る。
FIG. 1 is an explanatory diagram of a memory storage capacity confirmation method according to the present invention.

【図2】従来のメモリ記憶容量確認方法の説明図である
FIG. 2 is an explanatory diagram of a conventional memory storage capacity confirmation method.

【図3】増設メモリ空間のスタートアドレスの検出動作
の第1のフローチャートである。
FIG. 3 is a first flowchart of an operation for detecting a start address of an additional memory space.

【図4】増設メモリ空間のスタートアドレスの検出動作
の第2のフローチャートである。
FIG. 4 is a second flowchart of an operation for detecting a start address of an additional memory space.

【図5】増設メモリ空間のエンドアドレスの検出動作の
第1のフローチャートである。
FIG. 5 is a first flowchart of an operation for detecting an end address of an additional memory space.

【図6】増設メモリ空間のエンドアドレスの検出動作の
第2のフローチャートである。
FIG. 6 is a second flowchart of an operation for detecting an end address of an additional memory space.

【符号の説明】[Explanation of symbols]

21    メモリ空間 22    増設メモリ空間 21 Memory space 22 Expansion memory space

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  システムのメモリ空間にRAMで構成
される増設メモリ空間を割り付ける場合のメモリ記憶容
量確認方法において、(a)メモリ空間のアドレスをア
クセスし、(b)アクセスしたアドレスに対して、デー
タの書込み、読出し及びコンペアチェックを行い、(c
)コンペアチェックの結果、エラーが発生したか否かを
判断し、(d)エラーの発生の有無が切り換わるまで、
メモリ空間のアドレスを一方向に次第に大きくなる設定
周期でアクセスし、(e)エラーの発生の有無が切り換
わるたびに、一つ手前のアドレスに対してコンペアチェ
ックを行って増設メモリ空間のスタート/エンドアドレ
スを検出し、(f)該スタート/エンドアドレスを検出
しない場合に、反対方向に次第に小さくなる設定周期で
アクセスすることを特徴とするメモリ記憶容量確認方法
Claim 1. In a method for checking memory storage capacity when allocating an additional memory space consisting of RAM to a system memory space, (a) an address in the memory space is accessed; (b) for the accessed address, Write, read, and compare check data, (c
) As a result of the compare check, it is determined whether or not an error has occurred, and (d) until it is switched whether an error has occurred or not,
Addresses in the memory space are accessed in one direction at a set cycle that gradually increases, and (e) each time the presence or absence of an error changes, a compare check is performed on the previous address to start/start the expanded memory space. A method for checking memory storage capacity, comprising: detecting an end address; and (f) accessing in the opposite direction at a set cycle that gradually becomes smaller when the start/end address is not detected.
【請求項2】  上記メモリ空間をアクセスするための
設定周期が、上記システムで使用されるメモリチップの
中で最も記憶容量の小さいメモリチップのビット数を基
準とする請求項1記載のメモリ記憶容量確認方法。
2. The memory storage capacity according to claim 1, wherein the set cycle for accessing the memory space is based on the number of bits of a memory chip with the smallest storage capacity among the memory chips used in the system. Confirmation method.
【請求項3】  上記メモリ空間をアクセスするための
設定周期が2のM(整数)乗である請求項1記載のメモ
リ記憶容量確認方法。
3. The method for checking memory storage capacity according to claim 1, wherein the set period for accessing the memory space is 2 to the power of M (an integer).
JP3129101A 1991-05-31 1991-05-31 Confirming method for memory storage capacity Withdrawn JPH04353946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3129101A JPH04353946A (en) 1991-05-31 1991-05-31 Confirming method for memory storage capacity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3129101A JPH04353946A (en) 1991-05-31 1991-05-31 Confirming method for memory storage capacity

Publications (1)

Publication Number Publication Date
JPH04353946A true JPH04353946A (en) 1992-12-08

Family

ID=15001098

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3129101A Withdrawn JPH04353946A (en) 1991-05-31 1991-05-31 Confirming method for memory storage capacity

Country Status (1)

Country Link
JP (1) JPH04353946A (en)

Similar Documents

Publication Publication Date Title
US6170039B1 (en) Memory controller for interchanging memory against memory error in interleave memory system
US6125424A (en) Method of writing, erasing, and controlling memory and memory device having erasing and moving components
EP0009412A2 (en) Block replacement in a high speed cache memory system
US5611042A (en) Data error detection and correction for a shared SRAM
JP3122222B2 (en) Memory card device
CN100403443C (en) Method and apparatus for analyzing and repairing memory
US5757817A (en) Memory controller having automatic RAM detection
AU604101B2 (en) High availability cache organization
JPH04353946A (en) Confirming method for memory storage capacity
JPH05274219A (en) Storage device
GB2204721A (en) Method and apparatus for determining available memory size
JP2003050747A (en) Method for rewriting data of non-volatile memory
JPH0863406A (en) Memory access controller
JP3001464B2 (en) Microprocessor device
JPH02196356A (en) Information processor
JP3074984B2 (en) Memory management device
JPH01119843A (en) Address converter
JPS6136669B2 (en)
JPS6180342A (en) Memory control device
JPH04281541A (en) Writing system to storage device with writing number of time restraint
JPH04350731A (en) Development backup system
JPS6219950A (en) Address error detection system for storage device
JPH0816471A (en) Memory device and cache memory device
JPH06259335A (en) External storage device
JPH04372027A (en) Automatic identification method for memory capacity

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980806