JPS59197943A - System for detecting address space of memory - Google Patents

System for detecting address space of memory

Info

Publication number
JPS59197943A
JPS59197943A JP58070916A JP7091683A JPS59197943A JP S59197943 A JPS59197943 A JP S59197943A JP 58070916 A JP58070916 A JP 58070916A JP 7091683 A JP7091683 A JP 7091683A JP S59197943 A JPS59197943 A JP S59197943A
Authority
JP
Japan
Prior art keywords
memory
address space
address
ram
bus
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
JP58070916A
Other languages
Japanese (ja)
Inventor
Kenji Matsuse
松瀬 健司
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP58070916A priority Critical patent/JPS59197943A/en
Publication of JPS59197943A publication Critical patent/JPS59197943A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

Abstract

PURPOSE:To identify a packed address space and surely detect an effective address space in accordance with the change in a memory address space, by writing a prescribed data pattern in a memory space and reading out said pattern. CONSTITUTION:A central controller 12, ROM 14, RAM 16 as a main storage device and I/O interface 18, further a connector 30 are connected with the system bus 10 of the address space detecting system of a memory. An RAM 26 used as a storage device for extension is connected to the connector 30 attachably and detachably. This system is constituted in such a way that each of the RAMs 16 and 26 can be used as the work area of the CPU 12. Moreover, this system is constituted so that an address is appointed by the address bus 20 of this system and a prescribed data pattern is written in the RAM 16 or RAM 26 through a data bus 22, and then, the data is read out. In addition to the above, an effective address space is accurately detected in accordance with the change in a memory address space and the expansion and contraction of the system are made easier.

Description

【発明の詳細な説明】 皮亙次■ 本発明はメモリのアドレス空間検出方式、とくに、メモ
リのハードウェア構成を変えることによってアドレス空
間を変更、すなわち拡張または  ゛縮小することがで
きる処理システムにおけるメモリのアドレス空間検出方
式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for detecting a memory address space, and particularly to a method for detecting a memory address space in a processing system in which the address space can be changed, that is, expanded or contracted by changing the hardware configuration of the memory. The present invention relates to an address space detection method.

鐙XJL苅 たとえば、パーソナルコンピュータ、オフィスコンピュ
ータ、ワードプロセッサなどの小型のコンピュータにお
いて、処理システムの基本構成に含まれるメインメモリ
すなわち主記憶の他に、オプションホードに搭載された
メモリすなわち増設メモリをシステムバスにコネクタを
介して着脱可能に接続できるものがある。このようなメ
モリの拡張または縮小は一般に、ランダムアクセスメモ
リ(RAに)に多く適用され、処理装置のワークエリア
として使用可能なアドレス空間をオプションホードの着
脱操作によって容易に拡張または縮小することができる
Stirrup Some devices can be detachably connected via connectors. Such memory expansion or contraction is generally applied to random access memory (RA), and the address space that can be used as a processing unit's work area can be easily expanded or contracted by attaching or detaching an option hold. .

処理装置は、メモリの状況を把握してメモリエリアを有
効に使用するために、一般に読出し専用記憶装置(RO
M)のプートローダにメモリチェック機能を備えている
。しかし、従来のメモリチェック方式では、固定的なア
ドレス空間しかチェックできなかった。
Processing units generally use read-only storage (RO) to keep track of memory status and use memory areas effectively.
M)'s puto loader is equipped with a memory check function. However, conventional memory checking methods can only check fixed address spaces.

たとえばメインボードのアドレス空間のみをチェックす
るように構成されている場合は、前述のようなオプショ
ンボードの装着によるアドレス空間の拡張に対しては、
その増設されたアドレス空間を無視することになり、そ
の部分についてメモリチェックは行なわれない。また、
挿入可能なオプションボードのアドレス空間についても
あらかじめチェック機能を用意する方式では、オプショ
ンボードを挿入していない場合はメモリチェック動作に
おいてメモリ障害と識別されてしまい、正常なメモリチ
ェック動作を行なうことができない。したかって、メモ
リアドレス空間の変更、すなわち拡張または縮小に応じ
て有効な全アドレス空間を常時把握し、メモリチェック
できる必要がある。
For example, if the configuration is configured to check only the address space of the main board, when the address space is expanded by installing an option board as described above,
The added address space will be ignored and no memory check will be performed for that part. Also,
In a method in which a check function is prepared in advance for the address space of insertable option boards, if no option board is inserted, a memory failure will be identified during the memory check operation, and the memory check operation cannot be performed normally. . Therefore, it is necessary to constantly grasp the entire valid address space in response to changes in the memory address space, that is, expansion or contraction, and to be able to check the memory.

止−−1 本発明はこのような従来技術の欠点を解消し、メモリア
ドレス空間の変更に応じて有効なアドレス空間を的確に
検出することかできるメモリのアドレス空間検出力式を
提供することを目的とする。
Stop--1 The present invention aims to eliminate the drawbacks of the prior art and provide a memory address space detection power formula that can accurately detect a valid address space in response to changes in the memory address space. purpose.

椹−一一戒 本発明の構成について以下、一実施例に基づいて説明す
る。
DETAILED DESCRIPTION OF THE INVENTION The structure of the present invention will be described below based on one embodiment.

第1図を参照すると、例として示された本発明のゝメモ
リのアドレス空間検出方式を適用した処理システムは、
システムバス10に中央処理装置(CPU) 12、R
OM 14、主記憶装置としてのRAM 16、および
入出力装置(Ilo)インタフェース18なとが接続さ
れている。システムパス10はアト[/スフヘス20、
データバス22および命令バス24からなる。
Referring to FIG. 1, a processing system to which the memory address space detection method of the present invention is applied is shown as an example.
Central processing unit (CPU) 12, R on system bus 10
An OM 14, a RAM 16 as a main storage device, and an input/output device (Ilo) interface 18 are connected. System path 10 is at[/sufhes 20,
It consists of a data bus 22 and an instruction bus 24.

RAM 16は木システムにたとえばメインボードとし
て初期から)1(本搭載されている主記憶装置であり、
これに対し、たとえばオプションボードに搭・1アされ
る他の増設用記憶装置はRAM 28として点線で示さ
れている。RAM 28はコネクタ30によってシステ
ムバス10に着脱可能に接続される。増設用RAMは1
単位すなわちボード1枚とは限らず、バス10に設けら
れたコネクタの数だけ増設可能である。ここに示す説明
のだめの実施例では、RAに16は192にバイトの記
憶容量を有し、RAM 2Bは84にバイ[・単位で増
設可能であるとする。これらのRAM18および26な
どのメモリ空間はCPU 12のワークエリアとして使
用される。
RAM 16 is the main storage device installed in the tree system (for example, as a main board from the beginning).
On the other hand, another additional storage device mounted on an option board, for example, is indicated by a dotted line as RAM 28. RAM 28 is removably connected to system bus 10 by connector 30. Expansion RAM is 1
The unit is not limited to one board, but can be increased by the number of connectors provided on the bus 10. In the non-explanatory embodiment shown here, it is assumed that the RA has a storage capacity of 16 to 192 bytes, and that the RAM 2B can be expanded in units of 84 bytes. These memory spaces, such as RAMs 18 and 26, are used as work areas for CPU 12.

ROM +4は本システムを制御したり、特定の処理を
行なったりするだめの制御および処理プログラムが記憶
され、本発明に係るメモリアドレス空間検出のためのメ
モリチェックプログラムもこれに蓄積されている。
The ROM +4 stores control and processing programs for controlling this system and performing specific processing, and also stores therein a memory check program for detecting memory address space according to the present invention.

たとえば第2図に示すように、絶対アドレス00000
H(16進法表記)から2FFFFHまでの192KB
(バイト)が実装され、それ以降の絶対アドレスの記憶
領域は実装されていないとする。同図において、この実
装されている部分は実線で示し、実装されていない部分
は点線で示す。
For example, as shown in Figure 2, the absolute address 00000
192KB from H (hexadecimal notation) to 2FFFFH
(byte) is implemented, and the storage area for absolute addresses after that is not implemented. In the figure, the mounted parts are shown by solid lines, and the unmounted parts are shown by dotted lines.

米実施例では、ROM 14のメモリチェックプログラ
ムは、メモリのアドレスバスにおけるl114KB単位
の各記憶領域すなわちメモリセグメントについて、その
セグメントにおける所定の記憶位置、たとえば先頭アド
レスに所定のパターンのデータを書き込む。次に、同じ
先頭アドレスを指定して読み出し動作を行ない、これに
応動してシステムバスから返送されたデータがこの所定
のパターンであるか否かをチェックし、有効なアドレス
空間の検出を行なう。一般に、1枚のメモリボー1・゛
には複数のメモリチップを搭載可能であるので、このセ
グメントの大きさはメモリボードの大きさに等しく設定
するよりも、メモリチップの大きさに等しく設定するの
が有利である。
In the US embodiment, the memory check program of the ROM 14 writes data of a predetermined pattern to a predetermined storage location, for example, the start address, of each storage area of 114 KB units, ie, memory segment, on the address bus of the memory, in that segment. Next, a read operation is performed by specifying the same start address, and in response, it is checked whether the data returned from the system bus is in this predetermined pattern, and a valid address space is detected. In general, since multiple memory chips can be mounted on one memory board 1, it is better to set the size of this segment equal to the size of the memory chip rather than setting it equal to the size of the memory board. is advantageous.

第3図のフロー図および第4図の機能ブロック図を参照
してより詳細に説明する。両図は対応するステップとブ
ロックが同じ参照符号で示されている。メモリチェック
プログラムが起動されるとまず、各セグメントを初期化
したのち(ステップ50)、アドレスバス20によって
最初のセグメント40(第2図)の先頭アドレス0OO
OOHを指定し、データ/ヘス22を介してこれに所定
のパターンとしてたとえばOOH(すなわち2進の全「
0」)を書き込む(52)。なお、上記所定のパターン
はこの例にとくに限定される必要はなく、他のパターン
であってもよい。次にCPU12は、同じセグメント4
0の先頭アドレス0OOOOHを指定してその内容をデ
ータバス22に読み出す動作を行ない(54) 、その
読み出したデータがOOHであるか否かをチェックする
(56)。
This will be explained in more detail with reference to the flow diagram of FIG. 3 and the functional block diagram of FIG. 4. In both figures, corresponding steps and blocks are designated with the same reference numerals. When the memory check program is started, first, each segment is initialized (step 50), and then the start address 0OO of the first segment 40 (FIG. 2) is set by the address bus 20.
For example, specify OOH (i.e., all binary "
0'') is written (52). Note that the above-mentioned predetermined pattern does not need to be particularly limited to this example, and may be any other pattern. Next, the CPU 12 selects the same segment 4.
The first address 0OOOOH of 0 is specified and the contents thereof are read onto the data bus 22 (54), and it is checked whether the read data is OOH or not (56).

本システムでは、メモリ実空間が存在しないアドレスに
書込み動作を行なった場合は、データバス22に所定の
パターンのデータ、たとえばFFH(2進の全[IJ)
が返送されるように構成されている。これは、増設RA
に26が接続されていない状態では、たとえばハスコネ
クタ3oのコネクタ端子を開放または所定の基準電位に
保持することによって行なってもよい。このパターンは
この例にとくに限定される必要はなく、他のパターンで
あってもよい。そこで上述の例では、絶対アドレス0O
OOOHを指定した読出し動作ではアドレス空間が実在
するのでデータ/丸ス22にはOOHが返送されるはず
である。
In this system, when a write operation is performed to an address where no real memory space exists, a predetermined pattern of data is sent to the data bus 22, such as FFH (binary full [IJ]).
is configured to be returned. This is an additional RA
In the state where 26 is not connected, this may be done, for example, by leaving the connector terminal of the helical connector 3o open or holding it at a predetermined reference potential. This pattern does not need to be particularly limited to this example, and may be any other pattern. Therefore, in the above example, the absolute address 0O
In a read operation that specifies OOOH, since the address space actually exists, OOH should be returned to the data/circle space 22.

00Hが返送された場合には、制御は次のセグメント4
2について同じ検出動作を行なう。この実施例では、4
桁のセグメントレジスタ(図示せず)の内容と4ビツト
のオフセットレジスタ(図示せず)の内容とでメモリ空
間の絶対アドレスが指定される。したかって、セグメン
トレジスタの内容に100OHを加算することによって
次のセグメント42の先頭アドレスIQOOOHの指定
が行なわれる(60)。
If 00H is returned, control moves to the next segment 4.
The same detection operation is performed for 2. In this example, 4
An absolute address in the memory space is specified by the contents of a digit segment register (not shown) and the contents of a 4-bit offset register (not shown). Therefore, the starting address IQOOOH of the next segment 42 is designated by adding 100OH to the contents of the segment register (60).

このようにして、各セグメントの先頭アドレスにOOH
を書き込んではこれを読み出し、OOHが読み出されれ
ば、セグメントレジスタの内容がFOOOHに達するま
でこれを繰り返す(58)。セグメントレジスタの内容
かFOOOHに達すれば、未実施例において16ビツト
で指定可能なすべてのセグメント、すなわち全アドレス
空間についてこのメモリチェック動作を行なったことに
なり、チェックシーケンスを終了し、他の処理に移行す
る。
In this way, OOH is added to the start address of each segment.
is written and read out, and if OOH is read out, this is repeated until the contents of the segment register reach FOOOH (58). If the contents of the segment register reach FOOOH, this memory check operation has been performed for all segments that can be specified with 16 bits in the unimplemented example, that is, the entire address space, and the check sequence is finished and other processing is started. Transition.

ところで、ステップ56において00)1が検出されな
いと、CPU 12はデータバス22から受けたデータ
かFFH、すなわち2進の全「1」であるか否かをチェ
・ツクする(62)。この実施例では前述のように、ア
ドレス空間の存在しないところに書込み動作を行なうと
所定のパターンとしてFFHがデータバス22に返送さ
れるようにバスコネクタ30(第1図)が構成されてい
る。そこで、デーク/\ス22に00HまたはFFH以
外のデータが返送された場合は、メモリ障害の可能性が
あるので、CPU 12はI10インタフェース18を
介してたとえば表示装置(図示せず)に「エラー」を表
示し、エラー処理を行ない、扱者の指示を待つ(68)
By the way, if 00)1 is not detected in step 56, the CPU 12 checks whether the data received from the data bus 22 is FFH, that is, all binary "1"s (62). In this embodiment, as described above, the bus connector 30 (FIG. 1) is configured so that when a write operation is performed to a location where no address space exists, FFH is returned to the data bus 22 as a predetermined pattern. Therefore, if data other than 00H or FFH is returned to the database 22, there is a possibility of a memory failure. ” is displayed, error handling is performed, and the operator waits for instructions (68).
.

しかしFFHが返送された場合には、実在しないアI・
レス空間、すなわち無効なアドレス空間について潟込み
動作を行なった可能性かあるので、さらにこれを確認す
るために制御は次のステ、アブ64に移行する。
However, if the FFH is returned, the non-existent
Since there is a possibility that the interpolation operation was performed on the address space, that is, the invalid address space, the control moves to the next step, AB 64, to further confirm this.

たとえは第2図のセグメント44ではアドレス空間が実
在するため、ステフプ56でOOHが検出された。しか
し、セグメン)・46は実在しないのでその先頭アドレ
ス30000HにOOHの書込み動作を行なうとFFH
が返送されるはずである。FFHが返送されるとステッ
プ64では、そのセグメント48のすべての記憶位置、
すなわち絶対アドレス30000Hから3FFFFHま
での84KBの記憶位置にOOHを書き込む動作を行な
う。次にCPU 12は、同じセグメント46の全記憶
位置をアドレス指定してその内容の読出し動作を行なう
(機能ブロック70、第41N)。
For example, in segment 44 of FIG. 2, an address space exists, so OOH is detected in step 56. However, since segment 46 does not exist, if an OOH write operation is performed to its first address 30000H, FFH
should be returned. Once the FFH is returned, step 64 includes all memory locations of that segment 48,
That is, an operation is performed to write OOH to the 84 KB storage location from absolute address 30000H to 3FFFFH. Next, the CPU 12 addresses all storage locations of the same segment 46 and performs a read operation of their contents (function block 70, No. 41N).

この例では、セグメント4Bにアドレス空間が実在しな
いので、データバス22にはFFHか返送されるはずで
ある。そこでステップ66においてFF)Iが返送され
たか否かを判定し、セグメント46のすべてのアドレス
についてFFI(が返送されればそのメモリ空間が存在
しないものと判断される。そこでCPU 12は、その
セグメント46の直前のセグメント44までを有効なメ
モリ空間として識別する(機能ブロック72、第4図)
。これによってメモリチェックシーケンスを終了し、次
の処理に移行する。また、FFH以外のデータがいずれ
かの記憶位置からでも返送されれば何らかのメモリ障害
と判断され 前述のエラー表示または処理が行なわれる
(68)。
In this example, since there is no real address space in segment 4B, FFH should be returned to data bus 22. Therefore, in step 66, it is determined whether or not FF)I has been returned, and if FFI() has been returned for all addresses of the segment 46, it is determined that the memory space does not exist.Therefore, the CPU 12 46 and up to segment 44 are identified as valid memory space (function block 72, FIG. 4).
. This ends the memory check sequence and moves on to the next process. Furthermore, if data other than FFH is returned from any storage location, it is determined that some kind of memory failure has occurred, and the above-mentioned error display or processing is performed (68).

鉦−一】 このように本発明によれば、メモリ空間に所定のデータ
パターンを占き込んでこれを読み出すことにより、実装
されているアドレス空間を識別している。したがって、
メモリアドレス空間の拡大、縮小などの変更に影響され
ることなく常に有効なアドレス空間を的確に検出するこ
とができる。また、この検出動作とあわせてメモリ機能
の動作試験も行なうことかできる。したがって、本発明
によるメモリのアドレス空間検出方式は小型のコンピュ
ータ、とくに、日本abおよび外国語のワードプロセッ
サ、オフコン、パソコン、テレテックスならひに電子タ
イプライタなどのオペレーティングシステムに効果的に
適用することができる。
As described above, according to the present invention, the installed address space is identified by inserting a predetermined data pattern into the memory space and reading it out. therefore,
A valid address space can always be accurately detected without being affected by changes such as expansion or contraction of the memory address space. In addition to this detection operation, an operation test of the memory function can also be performed. Therefore, the memory address space detection method according to the present invention can be effectively applied to small computers, especially operating systems such as Japanese AB and foreign language word processors, office computers, personal computers, and Teletex Narahi electronic typewriters. can.

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

第1図は本発明によるメモリのアドレス空間検出ブ〕式
を適用した処理システムの例を示すブロック図、 第2図はアドレス空間を説明するためのメモリ構成図、 第3図は本発明によるメモ1ノのアドレス空間検出方式
を実行する制御フローを示すフロー図、第4図は第3図
に示す制御を実行する機能ブロックを示す機能ブロック
図である。 支1」分の符号の説明 123.中央処理装置 14.9読出し専用記憶装置 18.2B、  ランダムアクセスメモリ20、、、ア
ドレスバス 22、、、データバス 309.  コネクタ 40、、、メモリセグメント 特許出願人  株式会社リコー 第1図 第2図 第3図
Fig. 1 is a block diagram showing an example of a processing system to which the memory address space detection formula according to the present invention is applied; Fig. 2 is a memory configuration diagram for explaining the address space; Fig. 3 is a memo according to the present invention. FIG. 4 is a flow diagram showing a control flow for executing the address space detection method of No. 1, and FIG. 4 is a functional block diagram showing functional blocks for executing the control shown in FIG. 3. Explanation of the symbol for "branch 1" 123. Central processing unit 14.9, read-only storage 18.2B, random access memory 20, . . . address bus 22, . . . data bus 309. Connector 40...Memory Segment Patent Applicant Ricoh Co., Ltd. Figure 1 Figure 2 Figure 3

Claims (1)

【特許請求の範囲】 複数の記憶領域を含むメモリのアドレス空間を該記憶領
域」う位で変更することができる処理システムにおける
メモリのアドレス空間検出方式において。 該記憶領域における所定の記憶位置をアドレス指定して
所定のパターンのデータの書込み動作を行ない、次に該
記憶位置をアドレス指定して読出し動作を行ない、該続
出し動作に応動して返送されたテークか前記所定のパタ
ーンを有するか否かを検出することによって、該メモリ
における有効なアドレス空間を検出することを特徴とす
るメモリのアドレス空間検出方式。
[Scope of Claim] A method for detecting a memory address space in a processing system in which the address space of a memory including a plurality of storage areas can be changed depending on the storage area. A predetermined storage location in the storage area is addressed to write a predetermined pattern of data, then the storage location is addressed to perform a read operation, and the data is returned in response to the continuous read operation. A memory address space detection method, characterized in that a valid address space in the memory is detected by detecting whether or not a take has the predetermined pattern.
JP58070916A 1983-04-23 1983-04-23 System for detecting address space of memory Pending JPS59197943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58070916A JPS59197943A (en) 1983-04-23 1983-04-23 System for detecting address space of memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58070916A JPS59197943A (en) 1983-04-23 1983-04-23 System for detecting address space of memory

Publications (1)

Publication Number Publication Date
JPS59197943A true JPS59197943A (en) 1984-11-09

Family

ID=13445302

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58070916A Pending JPS59197943A (en) 1983-04-23 1983-04-23 System for detecting address space of memory

Country Status (1)

Country Link
JP (1) JPS59197943A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61273649A (en) * 1985-05-28 1986-12-03 ミテル・コ−ポレ−シヨン Memory management system for computer
JPS63241649A (en) * 1987-03-23 1988-10-06 インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン Microcomputer system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61273649A (en) * 1985-05-28 1986-12-03 ミテル・コ−ポレ−シヨン Memory management system for computer
JPS63241649A (en) * 1987-03-23 1988-10-06 インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン Microcomputer system

Similar Documents

Publication Publication Date Title
US4999770A (en) Command controlled multi-storage space protection key pretesting system permitting access regardless of test result if selected key is predetermined value
GB2201016A (en) Memories and the testing thereof
JPH03252993A (en) Information writing device for e2prom
JPS59197943A (en) System for detecting address space of memory
JPH1097471A (en) Method and system for error correction of memory data
JPH0283736A (en) Osc detection system for buffer memory controller
JP2954666B2 (en) Memory check method
JPH0140432B2 (en)
KR940011048B1 (en) Method of and device for addressing extended memory
JP2587468B2 (en) Lock data setting device
JPH09198274A (en) Method for testing device having processor and ram
JPH09305485A (en) Image memory control system
WO2000014645A1 (en) Method and apparatus for comparing an address sent on a bus to a device's assigned address or addresses
JPS6238746B2 (en)
JPH0916483A (en) Address bus testing device
JP2547329B2 (en) Lock data setting device
JPH1040125A (en) Microcomputer
JPH0269844A (en) System for switching page of memory
JPS60549A (en) Memory testing system
JPH0346920B2 (en)
JPH02171991A (en) Control method for ic card
JPH04257030A (en) Rom patch system
JPH05290589A (en) Semiconductor integrated circuit
JPS61123950A (en) Memory access control method
JPS58192123A (en) Device for transferring and controlling input and output data