[go: up one dir, main page]

JPH06324956A - Data processor - Google Patents

Data processor

Info

Publication number
JPH06324956A
JPH06324956A JP5112521A JP11252193A JPH06324956A JP H06324956 A JPH06324956 A JP H06324956A JP 5112521 A JP5112521 A JP 5112521A JP 11252193 A JP11252193 A JP 11252193A JP H06324956 A JPH06324956 A JP H06324956A
Authority
JP
Japan
Prior art keywords
signal
flag
data
write
reset
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
JP5112521A
Other languages
Japanese (ja)
Inventor
Tomu Miyake
富 三宅
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5112521A priority Critical patent/JPH06324956A/en
Publication of JPH06324956A publication Critical patent/JPH06324956A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Retry When Errors Occur (AREA)

Abstract

PURPOSE:To shorten the restart time of a program by evading the execution of wasteful initialization processing by providing a flag means set at a time when write processing is performed by an instruction execution means. CONSTITUTION:A flag means 4 is always set at a set state (FLG='1') while data are written on a RAM 2, and it is always set at a reset state(FLG='0') in a period other than that. Therefore, when system reset is applied to a CPU 1, the content of the flag means 4 is checked by making access by the CPU 1 when it is restored after wards, and when it shows FLG='1', the initialization processing is performed assuming that write data on memory is destroyed. While, when it shows FLG='0', the program can be rerun assuming that no destruction of the write data on the memory occurs. In such a way it is possible to shorten the restart time of the program by eliminating the wasteful initialization processing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、データ処理装置に関
し、特に、電源変動時のリセット、暴走時のリセット、
リセットスイッチによるリセットといった各種のシステ
ムリセット又はスタンバイ(外部信号による一時的な処
理中断)要求等によって命令実行が中断するデータ処理
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device, and more particularly to a reset when a power supply changes, a reset when a runaway occurs,
The present invention relates to a data processing device in which instruction execution is interrupted by various system resets such as reset by a reset switch or standby (temporary interruption of processing by an external signal) request.

【0002】[0002]

【従来の技術】図6は従来のデータ処理の概念フローチ
ャートである。処理をスタートすると、レジスタやメモ
リの初期化処理を行った後に所望のプログラムを実行す
るが、プログラム実行中にシステムリセットやスタンバ
イ要求等があると、メモリのデータ信頼性確保のため
に、命令実行を中断して所定の初期化処理を行うように
なっている。
2. Description of the Related Art FIG. 6 is a conceptual flowchart of conventional data processing. When the process is started, the desired program is executed after the registers and memory are initialized, but if there is a system reset or standby request during the program execution, instruction execution will be executed to ensure the data reliability of the memory. Is interrupted and predetermined initialization processing is performed.

【0003】この理由は、メモリに対してデータの書き
込動作を行っている途中にシステムリセットやスタンバ
イ要求があると、その書き込み動作が正常に終了しない
ことがあり(従って、書き込みデータが破壊されている
ことがあり)、そのままプログラムを再開しても信頼性
のある処理結果が得られないからである。
The reason for this is that if there is a system reset or a standby request during the data write operation to the memory, the write operation may not end normally (thus, the write data is destroyed. This is because a reliable processing result cannot be obtained even if the program is restarted as it is.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、かかる
従来のデータ処理装置にあっては、マイクロコントロー
ラ内の動作と非同期にシステムリセットやスタンバイ要
求が発生すると、例外なく初期化処理を実行するように
なっていたため、例えば、書き込み動作が正常に終了し
た(従って、書き込みデータが破壊されていない)にも
かかわらず、初期化処理が無駄に行われ、プログラムの
再開に時間がかかるといった問題点があった。 [目的]そこで、本発明は、システムリセットやスタン
バイ要求等によって命令実行が中断されたとき、メモリ
に対する書き込みデータの良否を判定して、無駄な初期
化処理を行わないようにすることにより、プログラムの
再開時間の短縮化を図ることを目的とする。
However, in such a conventional data processing apparatus, when a system reset or a standby request is generated asynchronously with the operation in the microcontroller, the initialization processing is executed without exception. Therefore, there was a problem that, for example, although the write operation ended normally (the write data was not destroyed), the initialization process was performed wastefully and it took time to restart the program. . [Object] Therefore, according to the present invention, when instruction execution is interrupted by a system reset, a standby request, or the like, it is determined whether the write data to the memory is good or bad, and unnecessary initialization processing is not performed. The purpose is to shorten the resumption time of.

【0005】[0005]

【課題を解決するための手段】本発明は、上記目的を達
成するために、データのリード/ライトが可能な記憶手
段と、前記記憶手段に対するリード/ライト処理を含む
プログラムを実行する命令実行手段と、前記命令実行手
段でライト処理が実行されているときにセットされるフ
ラグ手段と、を備え、前記命令実行手段による命令実行
の中断時に、前記フラグ手段の内容を点検して、前記ラ
イト処理の中断の有無を判定するように構成したことを
特徴とする。
In order to achieve the above object, the present invention provides a storage means capable of reading / writing data, and an instruction executing means for executing a program including a read / write process for the storage means. And flag means which is set when the write processing is being executed by the instruction executing means, and when the instruction execution by the instruction executing means is interrupted, the contents of the flag means are checked to perform the write processing. It is characterized in that it is configured to determine the presence or absence of interruption.

【0006】[0006]

【作用】本発明では、命令実行手段でライト処理が実行
されているときにセットされるフラグ手段を備えたの
で、システムリセットやスタンバイ要求が発生したとき
は、このフラグ手段の内容を点検するだけでメモリに対
する書き込みデータの良否(データ破壊の有無)を判定
でき、データ破壊の場合だけに限定して初期化処理を実
行できる。従って、無駄な初期化処理の実行を回避で
き、プログラム再開時間の短縮化を図ることができる。
In the present invention, since the flag executing means is set when the write processing is executed by the instruction executing means, only the contents of the flag executing means are inspected when a system reset or a standby request occurs. It is possible to judge whether the write data to the memory is good or not (presence or absence of data destruction), and the initialization processing can be executed only in the case of data destruction. Therefore, useless initialization processing can be avoided, and the program restart time can be shortened.

【0007】[0007]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。図1〜図5は本発明に係るデータ処理装置の一実
施例を示す図である。まず、図1の概念フローチャート
に従って本実施例の処理の流れを説明する。フローチャ
ートは、スタート直後に実行されるレジスタ及びメモリ
の初期化処理(以下、単に「初期化処理」と言う)と、
この初期化処理の後に実行される任意のプログラム(初
期化処理を除く各種アプリケーションプログラムの本
体:以下、単に「プログラム」と言う)とからなってい
る。
Embodiments of the present invention will be described below with reference to the drawings. 1 to 5 are diagrams showing an embodiment of a data processing device according to the present invention. First, the processing flow of this embodiment will be described with reference to the conceptual flowchart of FIG. The flowchart shows the register and memory initialization processing (hereinafter simply referred to as “initialization processing”) executed immediately after the start,
An arbitrary program executed after this initialization processing (main body of various application programs other than the initialization processing: hereinafter simply referred to as "program").

【0008】プログラムは、その機能を実現するための
様々なルーチン(例えばI/O等の周辺回路やメモリの
アクセス)を含むが、本実施例では、メモリに対するア
クセス処理のうちライト処理(すなわちメモリに対する
データの書き込み処理)が行われている期間、セット状
態に置かれるフラグ手段(FLG)を備えることを「第
1のポイント」とする。以下、便宜的にセット状態を
“1”、リセット状態を“0”とする。また、プログラ
ムの実行中にシステムリセットやスタンバイ(以下、単
に「システムリセット」と言う)がかけられた場合に
は、その後の復旧時に、フラグ手段(FLG)の内容を
点検し、FLG=“1”(すなわちシステムリセットに
よるライト処理の中断)であれば、メモリへの書き込み
データが破壊されているものとして初期化処理を実行す
る一方、FLG=“0”であれば、メモリへの書き込み
データの破壊は発生していないものとしてプログラムを
再実行する(言い替えれば初期化処理をパスする)こと
を「第2のポイント」とするものである。
The program includes various routines (for example, access to peripheral circuits such as I / O and memory) for realizing its function. In this embodiment, the write process (that is, memory access) of the memory access process is performed. It is referred to as a "first point" that a flag means (FLG) is placed in the set state during the period in which the data writing process is performed. Hereinafter, for convenience, the set state is "1" and the reset state is "0". Further, when a system reset or standby (hereinafter simply referred to as "system reset") is applied during the execution of the program, the content of the flag means (FLG) is inspected at the time of subsequent recovery, and FLG = "1". "(That is, the write process is interrupted by system reset), the initialization process is executed assuming that the write data to the memory is destroyed, while FLG =" 0 "indicates that the write data to the memory is The "second point" is to re-execute the program (in other words, pass the initialization process) assuming that the destruction has not occurred.

【0009】従って、本実施例では、システムリセット
発生時にフラグ手段(FLG)の内容を点検するだけ
で、メモリへの書き込みデータの破壊の有無を知ること
ができ、データ破壊有りの場合だけに限定して初期化処
理を実行することができるから、無用な初期化処理の実
行を回避してプログラム再開時間の短縮化を図ることが
できるのである。
Therefore, in this embodiment, it is possible to know whether or not the write data to the memory is destroyed by only checking the contents of the flag means (FLG) when the system reset occurs, and it is limited to the case where the data is destroyed. Since it is possible to execute the initialization processing in this way, it is possible to avoid unnecessary execution of the initialization processing and shorten the program restart time.

【0010】図2は本実施例を適用した1チップマイク
ロコントローラのハードウエア構成図である。1は命令
実行手段としてのCPU(central processing uni
t)、2は記憶手段としてのメモリ例えばRAM(rando
m access memory)、3はI/O等の周辺回路群、4は
フラグ手段、5はデータバス、6はアドレスバスであ
り、これらは1チップ内に収められている。RAM2、
周辺回路3及びフラグ手段4にはそれぞれ固有のアドレ
スが割り当てられており、アドレスバス6を介して伝達
されるCPU1からのアドレス信号に一致するアドレス
を有するRAM2、周辺回路3又はフラグ手段4が、デ
ータバス5を介してCPU1からアクセスされるように
なっている。例えば、アドレスバス6上のアドレス信号
がRAM2の割当アドレスに一致すると、CPU1によ
ってRAM2のリード(リード信号がアクティブのと
き)又はライト(ライト信号がアクティブのとき)が可
能となり、あるいは、アドレス信号がフラグ手段4の割
当アドレスに一致すると、CPU1によってフラグ手段
4のリード(リード信号がアクティブのとき)が可能と
なる。
FIG. 2 is a hardware configuration diagram of a one-chip microcontroller to which this embodiment is applied. 1 is a CPU (central processing unit) as an instruction executing means.
t), 2 is a memory such as a RAM (rando
m access memory), 3 is a peripheral circuit group such as I / O, 4 is a flag means, 5 is a data bus, 6 is an address bus, and these are contained in one chip. RAM2,
A unique address is assigned to each of the peripheral circuit 3 and the flag means 4, and the RAM 2, the peripheral circuit 3 or the flag means 4 having an address matching the address signal from the CPU 1 transmitted via the address bus 6, The data is accessed from the CPU 1 via the data bus 5. For example, when the address signal on the address bus 6 matches the assigned address of the RAM 2, the CPU 1 can read (when the read signal is active) or write (when the write signal is active) the RAM 2, or the address signal becomes When the assigned address of the flag means 4 matches, the CPU 1 can read the flag means 4 (when the read signal is active).

【0011】ここで、CPU1は、RAM2に対してラ
イト動作を開始する時にライトサイクル開始パルス(以
下、単に「開始パルス」と言う)を出力し、ライト動作
を終了する時にライトサイクル終了パルス(以下、単に
「終了パルス」と言う)を出力する。開始パルスに応答
してフラグ手段4がセット(FLG=“1”)され、終
了パルスに応答してフラグ手段4がリセット(FLG=
“0”)される。
Here, the CPU 1 outputs a write cycle start pulse (hereinafter simply referred to as "start pulse") to the RAM 2 when starting the write operation, and a write cycle end pulse (hereinafter referred to as the "start pulse") when ending the write operation. , Simply called "end pulse"). The flag means 4 is set (FLG = "1") in response to the start pulse, and the flag means 4 is reset (FLG = "1" in response to the end pulse.
"0").

【0012】従って、図2のハードウェア構成によれ
ば、RAM2にデータが書き込まれている間は、フラグ
手段4が常にセット状態(FLG=“1”)となり、そ
れ以外では常にリセット状態(FLG=“0”)となる
から、例えば、CPU1に対してシステムリセットがか
けられた場合には、その後の復旧時に、CPU1からフ
ラグ手段4をアクセスしてその内容を点検し、FLG=
“1”であれば、メモリへの書き込みデータが破壊され
ているものとして初期化処理を実行する一方、FLG=
“0”であれば、メモリへの書き込みデータの破壊は発
生していないものとしてプログラムを再実行することが
できる。
Therefore, according to the hardware configuration of FIG. 2, the flag means 4 is always in the set state (FLG = "1") while the data is being written in the RAM 2, and is otherwise in the reset state (FLG). = “0”), for example, when a system reset is applied to the CPU 1, the flag means 4 is accessed from the CPU 1 at the time of recovery thereafter, and the contents are inspected, and FLG =
If it is "1", the initialization process is executed assuming that the write data to the memory is destroyed, while FLG =
If it is "0", the program can be re-executed on the assumption that the write data in the memory has not been destroyed.

【0013】図3は具体的なハードウェア構成図であ
る。この図において、10はCPU、11は上位側アド
レス信号(A08〜A15)用のアドレスバス、12は下位
側アドレス信号(A00〜A07)用のアドレスバス、13
は下位側アドレス信号(A00〜A07)とデータ信号(D
00〜D07)との兼用バス、14はデータバス、15aは
ラッチ、15bはトライステート・トランシーバ、16
はアドレスデコーダである。ラッチ15aは、CPU1
0からのALE(アドレス・ラッチ・イネーブル)信号
がHレベルのときに兼用バス13上の下位側アドレス信
号(A00〜A07)を取り込んで下位側アドレスバス12
に出力するもの、15bは兼用バス13とデータバス1
4との競合を制御するもので、少なくとも、CPUから
のBUFC(バッファ・コントロール)信号がLレベル
のときに、データバス14上のデータを兼用バス13へ
と転送することができるもの、アドレスデコーダ16は
フラグ手段(後述のフリップフロップ22)の割り当て
アドレスとアドレスバス11、12上のアドレス信号と
が一致したときにHレベルとなるアドレス一致信号AC
MPを出力するものである。
FIG. 3 is a concrete hardware configuration diagram. In this figure, 10 is a CPU, 11 is an address bus for upper address signals (A 08 to A 15 ), 12 is an address bus for lower address signals (A 00 to A 07 ), 13
Are lower address signals (A 00 to A 07 ) and data signals (D
00 to D 07) and shared bus, 14 a data bus, 15a is latched, 15b are tristate transceiver 16
Is an address decoder. The latch 15a is the CPU 1
When the ALE (address latch enable) signal from 0 is at the H level, the lower address signals (A 00 to A 07 ) on the dual-purpose bus 13 are taken in and the lower address bus 12
15b is a dual-purpose bus 13 and a data bus 1.
4, which controls the contention with the data bus No. 4 and can transfer the data on the data bus 14 to the dual-purpose bus 13 at least when the BUFC (buffer control) signal from the CPU is at the L level. 16 is an address match signal AC which becomes H level when the assigned address of the flag means (a flip-flop 22 described later) and the address signals on the address buses 11 and 12 match.
It outputs MP.

【0014】また、17はライト信号生成回路、18は
エッジ検出回路、19はリセット信号生成回路、20は
リセットイネーブル信号生成回路、21はフラグ手段と
してのフリップフロップ(以下「フラグ手段」と呼
称)、22はフラグ情報出力回路である。ライト信号生
成回路17は、CPU10からのCLK(クロック)信
号を反転した信号CLKXを出力するインバータゲート
17aと、CPU10からのWR信号がHレベルのとき
にはHレベル固定の信号を出力する一方、WR信号がL
レベルのとき(ライトサイクル)には出力にCLKXの
反転信号(すなわちCLK信号)を出力するノアゲート
17bと、ノアゲート17bの出力を反転するインバー
タゲート17cとを備え、結局、ライト信号生成回路1
7は、WR信号がHレベルの間はHレベル固定、WR信
号がLレベルの間はCLK信号と逆相となる信号S17
出力する。
Further, 17 is a write signal generation circuit, 18 is an edge detection circuit, 19 is a reset signal generation circuit, 20 is a reset enable signal generation circuit, and 21 is a flip-flop as flag means (hereinafter referred to as "flag means"). , 22 are flag information output circuits. The write signal generation circuit 17 outputs an inverter gate 17a that outputs a signal CLKX that is the inverted CLK (clock) signal from the CPU 10 and a signal that is fixed at the H level when the WR signal from the CPU 10 is at the H level, while the WR signal is output. Is L
When it is at a level (write cycle), it is provided with a NOR gate 17b that outputs an inverted signal of CLKX (that is, a CLK signal) and an inverter gate 17c that inverts the output of the NOR gate 17b. Eventually, the write signal generation circuit 1
7 outputs a signal S 17 that is fixed at the H level while the WR signal is at the H level, and has a phase opposite to that of the CLK signal while the WR signal is at the L level.

【0015】エッジ検出回路18は、インバータゲート
18a〜18cとRC回路18dからなる遅延回路でW
R信号を微小に遅らせるとともに、ノアゲート18eで
この遅延WR信号と非遅延WR信号との論理和をとり、
WR信号の立ち下がりエッジのタイミングでHレベルに
立ち上がる微小パルス幅の信号S18を出力する。リセッ
ト信号生成回路19は、リセットイネーブル信号S20
HレベルのときにALE信号と逆相の信号を出力するナ
ンドゲート19aと、その逆相信号を反転して出力する
インバータゲート19bとを備え、結局、リセット信号
生成回路19は、リセットイネーブル信号S20がHレベ
ルのときにALE信号と同相の信号S19をフラグ手段2
1のリセット端子(R)に出力する。
The edge detecting circuit 18 is a delay circuit composed of inverter gates 18a to 18c and an RC circuit 18d, and is a W circuit.
The R signal is slightly delayed, and the NOR gate 18e logically sums the delayed WR signal and the non-delayed WR signal,
A signal S 18 having a minute pulse width that rises to the H level at the timing of the falling edge of the WR signal is output. Reset signal generating circuit 19 comprises a NAND gate 19a which resets the enable signal S 20 and outputs a signal of the ALE signal and the opposite phase at the H level, and an inverter gate 19b which inverts the inverted signal, eventually The reset signal generation circuit 19 outputs the signal S 19 in phase with the ALE signal when the reset enable signal S 20 is at the H level.
1 to the reset terminal (R).

【0016】リセットイネーブル信号生成回路20は、
2個のノアゲート20a、20bをたすき掛けに接続し
て構成したセット・リセット・フリップフロップのリセ
ット入力側に負論理のシステムリセット信号RST(又
はスタンバイ信号)を与え、そのセット入力側にノアゲ
ート20cの出力、すなわちアドレス一致信号ACMP
の逆相信号ACMPXと信号S17との論理和信号を与え
る。初期状態とシステムリセット(又はスタンバイ)が
かけられたときにはその出力信号S20(リセットイネー
ブル信号)がLレベル(フラグ手段21のリセット禁
止)となり、一方、アドレス一致で且つCLK信号が立
ち上がったときにはその出力信号S20がHレベル(フラ
グ手段21のリセット許容)となる。
The reset enable signal generation circuit 20 includes
A negative logic system reset signal RST (or a standby signal) is applied to the reset input side of a set / reset flip-flop configured by connecting two NOR gates 20a and 20b to each other, and the NOR gate 20c of the set gate is connected to the set input side. Output, ie address match signal ACMP
And a logical sum signal of the negative-phase signal ACMPX and the signal S 17 is given. When the initial state and the system reset (or standby) are applied, the output signal S 20 (reset enable signal) becomes the L level (reset prohibition of the flag means 21), while when the address coincides and the CLK signal rises. The output signal S 20 becomes H level (reset permission of the flag means 21).

【0017】フラグ手段21は、リセット端子(R)に
入力する信号S19の立上りエッジでリセット状態(出力
Q=Hレベル)となり、セット端子(S)に入力する信
号S 18の立上りエッジでセット状態(出力Q=Lレベ
ル)となるものである。フラグ情報出力回路22は、ア
ドレス一致信号ACMPの反転信号ACMPXを出力す
るインバータゲート22aと、RD信号(リード信号)
がアクティブ(Lレベル)のときに信号ACMPXの反
転信号(すなわちアドレス一致信号ACMP)を出力す
るノアゲート22bと、アドレス一致信号ACMPがH
レベルのとき(すなわちアドレス一致のとき)にフラグ
手段21の出力Qをフラグ(FLG)情報としてデータ
バス14の任意ビットに送出するバッファ22cとを備
える。
The flag means 21 is connected to the reset terminal (R).
Input signal S19Reset state (output
Q = H level) and the signal input to the set terminal (S)
Issue S 18Is set at the rising edge of (output Q = L level
Le). The flag information output circuit 22
Outputs the inverted signal ACMPX of the dress match signal ACMP.
Inverter gate 22a and RD signal (read signal)
When the signal is active (L level)
Outputs the inverted signal (that is, address match signal ACMP)
NOR gate 22b and the address match signal ACMP
Flag on level (ie on address match)
Output Q of means 21 as data as flag (FLG) information
Provided with a buffer 22c for sending to any bit of the bus 14.
Get

【0018】なお、23は内部RAM、24はタイマ、
25は外部回路とのインターフェイスを入出力する入出
力ポート、26は外部RAMとのアクセス用のインター
フェイス回路、P1 〜P6 は代表的に示すパッドであ
る。次に、作用を説明する。図4は上記構成の動作タイ
ミングチャートである。期間「イ」において、今、リセ
ットイネーブル信号S20はHレベルであり、フラグ手段
21のリセットが許容されている。このため、ALE信
号のHレベル期間と同じ幅のリセット信号S 19が生成さ
れてフラグ手段21がリセットされ、Q=Lレベル、す
なわちFLG=“0”となる。その後、WR信号がLレ
ベルに立ち下がると、アドレス信号A 00〜A07、A08
15によって指定された例えばRAM(図2のRAM2
参照)に対するデータD00〜D07の書き込み動作が開始
され、このWR信号の立ち下がりで作られるセット信号
18に応答してフラグ手段21がセットされ、Q=Hレ
ベル、すなわちFLG=“1”となる。FLG=“1”
の状態は、次の期間「ロ」でALE信号が立ち上がるま
で続き、ALE信号の立上りでリセットされた後、同期
間「ロ」のWR信号の立ち下がり時点で再びセットされ
る。
Incidentally, 23 is an internal RAM, 24 is a timer,
25 is an input / output for inputting / outputting an interface with an external circuit
Port 26, an interface for accessing external RAM
Face circuit, P1~ P6Is a representative pad
It Next, the operation will be described. Figure 4 shows the operation tie of the above configuration.
It is a mingting chart. During the period “A”,
Output enable signal S20Is H level, and flag means
21 resets are allowed. Therefore, the ALE
Signal having the same width as the H level period of the signal 19Is generated
Then, the flag means 21 is reset and Q = L level,
That is, FLG = “0”. After that, the WR signal goes low.
When you fall to the bell, address signal A 00~ A07, A08~
A15Designated by, for example, RAM (RAM2 in FIG. 2
Data D)00~ D07Write operation starts
And the set signal created at the falling edge of this WR signal
S18Flag means 21 is set in response to
Bell, that is, FLG = "1". FLG = "1"
The state of will remain until the ALE signal rises in the next period "B".
Then, after being reset at the rising edge of the ALE signal, the synchronization
It is set again when the WR signal falls between
It

【0019】ここで、期間「ロ」において、WR信号の
Lレベル期間中(言い替えればメモリに対するデータ書
き込みの途中)の任意時点tx で、システムリセット信
号RSTがLレベルに変化したと考えると、この時点t
x で、リセットイネーブル信号S20がLレベルに変化す
るから、リセットシーケンス期間を含む以降のいくつか
の期間ではリセット信号S19が発生せず、フラグ手段2
1は、システムリセット発生直前の状態(FLG=
“1”)を保持することとなる。
Considering that the system reset signal RST changes to the L level at an arbitrary time point t x during the L level period of the WR signal (in other words, during the data writing to the memory) in the period “B”, At this time t
At x , since the reset enable signal S 20 changes to the L level, the reset signal S 19 is not generated in some periods including the reset sequence period, and the flag means 2
1 is the state (FLG =
"1") will be retained.

【0020】従って、例えばリセットシーケンス後の期
期「ハ」において、フラグ手段21をアドレス指定し、
さらに、RD信号をLレベルにするとともにBUFC信
号をLレベルにすれば、アドレスバス14を介してフラ
グ手段21とCPU10とを接続することができ、CP
U10によってフラグ手段21の状態を点検することが
できる。今、フラグ手段21の状態は“1”であり、こ
れは、RAMに対するデータ書き込みの途中にシステム
リセットが発生したことを示し、データ破壊の可能性が
大であることを意味しているから、この場合、信頼性の
点で初期化処理まで戻ってシステムを再立上げすべきで
ある。
Therefore, for example, in the period "C" after the reset sequence, the flag means 21 is addressed,
Further, by setting the RD signal to the L level and the BUFC signal to the L level, the flag means 21 and the CPU 10 can be connected via the address bus 14, and CP
The state of the flag means 21 can be checked by U10. Now, the state of the flag means 21 is "1", which means that a system reset has occurred during the data writing to the RAM, which means that the possibility of data destruction is high. In this case, in terms of reliability, the system should be restarted by returning to the initialization process.

【0021】しかし、フラグ手段21の状態が“1”で
ない場合は、書き込みサイクル以外でシステムリセット
が発生したことを示し、データ破壊の恐れは全くないか
ら、この場合、初期化処理を実行する必然性はなく、プ
ログラムだけを再立上げすればよい。初期化処理に要す
る時間だけ再開時間の短縮化を図ることができる。な
お、リセットイネーブル信号S20のHレベルへの復帰
は、期間「ニ」において、WR信号がLレベルのときの
CLK信号の立上りタイミングとなる。
However, if the state of the flag means 21 is not "1", it indicates that a system reset has occurred except in the write cycle, and there is no fear of data destruction. Therefore, in this case, it is necessary to execute the initialization process. Instead, just restart the program. The restart time can be shortened by the time required for the initialization processing. The reset enable signal S 20 returns to the H level at the rising timing of the CLK signal when the WR signal is at the L level in the period “d”.

【0022】図5は他の具体的なハードウェア構成図で
ある。なお、図3と共通する構成要素には同一の符号を
付すとともにその説明を省略する。この構成例では、1
個のフリップフロップ30aと1個のラッチ30bでフ
ラグ手段30を構成し、フリップフロップ30aのリセ
ット端子(R)にALE信号を直接与えるとともに、ラ
ッチ30bのクロック端子にインバータゲート30cで
反転したシステムリセット信号RST(又はスタンバイ
信号)を与えている。システムリセット発生時に、フリ
ップフロップ30aの状態がラッチ30bに取り込ま
れ、このラッチ30bの内容がCPU10に転送され
る。図3の構成例のリセットイネーブル信号生成回路2
0やリセット信号生成回路19が不要になり、回路構成
を簡素化できる。
FIG. 5 is another concrete hardware configuration diagram. The same components as those in FIG. 3 are designated by the same reference numerals and the description thereof will be omitted. In this configuration example, 1
The flip-flop 30a and the one latch 30b constitute the flag means 30, the ALE signal is directly applied to the reset terminal (R) of the flip-flop 30a, and the system reset in which the clock terminal of the latch 30b is inverted by the inverter gate 30c. A signal RST (or a standby signal) is given. When a system reset occurs, the state of the flip-flop 30a is captured by the latch 30b, and the content of the latch 30b is transferred to the CPU 10. Reset enable signal generation circuit 2 of the configuration example of FIG.
0 and the reset signal generation circuit 19 are unnecessary, and the circuit configuration can be simplified.

【0023】なお、本発明では、周辺回路、CPU、フ
ラグ、RAM等を必ずしも1チップ内に設けなくてもよ
い。
In the present invention, the peripheral circuit, CPU, flag, RAM, etc. do not necessarily have to be provided in one chip.

【0024】[0024]

【発明の効果】本発明によれば、システムリセットやス
タンバイ要求等によって命令実行が中断されたとき、メ
モリに対する書き込みデータの良否を判定でき、無駄な
初期化処理を行わないようにしてプログラムの再開時間
の短縮化を図ることができる。
According to the present invention, when instruction execution is interrupted due to a system reset, a standby request, or the like, it is possible to judge whether the write data to the memory is good or bad, and restart the program without performing unnecessary initialization processing. The time can be shortened.

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

【図1】一実施例の概念フローチャートである。FIG. 1 is a conceptual flowchart of one embodiment.

【図2】一実施例のハードウェア構成図である。FIG. 2 is a hardware configuration diagram of an embodiment.

【図3】一実施例の具体的なハードウェア図である。FIG. 3 is a concrete hardware diagram of one embodiment.

【図4】図3の動作タイミングチャートである。FIG. 4 is an operation timing chart of FIG.

【図5】一実施例の他の具体的なハードウェア構成図で
ある。
FIG. 5 is another concrete hardware configuration diagram of the embodiment.

【図6】従来のデータ処理の概念フローチャートであ
る。
FIG. 6 is a conceptual flowchart of conventional data processing.

【符号の説明】[Explanation of symbols]

2:RAM(記憶手段) 1、10:CPU(命令実行手段) 4、21、30:フラグ手段 2: RAM (storage means) 1, 10: CPU (command execution means) 4, 21, 30: flag means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】データのリード/ライトが可能な記憶手段
と、 前記記憶手段に対するリード/ライト処理を含むプログ
ラムを実行する命令実行手段と、 前記命令実行手段でライト処理が実行されているときに
セットされるフラグ手段と、を備え、 前記命令実行手段による命令実行の中断時に、前記フラ
グ手段の内容を点検して、前記ライト処理の中断の有無
を判定するように構成したことを特徴とするデータ処理
装置。
1. A storage means capable of reading / writing data, an instruction executing means for executing a program including a read / write processing for the storage means, and a write processing executed by the instruction executing means. Flag means to be set, and when the instruction execution by the instruction execution means is interrupted, the contents of the flag means are inspected to determine whether or not the write processing is interrupted. Data processing device.
【請求項2】前記命令実行手段による命令実行の中断の
タイミングで前記フラグ手段の内容を取り込み、且つ、
前記命令実行手段から任意に読み出すことのできるレジ
スタを備え、命令実行の再開後に前記フラグ手段がクリ
アされてもライト処理の中断の有無を判定可能としたこ
とを特徴とする請求項1記載のデータ処理装置。
2. The content of the flag means is fetched at the timing of interruption of instruction execution by the instruction executing means, and
2. The data according to claim 1, further comprising a register which can be arbitrarily read from the instruction executing means, and can determine whether or not the write processing is interrupted even if the flag means is cleared after the instruction execution is restarted. Processing equipment.
【請求項3】前記命令実行手段からのライト処理により
セットされ、且つ、命令実行を中断する信号によりクリ
アされるフラグクリア許可手段を備え、該フラグクリア
許可手段によって前記フラグ手段のクリアを禁止するこ
とにより、命令実行が再開されても前記フラグクリア許
可手段をクリアするまでの間は、ライト処理の中断の有
無を判定可能としたことを特徴とする請求項1記載のデ
ータ処理装置。
3. A flag clear permission unit that is set by a write process from the instruction execution unit and is cleared by a signal that interrupts the instruction execution, and the flag clear permission unit prohibits the flag unit from being cleared. Thus, the data processing apparatus according to claim 1, wherein it is possible to determine whether or not the write processing is interrupted until the flag clear permission unit is cleared even if instruction execution is restarted.
JP5112521A 1993-05-14 1993-05-14 Data processor Pending JPH06324956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5112521A JPH06324956A (en) 1993-05-14 1993-05-14 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5112521A JPH06324956A (en) 1993-05-14 1993-05-14 Data processor

Publications (1)

Publication Number Publication Date
JPH06324956A true JPH06324956A (en) 1994-11-25

Family

ID=14588730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5112521A Pending JPH06324956A (en) 1993-05-14 1993-05-14 Data processor

Country Status (1)

Country Link
JP (1) JPH06324956A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1324198A3 (en) * 2001-12-26 2005-06-29 Fujitsu Limited Processor and method of booting same
US7134126B2 (en) 2002-07-16 2006-11-07 Samsung Electronics Co., Ltd. Apparatus and method for reducing program selection time in multi-changer of optical disk player

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1324198A3 (en) * 2001-12-26 2005-06-29 Fujitsu Limited Processor and method of booting same
US7134126B2 (en) 2002-07-16 2006-11-07 Samsung Electronics Co., Ltd. Apparatus and method for reducing program selection time in multi-changer of optical disk player

Similar Documents

Publication Publication Date Title
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
US4348722A (en) Bus error recognition for microprogrammed data processor
JPH10177563A (en) Microcomputer with built-in flash memory
US6678838B1 (en) Method to track master contribution information in a write buffer
JPS6217783B2 (en)
US5546567A (en) System for limiting change in bus clock frequency to duration of I/O operation upon completion signal
JPH05324348A (en) Single chip microcomputer
US6877113B2 (en) Break determining circuit for a debugging support unit in a semiconductor integrated circuit
KR900007002B1 (en) Microprocessor with an interruptabel bus cycle
JPS58197553A (en) Program monitor
US6202117B1 (en) Host adapter integrated circuit having autoaccess pause
JPH06324956A (en) Data processor
US6463551B1 (en) Debug circuit and microcomputer incorporating debug circuit
JPH0259552B2 (en)
EP0462622B1 (en) Microprocessor capable of ensuring flexible recovery time for I/O device
JPH0789346B2 (en) DMA controller
US5163135A (en) Computer system and method for setting recovery time upon execution of an I/O command
JP2569693B2 (en) Microcomputer
JP2539064B2 (en) Microprocessor
JPH10154124A (en) Microprocessor and multiprocessor system
JPS62239238A (en) Break circuit
JP2004185060A (en) Microcomputer
JP2870083B2 (en) Microcomputer with built-in watchdog timer
JPH07121483A (en) Shared memory access control circuit
JPH0721775B2 (en) Memory write control circuit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010703