JPH01196639A - Information processor - Google Patents

Information processor

Info

Publication number
JPH01196639A
JPH01196639A JP2152388A JP2152388A JPH01196639A JP H01196639 A JPH01196639 A JP H01196639A JP 2152388 A JP2152388 A JP 2152388A JP 2152388 A JP2152388 A JP 2152388A JP H01196639 A JPH01196639 A JP H01196639A
Authority
JP
Japan
Prior art keywords
register
flag bit
writing
main memory
value
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
JP2152388A
Other languages
Japanese (ja)
Inventor
Yasushi Murasawa
靖 村澤
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2152388A priority Critical patent/JPH01196639A/en
Publication of JPH01196639A publication Critical patent/JPH01196639A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce a processing step and execute garbage collection at a high speed by providing a register and a selector in a hardware for flag bit for garbage collection. CONSTITUTION:An information processor is equipped with a flag bit value register 21 for garbage collection GC, which holds a value to the flag bit for GC of a register for writing and reading to a main storage 1, and a selector 22 to write the contents of a bit, which is designated by the register to be designated at the time of a writing instruction to the main storage 1, to the flag bit. Accordingly, in case of the special writing instruction, by using the selector 22, over-writing is executed the flag bit for GC based on a micro- program is over-written with the contents of the flag bit value register 21 for GC and written to the main storage 1. Then, the writing of the GC flag bit of the high using frequency can be executed at a GC executing time. Thus, the processing step can be reduced and the GC can be executed at the high speed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、情報処理装置における主記憶装置の制御に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to control of a main storage device in an information processing device.

〔従来の技術〕[Conventional technology]

第2図は従来のこの種の情報処理装置を示すもので、同
図において、(1)は主記憶装置とデータの読み書きを
実行する主記憶制御部で、この主記憶制御部(1)は主
記憶装置(4)へのデータ書き込み、読み出し用データ
レジスタ(5)、主記憶装置(4)へのデータ書き込み
、読み出し実行時の主記憶アドレス指定用アドレスレジ
スタ(6)を備え、主記憶装置(4)へのデータ書き込
み時には書き込むデータをデータレジスタ(5)、書き
込む主記憶装置上のアドレスをアドレスレジスタ(6)
にそれぞれ指定し、データ書き込み命令を実行すると共
に、データ読み込み時には、読み込む主記憶装置上のア
ドレスをアドレスレジスタ(6)に指定し、読み込み命
令を実行することにより、指定したアドレスのデータが
データレジスタ(5)に書き込まれるようになっている
FIG. 2 shows a conventional information processing device of this type. In the figure, (1) is a main memory control unit that reads and writes data to and from the main memory; Equipped with a data register (5) for writing and reading data to the main memory (4), an address register (6) for specifying the main memory address when writing and reading data to the main memory (4), When writing data to (4), the data to be written is stored in the data register (5), and the address on the main memory to be written is stored in the address register (6).
When reading data, specify the address on the main memory to be read in the address register (6), and execute the read instruction, so that the data at the specified address is written to the data register. (5).

また、(2)はALtl(Arithmetic Lo
gic 1lnit;演算器)(8)を用いてレジスタ
間の加減、論理、シフトなどの演算を行う演算部で、こ
の演算部(2)はスポート読ぎ出し機能をもつ高速アク
セスメモリであるレジスタファイル(7)、八LU (
8) 、ソース1のタグ値とソース2のタグ値を比較す
る比較器(9)を備えてなり、レジスタファイル(7)
の所定のレジスタに被演算データを書きALU操作命令
を実行することにより、所定のレジスタ(命令で指定す
る)やALU(8)内のフラグに結果が書き込まれるよ
うになっている。
In addition, (2) is ALtl (Arithmetic Lo
gic is an arithmetic unit that performs operations such as addition/subtraction, logic, and shifts between registers using arithmetic unit (8), and this arithmetic unit (2) is a register file that is a high-speed access memory with a sport read function. (7), 8 LU (
8), comprises a comparator (9) that compares the tag value of source 1 and the tag value of source 2, and register file (7)
By writing operand data into a predetermined register and executing an ALU manipulation instruction, the result is written to a predetermined register (specified by the instruction) or a flag in the ALU (8).

しかして、図示構成の情報処理装置はハードウェアの制
御にマイクロプログラムを用いていて、レジスタ(7)
やALU(8)などのハードウェア機能モジュールの結
合ならびにそれらの中を流れるデータの制御をハードウ
ェアに内蔵されたプログラム(マイクロプログラムと呼
ぶ)によって行っており、(3)はこのマイクロプログ
ラムを実行しハードウェアを制御するシーケンス制御部
を示し、このシーケンス制御部(3)は、タグ値を元に
してテーブル内をサーチし分岐アドレスを得るためのタ
グ分岐用テーブル(10)、マイクロアドレスジェネレ
ータ(11)、マイクロプログラムカウンタ(12)、
マイクロインストラクションレジスタ(13)、WO2
(Writable (:ontrol 5tore)
 (14)から構成され、WO2(14)はマイクロプ
ログラムを格納し、その実行アドレスは、マイクロアド
レスジェネレータ(11)によって作られ、この時マイ
クロプログラムカウンタ(12)には実行中のマイクロ
命令アドレス、マイクロインストラクションレジスタ(
13)にはマイクロ命令がそれぞれ保持される。また、
  (15)はディスティネーションバス、(ia)は
ディスティネーションタグバス、(17)はソース1タ
グバス、(18)はソース2タグバス、(19)はソー
ス1バス、(20)はソース2バスである。
However, the information processing device with the illustrated configuration uses a microprogram to control the hardware, and the register (7)
A program (called a microprogram) built into the hardware connects hardware function modules such as ALU (8) and controls the data flowing through them, and (3) executes this microprogram. This sequence control unit (3) includes a tag branch table (10) for searching the table based on the tag value to obtain a branch address, and a micro address generator ( 11), micro program counter (12),
Microinstruction register (13), WO2
(Writable (:ontrol 5tore)
(14), WO2 (14) stores a microprogram, its execution address is generated by a microaddress generator (11), and at this time, the microprogram counter (12) contains the address of the microinstruction being executed, Microinstruction register (
13) respectively hold microinstructions. Also,
(15) is the destination bus, (ia) is the destination tag bus, (17) is the source 1 tag bus, (18) is the source 2 tag bus, (19) is the source 1 bus, and (20) is the source 2 bus. .

上記構成において、論理型言語の実行時には動的に主記
憶装置(4)上に構造体データ等を生成しながら行われ
る。しかし、プログラムの実行によって次々に生成され
た主記憶装置(4)上の各データは、プログラム実行の
ある時点以後不要となることが多い。このため、論理型
言語の処理系では、これらのプログラム実行中に不要と
なった主記憶領域の回収機能、即ちガベージコレクショ
ン(以下GCとする)が必須である。このGCの実現方
法としては、GC後残すべき必要なデータを保持してい
る主記憶セルのGC用フラグビットに印を付け、その後
不要なデータを除き印の付いているセルのみを主記憶装
置(4)上のアドレスの一端につめ合わせる方法がある
In the above configuration, when the logical language is executed, structure data etc. are dynamically generated on the main storage device (4). However, each piece of data in the main memory (4) that is generated one after another by program execution often becomes unnecessary after a certain point in program execution. For this reason, in a logic language processing system, a function to collect main storage areas that are no longer needed during the execution of these programs, that is, a garbage collection (hereinafter referred to as GC) is essential. The method for implementing this GC is to mark the GC flag bit of the main memory cell that holds the necessary data to be left after GC, and then remove unnecessary data and transfer only the marked cells to the main memory. (4) There is a method to match one end of the above address.

この方法ではGC用フラグビットに印を付ける処理はG
C処理時には頻度が高いので高速性が要求される。
In this method, the process of marking the GC flag bit is G
Since the frequency of C processing is high, high speed is required.

従来のハードウェアの構成では、レジスタ(5)や(7
)にGCフラグビットの値をセットしてALU(8)を
使用してレジスタ(5)にセットした後、主記憶装置(
4)に書き込みを行っていた。例えばレジスタ(5)に
1を書いてレジスタファイル(7)に2を書いて“これ
らを足して結果をレジスタ(5)に書き込め”というマ
イクロ命令を実行すれば、レジスタ(5)、(7)のゲ
ートが開いてバス(19)、(20)を通フてALtl
(8)にデータが入り、ALU(8)内で足し算が実行
され結果がバス(15)に出てレジスタ(5)のゲート
が再び開き書き込まれる。
In the conventional hardware configuration, registers (5) and (7)
) and set the value of the GC flag bit in register (5) using ALU (8), then the main memory (
4) was written. For example, if you write 1 to register (5), write 2 to register file (7), and execute the microinstruction "Add these and write the result to register (5)," registers (5), (7) The gate opens and the buses (19) and (20) pass through to ALtl.
Data enters (8), addition is performed in ALU (8), the result is output to bus (15), and the gate of register (5) is opened again and written.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の情報処理装置は以上のように構成されていたので
、書き込み命令の前にフラグビットの値を設定しなけれ
ばならないため、GCの処理の高速化の障害となってい
た。
Since the conventional information processing device was configured as described above, the value of the flag bit had to be set before a write command, which was an obstacle to increasing the speed of GC processing.

この発明は上記のような問題点を解消するためになされ
たもので、フラグビットの値を設定する処理ステップを
削除し、高速なGCを行うことができる情報処理装置を
得ることを目的とする。
This invention was made to solve the above-mentioned problems, and aims to provide an information processing device that can perform high-speed GC by eliminating the processing step of setting the value of a flag bit. .

(課題を解決するための手段) この発明に係る情報処理装置は、主記憶装置上に1語に
つき1ビット以上のフラグビットを備えた情報処理装置
において、主記憶装置への書き込み、読み込み用レジス
タのガベージコレクション用フラグビットに対する値を
保持するガベージコレクション用フラグビット値レジス
タ、主記憶装置への書き込み命令時に指定されたレジス
タの指定したビットの内容を上記フラグビットに書き込
むためのセレクタを備えたものである。
(Means for Solving the Problems) An information processing device according to the present invention is an information processing device provided with one or more flag bits per word on a main storage device, and a register for writing to and reading from the main storage device. A garbage collection flag bit value register that holds the value for the garbage collection flag bit of , and a selector for writing the contents of the specified bit of the register specified at the time of a write instruction to the main storage device to the flag bit. It is.

〔作用〕[Effect]

この発明の情報処理装置によれば、特殊な書き込み命令
の場合にセレクタを使用することによりマイクロプログ
ラムに基づ<GC用フラグビットをガベージコレクショ
ン用フラグビット値レジスタの内容で上書きして主記憶
装置に書き込むことができ、GC実行時に使用頻度の高
いGCフラグビットの書き込みをALtlを使わずに行
うことができる。
According to the information processing device of the present invention, in the case of a special write instruction, by using the selector, the <GC flag bit is overwritten with the contents of the garbage collection flag bit value register based on the microprogram, and the main storage GC flag bits that are frequently used during GC execution can be written without using ALtl.

〔実施例〕〔Example〕

以下、この発明の一実施例を第2図と同一部分には同一
符号を付して示す第1図に基いて説明する。第1図にお
いて、(21)は主記憶装置(4)への書き込み、読み
込み用レジスタのGC用フラグビットに対する値を係持
するレジスタ、(22)は主記憶装置(4)への書き込
み時にデータのGC用フラグビットを、レジスタ(21
)の値に書き換えるかレジスタ(5)の値にするかをマ
イクロプログラムの命令に基いてコントロールするセレ
クタであり、主記憶装置(4)上に1語につき1ビット
以上のフラグビットを備えた情報処理装置において、主
記憶装置(4)への書き込み命令時に指定されたレジス
タの指定したビットの内容を上記フラグビットに書ける
ようにしてなる。その他は従来例と同様である。
Hereinafter, one embodiment of the present invention will be described with reference to FIG. 1, in which the same parts as in FIG. 2 are denoted by the same reference numerals. In Figure 1, (21) is a register that holds the value for the GC flag bit of the register for writing and reading into the main memory (4), and (22) is the register that holds the value for the GC flag bit when writing to the main memory (4). The GC flag bit of the register (21
) is a selector that controls whether to rewrite the value of the register (5) or the value of the register (5) based on the instructions of the microprogram, and is information with one or more flag bits per word on the main memory (4). In the processing device, the contents of a specified bit of a register specified at the time of a write instruction to the main memory (4) can be written to the flag bit. The rest is the same as the conventional example.

通常の書き込み命令の場合、アドレスレジスタ(6)で
指定された主記憶装置(4)のアドレスに対し、GC用
フラグビットを含めてレジスタ(5)の内容を書き込む
が、上記構成においては、ある特殊な書き込み命令の場
合にはセレクタ(22)を使用することによりマイクロ
プログラムに基づ<GC用フラグビットをレジスタ(2
1)の内容で上書きして、主記憶装置(4)に書き込む
ことができる。
In the case of a normal write instruction, the contents of the register (5) including the GC flag bit are written to the address of the main memory (4) specified by the address register (6), but in the above configuration, In the case of a special write command, the selector (22) is used to set the <GC flag bit to the register (2) based on the microprogram.
The contents of 1) can be overwritten and written to the main storage device (4).

このため、マイクロ命令をいくつかのフィールドに分け
それをデコードした結果により、ハードウェアの各部分
を各々コントロールする水平型マイクロプログラム方式
においては1マイクロ命令でハードウェアの各部分を直
接コントロールでき、例えば、■主記憶装置(4)から
データを読む、■ALtl (8)を用いてレジスタ間
の演算を行う、■レジスタの値によって条件分岐etc
 、の事が従来例ツバ−トウエアで可能アあるが、マイ
クロ命令の語長が長くなりプログラム作成が難しく、G
C用フラグビットを書き込む場合はALUを使用するの
で同じ1マイクロ命令サイクル内で他のレジスタ間の演
算ができなくなり、マイクロプログラムのステップ数が
増え、ステップ数が増せば当然処理時間もかかる。しか
し、この実施例ではGC用フラグビット用のハードウェ
アにレジスタ(21)とセレクタ(22)を設けること
によって、ALU (8)を使用せずGC用フラグビッ
トを書き換えることが可能となる。
For this reason, in the horizontal microprogram method, which controls each part of the hardware by dividing the microinstruction into several fields and decoding them, each part of the hardware can be directly controlled with one microinstruction, for example. , ■ Read data from main memory (4), ■ Perform operations between registers using ALtl (8), ■ Conditional branch depending on register value, etc.
, is possible with conventional Tubertoware, but the word length of microinstructions becomes long, making programming difficult, and
When writing the flag bit for C, the ALU is used, so operations between other registers cannot be performed within the same one microinstruction cycle, and the number of microprogram steps increases, and as the number of steps increases, processing time naturally increases. However, in this embodiment, by providing the register (21) and selector (22) in the hardware for the GC flag bit, it becomes possible to rewrite the GC flag bit without using the ALU (8).

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

以上のように、この発明によれば、GC実行時に使用頻
度の高いGCフラグビットの書き込みをALUを使わず
に行うようなハードウェア構成にしたので、従来より、
水平型マイクロプログラムの水平度を上げることにより
ステップ削減がみこめ、このためより高速なGCが実現
可能となる。
As described above, according to the present invention, the hardware configuration is such that writing of frequently used GC flag bits during GC execution is performed without using an ALU, so that
By increasing the horizontality of the horizontal microprogram, steps can be reduced, making it possible to realize faster GC.

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

第1図はこの発明の一実施例による構成図、第2図は従
来例の構成図である。 図中、(1):主記憶制御部、(2):演算部、(3)
ニジ−ケンス制御部、(4):主記憶装置、(5):デ
ータレジスタ、(6)ニアドレスレジスタ、(8): 
ALU、(21):Gc用ラフラグビット値保持手段(
22):セレクタ。 なお、各図中、同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional example. In the figure, (1): Main memory control section, (2): Arithmetic section, (3)
Nijiken control unit, (4): Main memory, (5): Data register, (6) Near address register, (8):
ALU, (21): Gc rough flag bit value holding means (
22): Selector. In each figure, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 主記憶装置上に1語につき1ビット以上のフラグビット
を備えた情報処理装置において、主記憶装置への書き込
み、読み込み用レジスタのガベージコレクション用フラ
グビットに対する値を保持するガベージコレクション用
フラグビット値レジスタ、主記憶装置への書き込み命令
時に指定されたレジスタの指定したビットの内容を上記
フラグビットに書き込むためのセレクタを備えたことを
特徴とする情報処理装置。
In an information processing device that has one or more flag bits per word on the main memory, a garbage collection flag bit value register that holds the value for the garbage collection flag bit in the write/read register to the main memory. An information processing device comprising: a selector for writing the contents of a specified bit of a register specified at the time of a write instruction to a main memory into the flag bit.
JP2152388A 1988-02-01 1988-02-01 Information processor Pending JPH01196639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2152388A JPH01196639A (en) 1988-02-01 1988-02-01 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2152388A JPH01196639A (en) 1988-02-01 1988-02-01 Information processor

Publications (1)

Publication Number Publication Date
JPH01196639A true JPH01196639A (en) 1989-08-08

Family

ID=12057308

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2152388A Pending JPH01196639A (en) 1988-02-01 1988-02-01 Information processor

Country Status (1)

Country Link
JP (1) JPH01196639A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5313635A (en) * 1991-09-26 1994-05-17 Mitsubishi Denki Kabushiki Kaisha Compiling system for distributed computer system with multiple types of computers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5313635A (en) * 1991-09-26 1994-05-17 Mitsubishi Denki Kabushiki Kaisha Compiling system for distributed computer system with multiple types of computers

Similar Documents

Publication Publication Date Title
US4794522A (en) Method for detecting modified object code in an emulator
JPH0248931B2 (en)
JPS60101644A (en) Parallel processing computer
KR920004279B1 (en) Microprocessor with Pointer Register
JPS6212529B2 (en)
RU2066067C1 (en) Central processor for multiple-processor computer system
JPH07120318B2 (en) Apparatus and method for protecting main memory unit with access and defective logic signals
KR920006611B1 (en) Information processing device
JPS61123959A (en) Electronics equipment having attachable/detachable memory module
JPH01196639A (en) Information processor
US4480306A (en) Digital data processing system using unique ALU register files and micro-instruction stacks
JPH0222413B2 (en)
JPS6032220B2 (en) information processing equipment
JP2583506B2 (en) Data processing device
JP2883488B2 (en) Instruction processing unit
JPH01180044A (en) Data processor
JPS58134350A (en) Memory controller
JPS60193046A (en) Instruction exception detection method
JPH0259829A (en) Microcomputer
JPS59165143A (en) data processing equipment
JPS5955546A (en) Firmware processor
JPH0561669A (en) Semiconductor calculating device and electronic apparatus
JPS6353644A (en) Instruction control device
JPS61170830A (en) Register reference control system
JPH011034A (en) computer equipment