JPS62266626A - Microprogram type microcomputer - Google Patents

Microprogram type microcomputer

Info

Publication number
JPS62266626A
JPS62266626A JP61111407A JP11140786A JPS62266626A JP S62266626 A JPS62266626 A JP S62266626A JP 61111407 A JP61111407 A JP 61111407A JP 11140786 A JP11140786 A JP 11140786A JP S62266626 A JPS62266626 A JP S62266626A
Authority
JP
Japan
Prior art keywords
microprogram
instruction
contents
parity
port
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
JP61111407A
Other languages
Japanese (ja)
Inventor
Shigeru Takayama
高山 茂
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 JP61111407A priority Critical patent/JPS62266626A/en
Publication of JPS62266626A publication Critical patent/JPS62266626A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To recognize the flow of a microprogram by sequentially storing the parities of contents in a microprogram memory and outputting a series of parities to a port in the final microstep of an instruction. CONSTITUTION:The parities of contents in a micro-ROM, which are read whenever a microstep is executed, are sequentially stored in a shift register 7. A control signal 14 outputted in the final microstep of the instruction makes a buffer circuit 8 active, and said parities are outputted to the port 10 through a bus 9. Since the execution sequence of microsteps comprising the flow of the microprogram in the executed instruction and the parities stored in the micro ROM corresponding to the bit array of the port 10 are outputted to the port 10 after the execution of the instruction, the flow of a microcomputer can be recognized, and simultaneously such judgement can be made that an error is pinpointed in which step of the flow.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプログラム方式のマイクロコンピュー
タに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprogram type microcomputer.

〔従来の技術〕[Conventional technology]

従来のマイクロプログラム方式のマイクロコンピュータ
は、テスト時マイクロプログラムメモリを0番地から順
に読出し、読出した内容のパリティ−を発生させ出力端
子に出力することでマイクロプログラムメモリの内容を
チェックしていた。
Conventional microprogram type microcomputers check the contents of the microprogram memory by sequentially reading the microprogram memory from address 0 during testing, generating a parity of the read contents, and outputting it to an output terminal.

第2図は上述したマイクロコンピュータの従来例のブロ
ック図である。このマイクロコンピュータは、命令レジ
スタ1と、デコーダとマイクロROMで構成されるマイ
クロROM部3と、命令レジスタ1のマイクロROMア
ドレスをクロックΦにより保持するアドレスレジスタ2
と、マイクロROMのアドレス入力端子15と、テスト
端子17と、テスト端子17に「1」を入力するとアド
レス入力端子15の内容をマイクロROM部3に出力す
るマルチプレクサ16と、マイクロROM部3から読出
されたマイクロプログラムをラーIチパルスφによりラ
ッチするラッチ回路4.パリティ発生回路5と、発生し
たパリティを格納するフラグ6と、出力端子18とで構
成され、テスト時、テスト端子17をrlJにしてアド
レス入力端子15にテストすべきアドレスを入力すると
、マルチプレクサ1BによりマイクロROM部3のデコ
ーダへアドレスが入力され、該アドレスのマイクロRO
M+7)内容がラッチ回路4に読出され、パリティ−発
生回路5がラッチ回路4の出力に基すきパリティ−を発
生し1発生したパリティ−がフラグ6に格納され出力端
子18に出力される。一般にアドレス入力端子15には
0番地から順にアドレスを入力していき出力端子18に
はマイクロROMの内容のパリティ−が順次出力される
ので、出力端子18の値を監視することでマイクロRO
Mのチェックが行なわれていた。
FIG. 2 is a block diagram of a conventional example of the above-mentioned microcomputer. This microcomputer includes an instruction register 1, a micro ROM section 3 consisting of a decoder and a micro ROM, and an address register 2 that holds the micro ROM address of the instruction register 1 using a clock Φ.
and the address input terminal 15 of the micro ROM, the test terminal 17, the multiplexer 16 which outputs the contents of the address input terminal 15 to the micro ROM section 3 when "1" is input to the test terminal 17, and the readout from the micro ROM section 3. 4. A latch circuit that latches the programmed microprogram using the large I pulse φ. It consists of a parity generation circuit 5, a flag 6 for storing the generated parity, and an output terminal 18. During testing, when the test terminal 17 is set to rlJ and the address to be tested is input to the address input terminal 15, the multiplexer 1B The address is input to the decoder of the micro ROM section 3, and the micro RO of the address is input.
M+7) contents are read out to the latch circuit 4, the parity generation circuit 5 generates a parity based on the output of the latch circuit 4, and the generated parity is stored in the flag 6 and output to the output terminal 18. Generally, addresses are input to the address input terminal 15 in order starting from address 0, and the parity of the contents of the micro ROM is sequentially output to the output terminal 18. Therefore, by monitoring the value of the output terminal 18, the micro ROM
M was being checked.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のマイクロプログラム方式のマイクロコン
ピュータは、テスト時、マイクロプログラムメモリ(マ
イクロROM部)の内容をO番地から順に読出しパリテ
ィ−を発生させ出力端子に゛出力することでマイクロプ
ログラムメモリの内容をチェックしていたが、命令を実
行する際の命令固有の一連のマイクロプログラムのフロ
ーに従ったマイクロステップ実行においてマイクロプロ
グラムメモリのパリティ発生は行なっていないので、マ
イクロコンピュータの命令実行を司どるマイクロプログ
ラムのフローを確認できず、従って命令実行動作が正し
く行なわれなかった場合、マイクロプログラムのフロー
に誤まりがあるのか命令実行の対象となるハードウェア
に誤まりがあるのかを判別するのが困難であるという欠
点がある。
The above-mentioned conventional microprogram type microcomputer reads the contents of the microprogram memory (micro ROM part) sequentially from address O during testing, generates parity, and outputs it to the output terminal, thereby reading the contents of the microprogram memory. I checked, but parity of the microprogram memory is not generated during microstep execution according to the instruction-specific flow of a series of microprograms when executing instructions, so the microprogram that controls the instruction execution of the microcomputer does not generate parity in the microprogram memory. If the flow of the microprogram cannot be confirmed and the instruction execution operation is not performed correctly, it is difficult to determine whether there is an error in the flow of the microprogram or in the hardware that is the target of instruction execution. There is a drawback.

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

本発明のマイクロプログラム方式のマイクロコンピュー
タは、テスト時、マイクロコンピュタ−メモリの内容を
順次読出し、読出した内容のパリティを発生させ、出力
端子に出力することによりマイクロプログラムメモリの
内容のチェックが行なわれるマイクロプログラム方式の
マイクロコンピュータにおいて、 命令固有の一連のマイクロプログラムのフローを構成す
るマイクロプログラムの各ステップが実行される毎に発
生したマイクロプログラムメモリの内容のパリティ−を
順次記憶し、記憶した一連のパリティ−を命令の最終マ
イクロステップでポートへ出力する手段を含むことを特
徴とする。
During testing, the microprogram type microcomputer of the present invention sequentially reads the contents of the microcomputer memory, generates parity for the read contents, and outputs it to the output terminal to check the contents of the microprogram memory. In a microprogram type microcomputer, the parity of the contents of the microprogram memory that is generated each time each step of the microprogram constituting the flow of a series of instruction-specific microprograms is executed is sequentially stored. The method is characterized in that it includes means for outputting parity to a port at the final microstep of an instruction.

したがって、命令実行終了後のポートには実行された命
令のマイクロプログラムのフローを構成するマイクロス
テップの実行順とポートのビット並びが対応してマイク
ロプログラムメモリのパリティが出力されるので、マイ
クロコンピュータの命令実行を司どるマイクロプログラ
ムのフローを確認できる。
Therefore, after the execution of an instruction, the parity of the microprogram memory is output to the port according to the bit arrangement of the port and the execution order of the microsteps that make up the flow of the microprogram of the executed instruction. You can check the flow of the microprogram that controls instruction execution.

〔実施例〕〔Example〕

次に1本発明の実施例について図面を参照して説明する
Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明のマイクロプログラム方式のマイクロコ
ンピュータの一実施例を示すブロック図である。第2図
中と同番号は同じ物を指している。
FIG. 1 is a block diagram showing an embodiment of a microprogram type microcomputer of the present invention. The same numbers as in Figure 2 refer to the same things.

シフトレジスタ7には、パリティ発生回路5で発生し、
フラグ6に格納されているパリティがシフトクロックφ
により順次、記憶される。制御信号発生回路12は、ラ
ッチ回路4の出力に基づき制御信号13を出力するとと
もに、マイクロプログラムの最終ステップがラッチ回路
4にラッチされると、バッファ回路8に制御信号14を
出力する。この制御信号14によりシフトレジスタ7の
内容はバッファ回路8.バス9を経てポー)10に出力
されるようになっている。なお、ラッチ回路4の数ビツ
ト分出力11はアドレスレジスタ2に入力され1次ステ
ップにて選択すべきマイクロROMのアドレスが決定さ
れる。
The shift register 7 contains the signals generated by the parity generation circuit 5,
The parity stored in flag 6 is the shift clock φ
are stored sequentially. The control signal generation circuit 12 outputs a control signal 13 based on the output of the latch circuit 4, and also outputs a control signal 14 to the buffer circuit 8 when the final step of the microprogram is latched by the latch circuit 4. By this control signal 14, the contents of the shift register 7 are changed to the buffer circuit 8. It is designed to be outputted to port 10 via bus 9. Note that the output 11 of several bits from the latch circuit 4 is input to the address register 2, and the address of the micro ROM to be selected is determined in the first step.

次に1本実施例の動作を説明する。命令レジスタ1の内
容がマイクロROMのアドレスレジスタ2に転送され、
命令固有の一連のマイクロステップの実行が開始される
。アドレスレジスタ2の出力がマイクロROM部3のデ
コーダへ入力され該アドレスのマイクロROMの内容が
ラッチ回路4に読出される。マイクロROMには各マイ
クロステップにおいて出力すべき制御信号情報が記憶さ
れており、制御信号発生回路12がラッチ回路4の出力
に基すき制御信号13を出力する。パリティ−発生回路
5はラッチ回路4の出力に基すきパリティ−を発生し、
発生したパリティ−はフラグ6に格納されシフトレジス
タ7に入力される。一方、ラッチ回路4の数ビツト分出
力11は、マイクロROMアドレスレジスタ2に入力さ
れ、次マイクロステップにて選択すべきマイクロROM
のアドレスが決定され、引き続き次マイクロステップが
実行される0以上の動作を繰り返すことで命令固有の一
連のマイクロプログラムが実行されるが、マイクロステ
ップが実行される毎に読出されたマイクロROMの内容
のパリティ−が順次シフトレジスタ7に記憶されていき
、命令の最終マイクロステップで出力される制御信号1
4によりバッファ回路8がアクティブになりバス9を介
してポート10に出力される。従って、命令実行終了後
のポート10には実行された命令のマイクロプログラム
のフローを構成するマイクロステップの実行順とポート
10のビット並びが対応してマイクロROMのパリティ
−が出力される。
Next, the operation of this embodiment will be explained. The contents of instruction register 1 are transferred to address register 2 of micro ROM,
Execution of a series of instruction-specific microsteps begins. The output of the address register 2 is input to the decoder of the micro ROM section 3, and the contents of the micro ROM at the address are read out to the latch circuit 4. The micro ROM stores control signal information to be output at each micro step, and the control signal generation circuit 12 outputs the plow control signal 13 based on the output of the latch circuit 4. A parity generation circuit 5 generates a desired parity based on the output of the latch circuit 4,
The generated parity is stored in the flag 6 and input to the shift register 7. On the other hand, the output 11 of several bits of the latch circuit 4 is input to the micro ROM address register 2, and the micro ROM to be selected in the next micro step is inputted to the micro ROM address register 2.
A series of instruction-specific microprograms is executed by repeating 0 or more operations in which the next microstep is executed, but the contents of the microROM read each time a microstep is executed. The parity of 1 is sequentially stored in the shift register 7, and the control signal 1 is output at the final microstep of the instruction.
4 activates the buffer circuit 8 and outputs the signal to the port 10 via the bus 9. Therefore, after the instruction execution is completed, the parity of the micro ROM is outputted to the port 10 in accordance with the bit arrangement of the port 10 and the execution order of the microsteps constituting the flow of the microprogram of the executed instructions.

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

以上説明したように本発明は、命令固有の一連のマイク
ロプログラムのフローを構成するマイクロプログラムの
各ステップが実行される毎に発生したマイクロプログラ
ムメモリの内容のパリティ−を順次記憶し、記憶した一
連のパリティ−を命令の最終マイクロステップでポート
へパラレルに出力する手段を備えることにより、命令実
行終了後のポートには実行された命令のマイクロプログ
ラムのフローを構成するマイクロステップの実行順とポ
ートのビット並びが対応してマイクロプログラムメモリ
のパリティ−が出力されるので、マイクロコンピュータ
の命令実行を司どるマイクロプログラムのフローを確認
できると共に命令実行が正しく行なわれなかった場合、
命令実行後のポートの出、力と本来実行されるべきフロ
ーの一連のパリティ−とを比較し異なるビットを見つけ
ることにより一連のフローのどのステップで誤まりがあ
るのかを判断でき、異なるビットがなければマイクロプ
ログラムのフローは正しく命令実行の対象となるハード
ウェアに誤まりがあると判別できるのでマイクロコンピ
ュータの命令機能の評価や不具合の解析が容易に行なえ
るという効果がある。
As explained above, the present invention sequentially stores the parity of the contents of a microprogram memory that occurs each time each step of a microprogram constituting a series of instruction-specific microprogram flows is executed, and By providing a means for outputting the parity of the microstep to the port in parallel at the last microstep of the instruction, the port after the instruction execution is completed will be able to display the execution order of the microsteps constituting the flow of the microprogram of the executed instructions and the port's parity. Since the parity of the microprogram memory is output in accordance with the bit arrangement, it is possible to check the flow of the microprogram that controls the instruction execution of the microcomputer, and if the instruction is not executed correctly,
By comparing the port output after instruction execution with the series of parities of the flow that should have been executed and finding different bits, it is possible to determine in which step of the series of flows there is an error. If this is not the case, it can be determined that there is an error in the hardware that is the target of correct instruction execution in the flow of the microprogram, which has the effect of making it easier to evaluate the instruction function of the microcomputer and analyze defects.

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

第1図は本発明のマイクロプログラム方式のマイクロコ
ンピュータの一実施例のブロック図、第2図は従来例の
ブロック図である。 l・・・命令レジスタ、 2・・・アドレスレジスタ、 3・・・マイクロROM部、4・・・ラッチ回路、5・
・・パリティ発生回路、6・・・フラグ、7・・・シフ
トレジスタ、 8・・・バッファ回路、9・・・バス、
       10・・・ポート、11・・・ラッチ回
路4の数ビツト分出力、12・・・制御信号発生回路、 13、14・・・制御信号発生回路12の出力。
FIG. 1 is a block diagram of an embodiment of a microprogram type microcomputer according to the present invention, and FIG. 2 is a block diagram of a conventional example. l...Instruction register, 2...Address register, 3...Micro ROM section, 4...Latch circuit, 5...
...Parity generation circuit, 6...Flag, 7...Shift register, 8...Buffer circuit, 9...Bus,
10...Port, 11...Output for several bits of latch circuit 4, 12...Control signal generation circuit, 13, 14...Output of control signal generation circuit 12.

Claims (1)

【特許請求の範囲】 テスト時、マイクロプログラムメモリの内容を順次読出
し、読出した内容のパリティを発生させ、出力端子に出
力することによりマイクロプログラムメモリの内容のチ
ェックが行なわれるマイクロプログラム方式のマイクロ
コンピュータにおいて、 命令固有の一連のマイクロプログラムのフローを構成す
るマイクロプログラムの各ステップが実行される毎に発
生したマイクロプログラムメモリの内容のパリティーを
順次記憶し、記憶した一連のパリティーを命令の最終マ
イクロステップでポートへパラレルに出力する手段を含
むことを特徴とするマイクロプログラム方式のマイクロ
コンピュータ。
[Claims] At the time of testing, a microprogram type microcomputer that sequentially reads the contents of the microprogram memory, generates parity for the read contents, and outputs it to an output terminal to check the contents of the microprogram memory. In this step, the parity of the contents of the microprogram memory that occurs each time each step of the microprogram constituting the flow of a series of instruction-specific microprograms is executed is sequentially stored, and the stored parity is stored in the final microstep of the instruction. A microprogram type microcomputer characterized by including means for outputting data to a port in parallel.
JP61111407A 1986-05-14 1986-05-14 Microprogram type microcomputer Pending JPS62266626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61111407A JPS62266626A (en) 1986-05-14 1986-05-14 Microprogram type microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61111407A JPS62266626A (en) 1986-05-14 1986-05-14 Microprogram type microcomputer

Publications (1)

Publication Number Publication Date
JPS62266626A true JPS62266626A (en) 1987-11-19

Family

ID=14560371

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61111407A Pending JPS62266626A (en) 1986-05-14 1986-05-14 Microprogram type microcomputer

Country Status (1)

Country Link
JP (1) JPS62266626A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57134341A (en) * 1981-02-09 1982-08-19 Oi Seisakusho Co Ltd Seat adjuster
JPS57164341A (en) * 1981-04-02 1982-10-08 Mitsubishi Electric Corp Program controller
JPS59225461A (en) * 1983-06-07 1984-12-18 Fujitsu Ltd Incorporated logic recorder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57134341A (en) * 1981-02-09 1982-08-19 Oi Seisakusho Co Ltd Seat adjuster
JPS57164341A (en) * 1981-04-02 1982-10-08 Mitsubishi Electric Corp Program controller
JPS59225461A (en) * 1983-06-07 1984-12-18 Fujitsu Ltd Incorporated logic recorder

Similar Documents

Publication Publication Date Title
US5325367A (en) Memory device containing a static ram memory that is adapted for executing a self-test, and integrated circuit containing such a device as an embedded static ram memory
JPH05108396A (en) Processor circuit
JPS63291134A (en) Logically integrated circuit
JPH05233352A (en) Microprocessor
JPH0820967B2 (en) Integrated circuit
JPS59194245A (en) Microprogram controller
JPS62266626A (en) Microprogram type microcomputer
EP1160668A2 (en) Semiconductor integrated circuit and method of testing semiconductor integrated circuit
JPS6167162A (en) Memory-checking circuit
JPH01263739A (en) Information processor
JPH0498429A (en) Microcomputer
JP3177975B2 (en) One-chip microcomputer
JPS6318597A (en) Memory test device for incorporated circuit
JPS58215799A (en) System for verifying control storage
JPS5936853A (en) Operation processor
JPS6116099B2 (en)
JPH04171558A (en) Storage device
JPH04204273A (en) Lsi mounting board and data processor
JPH0792768B2 (en) Microcomputer
JPH05151102A (en) Microcomputer test circuit
JPS58186851A (en) Error checking device
JPH02126344A (en) Program processing time measuring system
JPH02105230A (en) Semiconductor integrated circuit
JPS6370179A (en) Logic ic tester
JPS59172045A (en) Scan-out system