JPH0230049B2 - - Google Patents

Info

Publication number
JPH0230049B2
JPH0230049B2 JP57234069A JP23406982A JPH0230049B2 JP H0230049 B2 JPH0230049 B2 JP H0230049B2 JP 57234069 A JP57234069 A JP 57234069A JP 23406982 A JP23406982 A JP 23406982A JP H0230049 B2 JPH0230049 B2 JP H0230049B2
Authority
JP
Japan
Prior art keywords
clock
comparator
scan
register
flop
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 - Lifetime
Application number
JP57234069A
Other languages
Japanese (ja)
Other versions
JPS59125420A (en
Inventor
Shigeru Myajima
Shosuke Hamaoka
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 JP57234069A priority Critical patent/JPS59125420A/en
Publication of JPS59125420A publication Critical patent/JPS59125420A/en
Publication of JPH0230049B2 publication Critical patent/JPH0230049B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4825Interrupt from clock, e.g. time of day

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 本発明は、スキヤン・ループ方式を用いたデー
タ処理装置におけるクロツク・コンパレータ制御
方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a clock comparator control method in a data processing device using a scan loop method.

第1図はクロツク・コンパレータ制御方式の概
要を説明するための図であり、1はTOD時計
(Time OfDay)、2はクロツク・コンパレー
タ・レジスタ、3は比較回路、4はマイクロプロ
グラムのスタートを指令するフリツプ・フロツプ
をそれぞれ示す。
Figure 1 is a diagram for explaining the outline of the clock/comparator control system, where 1 is the TOD clock (Time Of Day), 2 is the clock comparator register, 3 is the comparison circuit, and 4 is the command to start the microprogram. The flip-flops are shown respectively.

クロツク・コンパレータ・レジスタ2には、命
令により任意の値を書き込むことが出来る。比較
回路3は、TOD時計1の値とクロツク・コンパ
レータ・レジスタ2の値を比較する。比較結果は
フリツプ・フロツプ4に書き込まれる。フリツ
プ・フロツプ4がセツトされると、クロツク・コ
ンパレータ割込み処理用のマイクロプログラムが
起動される。
An arbitrary value can be written into the clock comparator register 2 according to an instruction. Comparison circuit 3 compares the value of TOD clock 1 and the value of clock comparator register 2. The comparison result is written to flip-flop 4. Once flip-flop 4 is set, a microprogram for clock comparator interrupt processing is activated.

比較回路3としては、加算器または一致回路を
使用することが出来る。比較回路3を加算器で構
成した場合には、TOD時計1の値がクロツク・
コンパレータ・レジスタ2の値以上のときに論理
「1」を出力するように、加算器を構成すること
が可能である。しかしながら、TOD時計1とク
ロツク・コンパレータ・レジスタ2は各々8バイ
ト長の長さのため、大きな加算器を必要とし、ハ
ードウエアが大きくなると言う欠点がある。
As the comparison circuit 3, an adder or a matching circuit can be used. When comparator circuit 3 is configured with an adder, the value of TOD clock 1 is
It is possible to configure the adder to output a logic "1" when the value of comparator register 2 is greater than or equal to the value of comparator register 2. However, since the TOD clock 1 and the clock comparator register 2 are each 8 bytes long, they require a large adder and have the drawback of increasing the hardware size.

比較回路3を一致回路で構成した場合には、ハ
ードウエア量を少なくすることが出来る。一致回
路を使用した場合には、TOD時計1の値とクロ
ツク・コンパレータ・レジスタ2の値が等しい時
に、一致回路から論理「1」が出力される。
When the comparator circuit 3 is constructed from a matching circuit, the amount of hardware can be reduced. When a match circuit is used, when the value of TOD clock 1 and the value of clock comparator register 2 are equal, a logic "1" is output from the match circuit.

比較回路として一致回路を使用した場合には次
のような問題が生ずる。即ち、CPUの動作を中
止してハードウエアの参照(スキヤン・ループが
動作し、クロツク・コンパレータ・レジスタ2の
内容が一時的に変化する)が行われている最中
に、TOD時計1がクロツク・コンパレータ・レ
ジスタ2の内容を越えてしまう状態が発生して
も、クロツク・コンパレータ割込みが発生しない
と言う問題が生ずる。また、スキヤン中にクロツ
ク・コンパレータ・レジスタ2の内容が変化し、
TOD時計1の値とクロツク・コンパレータ・レ
ジスタ2の値とが一致し、不適切なタイミングで
一致出力を発生すると言う問題を生ずる。
When a matching circuit is used as a comparison circuit, the following problem occurs. In other words, while CPU operation is stopped and hardware reference is being performed (scan loop is operating and the contents of clock comparator register 2 temporarily change), TOD clock 1 is clocked. - Even if a condition occurs in which the contents of comparator register 2 are exceeded, a problem arises in that a clock comparator interrupt is not generated. Also, the contents of clock comparator register 2 change during scanning,
This causes a problem in that the value of TOD clock 1 and the value of clock comparator register 2 match, and a match output is generated at an inappropriate timing.

本発明は、この点に鑑みて創作されたものであ
つて、ハードウエア量を少なくすることが出来る
こと、本来発生すべきクロツク・コンパレータ割
込みがスキヤン処理により消滅すると言う事態を
防止できること、及び誤つてクロツク・コンパレ
ータ割込みが発生すると言う事態を防止できるこ
と等を特徴を持つクロツク・コンパレータ制御方
式を提供することを目的としている。
The present invention was created in view of this point, and has the following advantages: it is possible to reduce the amount of hardware, it is possible to prevent the situation where clock comparator interrupts that should normally occur disappear due to scan processing, and It is an object of the present invention to provide a clock/comparator control system which is characterized in that it can prevent a situation in which a clock/comparator interrupt occurs due to a clock/comparator interrupt.

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

そしてそのため本発明のクロツク・コンパレー
タ制御方式は、 スキヤン・ループ方式を用いるデータ処理装置
におけるクロツク・コンパレータ制御方式であつ
て、 TOD時計と、 所望の値をセツトできるクロツク・コンパレー
タ・レジスタと、 上記TOD時計の内容と上記クロツク・コンパ
レータ・レジスタの内容とを比較する一致回路
と、 スキヤン処理を制御するスキヤン制御回路と、 上記一致回路が一致を出力した時または上記ス
キヤン制御回路が所定の信号を出力した時にセツ
トされるフリツプ・フロツプと、 該フリツプ・フロツプがセツトされている場合
に起動されるクロツク・コンパレータ割込処理手
段と を具備し、 上記スキヤン制御回路は、スキヤン処理が終了
した時に上記フリツプ・フロツプをセツトするた
めの所定の信号を出力するように構成され、 上記クロツク・コンパレータ割込処理手段は、
起動された時に、上記TOD時計の値と上記クロ
ツク・コンパレータ・レジスタの値の大小関係を
中央処理装置内の演算手段を用いて調べ、前者が
後者よりも大きい場合にプログラム状態語の入替
えを行つてクロツク・コンパレータ割込みを実行
するように構成されている ことを特徴とするものである。
Therefore, the clock comparator control method of the present invention is a clock comparator control method in a data processing device using the scan loop method, and comprises: a TOD clock; a clock comparator register capable of setting a desired value; and the TOD described above. a match circuit that compares the contents of the clock with the contents of the clock comparator register; a scan control circuit that controls scan processing; and a scan control circuit that outputs a predetermined signal when the match circuit outputs a match or the scan control circuit outputs a predetermined signal. The scan control circuit includes a flip-flop that is set when the flip-flop is set, and a clock comparator interrupt processing means that is activated when the flip-flop is set.・The clock comparator interrupt processing means is configured to output a predetermined signal for setting the flop.
When it is started, the magnitude relationship between the value of the TOD clock and the value of the clock comparator register is checked using the arithmetic means in the central processing unit, and if the former is greater than the latter, the program state words are swapped. The invention is characterized in that it is configured to execute a clock comparator interrupt.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面を参照しつつ説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

第2図は本発明のクロツク・コンパレータ制御
方式の1実施例を示すブロツク図である。同図に
おいて、1はTOD時計、2はクロツク・コンパ
レータ・レジスタ、3は一致回路、4は一致回路
3の出力またはスキヤン制御回路5の出力により
セツトされマイクロプログラムをスタートさせる
フリツプ・フロツプ、5はスキヤン制御回路、6
は他のレジスタ、7はスキヤン・レジスタをそれ
ぞれ示している。
FIG. 2 is a block diagram showing one embodiment of the clock/comparator control method of the present invention. In the figure, 1 is a TOD clock, 2 is a clock comparator register, 3 is a match circuit, 4 is a flip-flop that is set by the output of the match circuit 3 or the output of the scan control circuit 5 to start the microprogram, and 5 is a flip-flop that starts the microprogram. scan control circuit, 6
7 indicates other registers, and 7 indicates a scan register.

クロツク・コンパレータ・レジスタ2には、任
意の値を書き込むことが出来る。TOD時計1の
値とクロツク・コンパレータ・レジスタ2の値
は、一致回路3に入力される。一致回路3は、
TOD時計1の値とクロツク・コンパレータ・レ
ジスタ2の値が一致した時、論理「1」の信号を
出力する。一致回路3の出力は、OR回路を介し
てフリツプ・フロツプ4に入力される。フリツ
プ・フロツプ4は、論理「1」の信号が入力され
ると、セツトされる。フリツプ・フロツプ4がセ
ツトされると、マイクロプログラム割込みがスタ
ートする。
Any value can be written to clock comparator register 2. The value of TOD clock 1 and the value of clock comparator register 2 are input to matching circuit 3. The matching circuit 3 is
When the value of TOD clock 1 and the value of clock comparator register 2 match, a logic "1" signal is output. The output of the matching circuit 3 is input to a flip-flop 4 via an OR circuit. Flip-flop 4 is set when a logic "1" signal is input. Once flip-flop 4 is set, a microprogram interrupt is started.

スキヤン制御回路5は、スキヤン処理を制御す
るものであり、スキヤン処理が終了すると、論理
「1」の信号を出力する。この論理「1」の信号
は、OR回路を介してフリツプ・フロツプ4に入
力される。また、スキヤン制御回路5は、スキヤ
ン・レジスタ7を制御する。スキヤンアウトの際
にはクロツク・コンパレータ2や他のレジスタ等
が直列接続され、これらレジスタのデータはスキ
ヤン・レジスタ7を介して取り出される。また、
スキヤンインの際にもクロツク・コンパレータ2
や他のレジスタ等が直列接続され、これらレジス
タにスキヤン・レジスタ7を介して所望の値が書
き込まれる。
The scan control circuit 5 controls the scan process, and outputs a logic "1" signal when the scan process is completed. This logic "1" signal is input to the flip-flop 4 via an OR circuit. Further, the scan control circuit 5 controls the scan register 7. At the time of scan-out, the clock comparator 2 and other registers are connected in series, and the data of these registers is taken out via the scan register 7. Also,
Clock comparator 2 is also used during scan-in.
and other registers are connected in series, and desired values are written into these registers via the scan register 7.

TOD時計1の値とクロツク・コンパレータ・
レジスタ2の値が等しくなると、フリツプ・フロ
ツプ4がセツトされる。フリツプ・フロツプ4が
セツトされた時にCPUが動作中であれば、直ち
にクロツク・コンパレータ割込み処理が開始され
る。しかし、フリツプ・フロツプ4がセツトされ
た時にスキヤン中でありCPUが停止状態であれ
ば、スキヤン終了してCPUが動作状態になつた
時にクロツク・コンパレータ割込み処理が開始さ
れる。
TOD clock 1 value and clock comparator
When the values in register 2 are equal, flip-flop 4 is set. If the CPU is operating when flip-flop 4 is set, clock comparator interrupt processing is immediately initiated. However, if scanning is in progress when the flip-flop 4 is set and the CPU is in a stopped state, clock comparator interrupt processing is started when scanning is completed and the CPU is in an operating state.

第3図はクロツク・コンパレータ割込み処理を
行うマイクロプログラムを示すフローチヤートで
ある。
FIG. 3 is a flowchart showing a microprogram for processing clock comparator interrupts.

クロツク・コンパレータ・レジスタ2の内容
を読み取り、Aレジスタ(図示せず)にセツト
する。
The contents of clock comparator register 2 are read and set in the A register (not shown).

TOD時計1の内容を読み取り、Bレジスタ
(図示せず)にセツトする。フリツプ・フロツ
プ4をリセツトする。
Read the contents of TOD clock 1 and set it in the B register (not shown). Reset flip-flop 4.

Aレジスタ、Bレジスタの内容を加算器(図
示せず)に入力する。
The contents of the A register and B register are input to an adder (not shown).

A−B<0か否かを調べる。Yesのときは
処理を行い、Noのときはの処理を行う。
Check whether A-B<0. If Yes, perform the process; if No, perform the process.

クロツク・コンパレータ割込みを起こして
PSWの入れ替えなどを行う。
Causes clock comparator interrupt
Perform PSW replacement, etc.

リターンして、次の命令、その他の割込みを
行う。
Return and perform the next instruction or other interrupts.

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

以上の説明から明らかなように、スキヤン・ル
ープ方式のデータ処理装置におけるクロツク・コ
ンパレータ制御方式において、比較回路として加
算器を使用した場合にはハードウエアが大きくな
るが、本発明では比較回路として一致回路を使用
しているので、比較回路として加算器を使用した
場合に比べてハードウエア量を少なくすることが
出来る。また、スキヤン・ループ方式のデータ処
理装置におけるクロツク・コンパレータ制御方式
において、比較回路として一致回路を使用した場
合には、本来発生すべきクロツク・コンパレータ
割込みが消滅したり、本来発生すべきでないクロ
ツク・コンパレータ割込みが誤つて発生する可能
性があるが、本発明によれば、このような事態の
発生を防止することが出来る。
As is clear from the above explanation, when an adder is used as a comparison circuit in the clock/comparator control method of a scan loop type data processing device, the hardware becomes large. Since a circuit is used, the amount of hardware can be reduced compared to the case where an adder is used as a comparison circuit. Furthermore, in the clock comparator control method of a scan loop data processing device, when a coincidence circuit is used as a comparison circuit, clock comparator interrupts that should have occurred may disappear, or clock comparator interrupts that should not have occurred may disappear. Although there is a possibility that a comparator interrupt may occur erroneously, according to the present invention, such a situation can be prevented from occurring.

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

第1図はクロツク・コンパレータ制御方式の概
要を説明する図、第2図は本発明のクロツク・コ
ンパレータ制御方式の1実施例を示すブロツク
図、第3図は本発明で使用されるクロツク・コン
パレータ割込み処理を行うマイクロプログラムを
示すフローチヤートである。 1……TOD時計、2……クロツク・コンパレ
ータ・レジスタ、3……一致回路などで構成され
る比較回路、4……フリツプ・フロツプ、5……
スキヤン制御回路、6……他のレジスタ。
FIG. 1 is a diagram explaining the outline of the clock comparator control method, FIG. 2 is a block diagram showing one embodiment of the clock comparator control method of the present invention, and FIG. 3 is a diagram showing the clock comparator used in the present invention. 3 is a flowchart showing a microprogram that performs interrupt processing. 1...TOD clock, 2...Clock comparator register, 3...Comparison circuit composed of a matching circuit, etc., 4...Flip-flop, 5...
Scan control circuit, 6...other registers.

Claims (1)

【特許請求の範囲】 1 スキヤン・ループ方式を用いるデータ処理装
置におけるクロツク・コンパレータ制御方式であ
つて、 TOD時計と、 所望の値をセツトできるクロツク・コンパレー
タ・レジスタと、 上記TOD時計の内容と上記クロツク・コンパ
レータ・レジスタの内容とを比較する一致回路
と、 スキヤン処理を制御するスキヤン制御回路と、 上記一致回路が一致を出力した時または上記ス
キヤン制御回路が所定の信号を出力した時にセツ
トされるフリツプ・フロツプと、 該フリツプ・フロツプがセツトされている場合
に起動されるクロツク・コンパレータ割込処理手
段と を具備し、 上記スキヤン制御回路は、スキヤン処理が終了
した時に上記フリツプ・フロツプをセツトするた
めの所定の信号を出力するように構成され、 上記クロツク・コンパレータ割込処理手段は、
起動された時に、上記TOD時計の値と上記クロ
ツク・コンパレータ・レジスタの値の大小関係を
中央処理装置内の演算手段を用いて調べ、前者が
後者よりも大きい場合にプログラム状態語の入替
えを行つてクロツク・コンパレータ割込みを実行
するように構成されている ことを特徴とするクロツク・コンパレータ制御方
式。
[Scope of Claims] 1. A clock comparator control method in a data processing device using a scan loop method, comprising: a TOD clock; a clock comparator register capable of setting a desired value; and the contents of the TOD clock and the above. A match circuit that compares the contents of the clock comparator register, a scan control circuit that controls scan processing, and is set when the match circuit outputs a match or when the scan control circuit outputs a predetermined signal. The scan control circuit includes a flip-flop and a clock comparator interrupt processing means that is activated when the flip-flop is set, and the scan control circuit sets the flip-flop when the scan process is completed. The clock comparator interrupt processing means is configured to output a predetermined signal for
When it is started, the magnitude relationship between the value of the TOD clock and the value of the clock comparator register is checked using the arithmetic means in the central processing unit, and if the former is greater than the latter, the program state words are swapped. A clock/comparator control method, wherein the clock/comparator is configured to execute a clock/comparator interrupt.
JP57234069A 1982-12-30 1982-12-30 Clock comparator control system Granted JPS59125420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57234069A JPS59125420A (en) 1982-12-30 1982-12-30 Clock comparator control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57234069A JPS59125420A (en) 1982-12-30 1982-12-30 Clock comparator control system

Publications (2)

Publication Number Publication Date
JPS59125420A JPS59125420A (en) 1984-07-19
JPH0230049B2 true JPH0230049B2 (en) 1990-07-04

Family

ID=16965099

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57234069A Granted JPS59125420A (en) 1982-12-30 1982-12-30 Clock comparator control system

Country Status (1)

Country Link
JP (1) JPS59125420A (en)

Also Published As

Publication number Publication date
JPS59125420A (en) 1984-07-19

Similar Documents

Publication Publication Date Title
EP0316904A2 (en) Arithmetic processor performing mask and trap operations for exceptions
JPS63279328A (en) Control system for guest execution of virtual computer system
JPH0230049B2 (en)
JPH01246602A (en) Special function unit for programmable controller
JPS5916054A (en) Microprocessor
JPH0573296A (en) Microcomputer
JPS61241843A (en) Information processor
JPS607540A (en) Interruption control circuit
JPH0465407B2 (en)
EP0454096B1 (en) Interrupt control circuit and microcomputer system comprising the same
JP3001526B1 (en) Interrupt processing circuit and interrupt debugging method
JPH0553831A (en) Computer unit with interrupting function
JPS633328B2 (en)
JP3168663B2 (en) Information processing device
JPH02264340A (en) Microprocessor
JP2591211B2 (en) High-speed interrupt processing device
JPS5998256A (en) Interruption controller
JPS63732A (en) Control system for interruption factor register
JPH087692B2 (en) Timer control method in virtual machine system
JPH03156647A (en) Watchdog timer
JPH05250161A (en) Microcomputer device
JPH01184545A (en) Microprocessor
JPH04270441A (en) Data processor
JPH03255528A (en) Microprogram controller
JPS6254343A (en) Data processor