JPH03225433A - Single-chip microcomputer - Google Patents

Single-chip microcomputer

Info

Publication number
JPH03225433A
JPH03225433A JP2021319A JP2131990A JPH03225433A JP H03225433 A JPH03225433 A JP H03225433A JP 2021319 A JP2021319 A JP 2021319A JP 2131990 A JP2131990 A JP 2131990A JP H03225433 A JPH03225433 A JP H03225433A
Authority
JP
Japan
Prior art keywords
instruction
error
error correction
instruction queue
queue
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
JP2021319A
Other languages
Japanese (ja)
Inventor
Kunihiro Sadatomi
貞富 邦浩
Masahiro Nomura
昌弘 野村
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 JP2021319A priority Critical patent/JPH03225433A/en
Publication of JPH03225433A publication Critical patent/JPH03225433A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Advance Control (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To suppress the runaway of a program due to a wrong instruction code by adding error detection information indicating that an error not be corrected to an instruction code and storing them, interrupting the execution of instructions at an instruction execution part in response to the error detection information, and actuating exceptional processing. CONSTITUTION:An instruction prefetch means 108 writes the instruction code which is inputted from an instruction queue input bus 106 and an uncorrectable error detection signal 107 in an instruction queue latch 109. Then when the instruction execution part 113 requires an instruction, the instruction code in an instruction queue latch 109 indicated by an instruction queue pointer 110 is outputted to an instruction queue latch output bus 112 and a corresponding uncorrectable error detection signal 107 is outputted to the instruction execution part 113. The instruction execution part 113 decodes the instruction code on the instruction queue output bus 112 and when the uncorrectable error detection signal 107 is '1', an instruction execution control part 113 interrupts the execu tion of instructions immediately, so that the exceptional processing for an uncorrectable error is actuated. Consequently, the runaway of the program due to a defect of error inspection data is precluded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はシングルチップマイクロコンピュータに関し、
特に電気的書換え可能なROM (以下PROMと記す
)等から読み出された命令コードおよびデータの誤り訂
正を行う誤り訂正機能とを備えるシングルチップマイク
ロコンピュータに関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a single-chip microcomputer,
In particular, the present invention relates to a single-chip microcomputer equipped with an error correction function for correcting errors in instruction codes and data read from an electrically rewritable ROM (hereinafter referred to as PROM).

〔従来の技術〕[Conventional technology]

従来、この種のP ROM等を内蔵する誤り訂正機能付
きシングルチップマイクロコンピュータは、誤り訂正手
段による誤り訂正のみを行い、第3図のような構成とな
っている。PROM301は命令コードおよびデータと
その誤り訂正に必要な誤り検査データを記憶し、バス制
御部315から印加されるFROM読み出し信号RD3
12によりPROMアドレスバス311に応答した命令
コードおよびデータと、誤り検査データを訂正入力バス
302に出力する。誤り訂正手段303は誤り訂正入力
バス302上の命令コードあるいはデータと、検査デー
タにより命令コードあるいはデータの誤り訂正を行い、
誤り訂正された命令コ−ドあるいはデータを命令キュー
人力バス304に出力する。
Conventionally, a single-chip microcomputer with an error correction function that incorporates this type of PROM or the like performs only error correction by an error correction means, and has a configuration as shown in FIG. The PROM 301 stores instruction codes, data, and error check data necessary for error correction, and receives a FROM read signal RD3 applied from the bus control unit 315.
12 outputs the instruction code and data in response to the PROM address bus 311 and error check data to the correction input bus 302. The error correction means 303 corrects errors in the instruction code or data using the instruction code or data on the error correction input bus 302 and the test data.
The error-corrected instruction code or data is output to the instruction queue human bus 304.

命令先取り手段305は、命令キュー人力バス304に
入力された誤り訂正後の命令コードを1ワ一ド単位に先
入れ先出し法(以下FIFOと記す)で格納する命令キ
ューラッチ306と、命令キューラッチの命令キューの
読み出し位置を示す命令キューポインタ307と、命令
キューラッチ306の読み出し書き込みを制御する命令
キュー制御部308とからなり、命令キュー出力バス3
09に対し命令コードを出力する。
The instruction prefetching means 305 includes an instruction queue latch 306 that stores the error-corrected instruction code input to the instruction queue human-powered bus 304 in units of one word in a first-in first-out method (hereinafter referred to as FIFO), and an instruction queue latch 306 that stores the instruction code input to the instruction queue human-powered bus 304 in a first-in, first-out method (hereinafter referred to as FIFO). The instruction queue output bus 3 consists of an instruction queue pointer 307 that indicates the read position of the queue, and an instruction queue control unit 308 that controls reading and writing of the instruction queue latch 306.
Outputs the instruction code for 09.

命令キューラッチ306は1ワ一ド×4段で構成され、
誤り訂正手段303がらの誤り訂正後の命令コード及び
データを命令キュー制御部308からの命令キュー書き
込み信号QWR313により命令キューラッチ306の
初段に取り込むと共に、命令キュー書き込み前の命令キ
ューラッチ306の内容を1段シフトする。命令キュー
ボンインタ307は1ビット×5段で構成され、1ビツ
トのみが1セツトされるようになっており、命令キュー
の読み出し位置を示し、命令キュー制御部308のキュ
ー読み出し信号QRD314により命令キューポインタ
307が示す段の命令キューラッチ306の内容を命令
キュー出力バス309に出力する。
The instruction queue latch 306 is composed of 1 word x 4 stages,
The instruction code and data after error correction by the error correction means 303 are taken into the first stage of the instruction queue latch 306 by the instruction queue write signal QWR 313 from the instruction queue control unit 308, and the contents of the instruction queue latch 306 before writing the instruction queue are read. Shift one gear. The instruction queue interface 307 is composed of 1 bit x 5 stages, and only 1 bit is set at 1 time, and indicates the read position of the instruction queue. The contents of the instruction queue latch 306 at the stage indicated by the pointer 307 are output to the instruction queue output bus 309.

次に、従来のFROMを内蔵する誤り訂正機能付きマイ
クロコンピュータの動作について説明する。バス制御部
315は、命令キューポインタ307により命令キュー
ラッチ306に空きがあるかを調べ、空きがある場合、
PROM301に対する命令コード読み出してサイクル
を起動し、PROM301から命令コードと誤り検査デ
ータを読み出し、誤り訂正手段303の誤り訂正入力バ
ス302に入力する。誤り訂正手段303は誤り訂正を
行い、誤り訂正後の命令コードを命令キュー人力バス3
04に出力する。命令先取り手段305は命令キュー人
カバス304上の誤り訂正後の命令コードを命令キュー
ラッチ306に書き込んでいく。命令実行部310は命
令キュー出力バス309に出力される誤り訂正後の命令
コードを受は取り、命令の実行を行う。
Next, the operation of a conventional microcomputer with built-in FROM and error correction function will be explained. The bus control unit 315 checks whether there is space in the instruction queue latch 306 using the instruction queue pointer 307, and if there is space,
The instruction code for the PROM 301 is read to start a cycle, and the instruction code and error check data are read from the PROM 301 and input to the error correction input bus 302 of the error correction means 303. The error correction means 303 performs error correction and sends the error-corrected instruction code to the instruction queue human-powered bus 3.
Output to 04. The instruction prefetching means 305 writes the error-corrected instruction code on the instruction queue bus 304 to the instruction queue latch 306. The instruction execution unit 310 receives the error-corrected instruction code output to the instruction queue output bus 309 and executes the instruction.

〔発明か解決しようとする課題〕[Invention or problem to be solved]

上述した従来のPROMを内蔵する誤り訂正機能を持つ
シングルチップマイクロコンピュータは、誤り訂正手段
に入力される誤り検査データが何らかの原因で不良とな
り、誤り訂正手段が異った面会等の出力を行っても、命
令実行部はそのまマ(1%った命令を実行してしまうた
め、プログラムが暴走してしまう欠点がある。
In the conventional single-chip microcomputer with an error correction function that includes a built-in PROM, the error check data input to the error correction means becomes defective for some reason, and the error correction means outputs a different result. However, since the instruction execution unit executes the instructions that are 1% higher, the problem is that the program may run out of control.

本発明の目的は、誤り検査データの不良によるプログラ
ムの暴走を防止することができるシングルチップマイク
ロコンピュータを提供することにある。
An object of the present invention is to provide a single-chip microcomputer that can prevent a program from running out of control due to defective error check data.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のシングルチ・ツブマイクロコンピュータは、命
令実行手段と、前記命令実行手段の命令コード及びデー
タと共にこれらの誤り訂正のための検査データを格納す
る記憶手段と、前記誤り訂正のための検査データに応じ
て前記命令コード及び前記データの訂正を行ない前記訂
正が誤りであつた時に誤り検出情報を出力する訂正手段
と、前記命令実行手段の命令実行に先立って前記命令コ
ード及び前記データに前記誤り検出情報を付加して格納
する先取り手段とを備え、前記命令実行手段が前記誤り
検出情報に応じた処理を行なうことを特徴とする。
The single-chip microcomputer of the present invention includes an instruction execution means, a storage means for storing test data for error correction together with the instruction code and data of the instruction execution means, and a storage means for storing the test data for error correction. correction means for correcting the instruction code and the data according to the error and outputting error detection information when the correction is an error; Prefetching means for adding and storing detection information is provided, and the instruction execution means performs processing according to the error detection information.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の第1の実施例を示すブロック図である
。PROMl0Iは命令コードおよびデータとそれに対
応する誤り訂正に必要な誤り検査データを格納している
。バス制御部102からのFROM読み出し信号RD1
14に応答してバス制御部102からアドレスを受けと
り、それに対応した命令コードおよびデータと誤り検査
データを誤り訂正入力バス104に出力する。
FIG. 1 is a block diagram showing a first embodiment of the present invention. PROM10I stores instruction codes, data, and corresponding error check data necessary for error correction. FROM read signal RD1 from bus control unit 102
14, it receives an address from the bus control unit 102, and outputs the corresponding instruction code, data, and error check data to the error correction input bus 104.

誤り訂正手段105は、誤り訂正入力バス104より入
力されたデータの誤りを検出し、それに対応して命令コ
ード又はデータの誤りの訂正を行う0次に、誤り訂正後
のデータを命令キュー人力バス106に出力するととも
に、入力データが不良で、誤り訂正が不可能である時に
“1″を、入力データに誤りが検出されない時、あるい
は誤った入力データが正し、く訂正された時に“0“を
、誤り訂正不可能検出信号107として出力する。
The error correction means 105 detects errors in the data input from the error correction input bus 104 and corrects the errors in the instruction code or data accordingly.Then, the error corrected data is sent to the instruction queue manual bus. 106 and outputs "1" when the input data is defective and error correction is impossible, and "0" when no error is detected in the input data or when incorrect input data is correctly corrected. " is output as the error correction impossible detection signal 107.

命令先取り手段108は、命令キュー人力バス106か
ら入力された命令コードと誤り訂正不可能検出信号10
7を1ワード+1ビツトで格納する命令キューラッチ1
0つと、命令キューラッチ109の読み出し位置を示す
命令キューポインタ110と、命令キュー制御部111
とからなっている。
The instruction prefetching means 108 receives the instruction code input from the instruction queue human power bus 106 and the error correction impossible detection signal 10.
Instruction queue latch 1 stores 7 in 1 word + 1 bit
0, an instruction queue pointer 110 indicating the read position of the instruction queue latch 109, and an instruction queue control unit 111.
It consists of

命令キューラッチ109は(1ワード+1ビツト)×4
段で構成され、命令キュー人力バス106より入力され
た命令コードに、誤り訂正手段105により誤り訂正か
可能であったが不可能であったかを示す、誤り訂正不可
能検出信号107を付加して、命令キュー書き込み信号
QWR115により命令キューラッチ109の初段に取
り込むと共に、命令キュー書き込む前の命令キューラン
チの内容を1段シフトする。
Instruction queue latch 109 is (1 word + 1 bit) x 4
The error correction means 105 adds an error correction impossibility detection signal 107 to the instruction code input from the instruction queue human power bus 106, which indicates whether the error correction was possible or not possible. The instruction queue write signal QWR115 is loaded into the first stage of the instruction queue latch 109, and the contents of the instruction queue launch before the instruction queue is written are shifted by one stage.

命令キューポインタ110は1ビット×5段で構成され
、1ビツトのみが“1゛にセットされ、命令キューの読
み出し位置を示しており、命令キュー制御部111から
の命令キュー読み出しQRD116により命令キューポ
インタ110の示す命令キューラッチの内容が命令キュ
ー出力バス112に出力される。
The instruction queue pointer 110 is composed of 1 bit x 5 stages, and only one bit is set to "1" to indicate the instruction queue read position. The contents of the instruction queue latch indicated by 110 are output to the instruction queue output bus 112.

次に動作について説明する。バス制御部102は命令キ
ューポインタ110により命令キューラッチ109に空
きがあるかを調べ、空きがある場合、命令コード読み出
しサイクルを起動し、PROMl0Iから命令コードと
誤り検査データを含む出力を、誤り訂正手段の誤り訂正
入力バス104に出力する。
Next, the operation will be explained. The bus control unit 102 checks whether there is space in the instruction queue latch 109 using the instruction queue pointer 110. If there is space, the bus control unit 102 starts an instruction code read cycle and outputs the output including the instruction code and error check data from the PROMl0I and corrects the error. Error correction input bus 104 of the means.

誤り訂正手段105は、誤り検査データに応じて誤り訂
正入力バス104の入力である命令コードと、誤り検査
データの誤り訂正を行い、誤り訂正後の命令コード出力
を命令キュー人力バス106に出力すると共に、誤り訂
正が可能であったがどうかを示す誤り訂正不可能検出信
号107を出力する。また、命令先取り手段108は命
令キュー人力バス106から入力された命令コードと誤
り訂正不可能検出信号を命令キューラッチ109に書き
込んでいき、命令実行部113が命令を必要としたとき
に、命令キューポインタ110が示す命令キューラッチ
109の命令コードを命令キューラ・ソチ出力バス11
2に出力すると同時に、対応する誤り訂正不可能検出信
号107を命令実行部113に出力する。命令実行部1
13は命令キュー出力バス112上の命令コードのデコ
ードを行うと共に、誤り訂正不可能信号107が“1°
°であるときは、直ちに命令実行制御部114は命令の
実行を中断し、誤り訂正不可能時の例外処理、例えば外
部に誤り訂正不可能の表示を行なったり、別のソフト処
理を行なう等の処理を起動させる。また、誤り検出信号
107が“0°′であるときは、例外処理を起動せずに
そのまま読み込まれた命令コードの命令の実行を行う。
The error correction means 105 performs error correction on the instruction code input to the error correction input bus 104 and the error check data according to the error check data, and outputs the instruction code output after error correction to the instruction queue human power bus 106. At the same time, an error correction impossibility detection signal 107 indicating whether error correction was possible is output. Further, the instruction prefetching means 108 writes the instruction code and error correction impossible detection signal inputted from the instruction queue human power bus 106 to the instruction queue latch 109, and when the instruction execution unit 113 needs an instruction, The instruction code of the instruction queue latch 109 indicated by the pointer 110 is transferred to the instruction queue latch 109 from the instruction queue latch 109.
At the same time, the corresponding error correction impossibility detection signal 107 is output to the instruction execution unit 113. Instruction execution unit 1
13 decodes the instruction code on the instruction queue output bus 112, and the error correction impossible signal 107 is set to “1°”.
°, the instruction execution control unit 114 immediately interrupts the execution of the instruction and performs exception processing when error correction is not possible, such as displaying an external display indicating that error correction is not possible or performing other software processing. Start the process. Further, when the error detection signal 107 is "0°", the instruction of the read instruction code is executed as it is without activating exception processing.

第2図は本発明の第2の実施例を示すブロック図である
。本実施例では、誤り訂正手段201は誤りを含むデー
タの誤り検査データにより誤りを検出し、誤り訂正を行
い誤り訂正後の出力を命令キュー人カバス202に出力
するという第1の実施例と同様な動作の他に、データに
誤りがあり、しかも誤り訂正が可能なときにパ1°′と
なり、データに誤りのないとき及び、誤りがあってもそ
の誤り訂正が不可能な場合には“′O“′となる誤り訂
正実行検出信号203と、データに誤りがあって、その
誤り訂正が不可能な場合に“′1″となり、データに誤
りのないとき及びデータに誤りがあるが誤り訂正が可能
な場合には“0”となる誤り訂正不可能検出信号204
の2種の検出信号を出力する。
FIG. 2 is a block diagram showing a second embodiment of the invention. In this embodiment, the error correction means 201 detects errors using error check data of data containing errors, performs error correction, and outputs the error-corrected output to the instruction queue manager 202, similar to the first embodiment. In addition to the normal operation, it is 1°' when there is an error in the data and error correction is possible, and it is The error correction execution detection signal 203 becomes ``O'', and it becomes ``1'' when there is an error in the data and the error cannot be corrected, and when there is no error in the data, and when there is an error in the data, it is an error. Error correction impossibility detection signal 204 becomes “0” when correction is possible.
It outputs two types of detection signals.

命令先取り手段205は、命令キューラッチ206を誤
り訂正検出情報として誤り訂正不可能検出信号204の
記憶ラッチに加え、誤り訂正可能時の誤り訂正実行検出
信号203を記憶するラッチを設け(1ワード+2ビツ
ト)×4段構成としている。
The instruction prefetching means 205 includes a latch for storing the error correction execution detection signal 203 when the error correction is possible, in addition to a latch for storing the error correction impossible detection signal 204 using the instruction queue latch 206 as the error correction detection information (1 word + 2 (bit) x 4 stages.

命令実行部208は誤り訂正を正しく行った時に、訂正
後のデータを取り扱うための例外処理1と、誤り訂正を
行ったが訂正が不可能だった時に対する例外処理2の二
つの例外処理を持ち、また例外処理1を許可する例外処
理許可フラグ209を持つ。例外処理許可フラグ209
は命令によりセット/リセット可能で、リセット時゛0
°′で例外処理1の実行をマスクし、“1′′の時、例
外処理1の実行を許可する。
The instruction execution unit 208 has two types of exception handling: exception handling 1 for handling corrected data when error correction has been performed correctly, and exception handling 2 for handling error correction when it is impossible. , and has an exception handling permission flag 209 that allows exception handling 1. Exception handling permission flag 209
can be set/reset by command, and is set to 0 when reset.
°' masks execution of exception handling 1, and when "1'', execution of exception handling 1 is permitted.

次に、動作について説明する。PROM出力は誤り検査
データを含んでおり、誤り訂正手段201は誤り検査デ
ータに応じて出力の誤り訂正を行い、誤り訂正後の命令
コード出力を命令キュー人力ハス202に出力すると共
に、誤り検査結果に対する誤り検出情報としての誤り訂
正実行検出信号203、誤り訂正不可能検出信号204
を出力する。
Next, the operation will be explained. The PROM output includes error check data, and the error correction means 201 performs error correction on the output according to the error check data, outputs the error-corrected instruction code output to the instruction queue human power lotus 202, and outputs the error check result. Error correction execution detection signal 203 and error correction impossible detection signal 204 as error detection information for
Output.

命令先取り手段205は、誤り訂正手段201から出力
された誤り訂正後の命令コードと、誤り訂正実行検出信
号203及び誤り訂正不可能検出信号204を命令キュ
ーラッチ206に格納していく。
The instruction prefetching means 205 stores the error-corrected instruction code output from the error correction means 201, the error correction execution detection signal 203, and the error correction impossible detection signal 204 in the instruction queue latch 206.

命令実行部208は、命令先取り手段205の命令キュ
ーポインタ207の示す命令キューラッチ206である
命令キュー出力と命令キュー出力に対応する誤り検査情
報である誤り訂正実行検出信号203、誤り訂正不可能
検出信号204を読み込み、誤り訂正不可能検出信号2
04が“1”、つまり誤りを検出したが誤り訂正が不可
能であった時は、命令を直ちに中断し、例外処理2を起
動する。また誤り訂正実行検出信号203か“1″、つ
まり、誤りを検出し正しく誤り訂正を行った時であり、
かつ、例外処理許可フラグ209が命令によりセットさ
れセット状態“1パである時、例外処理1を起動する。
The instruction execution unit 208 outputs an instruction queue output from the instruction queue latch 206 indicated by the instruction queue pointer 207 of the instruction prefetching means 205, an error correction execution detection signal 203 which is error check information corresponding to the instruction queue output, and an error correction execution detection signal 203 which is error check information corresponding to the instruction queue output. Read signal 204 and detect error correction impossible detection signal 2
04 is "1", that is, when an error is detected but the error cannot be corrected, the instruction is immediately interrupted and exception handling 2 is activated. Also, the error correction execution detection signal 203 is "1", that is, when an error is detected and error correction is performed correctly.
Further, when the exception handling permission flag 209 is set by an instruction and the set state is "1 pa", exception handling 1 is activated.

また誤りを検出しなかった時、あるいは例外処理許可フ
ラグ209がリセット状態“′0°°である時は、例外
処理1の起動は行わずそのまま命令を実行する。
Further, when no error is detected, or when the exception processing permission flag 209 is in the reset state "0°," the exception processing 1 is not activated and the instruction is executed as is.

本実施例では、命令先取り手段に、誤りを検出し正しく
誤り訂正を行ったことを示す誤り訂正実行検出信号を記
憶するラッチを付加し、命令実行手段内に例外処理実行
許可フラグを設けて、誤りを検出し正しく誤り訂正を行
った時に対する例外処理の起動を選ぶことができる。
In this embodiment, a latch for storing an error correction execution detection signal indicating that an error has been detected and error correction has been correctly performed is added to the instruction prefetching means, and an exception processing execution permission flag is provided in the instruction execution means. You can choose to activate exception handling when an error is detected and corrected.

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

以上説明したように本発明は、命令コードの先取り時、
誤り訂正が正しく行われたかあるいは誤りを検出したが
誤り訂正か不可能であったことを示す誤り検出情報を命
令コードに付加して格納し、命令実行部が誤り検出情報
に応答して命令の実行を中断し、例外処理を起動する手
段を持つことにより、訂正不可能な命令コードによる命
令が実行される直前に誤り命令コードに対する処理を実
行でき、誤り命令コードによるプログラムの暴走を抑制
できる効果がある。
As explained above, in the present invention, when an instruction code is prefetched,
Error detection information indicating whether error correction was performed correctly or an error was detected but error correction was not possible is added to the instruction code and stored, and the instruction execution unit executes the instruction in response to the error detection information. By having a means to interrupt execution and start exception handling, it is possible to execute processing for an erroneous instruction code immediately before an instruction with an uncorrectable instruction code is executed, which has the effect of suppressing program runaway due to an erroneous instruction code. There is.

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

第1図は本発明の第1の実施例を示すブロック図、第2
図は本発明の第2の実施例を示すブロック図、第3図は
従来例を示すブロック図である。 101・・・PROM、102・・・バス制御部、10
3・・・PROMアドレス、104・・・誤り訂正入力
バス、105・・・誤り訂正手段、106・・・命令キ
ュー人力ハス、107・・・誤り訂正不可能検出信号、
108・・・命令先取り手段、109・・・命令キュー
ラッチ、11.0・・・命令キューポインタ、111・
・・命令キュー制御部、112・・・命令キュー出力バ
ス、113・・・命令実行部、114・・・PROM読
み出し信号RD、115・・・命令キュー書き込み信号
QWR5116・・・命令キュー読み出し信号QRD、
201・・・誤り訂正手段、202・・・命令キュー人
力バス、203・・・誤り訂正実行検出信号、204・
・・誤り訂正不可能検出信号、205・・・命令先取り
手段、206・・・命令キューラッチ、207・・・命
令キュー出力バス、208・・・命令実行部、209・
・・例外処理1許可フラグ、301・・・PROM、3
02・・・誤り訂正入力バス、303・・・誤り訂正手
段、304・・・命令キュー人カバス、305・・・命
令先取り手段、306・・・命令キューラッチ、307
・・・命令キューポインタ、308・・・命令キュー制
御部、309・・・命令キュー出力バス、310・・・
命令実行部、311・・・PROMアドレスバス、31
2・・・PROM読み出し信号RD、313・・・命令
キュー書き込み信号QWR5314・・・命令キュー読
み出し信号QRD、315・・・バス制御部。
FIG. 1 is a block diagram showing a first embodiment of the present invention;
The figure is a block diagram showing a second embodiment of the present invention, and FIG. 3 is a block diagram showing a conventional example. 101...PROM, 102...Bus control unit, 10
3... PROM address, 104... error correction input bus, 105... error correction means, 106... instruction queue human power lot, 107... error correction impossible detection signal,
108... Instruction prefetching means, 109... Instruction queue latch, 11.0... Instruction queue pointer, 111.
... Instruction queue control unit, 112... Instruction queue output bus, 113... Instruction execution unit, 114... PROM read signal RD, 115... Instruction queue write signal QWR5116... Instruction queue read signal QRD ,
201...Error correction means, 202...Instruction queue human power bus, 203...Error correction execution detection signal, 204...
...Error correction impossible detection signal, 205...Instruction prefetching means, 206...Instruction queue latch, 207...Instruction queue output bus, 208...Instruction execution unit, 209...
...Exception handling 1 permission flag, 301...PROM, 3
02...Error correction input bus, 303...Error correction means, 304...Instruction queue bus, 305...Instruction prefetching means, 306...Instruction queue latch, 307
...Instruction queue pointer, 308...Instruction queue control unit, 309...Instruction queue output bus, 310...
Instruction execution unit, 311... PROM address bus, 31
2...PROM read signal RD, 313...Instruction queue write signal QWR5314...Instruction queue read signal QRD, 315...Bus control unit.

Claims (1)

【特許請求の範囲】[Claims] 命令実行手段と、前記命令実行手段の命令コード及びデ
ータと共にこれらの誤り訂正のための検査データを格納
する記憶手段と、前記誤り訂正のための検査データに応
じて前記命令コード及び前記データの訂正を行ない前記
訂正が誤りであった時に誤り検出情報を出力する訂正手
段と、前記命令実行手段の命令実行に先立って前記命令
コード及び前記データに前記誤り検出情報を付加して格
納する先取り手段とを備え、前記命令実行手段が前記誤
り検出情報に応じた処理を行なうことを特徴とするシン
グルチップマイクロコンピュータ。
an instruction execution means; a storage means for storing check data for error correction together with the instruction code and data of the instruction execution means; and correction of the instruction code and the data according to the check data for error correction. a correction means for outputting error detection information when the correction is an error; and a prefetching means for adding and storing the error detection information to the instruction code and the data before the instruction execution means executes the instruction. A single-chip microcomputer, characterized in that the instruction execution means performs processing according to the error detection information.
JP2021319A 1990-01-30 1990-01-30 Single-chip microcomputer Pending JPH03225433A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021319A JPH03225433A (en) 1990-01-30 1990-01-30 Single-chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021319A JPH03225433A (en) 1990-01-30 1990-01-30 Single-chip microcomputer

Publications (1)

Publication Number Publication Date
JPH03225433A true JPH03225433A (en) 1991-10-04

Family

ID=12051835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021319A Pending JPH03225433A (en) 1990-01-30 1990-01-30 Single-chip microcomputer

Country Status (1)

Country Link
JP (1) JPH03225433A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716537B2 (en) 2008-04-16 2010-05-11 Kabushiki Kaisha Toshiba Information processing apparatus and error correction method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716537B2 (en) 2008-04-16 2010-05-11 Kabushiki Kaisha Toshiba Information processing apparatus and error correction method

Similar Documents

Publication Publication Date Title
US8095825B2 (en) Error correction method with instruction level rollback
US7590826B2 (en) Speculative data value usage
JPH07248897A (en) Method and device for recovery from exception in computer system
JPH0253809B2 (en)
US6895527B1 (en) Error recovery for speculative memory accesses
JP5292706B2 (en) Computer system
JPH03225433A (en) Single-chip microcomputer
US20030084272A1 (en) Handling problematic events in a data processing apparatus
JPS57169857A (en) Control storage device
JP2562838B2 (en) Processor and store buffer control method
JPS621049A (en) Memory access control system
JPH07105000A (en) Fetch error control device
JPH07182251A (en) Microprocessor
JPH064412A (en) Local memory inspecting/correcting circuit
JPS63214856A (en) Data protection control system for data processing unit
JPS63150732A (en) Program running supervisory equipment
JPS60238933A (en) Error processing system of control storage device
JPH04235638A (en) Microprocessor provided with prefetching function
JPH0424836A (en) Microprocessor
JP2021144426A (en) Processor and error detection method
JPH02141833A (en) Information processor
JP2003248594A (en) Data error check system
JPS62108333A (en) Semiconductor device
JPS6282436A (en) Information processor
JPH0477826A (en) microprocessor