JPS60168236A - Microprogram controller - Google Patents

Microprogram controller

Info

Publication number
JPS60168236A
JPS60168236A JP59022004A JP2200484A JPS60168236A JP S60168236 A JPS60168236 A JP S60168236A JP 59022004 A JP59022004 A JP 59022004A JP 2200484 A JP2200484 A JP 2200484A JP S60168236 A JPS60168236 A JP S60168236A
Authority
JP
Japan
Prior art keywords
address
microprogram
execution
control device
external
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
JP59022004A
Other languages
Japanese (ja)
Inventor
Toshikazu Sekiguchi
関口 敏和
Harunobu Kinoshita
木下 治信
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP59022004A priority Critical patent/JPS60168236A/en
Publication of JPS60168236A publication Critical patent/JPS60168236A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To make debugging easy and accurate by discriminating execution of a micro instruction in an address when coincidence of this address is detected. CONSTITUTION:When a worker sets an address (m+2) following an address (m+ 1) to an external address setter 21 and starts the operation in case of debugging of a microprogram controller, execution clocks are generated at a prescribed period, and an execution address 16 is changed in accordance with them. Since a set address 22 is fixed to the address (m+2), the execution address 16 coincides with the set address when it reaches the address (m+2), and at this time, a comparison result 24 goes to the high level, and an address coincidence pulse 26 is outputted, and the operation of a CPU is analyzed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はCPUの制御を行うためのマイクロプログラム
制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprogram control device for controlling a CPU.

〔従来技術〕[Prior art]

マイクロプログラムに従ってCPLI (中央処理装置
)の制御を行うマイクロプログラム制御装置は、一般の
情報処理装置に広く使用されている。
A microprogram control device that controls a CPLI (central processing unit) according to a microprogram is widely used in general information processing devices.

第1図は従来のマイクロプログラム制御装置の概略を表
わしたものである。マイクロプログラム格納メモIJ 
l 1は、CPLI内部に設けられたメモリであり、外
部に設けられる主記憶装置と区別される。マイクロプロ
グラム格納メモリ11はFROM(プログラマブル・リ
ード・オンリ・メモリ)あるいはRAM (ランダム・
アクセス・メモ1月等の記憶素子によって構成されてお
り、マイクロプログラムが格納されている。
FIG. 1 schematically shows a conventional microprogram control device. Microprogram storage memo IJ
l1 is a memory provided inside the CPLI, and is distinguished from a main storage device provided externally. The microprogram storage memory 11 is FROM (Programmable Read Only Memory) or RAM (Random Memory).
It is composed of a memory element such as an access memo, and stores a microprogram.

マイクロプログラムを構成する個々の命令はマイクロイ
ンストラクションと呼ばれている。マイクロプログラム
格納メモリ11から読み出されたマイクロインストラク
ション12は、ラッチ回路13でラッチされる。ラッチ
回路13の出力14はマイクロプログラム実行回路15
に人力され、ここで命令が解読されて実行される。この
とき、次にアクセスすべきアドレス(以下実行アドレ′
スという)が判明する。この実行アドレス16は、マイ
クロプログラム格納メモリ11に供給される。
The individual instructions that make up a microprogram are called microinstructions. The microinstruction 12 read from the microprogram storage memory 11 is latched by the latch circuit 13. The output 14 of the latch circuit 13 is the microprogram execution circuit 15
This is where the instructions are decoded and executed. At this time, the address to be accessed next (hereinafter the execution address
) is revealed. This execution address 16 is supplied to the microprogram storage memory 11.

マイクロプログラム格納メモリ11では、これによって
指示されたアドレスのマイクロインストラクションを次
のタイミングで出力することになる。
The microprogram storage memory 11 outputs the microinstruction at the address specified by this at the next timing.

このようにして実行うロック17に同期してマイクロイ
ンストラクションが順次実行されていく。
In this way, the microinstructions are sequentially executed in synchronization with the lock 17 executed.

以上のマイクロプログラム制御装置は、所定のプログラ
ムを予め格納したメモリを使用してCVUの制御を行う
ので、ソフトウェアをノ\−ドウエア化したもの(ファ
ームウェア)と見做すこともできる。しかしながらファ
ームウェアを実際に設計したり評価するとき、回路装置
()1−ドウエア)それ自体から出力される個々の信号
はもはや意味をもたないものとなっている。すなわち設
計あるいは評価の際には、CPUの制御がどのように行
われていくのかを検討する必要があり、命令を実行する
アドレスの把握が重要な意味をもってくる。
Since the above-mentioned microprogram control device controls the CVU using a memory in which a predetermined program is stored in advance, it can also be regarded as software converted into software (firmware). However, when actually designing or evaluating firmware, the individual signals output from the circuit device (1-ware) itself no longer have any meaning. That is, during design or evaluation, it is necessary to consider how the CPU will be controlled, and understanding the address at which an instruction is executed has an important meaning.

このようなことから、マイクロプログラム制御装置につ
いてデバッグ(虫取り)を行うときには、アドレスバス
に現われる全ビットのアドレス情報をロジックアナライ
ザに接続し、信号状態を個々に判別してアドレスを解読
するという手法がとられていた。七ころがロジックアナ
ライザを用いると、アドレスバスとの接続ミスが発生し
たときアドレスの判別が不可能となる問題があった。ま
たアドレス情報が数多くのビットによって構成される場
合には、ロジックアナライザをアドレスバスに対して一
度に接続することができないという問題もあった。更に
、ロジックアナライザの接続は作業上非常に煩わしいば
かりでなく、作業効率を悪くするという問題もあった。
For this reason, when debugging a microprogram control device, the method is to connect all bits of address information that appear on the address bus to a logic analyzer, determine the signal state individually, and decipher the address. was taken. When Nanakoro used a logic analyzer, there was a problem in that it was impossible to determine the address when a connection error with the address bus occurred. Furthermore, when the address information is composed of a large number of bits, there is also the problem that the logic analyzer cannot be connected to the address bus at once. Furthermore, connecting the logic analyzer is not only very cumbersome to work with, but also has the problem of reducing work efficiency.

〔発明の目的〕[Purpose of the invention]

本発明はこのような事情に鑑み、所望のアドレスのマイ
クロインストラクションが実行されるか否かを容易に判
別させることのできるマイクロプログラム制御装置を提
供することをその目的とする。
In view of these circumstances, it is an object of the present invention to provide a microprogram control device that can easily determine whether a microinstruction at a desired address is to be executed.

〔発明の構成〕[Structure of the invention]

本発明では外部からアドレスを指定することのできる外
部アドレス設定手段と、設定されたアドレスと実行アド
レスとを比較する比較手段とをマイクロプログラム制御
装置に具備させ、アドレスの一致が検出されたときその
アドレスのマイクロインストラクションが実行されるこ
とを判別可能とさせる。
In the present invention, a microprogram control device is equipped with an external address setting means that can specify an address from the outside, and a comparison means that compares the set address with an execution address, and when a match of addresses is detected, To make it possible to determine that a microinstruction at an address is executed.

〔実施例〕〔Example〕

以下実施例につき本発明の詳細な説明する。 The present invention will be described in detail with reference to Examples below.

第2図は本実施例のマイクロプログラム制御装置を表わ
したものである。第1図と同一部分には同一の符号を付
しており、これらの説明を適宜省略する。この装置には
、外部アドレス設定器21が備えられている。外部アド
レス設定器21は例えばディップスイッチから成り、所
望のアドレスをスイッチ操作で設定できるようになって
いる。
FIG. 2 shows the microprogram control device of this embodiment. Components that are the same as those in FIG. 1 are designated by the same reference numerals, and their description will be omitted as appropriate. This device is equipped with an external address setter 21. The external address setting device 21 is made up of, for example, a dip switch, and can set a desired address by operating the switch.

外部アドレス設定器21によって設定された設定アドレ
ス22は比較回路23によって実行アドレスと比較され
るようになっている。比較回路23は、nピッ)(nは
任意の整数)から成る各アドレス情報をそれぞれのビッ
トに対応させて比較するn 個のコンパレータと、これ
らのコンパレータの出力の論理積をとるアンドゲートに
よって構成することができる。比較回路23は比較結果
24を出力するようになっており、サンプリング回路2
5がこの結果をサンプリングする。
The set address 22 set by the external address setter 21 is compared with the execution address by a comparison circuit 23. The comparison circuit 23 is composed of n comparators that compare each piece of address information consisting of n bits (n is any integer) corresponding to each bit, and an AND gate that takes the logical product of the outputs of these comparators. can do. The comparison circuit 23 is designed to output a comparison result 24, and the sampling circuit 2
5 samples this result.

さてこのマイクロプログラム制御装置のデバッグを行う
とき、作業者は検証すべきアドレスの1つを外部アドレ
ス設定器21で設定する。マイクロプログラムの個々の
命令であるマイクロインストラクションは、マイクロプ
ログラム格納メモリ11にアドレスごとに格納されてい
る。マイクロインストラクションが順次実行されていく
様子の一部を例えば第3図に示す。この例の場合、分岐
命令の存在するアドレス(m+1>の次のアドレスが検
証すべきものとなることがある。このとき、作業者はア
ドレス(m+1)の後に続くアドレス(m+2)あるい
は(m+ 50 )を外部アドレス設定器21に設定す
ることになる。
Now, when debugging this microprogram control device, the operator sets one of the addresses to be verified using the external address setter 21. Microinstructions, which are individual instructions of a microprogram, are stored in the microprogram storage memory 11 for each address. For example, FIG. 3 shows a part of how microinstructions are sequentially executed. In this example, the next address after the address (m+1>) where the branch instruction exists may be the one to be verified.In this case, the operator must check the address (m+2) or (m+50) that follows the address (m+1). is set in the external address setter 21.

外部アドレス設定器21にアドレス(m+2)を設定し
たとすると、作業者はこの状態でマイクロプログラム制
御装置を作動させる。これにより実行うロック17(第
4図a)が所定の周期で発生し、実行アドレス16(第
4図b)がこれに応じて変化する。このとき設定アドレ
ス22(第4図C)は(m+ 2 )に固定されている
Assuming that address (m+2) is set in the external address setter 21, the operator operates the microprogram control device in this state. As a result, the execution lock 17 (FIG. 4a) is generated at a predetermined period, and the execution address 16 (FIG. 4b) changes accordingly. At this time, the setting address 22 (FIG. 4C) is fixed at (m+2).

従って実行アドレス16が(m)、(m+1 )と変化
した後、(m+2)になれば、この時点で設定アドレス
22と一致し、比較結果24(第4図d)がH(ハイ)
レベルとなる。
Therefore, when the execution address 16 changes to (m) and (m+1) and then becomes (m+2), it matches the set address 22 at this point, and the comparison result 24 (Fig. 4 d) becomes H (high).
level.

サンプリング回路25はD−7リツプフロツプ回路から
成り、実行うロック17の供給を受け比較結果24をサ
ンプリングしている。従って実行アドレス16と設定ア
ドレス22が一致し比較結果24がHレベルになると、
この後の実行うロック17の立ち上がりから次の立ち上
がりまでHレベルのアドレス一致パルス26が出力され
る。アドレス一致パルス26は例えばディジタルトレー
サ等の検証用の装置の同期端子に入力され、CPUの動
作の解析が行われる。
The sampling circuit 25 consists of a D-7 lip-flop circuit, and receives the input from the execution lock 17 and samples the comparison result 24. Therefore, when the execution address 16 and the setting address 22 match and the comparison result 24 becomes H level,
The address match pulse 26 at H level is output from the rising edge of the lock 17 to the next rising edge. The address match pulse 26 is input to a synchronization terminal of a verification device such as a digital tracer, and the operation of the CPU is analyzed.

なお実施例では外部アドレス設定器21をスイッチとし
て説明したが、アドレスを論理的に発生させる回路とし
てもよいことは当然である。
Although the external address setter 21 has been described as a switch in the embodiment, it is of course possible to use a circuit that logically generates an address.

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

以上説明したように本発明によればマイクロブロクラム
制御装置にアドレス判別用の回路部分を一体として設け
たので、デパックを簡易にかつ正確に行うことができる
As explained above, according to the present invention, since the circuit portion for address discrimination is integrally provided in the microblock controller, depacking can be performed easily and accurately.

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

第1図は従来のマイクロプログラム制御装置のブロワ′
り図、第2図は本発明の一実施例におけるマイクロプロ
グラム制御装置のブロック図、第3図はマイクロインス
トラクションの流れの一部を表わした流れ図、第4図は
本実施例の装置の動作を説明するだめのタイミング図で
ある。 11・・・・・・マイクロプロクラム格納メモリ、12
・・・・・・マイクロインストラクション、13・・・
・・・ラッチ回路、 16・・・・・・実行アドレス、 17・・・・・・実行うロック、 21・・・・・・外部アドレス設定器、23・・・・・
・比較回路、 25・・・・・・サンプリング回路。 出 願 人 富士ゼロックス株式会社 代 理 人 弁理士 山 内 梅 雄 第 1 図 第 2 圓
Figure 1 shows the blower of a conventional microprogram controller.
2 is a block diagram of a microprogram control device according to an embodiment of the present invention, FIG. 3 is a flowchart showing part of the flow of microinstructions, and FIG. 4 is a block diagram showing the operation of the device of this embodiment. This is a timing diagram that is beyond explanation. 11...Micro program storage memory, 12
・・・・・・Micro instructions, 13...
... Latch circuit, 16 ... Execution address, 17 ... Execution lock, 21 ... External address setter, 23 ...
・Comparison circuit, 25...Sampling circuit. Applicant: Fuji Xerox Co., Ltd. Agent: Patent Attorney Umeo Yamauchi 1 Figure 2 En

Claims (1)

【特許請求の範囲】[Claims] マイクロプログラムを格納したマイクロプログラム格納
メモリと、前記メモリから読み出されるマイクロインス
トラクションをラッチするラッチ手段と、このラッチ手
段の出力を解読しマイクロプログラムの実行を行うマイ
クロプログラム実行手段と、外部からマイクロプログラ
ムのアドレスを設定する外部アドレス設定手段と、マイ
クロプログラム実行手段によって解読された次に実行す
べきアドレスと前記外部アドレス設定手段によって設定
されたアドレスとを比較する比較手段と、この比較手段
が両アドレスの一致を検出したときパルスを出力するパ
ルス発生手段とを具備することを特徴とするマイクロプ
ログラム制御装置。
A microprogram storage memory storing a microprogram, a latch means for latching microinstructions read from the memory, a microprogram execution means for decoding the output of the latch means and executing the microprogram, and a microprogram execution means for decoding the output of the latch means and executing the microprogram. an external address setting means for setting an address; a comparison means for comparing the address to be executed next decoded by the microprogram execution means with the address set by the external address setting means; 1. A microprogram control device comprising: pulse generation means that outputs a pulse when a match is detected.
JP59022004A 1984-02-10 1984-02-10 Microprogram controller Pending JPS60168236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59022004A JPS60168236A (en) 1984-02-10 1984-02-10 Microprogram controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59022004A JPS60168236A (en) 1984-02-10 1984-02-10 Microprogram controller

Publications (1)

Publication Number Publication Date
JPS60168236A true JPS60168236A (en) 1985-08-31

Family

ID=12070857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59022004A Pending JPS60168236A (en) 1984-02-10 1984-02-10 Microprogram controller

Country Status (1)

Country Link
JP (1) JPS60168236A (en)

Similar Documents

Publication Publication Date Title
US4870562A (en) Microcomputer capable of accessing internal memory at a desired variable access time
EP0447995A2 (en) Analyzing device for saving semiconductor memory failures
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
US4679194A (en) Load double test instruction
JPS60168236A (en) Microprogram controller
JP2588195B2 (en) Pulse input device
JPH02195599A (en) Information processor
US5007056A (en) Processing circuit having an error detecting and correcting circuit therein
JPS6014333A (en) Microprogram controller
JP2901828B2 (en) Semiconductor integrated circuit
JPS5947651A (en) Program controller
JPS6014332A (en) Microprogram controller
JPH10320982A (en) Erasing of flash memory device
JP2000115291A (en) Sequential trigger discrimination circuit
JPH01216443A (en) Debugging circuit
JPH0950384A (en) Microcomputer
JPS61165171A (en) Microcomputer
JPS61269743A (en) Debugging system
JPH04109340A (en) False fault generating circuit
JPH0343830A (en) Block repeating circuit
JPH0338734A (en) Evaluation chip
JPS61269744A (en) Debugging system
JPH03139738A (en) Information processor
JPH0434183B2 (en)
JPH0581052A (en) Microprocessor runaway check circuit