JPS5977694A - Information processor - Google Patents

Information processor

Info

Publication number
JPS5977694A
JPS5977694A JP57187709A JP18770982A JPS5977694A JP S5977694 A JPS5977694 A JP S5977694A JP 57187709 A JP57187709 A JP 57187709A JP 18770982 A JP18770982 A JP 18770982A JP S5977694 A JPS5977694 A JP S5977694A
Authority
JP
Japan
Prior art keywords
segment
address
register
segments
starting point
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
JP57187709A
Other languages
Japanese (ja)
Inventor
Kazuhiko Maekawa
和彦 前川
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 JP57187709A priority Critical patent/JPS5977694A/en
Publication of JPS5977694A publication Critical patent/JPS5977694A/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/14Protection against unauthorised use of memory or access to memory
    • G06F12/1416Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights
    • G06F12/145Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights the protection being virtual, e.g. for virtual blocks or segments before a translation mechanism

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)
  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To attain the coupled use and protection of plural segments by generating a signal when the starting segment No. of the operated and coupled segments is larger than the starting No. of segments to be coupled. CONSTITUTION:The contents of a base register 2 and an index register 3 which correspond to the set contents of an instruction register 1 are added by an adder 4 and the added result is set up in an address register 6. In accordance with the segment No. address of a segmentation effective address, an address conversion buffer 7 is indexed. The segment starting point address of from the buffer 7 and the address the register 6 are added and a coupled address or the like is set up in a register 12. If the starting point segment No. from the buffer 7 is smaller than the segment No. of information to be operated from the register 5, access inhibiting state is formed through a comparator 8, an OR gate 10 and an exclusive processing part 14. Said constitution makes it possible to use plural segments by coupling them and protect them properly.

Description

【発明の詳細な説明】 発明の楓する技術分野 本発明は記憶装置を複数に区分けしたそれぞれのセグメ
ントを連結して利用する情報処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION TECHNICAL FIELD The present invention relates to an information processing apparatus that connects and utilizes a plurality of segments of a storage device.

従来技術 従来この種の情報処理装置では、命令で指示さレタペー
スレジスタの内容と、命令のディスフL/イスメントに
よるセグメント化実効アドレス生成過程において、ベー
スレジスタ内のセグメント内アドレスと命令のディスプ
レイスメントフィールドの内容とが加算され、ベースレ
ジスタ内のセグメント番号はそのままセグメント化実効
アドレスのセグメント番号とし“C用いられている。従
ってベースレジスタで指示されたセグメント以外のセグ
メントはアクセスできない。この結才、棒数のセグメン
トを連結させC大量のデータを処理可能にすることがで
きないという欠点がある。
BACKGROUND TECHNOLOGY Conventionally, in this type of information processing device, the content of the letter pace register specified by an instruction, the intra-segment address in the base register and the displacement field of the instruction in the process of generating a segmented effective address by displacing the instruction. The segment number in the base register is used as it is as the segment number of the segmented effective address. Therefore, segments other than the segment specified by the base register cannot be accessed. The disadvantage is that it is not possible to process a large amount of data by concatenating several segments.

発明の目的 本発明の目的は、複数のセグメントを連結し゛C使用可
能とし、さらに連結セグメントを保睦できるようにした
情報処理装置を提供することにある。1発明の構成 この発明の装置は、nビットのセグメント番号フィール
ドとmビットのセグメント内アドレスフィールドからな
るセグメント化アドレス情報を上位桁をセグメント番号
とし下位桁をセグメント内アドレスとしたn+mビット
の被演算情報とし゛C演算する手段と、 この演算手段の出力の上位nビットで示されるセグメン
ト番号に対応するセグメントを含む連結セグメント群の
起点となるセグメント番号を保持する手段と、 該起点となるセグメント番号が前記被演算情報の上位n
ビットで示されるセグメント番号より大きい時に信号を
発生する手段とを備えたことを特徴とする。
OBJECTS OF THE INVENTION It is an object of the present invention to provide an information processing device that connects a plurality of segments to enable use of C and further protects the connected segments. 1 Structure of the Invention The device of the present invention converts segmented address information consisting of an n-bit segment number field and an m-bit intra-segment address field into n+m-bit operands, with the upper digits being the segment number and the lower digits being the intra-segment address. means for calculating C as information; means for holding a segment number serving as the starting point of a group of connected segments including the segment corresponding to the segment number indicated by the upper n bits of the output of the calculating means; Top n of the operand information
and means for generating a signal when the segment number is greater than the segment number indicated by the bit.

発明の実施例 次に本発明について図面を参照して詳細に説明する。Examples of the invention Next, the present invention will be explained in detail with reference to the drawings.

第1図を参照すると、本発明の一実施例は命令コード、
ペースレジスタ番号フィールド、インデックスレジスタ
番号フィールドおよびディスプレイスメントフィールド
を有する命令を格納する命令レジスタ1.ベースレジス
タ2.インデックスレジスタ3.加算回路4.ベースセ
グメントレジスタ5.アドレスレジスタ6、アドレス変
換バッファ7、比較回路8および9.論理和ゲート10
゜加算回路11.アドレスレジスタ12.非零検出回路
13.および例外処理部′14から構成されCいる。
Referring to FIG. 1, one embodiment of the present invention includes an instruction code;
Instruction register 1 for storing instructions having a pace register number field, an index register number field and a displacement field. Base register 2. Index register 3. Addition circuit 4. Base segment register5. Address register 6, address translation buffer 7, comparison circuits 8 and 9. OR gate 10
゜Addition circuit 11. Address register 12. Non-zero detection circuit 13. and an exception handling section '14.

次に本発明の一実施例の動作を図面を参照し°C詳細に
説明する。
Next, the operation of one embodiment of the present invention will be described in detail with reference to the drawings.

第1図を参照すると、命令の命令レジスタ1に対するセ
ットに応答し′〔、命令コードにより縦走された動作が
開始される。該命令がメモリオペランドを必賛とする時
、命令レジスタ1のベースレジスタ番号フィールドで指
示されたベースレジスタ2の内容と、インデックスレジ
スタ番号フィールドで指示されたインデックスレジスタ
3の内容と、ディスプレイスメントフィールドの内容と
が加算回路4で加算されアドレスレジスタ6にセットさ
れる。この加算動作では、第2図で示されるベースレジ
スタ2のセグメン)11号(8EG)とセグメント内ア
ドレス(A)とが連続した1つのデータとされ、そのデ
ータの上位桁に零が拡張される。また、命令レジスタ1
のディスプレイスメン)(IJ)の上位桁にも零が拡弘
される。これらのデータとインデックスレジスタ3のイ
ンデックス(INDEX)とが加算されアドレスレジス
タ6にセットされる。
Referring to FIG. 1, in response to the setting of an instruction to instruction register 1, the operation traversed by the instruction code is initiated. When the instruction requires a memory operand, the contents of base register 2 specified by the base register number field of instruction register 1, the contents of index register 3 specified by the index register number field, and the displacement field. The contents are added by the adder circuit 4 and set in the address register 6. In this addition operation, segment No. 11 (8EG) of base register 2 shown in Fig. 2 and intra-segment address (A) are treated as one continuous data, and the upper digits of the data are expanded with zero. . Also, instruction register 1
The zero is also expanded to the upper digits of (displacement) (IJ). These data and the index (INDEX) of the index register 3 are added and set in the address register 6.

第1図のベースレジスタ2の出力は、加算回路4に入力
されるとともに該ベースレジスタのセグメント番号フィ
ールドの内容がペースセグメントレジスタ5にセットさ
れる。アドレスレジスタ6にセットされたセグメント化
実効アドレスのセグメント番号フィールドの内容により
アドレス変換バッファ7が索引される。アドレス変換バ
ッファ7は連想メモリで構成され、セグメント番号フィ
ールドの内容に対応したセグメントのセグメント記述子
の内容が格納されている。
The output of the base register 2 shown in FIG. The address translation buffer 7 is indexed according to the contents of the segment number field of the segmented effective address set in the address register 6. The address translation buffer 7 is composed of an associative memory, and stores the contents of the segment descriptor of the segment corresponding to the contents of the segment number field.

具体的には、セグメントの起点を示すアドレスと、セグ
メントの大きさを示すサイズと、セグメントの属性を表
わす情報と該セグメントを含む連結セグメント群の起点
セグメント番号とが格納されている。アドレス変換バッ
ファの出力のセグメントの起点を示すアドレスはアドレ
スレジスタ6のセグメント内アドレスと加算回路11で
加算され、アドレスレジスタ12にセットされる。アド
レス変換バッファ7の出力のセグメントサイズは、アド
レスレジスタ6のセグメント内アドレスと比較回路9で
比較される。セグメント内アドレスがセグメントサイズ
より大きい時に論理オロケート10に信号が送られる。
Specifically, an address indicating the starting point of the segment, a size indicating the size of the segment, information indicating the attribute of the segment, and a starting point segment number of a group of connected segments including the segment are stored. The address indicating the starting point of the segment output from the address translation buffer is added to the intra-segment address of the address register 6 by an adder circuit 11 and set in the address register 12. The segment size of the output of the address conversion buffer 7 is compared with the intra-segment address of the address register 6 by a comparison circuit 9. A signal is sent to logical locate 10 when the intra-segment address is greater than the segment size.

アドレス変換バッファの出力の連結セグメント群の起点
セグメントa号は、ベースセグメント番号レジスタ5と
比較回路8で比較され、ペースセグメント番号が、起点
セグメント化桁は、非零検出回路13に与えられ、非零
検出回路13が非零を検出した時、論理和ゲート10に
信号が送られる。論理和ゲート10の出力は例外処理部
14に与えられる。前記例外処理部14は前記ゲート1
0からの入力信号に応答し′Cアクセスを県止し、必要
ならプログラムにその旨通知する0 第3図を参照すると、セグメント記述子30〜35はセ
グメント20〜25対応に定義されセグメントの起点ア
ドレス3d、サイズ3c、属性3b、起点セグメント番
号3aフイールドから構成されている。第3図で8DQ
はセグメント20に対応するセグメント記述子30を示
す。以下同様にSn2はセグメント5のセグメント記述
子35を示している。この例では、セグメントOは単独
のセグメント、セグメント1,2.および3ハ3つのセ
グメントを連結した連結セグメント、セグメント4.お
よび5は2つのセグメントヲ連結した連結セグメントを
それぞれ示している。今ベースレジスタでセグメント1
が指示されアドレス生成の結果、セグメント化実効アド
レスによりセグメント3がさされる。この結果、セグメ
ント3のセグメント記述子8D3が読出され起点アドレ
スとセグメント化実効アドレスのセグメント内アドレス
とが加算され実アドレスが求められる。この時セグメン
ト化実効アドレスのセグメント内アドレスとサイズとが
比較されセグメント内アドレスがサイズと等しいかまた
は小さいことがチェックされる。′またベースレジスタ
で指示されたセグメント番号とセグメント記述子SD3
の起点セグメント番号とが比較され前記セグメント番号
が起点セグメント釜号と等しいかまたは大きいことがチ
ェックされる。第3図の例では条件を満足するためセグ
メントへのアクセスが許される。ここでペースレジスタ
がセグメント0をセグメント化実効アドレスがセグメン
ト3を指示したとする。セグメント記述子8D3の起点
セグメント番号が1でペースレジスタで示されるセグメ
ント番号が00ため、セグメント3へのアクセスは禁止
される。
The starting point segment a of the concatenated segment group output from the address conversion buffer is compared with the base segment number register 5 in the comparison circuit 8, and the pace segment number and starting point segmentation digit are given to the non-zero detection circuit 13, When the zero detection circuit 13 detects a non-zero, a signal is sent to the OR gate 10. The output of the OR gate 10 is given to an exception handling section 14. The exception handling unit 14 handles the gate 1
In response to an input signal from 0, 'C access is stopped and the program is notified of this if necessary.0 Referring to Figure 3, segment descriptors 30 to 35 are defined corresponding to segments 20 to 25, and the starting point of the segment is It consists of an address 3d, size 3c, attribute 3b, and starting segment number 3a field. 8DQ in Figure 3
indicates a segment descriptor 30 corresponding to segment 20. Similarly, Sn2 indicates the segment descriptor 35 of segment 5. In this example, segment O is a single segment, segments 1, 2 . and 3. A connected segment that connects three segments, segment 4. and 5 each indicate a connected segment in which two segments are connected. Now segment 1 in base register
is specified and as a result of address generation, segment 3 is pointed to by the segmented effective address. As a result, the segment descriptor 8D3 of segment 3 is read and the starting point address and the intra-segment address of the segmented effective address are added to obtain the real address. At this time, the intra-segment address and size of the segmented effective address are compared to check whether the intra-segment address is equal to or smaller than the size. 'Also, the segment number and segment descriptor SD3 indicated by the base register
is compared with the starting segment number to check whether the segment number is equal to or greater than the starting segment pot number. In the example of FIG. 3, access to the segment is permitted because the conditions are met. Here, it is assumed that the pace register indicates segment 0 and the segmented effective address indicates segment 3. Since the starting segment number of the segment descriptor 8D3 is 1 and the segment number indicated by the pace register is 00, access to segment 3 is prohibited.

上記セグメント記述子は第1図のアドレス変換バッファ
7に通常格納されている。もし指示されたセグメントの
セグメント記述子がアドレス変換バッファ7に格納され
°Cいない時は記憶部から該当するセグメント記述子が
読出され、アドレス変換バッファ7に格納される。
The segment descriptor is normally stored in the address translation buffer 7 of FIG. If the segment descriptor of the designated segment is not stored in the address translation buffer 7, the corresponding segment descriptor is read from the storage section and stored in the address translation buffer 7.

発明の効果 本発明には検数のセグメントを連絡してあたかもサイズ
が大きい1つのセグメントの2ようにアクセスできると
いう効果がある。
Effects of the Invention The present invention has the advantage that segments of a count can be linked and accessed as if they were two segments of a large size.

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

第1図は本発明の一実施例を示す図、第2図は第1図に
示した加算回路の加算方法を説明するための図、および
第3図は連結セグメントを示す図である。 第1図から第3図において、1・・・・・・命令レジス
タ、2・・・・・・ペースレジスタ、3°゛°°゛°イ
ンデツクスレジスタ、4・・・・・・加算回路、5・・
・・・・ベースセグメントレジスタ、6・・・・・・ア
ドレスレジスタ、7・・・・・・アドレス変換バッファ
、8・・・・・・比較回路、9・・・・・・比較回路、
10・・・・・・論理和ゲート、11・・・・・・加算
回路、12・・・・・・アドレスレジスタ、13・°°
・°°非零検出回路、14・・・・・・例外処理部、2
0〜25・・・・・・セグメント化効 3a・・・・・・起点セグメント番号、3b・・・・・
・セグメントの属性、3 c・・・・・・セグメントサ
イス、3d・°・パ。 v;1  ダ Z ? ロ
FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a diagram for explaining the addition method of the adder circuit shown in FIG. 1, and FIG. 3 is a diagram showing connected segments. 1 to 3, 1...instruction register, 2...pace register, 3°゛°°゛° index register, 4...addition circuit, 5...
... Base segment register, 6 ... Address register, 7 ... Address conversion buffer, 8 ... Comparison circuit, 9 ... Comparison circuit,
10...OR gate, 11...Addition circuit, 12...Address register, 13.°°
・°°Non-zero detection circuit, 14...Exception handling section, 2
0-25...Segmentation effect 3a...Start segment number, 3b...
・Segment attribute, 3c...Segment size, 3d・°・pa. v;1 DaZ? B

Claims (1)

【特許請求の範囲】[Claims] nビットのセグメント番号フィールドとmビットのセグ
メント内アドレスフィールドからなるセグメント化アド
レス情報を上位フィールドをセグメント番号とし下位フ
ィールドをセグメント内アドレスとしたn十mビットの
被演算情報として演算する手段と、該演算手段の出力の
上位nビットで示されるセグメント番号に対応するセグ
メントを含む連結セグメント群の起点となるセグメント
番号を保持する手段と、該起点となるセグメント番号が
前記被演算情報の上位nビットで示されるセグメント番
号より太きいときに信号を発生する手段とを備えたこと
を特徴とした情報処理装置。
means for calculating segmented address information consisting of an n-bit segment number field and an m-bit intra-segment address field as n0m-bit operand information, with the upper field as the segment number and the lower field as the intra-segment address; means for holding a segment number serving as a starting point of a connected segment group including a segment corresponding to a segment number indicated by the upper n bits of the output of the calculation means; and a segment number serving as the starting point is the upper n bits of the operand information. An information processing device comprising: means for generating a signal when the segment number is thicker than the indicated segment number.
JP57187709A 1982-10-26 1982-10-26 Information processor Pending JPS5977694A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57187709A JPS5977694A (en) 1982-10-26 1982-10-26 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57187709A JPS5977694A (en) 1982-10-26 1982-10-26 Information processor

Publications (1)

Publication Number Publication Date
JPS5977694A true JPS5977694A (en) 1984-05-04

Family

ID=16210792

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57187709A Pending JPS5977694A (en) 1982-10-26 1982-10-26 Information processor

Country Status (1)

Country Link
JP (1) JPS5977694A (en)

Similar Documents

Publication Publication Date Title
US5408626A (en) One clock address pipelining in segmentation unit
JPH0193847A (en) Address extending system
CA1332984C (en) Dual cache memory
JPS629930B2 (en)
US3510847A (en) Address manipulation circuitry for a digital computer
US5226132A (en) Multiple virtual addressing using/comparing translation pairs of addresses comprising a space address and an origin address (sto) while using space registers as storage devices for a data processing system
US3754218A (en) Data handling system with relocation capability comprising operand registers adapted therefor
JPH027097B2 (en)
JPS5977694A (en) Information processor
JPS5826584B2 (en) data processing equipment
JPH01177145A (en) Information processor
JPS59146343A (en) Information processing device
JPH0262645A (en) Memory protecting system
JPH0778723B2 (en) Information processing equipment
JPH0219495B2 (en)
JPS589452B2 (en) Firmware broom
JPS63282527A (en) Addressing circuit for information processor
JPS6380350A (en) Electronic computer
JPS6175441A (en) Address history storage device
JPS63752A (en) Memory protection system
JPH04160655A (en) Execution detecting system
JPS62278639A (en) Information processor
JPS59173865A (en) Idle space retrieving method
JPS6023381B2 (en) Variable length segment control method
JPS6244838A (en) Instruction fetching device