JPS61118836A - Microprogram controller - Google Patents

Microprogram controller

Info

Publication number
JPS61118836A
JPS61118836A JP23939084A JP23939084A JPS61118836A JP S61118836 A JPS61118836 A JP S61118836A JP 23939084 A JP23939084 A JP 23939084A JP 23939084 A JP23939084 A JP 23939084A JP S61118836 A JPS61118836 A JP S61118836A
Authority
JP
Japan
Prior art keywords
address
stack
return
subroutine
control circuit
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
JP23939084A
Other languages
Japanese (ja)
Inventor
Hiroyuki Wakita
脇田 弘幸
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
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 filed Critical NEC Corp
Priority to JP23939084A priority Critical patent/JPS61118836A/en
Publication of JPS61118836A publication Critical patent/JPS61118836A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/26Address formation of the next micro-instruction ; Microprogram storage or retrieval arrangements
    • G06F9/262Arrangements for next microinstruction selection

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To reduce hardware quantity by controlling collectively both a return address stack for subroutine and a return address stack for processing. CONSTITUTION:A microprogram stored in a control memory 1 is read to a reading register 2 with designation of address done by an address control circuit 3. A part of the program in the register 2 is decoded by a decoder 6 as the subroutine calling and return signals and supplied to an address stack 4, etc. When the interruption conditions are produced, an interruption control circuit 5 supplies the control information on the interruption conditions to the stack 4, etc. The stack 4 is controlled by an LIFO (last-in/first-out) system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置に於けるマイクロプログラム制御
装置に関するもので、特に、サブルーチン機能と割込み
処理機能に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprogram control device in an information processing device, and particularly relates to a subroutine function and an interrupt processing function.

〔従来の技術及び発明が解決しようとする問題点〕従来
、マイクロプログラム制御装置に於いて。
[Prior art and problems to be solved by the invention] Conventionally, in microprogram control devices.

サブルーチン機能と割込み処理機能を備える場合、マイ
クロ命令の戻リアドレスの制御の為に。
When equipped with subroutine functions and interrupt processing functions, for controlling the return address of microinstructions.

サブルーチンアドレススタックをもち、また割込み処理
のために割込み発生時のマイクロ命令のアドレスを格納
する手段を持っていた為、金物が増えるという欠点があ
った。更に、マイクロ命令によるサブルーチン処理と割
込み処理とは、一般的に非同時に発生するため、戻リア
ドレスの格納位置が複数個ある場合、その順序の制御が
複雑になるという欠点があった。
Since it had a subroutine address stack and a means for storing the address of the microinstruction when an interrupt occurred for interrupt processing, it had the disadvantage of increasing the amount of hardware. Furthermore, since subroutine processing and interrupt processing using microinstructions generally occur non-simultaneously, there is a drawback that if there are a plurality of storage locations for return addresses, controlling the order becomes complicated.

本発明の目的は、マイクロ命令のサブルーチン処理用の
戻リアドレスの、スタックと割込み処理用の戻リアドレ
スのスタックを同じものとし。
An object of the present invention is to make the stack of the return address for microinstruction subroutine processing and the stack of the return address for interrupt processing the same.

一括制御することにより、アドレススタックの金物量を
減らし、かつ、戻リアドレスの制御を容易にできるよう
にしたマイクロプログラム制御装置を提供することにあ
る。
It is an object of the present invention to provide a microprogram control device that reduces the amount of hardware in an address stack and facilitates control of return addresses by performing collective control.

〔問題点を解決するための手段〕[Means for solving problems]

本発明によれば、サブルーチン機能と割込み処理機能と
を備えたマイクロプログラム制御装置において、マイク
ロプログラムを格納する制御メモリと2次に実行するマ
イクロ命令のアドレスを決定するアドレス制御回路と、
マイクロ命令の戻リアドレスを複数個格納可能なアドレ
ススタックと、マイクロ命令のサブルーチン呼出し時に
戻リアドレスを前記アドレススタックに格納する手段と
、マイクロ命令のサブルーチンからの戻りの時に戻リア
ドレスを前記アドレとする手段と9割込み発生時に割込
み処理後の戻リアドレスを前記アドレススタックに格納
する手段と2割込み処理終了時に前記戻リアドレスを前
記アドレススタックから取出し、前記アドレス制御回路
の入力とする手段とを含むことを特徴とするマイクロプ
ログラム制御装置が得られる。
According to the present invention, in a microprogram control device having a subroutine function and an interrupt processing function, a control memory for storing a microprogram and an address control circuit for determining the address of a microinstruction to be executed secondarily;
an address stack capable of storing a plurality of microinstruction return addresses; means for storing a return address in the address stack when a microinstruction subroutine is called; and means for storing a return address in the address stack when a microinstruction subroutine returns. means for storing the return address after interrupt processing in the address stack when a 9th interrupt occurs; and means for taking out the return address from the address stack when the 2nd interrupt processing is completed and inputting the return address to the address control circuit. A microprogram control device is obtained, characterized in that it includes:

〔実施例〕〔Example〕

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

第1図に示された本発明の一実施例によるマイクロプロ
グラム制御装置において、マイクロプログラムは制御メ
モリ1に格納されており。
In a microprogram control device according to an embodiment of the present invention shown in FIG. 1, a microprogram is stored in a control memory 1. As shown in FIG.

アドレス制御回路3から信号線18を通してアドレス指
定され読出しレジスタ2へ読出される。
The address is specified from the address control circuit 3 through the signal line 18 and read out to the read register 2.

読出しレジスタ2の一部は、信号線12を通してアドレ
ス制御回路3へ供給され9次のマイクロ命令アドレスと
して使用される。また、読出し。
A part of the read register 2 is supplied to the address control circuit 3 through the signal line 12 and used as the ninth microinstruction address. Also read.

レジスタ2の他の一部は、信号線13を通してデコーダ
6へ供給され、サブルーチンの呼出し。
The other part of register 2 is supplied to decoder 6 through signal line 13 to call a subroutine.

サブルーチンからの戻り信号としてデコードされ、制御
線14 、15を通してそれぞれ・アドレス制゛御回路
3.アドレススタック4へ供給される。
It is decoded as a return signal from the subroutine and sent to the address control circuit 3 through control lines 14 and 15, respectively. It is supplied to the address stack 4.

また9割込み条件が発生すると9割込み制御回路5がそ
れを検出し、制御線16 、17を通してそれぞれアド
レス制御回路3.アドレススタック4に割込み条件の制
御情報を供給する。
Further, when a 9-interrupt condition occurs, the 9-interrupt control circuit 5 detects it and sends the address control circuit 3. Supply control information of interrupt conditions to the address stack 4.

アドレス制御回路3は、読出レジスタ2の内容や、アド
レススタック4からのデータを使用し9割込み条件、サ
ブルーチン条件等の制御情報に基づいて9次に実行すべ
きマイクロ命令のアドレスを決定し、制御メモリ1の読
出しを行う。
The address control circuit 3 uses the contents of the read register 2 and data from the address stack 4 to determine the address of the microinstruction to be executed next based on control information such as interrupt conditions and subroutine conditions. Read memory 1.

アドレススタック4は、複数ワードのスタックでありL
IFO(La5t In First Out )で制
御される。
Address stack 4 is a stack of multiple words and L
Controlled by IFO (La5t In First Out).

読出しレジスタ2の内容をデコーダ6でデコードした結
果がサブルーチンの呼出し命令の時。
When the result of decoding the contents of read register 2 by decoder 6 is a subroutine call instruction.

アドレス制御回路3はそのサブルーチンの戻リアドレス
を決定し、信号線19を通してアドレススタック4へそ
の戻リアドレスのスタックを指示する。アドレススタッ
ク4は前記データを格納し、スタックポインタを+1す
る。次に読出しレジスタ2にサブルーチンの戻りのマイ
クロ命令が指示されると、デコーダ6の出力に従いアド
レススタック4は、スタックボイ/りに従い最新のスタ
ックアドレスを読出し、スタックポインタを−1する。
The address control circuit 3 determines the return address of the subroutine and instructs the address stack 4 to stack the return address through the signal line 19. The address stack 4 stores the data and increments the stack pointer by 1. Next, when a subroutine return microinstruction is specified in the read register 2, the address stack 4 reads the latest stack address in accordance with the output of the decoder 6 and decrements the stack pointer by 1.

読出した戻リアドレスは信号線銀を通してアドレス制御
回路3へ供給され1次に読み出すべきマイクロ命令のア
ドレスとして使用される。
The read return address is supplied to the address control circuit 3 through the signal line silver and used as the address of the microinstruction to be read out first.

以上はサブルーチンの呼出し、戻りの場合の動作説明で
あるが2割込みの場合も、読出し、レジスタ2の内容に
従って動作する代りに1割込み制御回路5の出力に従っ
て動作する点を除いて、アドレスの操作は同様にして実
施される。
The above is an explanation of the operation in the case of subroutine calling and return, but in the case of 2 interrupts, the address operation is also different, except that instead of reading and operating according to the contents of register 2, it operates according to the output of 1 interrupt control circuit 5. is carried out in the same way.

更にサブルーチンの呼出しが複数段になっている場合、
また、サブルーチンの実行中に割込みが発生した場合、
あるいは2割込み処理中にサブルーチンを呼出す場合等
は、アドレススタックのスタックの深さが深くなるだけ
で上記説明した動作は全く同様に行なわれる。。なお、
アドレススタック4のスタックの深さは1本発明が実施
されるマイクロプログラム制御装置で許されるサブルー
チン呼出しの段数と割込み処理の段数の和に等しくして
おくことが必要である。
Furthermore, if the subroutine is called in multiple stages,
Also, if an interrupt occurs during the execution of a subroutine,
Alternatively, when a subroutine is called during 2-interrupt processing, the operation described above is performed in exactly the same way, except that the depth of the address stack becomes deeper. . In addition,
It is necessary that the stack depth of the address stack 4 be equal to the sum of the number of subroutine calls and the number of interrupt processing stages allowed in the microprogram control device in which the present invention is implemented.

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

本発明は以上説明したように、サブルーチン用の戻リア
ドレススタックと1割込み処理用の戻リアドレススタッ
クを一括制御することにより、金物が少なく、制御の容
易なマイクロプログラム制御装置を提供できるという効
果がある。
As explained above, the present invention has the advantage that by collectively controlling the return read address stack for subroutines and the return read address stack for one interrupt processing, it is possible to provide a microprogram control device that requires less hardware and is easy to control. There is.

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

第1図゛は本発明の一実施例を示すブロック図である。 FIG. 1 is a block diagram showing one embodiment of the present invention.

Claims (1)

【特許請求の範囲】[Claims] 1、サブルーチン機能と割込み機能とを備えたマイクロ
プログラム制御装置において、マイクロプログラムを格
納する制御メモリと、次に実行するマイクロ命令のアド
レスを決定するアドレス制御回路と、マイクロ命令の戻
リアドレスを複数個格納可能なアドレススタックと、マ
イクロ命令のサブルーチン呼出し時に戻りアドレスを前
記アドレススタックに格納する手段と、マイクロ命令の
サブルーチンからの戻りの時に、戻りアドレスを前記ア
ドレススタックから取出し前記アドレス制御回路への入
力とする手段と、割込み発生時に割込み処理後の戻りア
ドレスを前記アドレススタックに格納する手段と、割込
み処理終了時に前記戻りアドレスを前記アドレススタッ
クから取出し、前記アドレス制御回路の入力とする手段
とを含むことを特徴とするマイクロプログラム制御装置
1. A microprogram control device equipped with a subroutine function and an interrupt function, which includes a control memory that stores a microprogram, an address control circuit that determines the address of the next microinstruction to be executed, and a plurality of microinstruction return addresses. means for storing a return address in the address stack when a microinstruction subroutine is called; means for inputting the return address, means for storing the return address after interrupt processing in the address stack when an interrupt occurs, and means for taking out the return address from the address stack at the end of the interrupt processing and inputting the return address to the address control circuit. A microprogram controller comprising:
JP23939084A 1984-11-15 1984-11-15 Microprogram controller Pending JPS61118836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23939084A JPS61118836A (en) 1984-11-15 1984-11-15 Microprogram controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23939084A JPS61118836A (en) 1984-11-15 1984-11-15 Microprogram controller

Publications (1)

Publication Number Publication Date
JPS61118836A true JPS61118836A (en) 1986-06-06

Family

ID=17044069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23939084A Pending JPS61118836A (en) 1984-11-15 1984-11-15 Microprogram controller

Country Status (1)

Country Link
JP (1) JPS61118836A (en)

Similar Documents

Publication Publication Date Title
US5241679A (en) Data processor for executing data saving and restoration register and data saving stack with corresponding stack storage for each register
KR860007589A (en) Data processing device
JP3970609B2 (en) Processor system
JPS5917458B2 (en) Method and apparatus for recording and executing microprograms in an information processing system
JP3768516B1 (en) Multiprocessor system and program execution method in the system
JPS61118836A (en) Microprogram controller
US4816992A (en) Method of operating a data processing system in response to an interrupt
EP0116600B1 (en) Pre-execution next address calculating mechanism
JPS6217773B2 (en)
JPH0377137A (en) Information processor
JP2537786B2 (en) Digital information processing device
US5151980A (en) Buffer control circuit for data processor
JPH02133833A (en) Controller for in-circuit emulator
JP2576899B2 (en) Information processing device
JP2507791B2 (en) Data processing device
JPS5868159A (en) Data processor
JPS63103331A (en) Digital signal processor
JPS6031646A (en) Data processor
JPS55138132A (en) Signal processor
JPH0442328A (en) Interruption control system for information processor
JPS60105048A (en) Microprogram control system
JPS6260034A (en) Stored program system controller
JPH024011B2 (en)
JPS62100836A (en) Control system for control memory address
JPH0194437A (en) Information processor