[go: up one dir, main page]

JPS6237748A - Triagger signal generating system by firmware - Google Patents

Triagger signal generating system by firmware

Info

Publication number
JPS6237748A
JPS6237748A JP60177277A JP17727785A JPS6237748A JP S6237748 A JPS6237748 A JP S6237748A JP 60177277 A JP60177277 A JP 60177277A JP 17727785 A JP17727785 A JP 17727785A JP S6237748 A JPS6237748 A JP S6237748A
Authority
JP
Japan
Prior art keywords
address
trigger signal
cpu
abnormality
program
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
JP60177277A
Other languages
Japanese (ja)
Inventor
Shinji Kiyoue
京江 進治
Seiji Wada
和田 誠至
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.)
Panafacom Ltd
Original Assignee
Panafacom 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 Panafacom Ltd filed Critical Panafacom Ltd
Priority to JP60177277A priority Critical patent/JPS6237748A/en
Publication of JPS6237748A publication Critical patent/JPS6237748A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To inform a timing to which an abnormal operation is produced to the outside without providing any special circuit, by utilizing some of the address signals transmitted from a CPU as a trigger signal for the start of investigation of the abnormality when the abnormal operation occurs. CONSTITUTION:The highest order bit ADR15 of an address bus 12 consisting of address signal lines ADR0-15 of 16 bits is sent to a trigger signal buffer 23. Then the output of the buffer 23 can be taken to outside directly as a trigger signal. While the program of a working abnormality detecting part 20 is executed by a CPU 10. The control is shifted to a restoring part 22 by a trigger generating part 21 when the abnormality is detected. The part 22 delivers an instruction for the reset to an original program area. Here the highest order bit of the bus 12 is changed by the address signal transmitted from the CPU 10 for the fetching of the instruction. Thus the trigger signal is delivered from the buffer 23.

Description

【発明の詳細な説明】 〔概要〕 CPUとファームウェアプログラムを書き込んだROM
とを備え、制御処理内容が固定化されているシステムに
おいて、ファームウェアプログラムにより動作異常を検
出した場合に1通常時におけるプログラムではアクセス
されないプログラムアドレス領域へ制御を移行し、その
時におけるアドレスバス上の特定のアドレス・ビット変
化をそのままトリガ信号として外部に取り出すことによ
り、極めて簡単なハードウェア回路構成でもって。
[Detailed Description of the Invention] [Summary] ROM in which a CPU and firmware program are written
In a system with fixed control processing contents, when an operational abnormality is detected by the firmware program, control is transferred to a program address area that is not accessed by the program during normal operation, and the specified information on the address bus at that time is transferred. By extracting address bit changes as they are to the outside as a trigger signal, an extremely simple hardware circuit configuration is possible.

診断の契機を与えるトリガ信号を発生することを可能と
している。
It is possible to generate a trigger signal that provides an opportunity for diagnosis.

〔産業上の利用分野〕[Industrial application field]

本発明はファームウェアによるトリガ信号発生方式、特
に1例えばチャネル装置や各種制御装置等に組み込まれ
るマイクロコンピュータによる制御システムに係り、動
作異常時に、その異常の調査を開始する契機を与えるト
リガ信号を、簡単に発生できるようにしたファームウェ
アにょるトリガ信号発生方式に関するものである。
The present invention relates to a firmware-based trigger signal generation method, particularly to a control system using a microcomputer incorporated in, for example, a channel device or various control devices. This invention relates to a trigger signal generation method using firmware that can be generated at any time.

〔従来の技術と問題点〕[Conventional technology and problems]

第3図は従来方式の例を示す。図中、loはCPU、1
1はROM(Read 0nly Memory)、 
 12はアドレスバス、13はデータバス、14はアド
レスデコーダ、15はフリップフロップ(FF)。
FIG. 3 shows an example of the conventional method. In the figure, lo is CPU, 1
1 is ROM (Read Only Memory),
12 is an address bus, 13 is a data bus, 14 is an address decoder, and 15 is a flip-flop (FF).

16はノット回路、17はアドレスデコーダ、18は読
み出しバッファを表す。
16 represents a not circuit, 17 represents an address decoder, and 18 represents a read buffer.

第3図に示したシステム回路は1例えばチャネル装置や
その他の各種制御装置等に組み込まれる回路であって、
その制御処理内容が固定化されているものである。一般
の汎用コンピュータでは。
The system circuit shown in FIG. 3 is a circuit incorporated in, for example, a channel device or various other control devices, and includes
The content of the control processing is fixed. In general purpose computers.

動作異常が生じた場合に、異常の現象が外部に明確に現
れることが多いこと、自由にプログラムをローディング
できること、またプリンタ等の入出力装置が備わってい
ることなどから、比較的容易にその解析データを収集す
ることが可能である。
When an abnormality occurs, it is relatively easy to analyze it because the phenomenon of the abnormality is often clearly visible externally, programs can be loaded freely, and input/output devices such as printers are provided. It is possible to collect data.

しかし、第3図に示したような、ROM1lにファーム
ウェアプログラムが格納されているシステムでは、その
制御処理内容が内部的にクローズしているため、異常が
あった場合における異常原因の究明は容易ではない。
However, in a system like the one shown in Figure 3, in which the firmware program is stored in the ROM 1l, the control processing contents are closed internally, so it is not easy to investigate the cause of the abnormality when an abnormality occurs. do not have.

例えば、フリップフロップ15で構成される読み書き可
能なレジスタを、CPUI i<ROM11に格納され
たプログラムによって定期的に操作しているとする。レ
ジスタへの書き込みが正しく行われなかった場合、CP
Ul0は読み出しチェックを実行することによって、書
き込まれた情報が誤りであることを判定することができ
る。
For example, suppose that a readable/writable register made up of the flip-flop 15 is periodically operated by a program stored in the CPUI<ROM 11. If writing to the register is not done correctly, the CP
By performing a read check, Ul0 can determine that the written information is incorrect.

しかし、従来方式によれば、外部にハードウェア信号と
して通知する手段を持たないため、異常があった際にお
ける波形測定等の調査を行うための契機を得ることがで
きない。従って、このような場合の調査にあたっては、
従来、CPUのエミュレータ等の大規模なシステムが必
要とされ、調査に要する費用も大きくなるという問題が
あった。
However, according to the conventional method, since there is no means for notifying the outside as a hardware signal, there is no opportunity to conduct an investigation such as waveform measurement when an abnormality occurs. Therefore, when investigating such cases,
Conventionally, there has been a problem in that a large-scale system such as a CPU emulator is required, and the cost required for investigation is also large.

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

本発明は上記問題点の解決を図り、CPUから送出され
るアドレス信号の一部を、そのままトリガ信号として用
いることに着目して、何ら特殊な回路を設けることなく
、外部に異常動作発生のタイミングを通知する手段を提
供する。
The present invention aims to solve the above-mentioned problems, and focuses on using a part of the address signal sent from the CPU as a trigger signal as it is, so that the timing of abnormal operation can be detected externally without providing any special circuit. Provide a means of notification.

第1図は本発明の基本構成図を示す。FIG. 1 shows a basic configuration diagram of the present invention.

第1図において、第3図と同符号のものは、第3図図示
のものに対応する。IIAは通常時に実行されるファー
ムウェアプログラムが格納されているROMII内の通
常時アクセス領域、11Bは異常時にのみ制御が移行さ
れるプログラムが格納されているROMII内の異常時
アクセス領域。
In FIG. 1, the same reference numerals as in FIG. 3 correspond to those shown in FIG. IIA is a normal access area in ROMII in which a firmware program executed in normal times is stored, and 11B is an abnormality access area in ROMII in which a program to which control is transferred only in an abnormality is stored.

20は動作異常をプログラムによって検出する動作異常
検出部、21は異常時アクセス領域11Bへ制御を移行
する命令を発行することによりトリガ信号を発生させる
トリガ発生部、22はいわゆるリターン命令等により1
元のプログラムへ制御を戻す復旧部、23はトリガ信号
バッファを表す。
Reference numeral 20 denotes an operation abnormality detection unit that detects an operation abnormality by a program, 21 a trigger generation unit that generates a trigger signal by issuing a command to transfer control to the abnormality access area 11B, and 22 a so-called return command.
A recovery section 23 that returns control to the original program represents a trigger signal buffer.

本発明の場合9例えばアドレスバス12の最上位ビット
ADR15が、トリガ信号バッファ23に接続され、ト
リガ信号バッファ23の出力を。
In the case of the present invention 9, for example, the most significant bit ADR15 of the address bus 12 is connected to the trigger signal buffer 23 and outputs the trigger signal buffer 23.

トリガ信号として、そのまま外部に取り出すことができ
るようになっている。
It is designed so that it can be taken out as is as a trigger signal.

動作異常検出部20のプログラムが、cpuiOにより
実行され、動作異常を検出すると、トリガ発生部21に
より、復旧部22へ制御が移行される。復旧部22は1
例えば8000番地より大きいアドレス値を持つ異常時
アクセス領域11Bに設けられており1元のプログラム
領域に復帰する命令を発行するが、このとき、命令フェ
ッチのためにCPUI Oが送出するアドレス信号によ
り。
The program of the operational abnormality detection unit 20 is executed by the cpuiO, and when an operational abnormality is detected, the trigger generation unit 21 transfers control to the recovery unit 22. The recovery unit 22 is 1
For example, it is provided in the abnormal access area 11B having an address value larger than address 8000 and issues an instruction to return to the original program area, but at this time, an address signal sent by the CPU I O for instruction fetch is used.

アドレスバス12の最上位ビットが変化するので。Since the most significant bit of address bus 12 changes.

トリガ信号バッファ23からトリガ信号が出力されるよ
うになっている。
A trigger signal is output from the trigger signal buffer 23.

〔作用〕[Effect]

トリガ発生部21は、単に復旧部22を呼び出すサブル
ーチン・コール命令のようなものでよく。
The trigger generation section 21 may be something like a subroutine call instruction that simply calls the recovery section 22.

また復旧部22は、リターン命令のようなものでよい。Further, the recovery unit 22 may be a return command or the like.

トリガ信号を実際に外部に出力するための回路も、第1
図かられかるように、アドレス信号の1つをmに取り出
すだけのものでよく、これにより、トリガ発生部21が
、復旧部22を呼び比重と、アルレス信号が変化して、
トリガ信号が出すされることになる。
The circuit for actually outputting the trigger signal to the outside is also the first one.
As can be seen from the figure, it is sufficient to simply extract one of the address signals to m, and as a result, the trigger generation section 21 calls the restoration section 22, and when the address signal changes,
A trigger signal will be issued.

(実施例J 第2図は本発明の一実施例タイムチャー1・を示ず。以
下、第1図および第2図を参照して1本発明の実施例を
詳細に説明する。
(Embodiment J FIG. 2 does not show a time chart 1 of an embodiment of the present invention. Hereinafter, an embodiment of the present invention will be described in detail with reference to FIGS. 1 and 2.

アトシ・スハス12は1本実施例では、16ヒ2・l・
のアドレス信号線ADRO〜15で構成されている。C
P U I Oは、アドレスバス12ヘアドし・スを送
出し、ROM11からデータバス13を介して命令をフ
ェッチして、実行する。
Atoshi Suhas 12 is 1 In this example, 16hi 2.l.
It is composed of address signal lines ADRO-15. C
P U I O sends out an address bus 12 and fetches an instruction from ROM 11 via data bus 13 for execution.

ROMIIは、7FFF (16進数)番地以下の通常
時アクセス領域11Aと、8000番地以、」二の異常
時アクセス領域11 Bとに分けられている。通常処理
を行うファームウェアプログラムは。
The ROM II is divided into a normal access area 11A starting from address 7FFF (hexadecimal number) and an abnormal access area 11B starting from address 8000. A firmware program that performs normal processing.

通常時アイ7セス領域11A4;二格納される。また。Normally, the data is stored in the eye area 11A4. Also.

ここに格納されるファームウェアプログラムには。The firmware program stored here.

動作異常検出部20およびトリガ発生部21が。An operational abnormality detection section 20 and a trigger generation section 21.

組み込まれる。Incorporated.

フリップフロップ15ば2例えば制御対象である回路へ
の出力データが設定されるレジスタである。CPU 1
0が、このレジスタに書き込みを行う場合、第2図に示
すように、ソリノブフロツブ15のアドレスをアドレス
バス12へ送出すると共に、データバス13の入出力方
向を示す品:み書き信号R、/ W4パ■]”にし1.
ストローブ信号STBをあげる。アドレスデコーダ14
は、レジスタ書き込みを選択するものであって、この出
力aは。
Flip-flops 15 and 2 are, for example, registers in which output data to a circuit to be controlled is set. CPU 1
0 writes to this register, as shown in FIG. 1.
Raise strobe signal STB. Address decoder 14
is for selecting register writing, and this output a is.

cpu i oからのアドレス信号と、ストローブ信号
STBと、読み書き信号R/Wとの論理積である。出力
aにより、フリ、・ブフロノブ15にデータが七ノ1−
される。
This is the logical product of the address signal from CPUIO, the strobe signal STB, and the read/write signal R/W. By output a, the data is sent to the buffer knob 15.
be done.

動作異常検出部20は8例えばレジスタ書き込みの後、
動作異常を検出するため、同じレジスタの読み出しを行
い、それらの内容を比較する。読み出しの場合、CPU
l0は、アドレスバス12・\フリップフロップ15の
アドレスを出力し、読み書きfz号R/Wを“L”にし
た状態で5アドレスが有効であることを示すストローブ
信号S T” B4あげる。アドレスデコーダ17は、
レジスタ読み出しを選択するものであり、この出力Cは
、スl−ローブ信号S T Bに同期して、“L5”に
ムる。
For example, after register writing, the operation abnormality detection unit 20
To detect malfunctions, the same registers are read and their contents are compared. For reading, CPU
l0 outputs the address of the address bus 12/\flip-flop 15, and raises a strobe signal ST''B4 indicating that the 5th address is valid with the read/write fz number R/W set to "L".Address decoder 17 is
This selects register reading, and this output C goes to "L5" in synchronization with the slave signal STB.

これにより、ソリノブフロツブ15の内容は、読み出し
バッファ18を介して、読み出しデータdとして、デー
タバス13へ送られる。
As a result, the contents of the solinobfrob 15 are sent to the data bus 13 via the read buffer 18 as read data d.

レジスタ異常判定のため、先に書き込んだデ・−多ど、
読み出しデータdとを比較する。内容に違いがあれば、
a作異常が生じたことになる7動作異常検出部20は、
動作異常を検出すると、トリガ発生部21を起動し、予
め、8000番地以降し一設定された復旧部22へ分岐
する。ぞして、 イM旧部22は1元のプログラムへす
くに復帰する。
To determine register abnormality, the previously written data, etc.
The read data d is compared with the read data d. If there is a difference in content,
7 The operation abnormality detection unit 20, which indicates that an operation abnormality has occurred,
When an abnormality in operation is detected, the trigger generating section 21 is activated, and the process branches to the recovery section 22 set in advance from address 8000 onwards. Therefore, the iM old section 22 will quickly return to the original program.

このとき、復旧部22の命令フェッチのため、アドレス
バス12の最上位ビットADR15は、“L”から“H
”に変化し、復帰により、また“L”に戻る。
At this time, because the recovery unit 22 fetches the instruction, the most significant bit ADR15 of the address bus 12 changes from “L” to “H”.
” and returns to “L” again upon recovery.

従って、トリガ信号バッファ23から、トリガ信号のパ
ルスが出力されることになる。
Therefore, the trigger signal buffer 23 outputs a trigger signal pulse.

この信号を1例えばシンクロスコープまたはロジックス
テートアナライザ等の測定器に対するトリガ人力とする
、〕とにより、異常が低い頻度でし2か起こらない場合
であっても6その異常に関する波形観測を4ううJ、と
かできる。
By using this signal as a manual trigger for a measuring instrument such as a synchroscope or logic state analyzer, even if the abnormality occurs only infrequently or only 2, it is possible to observe waveforms related to the abnormality. , etc.

なお1本実施例では、動作異常検出部20は。Note that in this embodiment, the operational abnormality detection section 20 is as follows.

書き込みデー・夕と読み出しデー・夕との比較により。By comparing the writing day/evening and the reading day/evening.

異常を検出するようζJなっているが、本発明はこれに
限られるわけではなく、クイ“、・その他6Jよる各種
異常検出手段を採用Jることができる。
Although ζJ is designed to detect an abnormality, the present invention is not limited to this, and various abnormality detection means such as a screwdriver, 6J, etc. can be employed.

(発明の効果〕 以上説明した1↓、うに、不発1すj、、よれば2診ト
リi 、i11の特殊な回路を設けることなく、奥深い
論理もしくは順序シーケンスによって発生する異常状態
(Effects of the Invention) According to the above-mentioned 1↓, uni, misfire 1suj,, 2nd diagnosis trii, i11, an abnormal state occurs due to deep logic or sequential sequence without providing special circuits.

またはファームウェアでなければ判定できない異常動作
のタイミングを、簡単にトリガ信号として取り出すこと
ができるようになる。これにより。
Alternatively, the timing of an abnormal operation that can only be determined by firmware can be easily extracted as a trigger signal. Due to this.

トラブル発生時のハードウェアおよびソフトウェア動作
を、ロジックステートアナライザやシンクロスコープ等
によって捉えることができるようになり、障害の調査が
容易になると共に、従来、調査に要していた多額の費用
を削減することが可能となる。
It is now possible to capture hardware and software behavior when a problem occurs using logic state analyzers, synchroscopes, etc., making it easier to investigate faults and reducing the large amount of costs traditionally required for investigation. becomes possible.

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

第1図は本発明の基本構成図、第2図は本発明の一実施
例タイムチャート第3図は従来方式の例を示す。 図中、10はCPU、11はROM、IIAは通常時ア
クセス領域、IIBは異常時アクセス領域、12はアド
レスバス、13はデータバス、14はアドレスデコーダ
、15はフリップフロップ。 16はノット回路、17はアドレスデコーダ、18は読
み出しバッファ、20は動作異常検出部。 21はトリガ発生部、22は復旧部、23はトリガ信号
バッファを表す。
FIG. 1 is a basic configuration diagram of the present invention, and FIG. 2 is a time chart of an embodiment of the present invention. FIG. 3 is a diagram showing an example of a conventional system. In the figure, 10 is a CPU, 11 is a ROM, IIA is a normal access area, IIB is an abnormal access area, 12 is an address bus, 13 is a data bus, 14 is an address decoder, and 15 is a flip-flop. 16 is a not circuit, 17 is an address decoder, 18 is a read buffer, and 20 is an operation abnormality detection section. Reference numeral 21 represents a trigger generation section, 22 a recovery section, and 23 a trigger signal buffer.

Claims (1)

【特許請求の範囲】 CPU(10)のチップと、該CPU(10)からのア
ドレス信号によって読み出されるファームウェアプログ
ラムを書き込んだROM(11)と、それらによって制
御される周辺回路とを搭載したシステムにおいて、 上記ROM(11)から一連のファームウェアプログラ
ムをCPU(10)が読み出し実行する過程において、
動作異常を当該プログラムによって検出する手段(20
)と、 該検出手段(20)により、動作異常を検出した際に、
通常時におけるプログラムではアクセスされないプログ
ラムアドレス領域からプログラムを読み出す命令を発行
する手段(21)と、 上記異常時に制御が移行されるプログラムアドレス領域
を指示するアドレス信号の一部を、異常発生に関するト
リガ信号として外部へ出力する手段(23)とを備えた
ことを特徴とするファームウェアによるトリガ信号発生
方式。
[Claims] In a system equipped with a CPU (10) chip, a ROM (11) in which a firmware program is written that is read out by an address signal from the CPU (10), and peripheral circuits controlled by them. , In the process in which the CPU (10) reads and executes a series of firmware programs from the ROM (11),
Means for detecting abnormal operation by the program (20
), and when an abnormality in operation is detected by the detection means (20),
means (21) for issuing an instruction to read a program from a program address area that is not accessed by the program during normal times; A trigger signal generation method using firmware, characterized in that the method is characterized by comprising means (23) for outputting to the outside as a trigger signal.
JP60177277A 1985-08-12 1985-08-12 Triagger signal generating system by firmware Pending JPS6237748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60177277A JPS6237748A (en) 1985-08-12 1985-08-12 Triagger signal generating system by firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60177277A JPS6237748A (en) 1985-08-12 1985-08-12 Triagger signal generating system by firmware

Publications (1)

Publication Number Publication Date
JPS6237748A true JPS6237748A (en) 1987-02-18

Family

ID=16028233

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60177277A Pending JPS6237748A (en) 1985-08-12 1985-08-12 Triagger signal generating system by firmware

Country Status (1)

Country Link
JP (1) JPS6237748A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002023968A (en) * 2000-07-04 2002-01-25 Mitsubishi Electric Corp Controller of semiconductor storage device and flash memory storage system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002023968A (en) * 2000-07-04 2002-01-25 Mitsubishi Electric Corp Controller of semiconductor storage device and flash memory storage system

Similar Documents

Publication Publication Date Title
US5345580A (en) Microprocessor device and emulator device thereof
US5850512A (en) Bus analyzer and method for testing internal data paths thereof
US5226153A (en) Bus monitor with time stamp means for independently capturing and correlating events
US5206948A (en) Bus monitor with means for selectively capturing trigger conditions
JP2007257441A (en) Processor and processor control method
US5307482A (en) Computer, non-maskable interrupt trace routine override
US5142673A (en) Bus monitor with dual port memory for storing selectable trigger patterns
JPS6237748A (en) Triagger signal generating system by firmware
JPS5840772B2 (en) Data comparison match display method
JP2001195281A (en) System monitoring device
JP2729126B2 (en) Address trace circuit of debug system
JP2715740B2 (en) Bus monitoring circuit for information processing equipment
JP3590289B2 (en) Event detection circuit
JP2531112B2 (en) Information processing device
JPH05324396A (en) Program run history recording method
JPH0695913A (en) Debugging device
JPH01214942A (en) In-circuit emulator
JPH03263131A (en) Fault detection method
JPH096685A (en) Memory device and its error test method
JP2005327175A (en) Incircuit emulator device and stack access abnormality detection method
JPH04123441U (en) Parity error detection system
JPH0232409A (en) Diagnosing device for abnormality monitoring part
JPS61131128A (en) Self-diagnosis system
JPH0792768B2 (en) Microcomputer
JPH0588946A (en) History memory write system