JPS6049940B2 - Electronic computer - Google Patents
Electronic computerInfo
- Publication number
- JPS6049940B2 JPS6049940B2 JP10016477A JP10016477A JPS6049940B2 JP S6049940 B2 JPS6049940 B2 JP S6049940B2 JP 10016477 A JP10016477 A JP 10016477A JP 10016477 A JP10016477 A JP 10016477A JP S6049940 B2 JPS6049940 B2 JP S6049940B2
- Authority
- JP
- Japan
- Prior art keywords
- microinstruction
- execution
- cycle
- timing
- exception
- 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.)
- Expired
Links
Landscapes
- Advance Control (AREA)
Description
【発明の詳細な説明】
この発明はマイクロプログラム方式の電子計算機にお
けるマイクロ命令の実行方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a microinstruction execution method in a microprogram type electronic computer.
一般に、プログラムに使用される命令語の実行過程に
は通常処理と例外的な処理とがあるが、この例外的な処
理の方式によつて命令の実行速度に大きな差ができる。In general, the execution process of an instruction word used in a program includes normal processing and exceptional processing, and the method of this exceptional processing makes a large difference in the execution speed of instructions.
例えば記憶保護チェックという処理を例にとつて説明す
ると、今計算機の中でオペランドアドレスを所定のアド
レス計算によつて求めても、このアドレスが記憶保護領
域のアドレスか否かをチェックした後に、このアドレス
によつてメモリアクセスをおこなつていたのでは命令の
実行速度が遅いものになる。このように命令語の処理に
おいて記憶保護チェックのような処理を通常の処理とシ
リアルにおこなつていたのでは計算機の動作速度は速く
ならないので、近年はこのような特別の処理は通常の処
理と並行しておこなう傾向にある。ところでここで問題
となるのは、例外的な事象が発生した場合に、すでに進
行している通常処理動作をいかに中止して例外処理ルー
チンの移行するか、ということである。 この発明は上
述のような問題点に対処するためになされたもので、マ
イクロ命令を準備サイクルと実行サイクルの二つの部分
に分け、その両サイクルで使用するタイミングパルスを
独立とし、例外的な事象が発生したときは、実行サイク
ルを遂行するタイミングパルスを抑止し実質上このとき
のマイクロ命令の実行を抑止するようにして上述の問題
点の解決を図つたマイクロ命令の実行方式の提供を目的
とするものである。 次に図を参照してこの発明を詳し
く説明する。For example, to explain the process of memory protection check as an example, even if the operand address is found in the computer by a predetermined address calculation, after checking whether or not this address is in the memory protection area, If memory access is performed by address, the execution speed of instructions will be slow. If processes such as memory protection checks were performed serially with normal processing in instruction word processing, the operating speed of the computer would not increase, so in recent years, such special processing has been separated from normal processing. They tend to be done in parallel. By the way, the problem here is how to stop the normal processing operation that is already in progress and move to the exception handling routine when an exceptional event occurs. This invention was made in order to deal with the above-mentioned problems. It divides a microinstruction into two parts, a preparation cycle and an execution cycle, and makes the timing pulses used in both cycles independent, so that exceptional events can be avoided. The purpose of the present invention is to provide a microinstruction execution method that solves the above-mentioned problem by suppressing the timing pulse for executing an execution cycle when a microinstruction occurs, thereby effectively inhibiting the execution of the microinstruction at this time. It is something to do. Next, the present invention will be explained in detail with reference to the drawings.
第1図と第2図はそれぞれこの発明を説明するための図
であつて、第1図はマイクロ命令の実行過程とそれに対
応するタイミングパルスの発生状況を示す図であり、第
2図はマイクロ命令の実行過程に例外事象が発生したと
きの実行中止とタイミングパルスの関係を示す図である
。 これらの図において、1は第1マイクロ命令、2は
第2マイクロ命令、3は第3マイクロ命令、4は第4マ
イクロ命令、5は準備サイクル用タイミングT。1 and 2 are diagrams for explaining the present invention, respectively. FIG. 1 is a diagram showing the execution process of a microinstruction and the generation status of a timing pulse corresponding thereto, and FIG. FIG. 3 is a diagram showing the relationship between execution suspension and timing pulses when an exceptional event occurs during the execution process of an instruction. In these figures, 1 is the first microinstruction, 2 is the second microinstruction, 3 is the third microinstruction, 4 is the fourth microinstruction, and 5 is the timing T for the preparation cycle.
、6は準備サイクル用タイミングTi、7は実行サイク
ル用タイミングT2、8は実行サイクル用タイミングT
3、を示す。そしてAはマイクロ命令の前半分の準備サ
イクル部分を表わし、Bはマイクロ命令の後半分の実行
サイクル部分を表わす。第1図に示されているように、
各マイクロ命令の実行形式は準備サイクルAと実行サイ
クルBに分れている。, 6 is the timing Ti for the preparation cycle, 7 is the timing T2 for the execution cycle, and 8 is the timing T for the execution cycle.
3. A represents the preparation cycle portion of the first half of the microinstruction, and B represents the execution cycle portion of the second half of the microinstruction. As shown in Figure 1,
The execution format of each microinstruction is divided into a preparation cycle A and an execution cycle B.
或るマイクロ命令の実行サイクルと次のマイクロ命令の
準備サイクルとはオーバラップさせる。また各サイクル
の実行動作を制御するタイミングは、準備サイクル用と
してT。とT1、実行サイクル用としてT2とT3をそ
れぞれ独立に設ける。通常、マイクロ命令の実行に際し
ては準備サイクルにおいてマイクロ命令のデコーダ、演
算データの準備をおこない、実行サイクルにおいて演算
、演算結果の格納などをおこなう。前のマイクロ命令が
実行サイクルに入るとき、次のマイクロ命令は準備サイ
クルに入る。さて先にも述べた記憶保護チェックの例を
とり上けてこの発明による命令の実行方式を説明する。The execution cycle of one microinstruction and the preparation cycle of the next microinstruction are overlapped. The timing for controlling the execution operation of each cycle is T for the preparation cycle. and T1, and T2 and T3 are provided independently for execution cycles. Normally, when a microinstruction is executed, a decoder for the microinstruction and operation data are prepared in a preparation cycle, and an operation and the result of the operation are stored in an execution cycle. When the previous microinstruction enters the execute cycle, the next microinstruction enters the prepare cycle. Now, the instruction execution method according to the present invention will be explained using the example of the memory protection check mentioned above.
第1のマイクロ命令にて、オペランドアドレスの計算が
終了し、第2のマイクロ命令にてメモリアクセスをおこ
なうものとする。そして第1のマイクロ命令で記憶保護
チェックの指示をおこなつておき、そのチェック結果は
第2のマイクロ命令の実行サイクルの前に判明するもの
とする。今記憶保護チェックの結果、アクセス禁止の場
所でないことが判明した場合、第1図に示したようにマ
イクロ命令の実行は第1マイクロ命令から順に第2、第
3と進行してゆく。ところが、記憶保護チェックの結果
、アクセス禁止の場所であることが判明するという例外
的な事象が起きると、第2図に示すように、第2、第3
のマイクロ命令の各実行サイクルB(斜線部分)のタイ
ミングパルスT2、T3の供給を抑止し、何も実行しな
かつてのと同じ状態にする。第3のマイクロ命令の実行
サイクルも抑止しているのは、この時間に、記憶保護チ
ェックの結果アクセス禁止という例外事。象が起きたこ
との処理のための先頭マイクロ命令(発生時期的にみて
第4のマイクロ命令の位置に相当)を読み出して例外処
理ルーチンに動作が入つてゆくためである。以上述べた
この発明による命令の実行方式は第,3図に示す回路に
よつて実現できるので、以下これについて説明する。It is assumed that calculation of the operand address is completed by the first microinstruction, and memory access is performed by the second microinstruction. It is assumed that the first micro-instruction instructs a memory protection check, and the result of the check is known before the execution cycle of the second micro-instruction. If it is found as a result of the memory protection check that the location is not an access-prohibited location, the execution of microinstructions proceeds from the first microinstruction to the second and third microinstructions, as shown in FIG. However, if an exceptional event occurs in which the memory protection check reveals that access is prohibited, the second and third
The supply of timing pulses T2 and T3 for each execution cycle B (shaded area) of the microinstruction is suppressed, leaving the same state as before without executing anything. The reason why the execution cycle of the third microinstruction is also inhibited is due to the exception that access is prohibited as a result of the memory protection check during this time. This is because the first microinstruction (corresponding to the position of the fourth microinstruction in terms of generation time) for processing the occurrence of the error is read out and the operation is entered into the exception handling routine. The instruction execution method according to the present invention described above can be realized by the circuit shown in FIGS. 3 and 3, which will be explained below.
第3図はこの発明の実施に必要な要部の回路構成を示す
ブロック図である。第3図において、9は例外事象発生
信号の入来線、10はオアゲート、11はフリップフロ
ップ、12は発振器、13は位相調整回路、14はタイ
ミング分配器、を示す。発振器12により発生された発
振出力は位相調整回路13において位相調整を受けて、
タイミング信号T。FIG. 3 is a block diagram showing the circuit configuration of essential parts necessary for carrying out the present invention. In FIG. 3, reference numeral 9 indicates an incoming line for an exceptional event occurrence signal, 10 indicates an OR gate, 11 indicates a flip-flop, 12 indicates an oscillator, 13 indicates a phase adjustment circuit, and 14 indicates a timing distributor. The oscillation output generated by the oscillator 12 undergoes phase adjustment in the phase adjustment circuit 13, and
timing signal T.
乃至T3となつてタイミング分配器14から各実行ユニ
ット(図示せず)に送出される。他方、例外要因の発生
は例外事象発生信号入来線9によりとらえてオア回路1
0を通してフリツプノフロツプ11にセットする。する
と、このフリップフロップ11の出力と、タイミング分
配器14のT2、T3のタイミング信号とそれぞれアン
ドをとることにより、T2とT3のタイミング信号の送
出を抑止するようにすることができる。かくして・例外
事象が発生したときは、T2とT3のタイミング信号を
抑止する。このようにして、第2、第3のマイクロ命令
の実行を抑止している間に、先にも述べたように例外処
理ルーチンの先頭マイクロ命令を読み出して例外処理を
実行するのである。以上述べたこの発明の詳細な説明か
ら明らかなように、この発明によれば、タイミング信号
分配の源で簡単にタイミングの発生を抑止することによ
りマイクロ命令の実行中止を図つているので、マイクロ
命令の中止回路が大幅に簡単化されたことになる。また
これにより通常処理と例外処理のオーバラップをおこな
つた場合の問題点が解消するので電子計算機としての性
能向上につながる、記憶保護チェックの例に限らず他の
種々な例外処理に適用することが容易である、などの効
果を得ることができる。to T3 and are sent from the timing distributor 14 to each execution unit (not shown). On the other hand, the occurrence of an exception factor is detected by the exception event occurrence signal incoming line 9 and sent to the OR circuit 1.
Set the flip-flop 11 through 0. Then, by ANDing the output of the flip-flop 11 and the timing signals T2 and T3 of the timing distributor 14, it is possible to suppress the transmission of the timing signals T2 and T3. Thus, when an exceptional event occurs, the T2 and T3 timing signals are inhibited. In this way, while the execution of the second and third microinstructions is inhibited, the first microinstruction of the exception handling routine is read out and the exception handling is executed, as described above. As is clear from the detailed description of the present invention described above, according to the present invention, execution of a microinstruction can be stopped by simply suppressing the generation of timing at the source of timing signal distribution. This means that the abort circuit has been greatly simplified. This also solves the problem of overlapping normal processing and exception processing, which leads to improved performance as a computer.It can be applied not only to the example of memory protection checking but also to various other types of exception processing. It is possible to obtain effects such as easy operation.
第1図と第2図はそれぞれこの発明を説明するのに必要
な図であつて、第1図はマイクロ命令の実行過程とそれ
に対応するタイミングパルスの発生状況を示す図、第2
図はマイクロ命令の実行過程に例外事象が発生したとき
の実行中止とタイミングパルスの関係を示す図である。
第3図はこの発明の実施に必要な要部の回路構成を示す
ブロック図である。図において、1乃至4はそれぞれマ
イクロ命令、5と6は準備サイクル用タイミング、7と
8は実行サイクル用タイミング、Aはマイクロ命令の準
備サイクル部分、Bは実行サイクル部分、9は例外事象
発生信号入来線、10はオア回路、11はフリップフロ
ップ、12は発振器、13はイ相調整回路、14はタイ
ミング分配器を示す。1 and 2 are diagrams necessary for explaining the present invention, respectively, and FIG. 1 is a diagram showing the execution process of a microinstruction and the generation situation of a timing pulse corresponding thereto, and FIG.
The figure shows the relationship between execution stop and timing pulses when an exception occurs during the execution process of a microinstruction. FIG. 3 is a block diagram showing the circuit configuration of essential parts necessary for carrying out the present invention. In the figure, 1 to 4 are microinstructions, 5 and 6 are preparation cycle timings, 7 and 8 are execution cycle timings, A is the preparation cycle portion of the microinstruction, B is the execution cycle portion, and 9 is an exception event occurrence signal. 10 is an incoming line, 10 is an OR circuit, 11 is a flip-flop, 12 is an oscillator, 13 is an in-phase adjustment circuit, and 14 is a timing distributor.
Claims (1)
分とから成り、マイクロ命令の実行サイクルと次のマイ
クロ命令の準備サイクルとがオーバラップするように実
行するマイクロプログラム制御方式の電子計算器におい
て、準備サイクルと実行サイクルに対し独立のタイミン
グを用意し、例外事象発生の際には以後のマイクロ命令
の実行サイクルに対するタイミングの抑止により実行を
抑止し例外処理ルーチンに動作が入るようにしたことを
特徴とする電子計算機。1. In an electronic computer using a microprogram control system in which a microinstruction consists of a preparation cycle part and an execution cycle part, and the execution cycle of a microinstruction and the preparation cycle of the next microinstruction overlap, An electronic device characterized in that an independent timing is prepared for the execution cycle, and when an exception event occurs, execution is inhibited by inhibiting the timing of the execution cycle of subsequent microinstructions, and the operation is entered into the exception handling routine. calculator.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10016477A JPS6049940B2 (en) | 1977-08-23 | 1977-08-23 | Electronic computer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10016477A JPS6049940B2 (en) | 1977-08-23 | 1977-08-23 | Electronic computer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5434646A JPS5434646A (en) | 1979-03-14 |
| JPS6049940B2 true JPS6049940B2 (en) | 1985-11-06 |
Family
ID=14266666
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10016477A Expired JPS6049940B2 (en) | 1977-08-23 | 1977-08-23 | Electronic computer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6049940B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58161040A (en) * | 1982-03-19 | 1983-09-24 | Hitachi Ltd | data processing equipment |
| JP4921110B2 (en) * | 2006-10-20 | 2012-04-25 | ユニ・チャーム株式会社 | Moisturizing container |
-
1977
- 1977-08-23 JP JP10016477A patent/JPS6049940B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5434646A (en) | 1979-03-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH04257932A (en) | Chip for emulation for digital signal processor | |
| JPH045216B2 (en) | ||
| JPS6232504B2 (en) | ||
| JPS6049940B2 (en) | Electronic computer | |
| JPS6049337B2 (en) | Pipeline control method | |
| JPS60214044A (en) | Microcomputer | |
| JPS60124746A (en) | data processing equipment | |
| JPS586971B2 (en) | arithmetic processing unit | |
| JPS6242301B2 (en) | ||
| JPH01125633A (en) | System for debugging multi-processing system | |
| JPS5842891B2 (en) | Meirei Seigiyohoushiki | |
| JP3405513B2 (en) | Redundant controller for programmable controller | |
| JPS59121540A (en) | Operation control system | |
| JP2693598B2 (en) | Program execution controller for digital signal processor | |
| JPH01274254A (en) | Data processor | |
| JPS63155330A (en) | Microprogram controller | |
| JPS6295644A (en) | Program debugging device for microprocessor | |
| JPH0561660B2 (en) | ||
| JPH0241781B2 (en) | ||
| JPS59744A (en) | Data processor | |
| JPS60196847A (en) | Microprogram control system | |
| JPS5844261B2 (en) | Subroutine operation failure detection device | |
| JPH0331940A (en) | Microprogram controller | |
| JPH0158528B2 (en) | ||
| JPS63197247A (en) | Microprogram controller |