[go: up one dir, main page]

JPH0427572B2 - - Google Patents

Info

Publication number
JPH0427572B2
JPH0427572B2 JP56168294A JP16829481A JPH0427572B2 JP H0427572 B2 JPH0427572 B2 JP H0427572B2 JP 56168294 A JP56168294 A JP 56168294A JP 16829481 A JP16829481 A JP 16829481A JP H0427572 B2 JPH0427572 B2 JP H0427572B2
Authority
JP
Japan
Prior art keywords
microprogram
memory
input
external input
pulse
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 - Lifetime
Application number
JP56168294A
Other languages
Japanese (ja)
Other versions
JPS5870355A (en
Inventor
Takanori Takei
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP16829481A priority Critical patent/JPS5870355A/en
Publication of JPS5870355A publication Critical patent/JPS5870355A/en
Publication of JPH0427572B2 publication Critical patent/JPH0427572B2/ja
Granted 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/226Microinstruction function, e.g. input/output microinstruction; diagnostic microinstruction; microinstruction format

Landscapes

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

Description

【発明の詳細な説明】 本発明は、マイクロプログラム制御方式によ
り、複数の外部入力に対して同一の処理を行なう
際、マイクロプログラム量を少ないものとするこ
とができるマイクロプログラム制御方式に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a microprogram control method that allows the amount of microprograms to be reduced when performing the same processing on multiple external inputs. .

マイクロプログラム制御方式は現在計算機、コ
ントローラ等の中央処理部への適用を主体に広く
利用されているが、制御部構成に高い融通性を与
えることができる為、各種のインテリジエンス入
出力装置や機能モジユールへの利用も進んでい
る。
Microprogram control methods are currently widely used mainly for central processing units such as computers and controllers, but because they can provide high flexibility in the control unit configuration, they can be used for various intelligence input/output devices and functions. Its use in modules is also progressing.

ところで、インテリジエンス入出力装置や、機
能モジユール等に於いては、例えば、複数のパル
ス列のパルス性を各パルス列毎に計数すると言う
ように、複数の外部入力に対して、同一の処理を
行なう場合がある。従来は、このような場合、ハ
ードウエア量を少なくする為に、各外部入力に対
する処理をマイクロプログラムで記述しておき、
外部入力が発生した場合、その外部入力対応の処
理プログラムを実行させるようにしているが、外
部入力対応に処理プログラムを設けなければなら
ない為、マイクロプログラム量が外部入力の数に
比例して増大し、プログラム構造が複雑になる欠
点があつた。
By the way, in intelligence input/output devices, functional modules, etc., when performing the same processing on multiple external inputs, for example, counting the pulse characteristics of multiple pulse trains for each pulse train. There is. Conventionally, in such cases, in order to reduce the amount of hardware, the processing for each external input was written in a microprogram.
When an external input occurs, a processing program corresponding to the external input is executed, but since a processing program must be provided to correspond to the external input, the amount of microprograms increases in proportion to the number of external inputs. , it had the disadvantage that the program structure became complicated.

第1図は従来方式を説明する為のブロツク線図
であり、複数のパルス列をそれぞれのパルス数を
計数する場合についてのものである。尚、同図に
於いて、1はマイクロシーケンサ2、マイクロ命
令が格納されているマイクロプログラムメモリ
3、パイプラインレジスタ4、分岐制御回路5、
テスト条件選択回路6から成るマイクロプログラ
ム制御部、7は演算回路8、演算レジスタ9、メ
モリ10から成る演算制御部、11X,11Y,
11Zはそれぞれパルス列X,Y,Zの入力端
子、12はオアゲートである。又、第2図は、マ
イクロプログラムメモリ3に格納されているマイ
クロ命令のフオーマツトの一例を示し、BOPは
マイクロプログラム制御部1の動作モードを決定
する分岐制御フイールド、TCSはテスト条件選
択回路6に加えられるパルス列X,Y,Z、オア
ゲート12の出力信号RT、演算回路8の出力信
号AL(例えば、オーバーフロー等を示す信号)の
うちの何れを分岐制御回路5に加えるのかを示す
テスト条件選択フイールド、BADは分岐先のア
ドレスを示す分岐アドレスフイールド、MADは
メモリ10のアドレスを示すメモリアドレスフイ
ールド、AOPは演算制御部制御フイールドであ
る。又、第3図はマイクロプログラムメモリ3に
格納されている計数処理の為のマイクロプログラ
ムの一例を示した図である。
FIG. 1 is a block diagram for explaining the conventional method, and is for the case where the number of pulses in each of a plurality of pulse trains is counted. In the figure, 1 indicates a micro sequencer 2, a micro program memory 3 in which micro instructions are stored, a pipeline register 4, a branch control circuit 5,
A microprogram control section consisting of a test condition selection circuit 6; 7 is an arithmetic control section consisting of an arithmetic circuit 8, an arithmetic register 9, and a memory 10; 11X, 11Y;
11Z is an input terminal for the pulse trains X, Y, and Z, respectively, and 12 is an OR gate. FIG. 2 shows an example of the format of microinstructions stored in the microprogram memory 3, where BOP is a branch control field that determines the operation mode of the microprogram control section 1, and TCS is a branch control field that determines the operation mode of the microprogram control section 1. A test condition selection field indicating which of the applied pulse trains X, Y, and Z, the output signal RT of the OR gate 12, and the output signal AL of the arithmetic circuit 8 (for example, a signal indicating overflow, etc.) is to be applied to the branch control circuit 5. , BAD is a branch address field indicating the address of the branch destination, MAD is a memory address field indicating the address of the memory 10, and AOP is an arithmetic control unit control field. Further, FIG. 3 is a diagram showing an example of a microprogram for counting processing stored in the microprogram memory 3.

先ず、第1図各部の機能について説明する。マ
イクロシーケンサ2は、マイクロプログラムメモ
リ3のアドレスを指定し、該アドレスに書込まれ
ているマイクロ命令を読出すものであり、読出さ
れたマイクロ命令はパイプラインレジスタ4に加
えられる。又、パイプラインレジスタ4は、セツ
トされたマイクロ命令に分岐制御フイールド
BOP、テスト条件選択フイールドTCS、演算制
御部制御フイールドAOP、メモリアドレスフイ
ールドMAD、分岐アドレスフイールドBADをそ
れぞれ、分岐制御回路5、テスト条件選択回路
6、演算レジスタ9、メモリ10、マイクロシー
ケンサ2に加えるものである。
First, the functions of each part in FIG. 1 will be explained. The microsequencer 2 specifies an address in the microprogram memory 3 and reads out the microinstruction written at the address, and the read microinstruction is added to the pipeline register 4. Pipeline register 4 also provides a branch control field for the set microinstruction.
Add BOP, test condition selection field TCS, arithmetic control unit control field AOP, memory address field MAD, and branch address field BAD to the branch control circuit 5, test condition selection circuit 6, arithmetic register 9, memory 10, and microsequencer 2, respectively. It is something.

又、テスト条件選択回路6は、テスト条件選択
フイールドTCSの内容に従つて、オアゲート1
2の出力信号RT、パルス列X,Y,Z、演算回
路8の出力ALのうちの何れかを選択して分岐制
御回路5に加えるものである。又、分岐制御回路
5は、分岐制御フイールドBOPの内容を解読し、
解読結果に基づいて、マイクロシーケンサ2の動
作を制御する制御信号を作成するものであり、分
岐制御フイールドBOPの内容がPC+1モードで
ある場合には、順次進歩させる制御信号を、分岐
モードである場合には、分岐アドレスフイールド
BADの内容をそのまま出力させる制御信号を条
件分岐モードである場合には、テスト条件選択回
路6を介して加えられた信号が“1”になつた時
点に於いて、分岐アドレスフイールドBADの内
容をそのまま出力させる制御信号をマイクロシー
ケンサ2に加えるものである。
Further, the test condition selection circuit 6 selects the OR gate 1 according to the contents of the test condition selection field TCS.
2, the pulse trains X, Y, Z, and the output AL of the arithmetic circuit 8 are selected and applied to the branch control circuit 5. Further, the branch control circuit 5 decodes the contents of the branch control field BOP,
Based on the decoding result, a control signal is created to control the operation of the microsequencer 2. If the content of the branch control field BOP is PC+1 mode, the control signal to advance sequentially is created, and if it is in branch mode, the control signal is created to control the operation of the microsequencer 2. has a branch address field
If the control signal that causes the contents of BAD to be output as is is in conditional branch mode, the contents of the branch address field BAD will be output when the signal applied via the test condition selection circuit 6 becomes “1”. This is to add a control signal to the microsequencer 2 that causes it to be output as is.

又、パイプラインレジスタ4からメモリアドレ
スフイールドMADが加えられているメモリ10
には、図示の如く、パルス列X,Y,Zの入力パ
ルス数を記憶する領域CTX,CTY,CTZが設け
られており、メモリアドレスフイールドMADに
よつて、領域CTX,CTY,CTZの何れかが指定
されると、指定された領域に記憶されている入力
パルス数を演算回路8の一方の入力端子に加え、
演算回路路8はこの入力パルス数と他方の入力端
子に演算レジスタ9から加えられている数値とを
加算し、加算結果をメモリ10の前記指定された
領域に再び記憶させるものである。尚、通常は、
演算レジスタ9から演算回路8に加える数値を
「1」とし、各領域CTX,CTY,CTZに記憶さ
れる入力パルス数の実際の入力パルス数とを等し
くするものであるが、演算レジスタ9から演算回
路8に加える数値は、演算制御部制御フイールド
AOPの内容により自由に設定することができる
ものであるから、演算回路8に加える数値を例え
ば「N」(Nは整数)とし、各領域に記憶される
入力パルス数を実際の入力パルス数のN倍とする
こともできる。
Also, the memory 10 to which the memory address field MAD is added from the pipeline register 4
As shown in the figure, areas CTX, CTY, and CTZ are provided to store the number of input pulses of pulse trains When specified, the number of input pulses stored in the specified area is added to one input terminal of the arithmetic circuit 8,
The arithmetic circuit 8 adds this number of input pulses to the numerical value added from the arithmetic register 9 to the other input terminal, and stores the addition result in the specified area of the memory 10 again. Furthermore, normally,
The value added from the calculation register 9 to the calculation circuit 8 is "1" to make the number of input pulses stored in each area CTX, CTY, CTZ equal to the actual number of input pulses. The numerical value added to circuit 8 is the arithmetic control section control field.
Since it can be set freely depending on the contents of the AOP, the value added to the arithmetic circuit 8 is set to, for example, "N" (N is an integer), and the number of input pulses stored in each area is set to the actual number of input pulses. It can also be multiplied by N.

次に、第3図を参照して、マイクロプログラム
メモリ3に格納されている計数処理の為のマイク
ロプログラムと、第1図に示した装置との動作と
を関連づけて説明する。
Next, with reference to FIG. 3, the microprogram for counting stored in the microprogram memory 3 and the operation of the apparatus shown in FIG. 1 will be explained in relation to each other.

マイクロプログラム制御部1は常時同図に示す
マイクロプログラムAをマイクロプログラムメモ
リ3から読出し、パルス入力の有無、即ち、オア
ゲート12の出力が〓1”であるか〓0”である
かをチエツクしている。尚、この際オアゲート1
2の出力信号RTがテスト条件選択回路6を介し
て分岐制御回路5に加わるように、テスト条件選
択フイールドTCSの内容を設定しておくもので
ある。
The microprogram control unit 1 always reads the microprogram A shown in the figure from the microprogram memory 3 and checks whether there is a pulse input, that is, whether the output of the OR gate 12 is 1" or 0. There is. In addition, at this time, ORGATE 1
The contents of the test condition selection field TCS are set so that the output signal RT of No. 2 is applied to the branch control circuit 5 via the test condition selection circuit 6.

そして、オアゲート12の出力信号RTが〓
1”になると、マイクロプログラムメモリ3か
ら、同図に示すマイクロプログラムBを読出し、
入力パルスがパルス列Xのものであるか否かをチ
エツクし、入力パルスがパルス列Xであると判断
した場合は、メモリ10の領域CTXに記憶され
ている入力パルス数をカウントアツプする為のサ
ブルーチンEを、パルス入力がパルス列Xのもの
でない場合は、パルス入力がパルス列Yであるか
否かをチエツクするマイクロプログラムCをマイ
クロプログラムメモリ3から読出す。尚、マイク
ロプログラムBは、分岐制御フイールドBOP=
〓条件分岐モード”、テスト条件選択フイールド
TCS=〓パルス列Xを選択”、分岐アドレスフイ
ールドBAD=〓サブルーチンEの先頭アドレス”
となつているものである。即ち、分岐制御回路5
は前述したように、分岐制御フイールドBOPの
内容が、条件分岐モードである場合には、テスト
条件選択回路6からの信号が〓1”になつた時、
マイクロシーケンサ2に分岐アドレスフイールド
BADの内容をそのまま出力させる制御信号を加
えるものであるから、パルス入力がパルス列Xの
ものである場合には、マイクロシーケンサ2から
分岐アドレスフイールドBADの内容、即ち、サ
ブルーチンEの先頭アドレスが、マイクロプログ
ラムメモリ3に加えられ、サブルーチンEが読出
される。この場合、サブルーチンEのメモリアド
スフイールドMADには、メモリ10の領域CTX
のアドレスを書込んでおくものであり、従つて、
メモリ10は、サブルーチンEがパイプラインレ
ジスタ4にセツトされると、パルス列X対応の領
域CTXに記憶されている入力パルス数を前述し
たように、演算回路8に加えて演算レジスタ9か
らの数値(通常は「1」)と加算し、加算結果を
入力パルス数として、再び領域CTXに記憶する
ものである。そして、この後、リターン命令
(RETURN)が実行され、マイクロプログラム
Cがマイクロプログラムメモリ3から読出され
る。
Then, the output signal RT of the OR gate 12 is
1", the microprogram B shown in the figure is read out from the microprogram memory 3, and
It is checked whether the input pulse is of pulse train X, and if it is determined that the input pulse is pulse train X, subroutine E is executed to count up the number of input pulses stored in area CTX of memory 10. If the pulse input is not the pulse train X, the microprogram C for checking whether the pulse input is the pulse train Y is read out from the microprogram memory 3. Furthermore, microprogram B has branch control field BOP=
〓Conditional branch mode”, test condition selection field
TCS=〓Select pulse train X”, Branch address field BAD=〓Start address of subroutine E”
This is what has become the norm. That is, the branch control circuit 5
As mentioned above, if the content of the branch control field BOP is conditional branch mode, when the signal from the test condition selection circuit 6 becomes 〓1'',
Branch address field in micro sequencer 2
Since a control signal is added to output the contents of BAD as is, if the pulse input is from pulse train The subroutine E is added to the program memory 3 and read out. In this case, the memory address field MAD of subroutine E contains the area CTX of memory 10.
The address of
When the subroutine E is set in the pipeline register 4, the memory 10 calculates the number of input pulses stored in the area CTX corresponding to the pulse train Usually, "1") is added, and the addition result is stored in the area CTX again as the number of input pulses. Thereafter, a return instruction (RETURN) is executed and the microprogram C is read from the microprogram memory 3.

又、マイクロプログラムC,Dにより、パルス
入力がパルス列Y,Zであることが検出された場
合も、前述したと同様に、パルス列Y,Z対応の
サブルーチンF,Gが読出され、メモリ10の領
域CTY,CTZに記憶されている入力パルス数が
カウントアツプされる。
Also, when the microprograms C and D detect that the pulse input is the pulse train Y and Z, the subroutines F and G corresponding to the pulse train Y and Z are read out and the area of the memory 10 is read out, as described above. The number of input pulses stored in CTY and CTZ is counted up.

従来方式は、上述したように、複数の外部入力
(従来例の説明に於いてはパルス列X,Y,Z)
に対して同一の処理を行なう場合であつても外部
入力対応に処理プログラム(従来例の説明に於い
てはサブルーチンE,F,G)を設けておくもの
であるので、マイクロプログラム量が外部入力の
数に比例して増加し、プログラムの記述が複雑に
なる欠点があつた。
As mentioned above, the conventional method uses multiple external inputs (pulse trains X, Y, Z in the explanation of the conventional example).
Even if the same processing is to be performed on the external input, a processing program (subroutines E, F, and G in the conventional example) is provided for the external input. The problem is that the number of programs increases in proportion to the number of programs, making the program description complex.

本発明は、前述の如き欠点を改善したものであ
り、その目的は、複数の外部入力に対して同一の
処理を行なう場合、1つの処理プログラムで複数
の外部入力に対する処理を行なうことができるよ
うにすることにより、マイクロプログラム量の増
加を防止し、且つ、単純なマイクロプログラム記
述を可能にすることにある。以下実施例について
詳細に説明する。
The present invention has improved the above-mentioned drawbacks, and its purpose is to enable one processing program to process multiple external inputs when the same process is performed on multiple external inputs. By doing so, it is possible to prevent an increase in the amount of microprograms and to enable simple microprogram description. Examples will be described in detail below.

第4図は、本発明の実施例のブロツク線図であ
り、複数のパルス列それぞれの入力パルス数を計
数する場合についてのものである。同図に於いて
13はエンコーダであり、他の第1図と同一符号
は同一部分を表わしている。又、第5図はマイク
ロプログラムメモリ3に格納されている計数処理
の為のマイクロプログラムの一例を示したもので
ある。
FIG. 4 is a block diagram of an embodiment of the present invention, in which the number of input pulses of each of a plurality of pulse trains is counted. In the figure, 13 is an encoder, and the same reference numerals as in the other figures in FIG. 1 represent the same parts. Further, FIG. 5 shows an example of a microprogram for counting processing stored in the microprogram memory 3.

エンコーダ13は、入力端子11Xからパルス
列Xのパルスが加えられた場合は、例えば、その
出力信号a,bを共に〓0”として、入力端子1
1Yからパルス列Yのパルスが加ええられた場合
は、信号aを〓0”、信号bを〓1”とし、入力
端子11Zからパルス列Zのパルスが加えられた
場合は、信号aを〓1”、信号bを〓0”とし、
この信号a,bをメモリアドレスフイールド
MADの最上位デジツト側に付加した形で、メモ
リ10に加えるものであり、又、メモリ10はエ
ンコーダ13からの信号a,bとパイプラインレ
ジスタ4からのメモリアドレスフイールドMAD
の内容によつて決定されたアドレスに格納されて
いるデータ(入力パルス数)を読出し、演算回路
8の一方の入力端子に加えるものである。そし
て、演算回路8に於いて、前述したと同様に、メ
モリ10からの入力パルス数と演算レジスタ9か
らの数値とが加算され、加算結果が入力パルス数
として、再び、信号a,b及びメモリアドレスフ
イールドMADによつて決定されたアドレスに格
納されるものである。
When the pulse of the pulse train X is applied from the input terminal 11
When pulses of pulse train Y are added from input terminal 11Y, signal a becomes 〓0'' and signal b becomes 〓1''. When pulses of pulse train Z are applied from input terminal 11Z, signal a becomes 〓1''. , the signal b is 〓0'',
These signals a and b are stored in the memory address field.
It is added to the most significant digit side of MAD, and is added to memory 10, and memory 10 also receives signals a and b from encoder 13 and memory address field MAD from pipeline register 4.
The data (number of input pulses) stored at the address determined by the contents of is read out and applied to one input terminal of the arithmetic circuit 8. Then, in the arithmetic circuit 8, the number of input pulses from the memory 10 and the numerical value from the arithmetic register 9 are added together in the same way as described above, and the addition result is used as the number of input pulses to add the signals a, b and the memory again. It is stored at the address determined by the address field MAD.

従つて、この場合、マイクロプログラムモリ3
には、第5図に示すように、パルス入力の有無、
即ち、オアゲート12の出力が〓1”であるか〓
0”であるかをチエツクするマイクロプログラム
A及び計数処理の為のサブルーチンBのみを格納
しておけば良いことになる。即ち、マイクロプロ
グラムAにより、パルス入力の有無をチエツク
し、パルス入力があれば、計数処理の為のサブル
ーチンBをマイクロプログラムメモリ3から読出
してパイプラインレジスタ4にセツトし、そして
パイプラインレジスタ4にセツトさえたメモリア
ドレスフイールドMADの内容及びエンコーダの
出力信号a,bによつて入力のあつたパルス列対
応の領域を指定し、指定された領域に格納されて
いる入力パルス数を演算回路8の一方の入力端子
に加えるものであり、従来方式のように、何れの
パルス列のパルスであるか否かをチエツクするマ
イクロプログラムを設ける必要はなく、又、パル
ス列対応に処理プログラム(サブルーチン)を設
けなくとも良いので、従来方式に比較してマイク
ロプログラム量を大幅に削減することができる。
尚、同図のサブルーチンBに於いて△は、X,
Y,Zの何れかを示すものであり、エンコーダ1
3の出力信号a,bによつて、X,Y,Zのうち
何れかが自動的に設定されるものである。
Therefore, in this case, the microprogram memory 3
As shown in Figure 5, the presence or absence of pulse input,
That is, whether the output of the OR gate 12 is 〓1''〓
It is sufficient to store only the microprogram A that checks whether the pulse input is 0" and the subroutine B for counting processing. In other words, the microprogram A checks whether there is a pulse input, and if there is a pulse input, it is necessary to store it. For example, subroutine B for counting processing is read from the microprogram memory 3 and set in the pipeline register 4, and is then read out based on the contents of the memory address field MAD set in the pipeline register 4 and the output signals a and b of the encoder. This method specifies the area corresponding to the input pulse train, and adds the number of input pulses stored in the specified area to one input terminal of the arithmetic circuit 8. There is no need to provide a microprogram to check whether it is a pulse or not, and there is no need to provide a processing program (subroutine) for pulse trains, so the amount of microprograms can be significantly reduced compared to conventional methods. can.
In addition, in subroutine B in the same figure, △ is X,
It indicates either Y or Z, and encoder 1
Depending on the output signals a and b of No. 3, any one of X, Y, and Z is automatically set.

尚、実施例に於いては、複数の外部入力に対し
て同一の処理を行なう場合について説明したが、
同一の処理を行なう外部入力の組が複数あり、且
つ各組の処理内容が異なる場合にも本発明を適用
できることは勿論である。
In addition, in the embodiment, the case where the same processing is performed on multiple external inputs has been explained.
Of course, the present invention can also be applied to a case where there are a plurality of sets of external inputs that perform the same processing, and the processing content of each set is different.

以上説明したように、本発明は、複数の外部入
力のうちの何れが加えられたかを検出するエンコ
ーダ13等の検出手段を設けたものであるから、
従来方式のように、外部入力のうちの何れが加え
られたかをチエツクする為の処理プログラムを設
ける必要はなく、又、検出手段の検出結果に基づ
いて、処理プログラム(実施例に於いてはサブル
ーチンB)による処理結果を、メモリの外部入力
対応の領域に記憶させるものであるから、従来方
式のように、外部入力対応に処理プログラム(従
来例の説明に於いてはサブルーチンE〜G)を設
ける必要がなく、従つて、マイクロプログラム量
を従来方式に比べて大幅に削減できる利点がある
と共にマイクロプログラムの構造を簡単にするこ
とができる利点がある。
As explained above, the present invention is provided with detection means such as the encoder 13 for detecting which of a plurality of external inputs is applied.
Unlike the conventional method, there is no need to provide a processing program to check which of the external inputs has been applied. Since the processing results obtained in B) are stored in an area of the memory corresponding to external input, a processing program (subroutines E to G in the explanation of the conventional example) is provided to correspond to external input, as in the conventional method. Therefore, there is an advantage that the amount of microprogram can be significantly reduced compared to the conventional method, and the structure of the microprogram can be simplified.

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

第1図は従来例のブロツク線図、第2図はマイ
クロ命令のフオーマツトの一例を示す図、第3図
は従来方式に於けるマイクロプログラムの一例を
示す図、第4図は本発明の実施例のブロツク線
図、第5図は本発明方式に於けるマイクロプログ
ラムの一例を示す図である。 1はマイクロプログラム制御部、2はマイクロ
シーケンサ、3はマイクロプログラムメモリ、4
はパイプラインレジスタ、5は分岐制御回路、6
はテスト条件選択回路、7は演算制御部、8は演
算回路、9は演算レジスタ、10はメモリ、11
X〜11Zは入力端子、12はオアゲート、13
はエンコーダである。
FIG. 1 is a block diagram of a conventional example, FIG. 2 is a diagram showing an example of the format of a microinstruction, FIG. 3 is a diagram showing an example of a microprogram in the conventional system, and FIG. 4 is a diagram showing an example of the implementation of the present invention. An example block diagram, FIG. 5, is a diagram showing an example of a microprogram in the system of the present invention. 1 is a micro program control unit, 2 is a micro sequencer, 3 is a micro program memory, 4
is a pipeline register, 5 is a branch control circuit, and 6 is a pipeline register.
1 is a test condition selection circuit, 7 is an arithmetic control section, 8 is an arithmetic circuit, 9 is an arithmetic register, 10 is a memory, 11
X~11Z are input terminals, 12 is an OR gate, 13
is an encoder.

Claims (1)

【特許請求の範囲】[Claims] 1 複数の外部入力に対してそれぞれ同一の処理
をマイクロプログラムに従つて実行するマイクロ
プログラム制御方式において、前記複数の外部入
力対応の処理結果をそれぞれ外部入力対応の領域
に格納するメモリと、前記複数の外部入力を識別
し、その識別結果に基づいて前記メモリの外部入
力対応の領域のアドレス信号の一部となるアドレ
ス情報を出力する外部入力識別手段と、前記複数
の外部入力に対してそれぞれ同一の処理を実行す
る為の1個のサブルーチンプログラムを含むマイ
クロプログラムを格納したマイクロプログラムメ
モリとを備え、前記外部入力を検出すると、前記
マイクロプログラムメモリから前記サブルーチン
プログラムを読出して前記外部入力に対する処理
を実行し、前記外部入力識別手段から出力された
アドレス情報と前記マイクロプログラム内のアド
レス情報との組み合わせにより指定される前記メ
モリの外部入力対応の領域に処理結果を格納する
ことを特徴とするマイクロプログラム制御方式。
1. In a microprogram control method in which the same process is executed for a plurality of external inputs according to a microprogram, the plurality of external input identification means for identifying an external input of the plurality of external inputs and outputting address information that becomes part of an address signal of an area corresponding to the external input of the memory based on the identification result; and a microprogram memory storing a microprogram including one subroutine program for executing the process, and when the external input is detected, the subroutine program is read from the microprogram memory and the process for the external input is executed. A microprogram that is executed and stores a processing result in an area of the memory corresponding to an external input specified by a combination of address information output from the external input identification means and address information within the microprogram. control method.
JP16829481A 1981-10-21 1981-10-21 Microprogram controlling system Granted JPS5870355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16829481A JPS5870355A (en) 1981-10-21 1981-10-21 Microprogram controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16829481A JPS5870355A (en) 1981-10-21 1981-10-21 Microprogram controlling system

Publications (2)

Publication Number Publication Date
JPS5870355A JPS5870355A (en) 1983-04-26
JPH0427572B2 true JPH0427572B2 (en) 1992-05-12

Family

ID=15865339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16829481A Granted JPS5870355A (en) 1981-10-21 1981-10-21 Microprogram controlling system

Country Status (1)

Country Link
JP (1) JPS5870355A (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5533236A (en) * 1978-08-30 1980-03-08 Toshiba Corp Parameter control system
JPS5592950A (en) * 1978-12-30 1980-07-14 Ricoh Co Ltd Interruption control system

Also Published As

Publication number Publication date
JPS5870355A (en) 1983-04-26

Similar Documents

Publication Publication Date Title
US4742466A (en) System for measuring path coverage represented by the degree of passage of execution paths in a program
KR840001350A (en) Data processing device with indeterminate command
EP0117493A2 (en) Digital controller
NL8202913A (en) CONTROL ORDER CHAIN FOR AN EMULATOR.
JPS6220578B2 (en)
JPS59194245A (en) Microprogram controller
US4550369A (en) Apparatus and method for processing macroinstructions and microinstructions
US6832334B2 (en) Computer register watch
JPH0427572B2 (en)
JPS6230650B2 (en)
JPS594051B2 (en) One-chip microprocessor test processing method
JPS623351A (en) Microprocessor
SU849218A1 (en) Device for debugging programs
GB2258063A (en) Monitoring execution of a computer program to provide profile analysis
SU802963A1 (en) Microprogramme-control device
SU1256045A1 (en) Computing device for diagnosis of motion means of patients
SU1103238A1 (en) Control device having transition checking
JPH0557615B2 (en)
JPS5880741A (en) Interrupt control method
JPS6144346B2 (en)
JPH02155052A (en) Tracing device
HU200011B (en) Method and circuit arrangement for developing branch of microprogramme of the microprogrammed digital apparatuses, advantegously computers
JPS6122820B2 (en)
JPH0319043A (en) Comprehension rate measuring device for microprogram
JPS61290546A (en) Tracing system for microprogram controller