JPS60175161A - Memory access system - Google Patents

Memory access system

Info

Publication number
JPS60175161A
JPS60175161A JP59030677A JP3067784A JPS60175161A JP S60175161 A JPS60175161 A JP S60175161A JP 59030677 A JP59030677 A JP 59030677A JP 3067784 A JP3067784 A JP 3067784A JP S60175161 A JPS60175161 A JP S60175161A
Authority
JP
Japan
Prior art keywords
memory
bits
conversion table
address
memory device
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
JP59030677A
Other languages
Japanese (ja)
Inventor
Takao Hayashi
孝雄 林
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP59030677A priority Critical patent/JPS60175161A/en
Publication of JPS60175161A publication Critical patent/JPS60175161A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Memory System (AREA)

Abstract

PURPOSE:To form easily a program and to improve a processing speed by applying the different number of bits to an address part for an instruction word and forming a memory access means in addition to an access means using a conversion table. CONSTITUTION:The 1st memory access means uses the conversion table 3. The 2nd memory access means is formed independently from the 1st means and uses an instruction word address part consisting of 18 bits increased by 2 bits from an address part handled by the 1st means. Since 5 bits are assigned to a logical page No., it is unnecessary to convert the logical page No. into a physical page No. by referring the conversion table 3. The logical page No. can be made to correspond to the physical page No. of 7 bits originally, so that the reference of the conversion table 3 is unnecessary and only a memory protecting table 4 may be referred when the physical address is to be found out.

Description

【発明の詳細な説明】 (技術分野) 本発明はメモリアクセス方式、特に中央処理装置とメモ
リ装置とを含む電子計算機におけるメモリアクセス方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to a memory access method, and particularly to a memory access method in an electronic computer including a central processing unit and a memory device.

(従来技術) 電子計i機に用いられる命令ワードは命令コード部と、
演算の対象となるデータが記憶されているメモリ装置あ
るいはレジスタのアドレスを指定するアドレス部とから
構成されている。また、メモリ装置には複数ビットを1
ワードとしたメモリごとにアドレスが付けられている。
(Prior art) The instruction word used in the electronic meter consists of an instruction code part,
It consists of an address section that specifies the address of a memory device or register in which data to be operated is stored. In addition, multiple bits can be stored in one memory device.
An address is assigned to each word of memory.

従って命令ワードのアドレス部は絶対アドレス指定時に
はメモリ装置の最大ワード数のアドレスが指定できるビ
ット数が割当られ、メモリ容量を大きくするに従ってア
ドレス部のビット数が大きくなシ、命令ワード全体が長
くなつて%これを格納するメモリ装置も大きくなシ装置
電用に大きな影響を与えている。このためアドレス部の
ビット数を押えて直接指定できアドレス数が小さくても
大容量のメモリ装置を使えるように工夫がなされている
Therefore, when specifying absolute addressing, the address field of an instruction word is assigned the number of bits that can specify the address of the maximum number of words in the memory device, and as the memory capacity increases, the number of bits in the address field increases, and the entire instruction word becomes longer. The memory device used to store this information also has a significant impact on large devices. For this reason, efforts have been made to reduce the number of bits in the address field so that it can be specified directly and a large capacity memory device can be used even if the number of addresses is small.

第1図はこの半うな大容量のメモリ装置を使用する場合
に実施されている従来のメモリアクセス方式の説明図で
、この例では命令ワードに含まれているアドレス部のビ
ット数が16ビツトの場合を示しており、このアドレス
部を論理アドレスと称しメモリ装置(MUM)2へのア
クセス時には、このアドレス部は論理アドレスレジスタ
1に導かれる。しかしこのビット数では直接には64に
ワードのメモリにしかアクセスすることができない。
Figure 1 is an explanatory diagram of the conventional memory access method implemented when using a memory device with a capacity of about half this size. In this example, the number of bits in the address field included in the instruction word is 16 bits. This address part is called a logical address, and when accessing the memory device (MUM) 2, this address part is guided to the logical address register 1. However, this number of bits allows direct access to only 64 words of memory.

一方メモリ装置は256にワードの容量をもち、この何
処にもアクセスできる必要がある。このため256にワ
ードのメモリは2にワードごとの128のページに分割
されていて、ページごとにそれぞれ物理ページ番号(P
PN)が7はットで指定されている。また論理アドレス
の16ビツトは5ビツトの論理ページ番号(LPN)と
11ビツトの変位(DISP)に分割した構成をとうて
いる。さらにまた前記5ビツトの論理ページ番号で表わ
される32のエントリのそれぞれに対応用して7ビツト
からなる物理ページ番号に変換することのできる変換テ
ーブル3を有している。この変換テーブル3は高速メモ
リ等で構成されていて、プログ2ム作成時に、次に使用
する命令ワードまたはオペランドワードの物理ページ番
号を前照して、そのプログラムの前にプログ2ムによル
書替えるとか、プログラム管理のオペレーテングシステ
ムによって書替えるとかして使用される。なおこの変換
テーブル3は7ビツトの物理ページ番号に対応する1ビ
ツトのメモリ保護ビットを有していて、変換テーブル3
の書替時に、システム立上時に物理ページ番号ごとに使
用目的から設定されたメモリプロテクト表4を参照して
書替の可否を書込んでおき、物理ページへの変換に併せ
て、このビットを読出し、メモリへのアクセスに際して
禁止ページへの書込が行なわれないようにしている。
On the other hand, a memory device has a capacity of 256 words and must be able to access any part of this. For this reason, a memory of 256 words is divided into 128 pages of 2 words each, and each page has a physical page number (P
PN) is specified by 7. The 16-bit logical address is divided into a 5-bit logical page number (LPN) and an 11-bit displacement (DISP). Furthermore, it has a conversion table 3 capable of converting each of the 32 entries represented by the 5-bit logical page number into a 7-bit physical page number. This conversion table 3 is made up of high-speed memory, etc., and when creating a program, the physical page number of the instruction word or operand word to be used next is checked in advance, and the conversion table 3 is read by the program before that program. It is used for rewriting or rewriting by the program management operating system. Note that this conversion table 3 has a 1-bit memory protection bit corresponding to a 7-bit physical page number.
When rewriting the page, refer to the memory protection table 4 set based on the purpose of use for each physical page number at system startup, and write whether or not rewriting is possible. Writing to prohibited pages is prevented when reading and accessing the memory.

なお、論理アドレス中の変位を表わす11ビツトは物理
ページ2にワード中の第何ワード目に当るかを表わして
いる。
It should be noted that the 11 bits representing the displacement in the logical address represent the word number of the words in the physical page 2.

従ってこの計算機においては、命令ワードが指定する論
理アドレスからメモリ装置にアクセスするためには、論
理ページ番号lから変換テーブル3を用いて物理ページ
番号五を取出し、変位りと併せて物理アドレスを作成す
ることとなる。しかも一度書替えた変換テーブル3に物
理ページ番号がない場合には、前記のごとく変換テーブ
ル3を書替えて物理ページ番号をめる操作が必要となシ
、プログラム作成が面倒で8シ、また処理速度も落ると
占う欠点を有している。
Therefore, in this computer, in order to access the memory device from the logical address specified by the instruction word, use the conversion table 3 to extract the physical page number 5 from the logical page number l, and create the physical address along with the displacement value. I will do it. Moreover, if the conversion table 3 that has been rewritten once does not have a physical page number, it is necessary to rewrite the conversion table 3 and add the physical page number as described above. It also has the disadvantage of telling you when it falls.

(発明の目的) 本発明の目的は上記の欠点を除去し、変換テーブルによ
る以外にメモリへのアクセス手段を備えることにより、
プログラム作成を容易にし、処理速度も向上するという
効果の得られるメモリアクセス方式を提供することにあ
る。
(Object of the Invention) The object of the present invention is to eliminate the above-mentioned drawbacks and to provide a means for accessing memory other than through a conversion table.
An object of the present invention is to provide a memory access method that facilitates program creation and improves processing speed.

(発明の構成) 本発明のメモリアクセス方式は、メモリ装置に記憶され
た命令によって、前記メモリ装置に記憶されたデータを
処理する電子計算機において、命令ワードに指定された
論理アドレスから変換テーブルを参照してメモリ装置の
物理アドレスを作成してメモリにアクセスする第1のア
クセス手段と。
(Structure of the Invention) The memory access method of the present invention refers to a conversion table from a logical address specified in an instruction word in an electronic computer that processes data stored in a memory device according to an instruction stored in the memory device. a first access means for creating a physical address of the memory device and accessing the memory;

命令ワードに指定されたアドレスをそのt〜メモリ装置
の物理アドレスとしてメモリアクセスする第2のアクセ
ス手段と、第1と第2のアクセス手段の各R,に対応す
るメモリ装置保護手段とを有することを特徴とする。
The second access means accesses the memory by using the address specified in the instruction word as the physical address of the memory device, and the memory device protection means corresponds to each R of the first and second access means. It is characterized by

(発明の実施例) 以下、本発明の実施例について図面を参照して詳細に説
明する。
(Embodiments of the Invention) Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第2図は本発明の一実施例の説明図で、メモリアクセス
の第1手段は第1図で説明したものと同じで、変換テー
ブル3を用いた方式に゛よるものである。メモリアクセ
スの第2手段は第1手段とは別に設けたもので、この例
では命令語のアドレス部を第1手段で取扱うものより2
ビツト増して18ビツトとしたものを取扱う。このため
従来、命令ワードが例えば24ビツトで統一されて1ワ
ードで構成されていたものが、直接物理アドレスを指定
する場合には2ワ一ド分の長さを必要とするものが使用
されることとなる。しかしこの場合には第1図で説明し
たごとく論理ページ番号として5ビツトを割当て、変換
テーブル3を参照して7ビツトの物理ページ番号に変換
した操作が不要となシ、最初から物理ページ番号の7ビ
ツトに対応させることができ変換テーブル3を参照する
必要がなくなシ、物理アドレスをめるときメモリプロテ
クト表4を参照にするだけで隘むことになる。
FIG. 2 is an explanatory diagram of an embodiment of the present invention, in which the first means of memory access is the same as that explained in FIG. 1, and is based on a method using a conversion table 3. The second means of memory access is provided separately from the first means, and in this example, the address part of the instruction word is handled by the first means.
We deal with bits increased to 18 bits. For this reason, conventionally, the instruction word was made up of 24 bits and consisted of one word, but when directly specifying a physical address, a word that requires the length of two words is used. It happens. However, in this case, as explained in Figure 1, there is no need to allocate 5 bits as a logical page number and convert it to a 7-bit physical page number by referring to conversion table 3. Since it can correspond to 7 bits, there is no need to refer to the conversion table 3, and it is only necessary to refer to the memory protection table 4 when calculating the physical address.

こ\で命令語の総てを2ワードにし変換テーブル3を一
切用いない方法のみにせず、第1手段と併用するのはプ
ログラムが限られた変換テーブルのみで、テーブルの書
替操作なしに大部分の物理アドレスのメモリをアクセス
することができる場合には書替え操作による処理速度の
低下もなく、′またプログラム作成の面倒も少なくてプ
ログラム格納に必要なメモリ容量を小さくできるからで
ある。因みにこの種の計算機を電子交換機に用いた場合
の処理において、メモリ装置2に収納される命令ワード
が32にワード以内で、データワード200にワード以
上になるものかあシ、処理の多くがメモリのワークエリ
アを含めて特定の64にワード2で行なわれて、単一の
変換テーブルを用いる第1手段が利用でき、広範に亘る
データワードにアクセスする頻度が比較的少ないものが
ある。
In this case, all instruction words are made into 2 words and the conversion table 3 is not used at all. Instead, the method used in conjunction with the first method is only a conversion table with a limited program, and a large number of commands can be used without rewriting the table. This is because if the memory at the physical address of the part can be accessed, there is no reduction in processing speed due to the rewriting operation, and the troublesome task of creating a program is reduced, making it possible to reduce the memory capacity required to store the program. Incidentally, in the processing when this type of computer is used in an electronic exchange, if the instruction words stored in the memory device 2 are less than 32 words and the data words are more than 200 words, most of the processing is carried out in the memory. A first means is available, using a single translation table, which is performed on a particular 64 word 2, including a work area of 64, and has a relatively infrequent access to a wide range of data words.

第3図は以上で説明したメモリアクセスの第2手段の一
例を示すブロック図で、18ビツトのアにレスレジスタ
5は物理ページ番号の7ビツトと変位の11ビツトで構
成され、その内容のそのままメモリ装置2にアドレス情
報として与えられる。
FIG. 3 is a block diagram showing an example of the second means of memory access described above. The 18-bit address register 5 is composed of 7 bits for the physical page number and 11 bits for the displacement, and the contents can be read as they are. It is given to the memory device 2 as address information.

t fcs 7ビツトの物理ページ番号はシステム立上
げ時にページに対応して設定されたメモリプロテクト法
(例えば高速メモリに記憶されている)4にも与えられ
て1ビツトの書替え可否の出力を得る。この出力は論理
値″O″なら書替えても良く、論理値″′1″なら書替
えを禁止していることを表わしていて、この出力信号と
書込信号とを入力とする第1の論理積ゲート回路6はこ
の両人力とも論理値11″であれば、誤シ処理を行なう
ようシーケンス制御回路(SQC)8に割込みを掛ける
。一方メモリプロテクト表からの出力の否定信号と書込
信号が第2の論理積ゲート回路7に入力されておシ、プ
ロテクト表の出力が書替えを許している論理値@′0″
であれば°書込み指示がメモリ装置に与えられるように
なっている。メモリ装置2にはこの他書込時には書込用
のデータが与えられ、メモリアクセス信号の印加によつ
て書替えられ、読出時には同じくこの一メモリアクセス
信号によって読出し出力を得ることとなる。
t fcs The 7-bit physical page number is also given to the memory protection method 4 (stored in a high-speed memory, for example) set corresponding to the page at the time of system startup to obtain a 1-bit output indicating whether or not rewriting is possible. This output indicates that rewriting is allowed if the logical value is ``O'', and that rewriting is prohibited if the logical value is ``1'', and the first logical product of this output signal and the write signal is input. If the logic value of both signals is 11'', the gate circuit 6 interrupts the sequence control circuit (SQC) 8 to perform erroneous processing.On the other hand, the negation signal and write signal of the output from the memory protection table The logical value @'0'' that is input to the AND gate circuit 7 of 2 and the output of the protect table allows rewriting.
If so, a write instruction is given to the memory device. In addition, data for writing is given to the memory device 2 at the time of writing, and is rewritten by application of a memory access signal, and at the time of reading, a read output is similarly obtained by this one memory access signal.

(発明の効果) 以上、詳細に説明したとおシ、本発明は命令ワードのア
ドレス部に異なるビット数を与え、変換テーブルによる
以外にメモリへのアクセス手段を備えることによりプロ
グラムの作成を容易にし処理速度を向上するという効果
がある。
(Effects of the Invention) As described above in detail, the present invention provides a different number of bits to the address part of an instruction word and provides a means of accessing memory other than the conversion table, thereby facilitating program creation and processing. This has the effect of increasing speed.

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

第1図は従来のメモリアクセス方式の説明図、第2図は
本発明によるメモリアクセス方式の一実施例の説明図、
第3図は第2図におけるアクセス方式の第2手段の一実
施例を示すブロック図である。 1・・・・・・論理アドレスレジスタ、2・・・・・・
メモリ装[(MEM) 、 3・・・・・・変換テーブ
ル、4・・・・・・メモリプロテクト表、5・・・・・
・物理アドレスレジスタ、6゜7・・・・・・論理積ゲ
ート回路、8・・・・・・シーケンス制御回路(8QC
)でるる。
FIG. 1 is an explanatory diagram of a conventional memory access method, and FIG. 2 is an explanatory diagram of an embodiment of the memory access method according to the present invention.
FIG. 3 is a block diagram showing an embodiment of the second means of the access method in FIG. 2. 1...Logical address register, 2...
Memory device [(MEM), 3...Conversion table, 4...Memory protection table, 5...
・Physical address register, 6゜7......AND gate circuit, 8......Sequence control circuit (8QC
) out.

Claims (1)

【特許請求の範囲】[Claims] メモリ装置に記憶された命令によって、前記メモリ装置
に記憶されたデータを処理する電子計算機において、命
令ワードに指定された論理アドレスから変換テーブルを
参照してメモリ装置の物理アドレスを作成してメモリに
アクセスする第1のアクセス手段と、命令ワードに指定
されたアドレスをそのままメモリ装置の物理アドレスと
して・メモリにアクセスする第2のアクセス手段と、第
1と第2のアクセス手段の各々に対応するメモリ装置保
護手段とを有することを特徴とするメモリアクセス方式
In an electronic computer that processes data stored in the memory device according to an instruction stored in the memory device, a physical address of the memory device is created by referring to a conversion table from the logical address specified in the instruction word and stored in the memory. A first access means for accessing, a second access means for accessing memory using the address specified in the instruction word as a physical address of the memory device, and a memory corresponding to each of the first and second access means. A memory access method comprising a device protection means.
JP59030677A 1984-02-21 1984-02-21 Memory access system Pending JPS60175161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59030677A JPS60175161A (en) 1984-02-21 1984-02-21 Memory access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59030677A JPS60175161A (en) 1984-02-21 1984-02-21 Memory access system

Publications (1)

Publication Number Publication Date
JPS60175161A true JPS60175161A (en) 1985-09-09

Family

ID=12310337

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59030677A Pending JPS60175161A (en) 1984-02-21 1984-02-21 Memory access system

Country Status (1)

Country Link
JP (1) JPS60175161A (en)

Similar Documents

Publication Publication Date Title
US4777588A (en) General-purpose register file optimized for intraprocedural register allocation, procedure calls, and multitasking performance
US3778776A (en) Electronic computer comprising a plurality of general purpose registers and having a dynamic relocation capability
US4513369A (en) Information processing system
JPH0248931B2 (en)
JPS6376034A (en) Multiple address space control system
US4764896A (en) Microprocessor assisted memory to memory move apparatus
GB1003924A (en) Indirect addressing system
US4419727A (en) Hardware for extending microprocessor addressing capability
US4031514A (en) Addressing system in an information processor
US7124261B2 (en) Access to bit values within data words stored in a memory
JPS60175161A (en) Memory access system
JPS6220583B2 (en)
JPS595496A (en) Memory protect system
JP2702943B2 (en) Semiconductor storage device
JP2612173B2 (en) Virtual computer
JP2510317B2 (en) TLB access device
JP3449749B2 (en) Information processing device
JPS5931148B2 (en) data processing equipment
JPH0159611B2 (en)
JPH0241772B2 (en)
JPH0343650B2 (en)
JPS6360427B2 (en)
JPH01108652A (en) Address conversion system
JPS63241647A (en) Microprocessor
JPS63233431A (en) Memory control system for tagged data