JPS6236578B2 - - Google Patents
Info
- Publication number
- JPS6236578B2 JPS6236578B2 JP55100955A JP10095580A JPS6236578B2 JP S6236578 B2 JPS6236578 B2 JP S6236578B2 JP 55100955 A JP55100955 A JP 55100955A JP 10095580 A JP10095580 A JP 10095580A JP S6236578 B2 JPS6236578 B2 JP S6236578B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- memory
- bit
- stop
- register
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Detection And Correction Of Errors (AREA)
- Debugging And Monitoring (AREA)
Description
【発明の詳細な説明】
本発明はアドレス停止制御方式に関し、特にマ
イクロプロセツサなどにおいて、例えばデバツグ
試験の際に特定のアドレスのデータに無効データ
を挿入しておいて該アドレスのデータが呼出され
たときにエラー状態を生じさせることによつてそ
の特定アドレスで命令のアドレス停止を行なうア
ドレス停止制御方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an address stop control method, and in particular, in a microprocessor, etc., invalid data is inserted into data at a specific address during a debugging test, and the data at that address is called. The present invention relates to an address stop control method that stops an instruction at a specific address by generating an error state when the instruction is stopped.
データ処理装置などにおいて、特にマイクロプ
ロセツサにおいて、例えばデバツグのような試験
動作を行なう際に、プログラムをメモリに記憶し
ておき、プログラム中のあるアドレス点でプログ
ラムの走行を停止させる場合がある。これを行な
うために従来のこの種の装置においては、一般に
停止したいアドレスをアドレス・ストツプ・レジ
スタに設定しておいて、プロセツサによりメモリ
から読出される命令アドレスと、前記アドレス・
ストツプ・レジスタ内に設定された所望のアドレ
スとを比較器により比較しておき、両者が一致す
れば比較器からの出力によりクロツク・ストツプ
状態等を発生させ、システムを停止するようにし
ていた。 2. Description of the Related Art In data processing devices, particularly microprocessors, when performing test operations such as debugging, there are cases in which a program is stored in a memory and execution of the program is stopped at a certain address point in the program. To do this, in conventional devices of this type, the address to be stopped is generally set in an address stop register, and the instruction address read from memory by the processor and the address
A comparator compares the address with a desired address set in the stop register, and if the two match, the output from the comparator generates a clock stop state or the like to stop the system.
しかしながら、前記の従来技術により方式で
は、アドレス・ストツプ・レジスタおよび比較器
が必要である。そしてこのアドレス・ストツプ・
レジスタは、1つのアドレスを構成するビツト数
だけアドレス情報を保持できる大きさのもの、例
えばメモリが4Kの場合には12ビツトの大きさの
レジスタでなければならなかつた。また、比較器
においても、前記停止レジスタに保持されたビツ
ト数と、記憶装置から読出される同じビツト数の
アドレス情報分とを比較しなければならないた
め、かなり大きなハードウエア量を必要とするこ
とになる。このことは、例えばLSI(大規模集積
回路)などによりマイクロプロセツサを構成する
場合において、種々の目的で割当てられた機能回
路を決定したあとで、アドレス・ストツプ・レジ
スタや比較回路を組込むことになる。このとき残
りの機能回路部分にあまり余裕がない場合に、前
記アドレス比較機能を確保するとなると、これを
組込むことができるか否かの微妙な状態を生ずる
恐れがある。 However, the prior art scheme described above requires an address stop register and a comparator. And this address stop
The register had to be large enough to hold address information for the number of bits that make up one address; for example, if the memory was 4K, it had to be a 12-bit register. Furthermore, since the comparator must compare the number of bits held in the stop register with the same number of bits of address information read from the storage device, it requires a fairly large amount of hardware. become. This means that, for example, when configuring a microprocessor using an LSI (Large-Scale Integrated Circuit), it is difficult to incorporate address stop registers and comparison circuits after determining the functional circuits assigned for various purposes. Become. At this time, if the address comparison function is to be ensured when there is not much room left in the remaining functional circuit portions, there is a risk that a delicate situation may arise as to whether or not it can be incorporated.
本発明は上記のような問題を解決するために、
ビツト数の大きなアドレス・ストツプ・レジスタ
や比較器を用いてアドレス停止レジスタとプロセ
ツサから出力されるアドレスを比較せずに、僅か
1ビツト程度のビツト数を利用して、特定のアド
レスでパリテイエラーを故意に生じさせるように
してその特定アドレスの存在を検出してアドレス
ストツプを行なうアドレス停止制御方式を提供す
ることを目的としている。そしてこのために本発
明によるアドレス停止制御方式では、メモリの特
定アドレスのときに命令のアドレス停止を行なう
ようにしたアドレス停止制御方式において、メモ
リの内容を読出すアドレス設定手段と、上記メモ
リの出力を一時的に保持する出力保持手段と、メ
モリに記入されたチエツク・ビツトを反転させる
ビツト反転手段と、上記ビツト反転手段により反
転された反転ビツトを上記メモリに記入するか否
かを選択する選択手段を設け、特定アドレスに上
記反転ビツトをセツトすることにより該特定アド
レスにおいてその出力情報にエラーの存在を検出
させ、これによりアドレス・ストツプを行なうよ
うにしたことを特徴とする。 In order to solve the above problems, the present invention
Instead of using an address stop register with a large number of bits or a comparator to compare the address output from the address stop register and the address output from the processor, it is possible to detect a parity error at a specific address by using only one bit. It is an object of the present invention to provide an address stop control method that intentionally causes a specific address to occur, detects the existence of that specific address, and performs an address stop. For this purpose, in the address stop control method according to the present invention, an address setting means for reading the contents of the memory and an output of the memory are provided. an output holding means for temporarily holding the check bit, a bit inverting means for inverting the check bit written in the memory, and a selection for selecting whether or not to write the inverted bit inverted by the bit inverting means in the memory. The present invention is characterized in that means is provided to detect the presence of an error in the output information at a specific address by setting the inversion bit at the specific address, thereby performing an address stop.
次に本発明の実施例を添付の図面を参照して説
明する。 Next, embodiments of the present invention will be described with reference to the accompanying drawings.
図は本発明の方式を実現する一実施例構成を示
す。 The figure shows an example configuration for implementing the method of the present invention.
図において、1はマイクロプロセツサにおける
制御メモリ、2は前記制御メモリ中のアドレスを
セツトするCSアドレス・レジスタ、3はCSアド
レス・レジスタ2のアドレスを+1するカウン
タ、4は前記制御メモリ1から読出された内容を
一時的にセツトしておく制御レジスタを示す。5
はインバータであつて、制御レジスタ4内に入れ
られた情報のうち、特定アドレスのパリテイ・チ
エツクビツトRのみを反転させて故意にエラー状
態を与えて再度、制御メモリ1に戻して記憶させ
るようにしているものである。6はパリテイビツ
ト検査装置で、パリテイエラーを検出したとき、
これを報告して、クロツク停止制御を行なつたり
するエラー検出装置である。7および8はアンド
回路、9はオア回路、10はモード設定用のラツ
チであつて、通常はアンド回路7に「1」を出力
してこのアンド回路7をオン状態にするが、イン
バリツド・モード信号「1」が印加されるとアン
ド回路8に「1」を出力し、これをオン状態にす
る。 In the figure, 1 is a control memory in the microprocessor, 2 is a CS address register that sets the address in the control memory, 3 is a counter that increases the address of CS address register 2 by 1, and 4 is a readout from the control memory 1. Indicates a control register that temporarily sets the contents of the 5
is an inverter which inverts only the parity check bit R of a specific address among the information stored in the control register 4 to intentionally give an error state, and then returns it to the control memory 1 for storage. It is something that exists. 6 is a parity bit inspection device, and when a parity error is detected,
This is an error detection device that reports this and performs clock stop control. 7 and 8 are AND circuits, 9 is an OR circuit, and 10 is a mode setting latch. Normally, "1" is output to AND circuit 7 to turn it on, but in invalid mode When the signal "1" is applied, it outputs "1" to the AND circuit 8, turning it on.
以上のように構成された本発明の装置の動作を
説明する。 The operation of the apparatus of the present invention configured as above will be explained.
通常の動作のときラツチ10はアンド回路7に
「1」を出力しアンド回路7をオン状態にする。
したがつて、CSアドレス・レジスタ2にセツト
されたアドレスにもとづき制御メモリ1が読出さ
れて制御レジスタ4に制御メモリ1の出力がセツ
トされたとき、パリテイ・ビツト検査装置6でパ
リテイ・チエツクを行ない、その結果が正常であ
れば制御レジスタ4にセツトされた出力にもとづ
き制御が行なわれる。このときパリテイ・ビツト
Pはアンド回路7、オア回路9を経由してそのま
ま制御メモリ1にセツトされる。そしてCSアド
レス・レジスタ2にセツトされたアドレスはカウ
ンタ3により+1され、次の制御情報が制御メモ
リ1から出力され、プロセツサのデータ処理が行
なわれることになる。 During normal operation, latch 10 outputs "1" to AND circuit 7, turning AND circuit 7 on.
Therefore, when the control memory 1 is read based on the address set in the CS address register 2 and the output of the control memory 1 is set in the control register 4, a parity check is performed by the parity bit checking device 6. If the result is normal, control is performed based on the output set in the control register 4. At this time, parity bit P is directly set in control memory 1 via AND circuit 7 and OR circuit 9. Then, the address set in the CS address register 2 is incremented by 1 by the counter 3, the next control information is output from the control memory 1, and data processing by the processor is performed.
しかしながら、例えばデバツグ等によりシステ
ムの試験のために特定のアドレスのプログラムで
その動作を停止させたい場合には次のような制御
を行なう。 However, if it is desired to stop the operation of a program at a specific address for system testing, for example, during debugging, etc., the following control is performed.
まず、ラツチ10に対してインバリツドモード
信号「1」を印加する。これによりラツチ10は
アンド回路8に対して「1」を出力して、このア
ンド回路8をオン状態にする。そして次に停止さ
せたいプログラムのアドレスを適当な手段により
CSアドレス・レジスタ2にセツトする。そして
データとパリテイ反転ビツトをライトする。すな
わちこのパリテイビツトPはインバータ5により
反転され、アンド回路8およびオア回路9を経由
して、制御メモリにセツトされる。つまり先に正
しいパリテイビツトPがセツトされていたものが
インバータ5により故意に反転されてパリテイビ
ツトがセツトされることになる。 First, an invalid mode signal "1" is applied to the latch 10. As a result, the latch 10 outputs "1" to the AND circuit 8, turning the AND circuit 8 on. Then, by appropriate means, enter the address of the program you want to stop.
Set to CS address register 2. Then write the data and parity inversion bit. That is, this parity bit P is inverted by an inverter 5 and set in a control memory via an AND circuit 8 and an OR circuit 9. In other words, the correct parity bit P, which was previously set, is intentionally inverted by the inverter 5 and the parity bit is set.
このような準備をした後、試験のためのプログ
ラムを走行させる。このとき停止すべきプログラ
ムのアドレスがCSアドレス・レジスタ2にセツ
トされたとき、そのアドレスの内容が制御レジス
タ4に出力されてくる。このとき該特定アドレス
のパリテイビツトは上記の如く反転されているの
で、無効すなわちエラー状態にあることがパリテ
イビツト検査装置6で検出されることになる。そ
してこの検査装置6からの出力を利用してシステ
ムを自動的に停止させる。すなわち、その方法の
一つとして、クロツク装置を停止させるか、ある
いはその検出出力を割込み信号として用いること
によつてシステムを停止状態にしたりあるいはマ
ニアル制御状態(HALT)にする。 After making these preparations, run the test program. At this time, when the address of the program to be stopped is set in the CS address register 2, the contents of that address are output to the control register 4. At this time, since the parity bit of the specific address is inverted as described above, the parity bit checking device 6 detects that it is invalid, that is, in an error state. Then, the system is automatically stopped using the output from the inspection device 6. That is, one method is to stop the clock device or use its detection output as an interrupt signal to bring the system to a halt state or to a manual control state (HALT).
以上述べたように本発明は従来のアドレス制御
停止方式と異つて、パリテイビツトを反転させる
ことにより故意にエラー状態を作り、これにより
所定のアドレスにおける自動停止制御を行なうこ
とができる。このときパリテイビツト検査装置は
すでき存在するものを使用すればよいので、ハー
ド量をあまり大きくすることなく、きわめて有効
なアドレス停止制御を行なうことができる。 As described above, unlike the conventional address control stop method, the present invention intentionally creates an error state by inverting the parity bit, thereby making it possible to perform automatic stop control at a predetermined address. At this time, since it is sufficient to use an existing parity bit checking device, extremely effective address stop control can be performed without increasing the amount of hardware.
図は本発明の一実施例構成を示す。
図中、1は制御メモリ、2はCSアドレス・レ
ジスタ、3は+1カウンタ、4は制御レジスタ、
5はインバータ、6はパリテイビツト検査装置、
7,8はアンド回路、9はオア回路、10はラツ
チをそれぞれ示す。
The figure shows the configuration of an embodiment of the present invention. In the figure, 1 is control memory, 2 is CS address register, 3 is +1 counter, 4 is control register,
5 is an inverter, 6 is a parity bit inspection device,
7 and 8 are AND circuits, 9 is an OR circuit, and 10 is a latch.
Claims (1)
ス停止を行なうようにしたアドレス停止制御方式
において、メモリの内容を読出すアドレス設定手
段と、上記メモリの出力を一時的に保持する出力
保持手段と、メモリに記入されたチエツク・ビツ
トを反転させるビツト反転手段と、上記ビツト反
転手段により反転された反転ビツトを上記メモリ
に記入するか否かを選択する選択手段を設け、特
定アドレスに上記反転ビツトをセツトすることに
より該特定アドレスにおいてその出力情報にエラ
ーの存在を検出させ、これによりアドレス・スト
ツプを行なうようにしたことを特徴とするアドレ
ス停止制御方式。1. In an address stop control method in which the address of an instruction is stopped at a specific address in the memory, an address setting means for reading the contents of the memory, an output holding means for temporarily holding the output of the memory, and a memory A bit inverting means for inverting the check bit written in the memory, and a selection means for selecting whether or not to write the inverted bit inverted by the bit inverting means in the memory, are provided, and the inverted bit is set at a specific address. An address stop control method characterized in that the existence of an error is detected in the output information at the specific address by detecting the presence of an error in the output information, and thereby an address stop is performed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10095580A JPS5725051A (en) | 1980-07-23 | 1980-07-23 | Address stop control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10095580A JPS5725051A (en) | 1980-07-23 | 1980-07-23 | Address stop control system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5725051A JPS5725051A (en) | 1982-02-09 |
| JPS6236578B2 true JPS6236578B2 (en) | 1987-08-07 |
Family
ID=14287771
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10095580A Granted JPS5725051A (en) | 1980-07-23 | 1980-07-23 | Address stop control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5725051A (en) |
-
1980
- 1980-07-23 JP JP10095580A patent/JPS5725051A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5725051A (en) | 1982-02-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4231089A (en) | Data processing system with apparatus for correcting microinstruction errors | |
| JPS6236578B2 (en) | ||
| JPS5840772B2 (en) | Data comparison match display method | |
| JPS6261974B2 (en) | ||
| JPS63753A (en) | Test system for memory error checking and correcting circuit | |
| JPS59183443A (en) | Debug device | |
| JPS6246019B2 (en) | ||
| JPS6158049A (en) | Error detection | |
| JPS59112494A (en) | Memory testing system | |
| JP2503981B2 (en) | Peripheral storage | |
| JPH0368035A (en) | Information processor | |
| JPH0314148A (en) | Program destruction detection device | |
| JPH064412A (en) | Local memory inspecting/correcting circuit | |
| JPS60225941A (en) | Microprogram control device | |
| JPH096685A (en) | Memory device and error test method thereof | |
| JPH0315948A (en) | Address bus test system | |
| JPS60549A (en) | Memory testing system | |
| JPH02178862A (en) | Information processor | |
| JPH01166144A (en) | Debugging system for firmware program | |
| JPS62187943A (en) | Data monitoring device | |
| JPS63136238A (en) | Microprogram control device | |
| JPH02105230A (en) | Semiconductor integrated circuit | |
| JPH03126147A (en) | Test system for external storage device | |
| JPS6049451A (en) | Data checking system | |
| JPS59217298A (en) | Memory error relieve system |