JPS62150434A - Loop control type data processor - Google Patents

Loop control type data processor

Info

Publication number
JPS62150434A
JPS62150434A JP28946985A JP28946985A JPS62150434A JP S62150434 A JPS62150434 A JP S62150434A JP 28946985 A JP28946985 A JP 28946985A JP 28946985 A JP28946985 A JP 28946985A JP S62150434 A JPS62150434 A JP S62150434A
Authority
JP
Japan
Prior art keywords
register
data processing
address
executed
instruction
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.)
Granted
Application number
JP28946985A
Other languages
Japanese (ja)
Other versions
JPH0578856B2 (en
Inventor
Yoshiki Kuwata
桑田 良樹
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.)
Denso Corp
Original Assignee
NipponDenso 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 NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP28946985A priority Critical patent/JPS62150434A/en
Publication of JPS62150434A publication Critical patent/JPS62150434A/en
Publication of JPH0578856B2 publication Critical patent/JPH0578856B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To execute repetitively only the data processing by not reading an address stored with the initializing instruction when the execution of initializing is not required. CONSTITUTION:When power is applied, '1' is set to an RES register 20 and '0' is set to an OEN register 17. When '1' is set to the register 17 succeedingly, a write signal is outputted from an instruction decoder 13 to a RAM 19 and a storage instruction is executed. Thus, data write from an input/output port 21 is enabled to the RAM 19 to execute the data processing. The content of the register 20 is set to the register 23 by a read signal outputted from the decoder 13. When the content is '0', the designated address of the program counter 11 is set to address '0', and initialization is executed. Then the data processing is repetitively executed.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、例えば、θ番地への分岐命令以外には分岐
命令を持たないようなループ制御型のデータ処理装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a loop control type data processing device that does not have any branch instructions other than a branch instruction to address θ, for example.

[背景技術] 例えば、O番地への分岐命令以外には分岐命令を持たな
いループ制御型のデータ処理装置においては、このデー
タ処理装置の状態を一義的に設定するための初期化と、
データ処理動作とが1つのループ制御内で実行されるよ
うになっている。すなわち、いったん初期化が実行され
ると、その後は、データ処理だけが繰返し実行されるよ
うに、初期化の実行を禁止できるように構成されている
[Background Art] For example, in a loop control type data processing device that does not have a branch instruction other than a branch instruction to address O, initialization is performed to uniquely set the state of the data processing device.
Data processing operations are performed within one loop control. That is, once the initialization is executed, the configuration is such that the execution of the initialization can be prohibited so that only data processing is executed repeatedly thereafter.

しかし、このように構成したのでは、初期化を実行しな
い場合においても、初期化命令が記憶されている番地は
、プログラムカウンタによって全て読み出される。この
ため、初期化およびデータ処理が実行されるかどうかに
がかわらず、プログラム−周のループか長くなり、デー
タの処理速度か遅くなる。
However, with this configuration, even when initialization is not executed, all addresses where initialization instructions are stored are read by the program counter. This results in longer program loops and slower data processing, regardless of whether initialization and data processing is performed.

このため、効果的にデータ処理が実行できるループ制御
型のデータ処理装置が要求される。
Therefore, a loop control type data processing device that can effectively perform data processing is required.

[発明か解決しようとする問題点] この発明は、上記のような点に鑑みなされたもので、初
期化が実行された後、すなわち初期化を実行する必要が
ない場合には、初期化命令が記憶されている番地を読み
出さずにデータ処理だけを繰返し実行することができる
ループ制御型のデータ処理装置を提供しようとするもの
である。
[Problem to be solved by the invention] The present invention has been made in view of the above-mentioned points. The present invention aims to provide a loop control type data processing device that can repeatedly execute only data processing without reading the address where the data is stored.

[問題を解決するための手段] すなわち、この発明にあっては、出力許可レジスタに設
定された内容に基づいて0番地への分岐命令の実行を制
御できるようにすると共に、初期化が実行された後に、
上g(3RESレジスタに所定の値を設定して、データ
処理のプログラムが記憶されているθ番地に分岐できる
ようにしたものである。
[Means for Solving the Problem] That is, in the present invention, execution of a branch instruction to address 0 can be controlled based on the contents set in the output permission register, and initialization can be executed. After that,
(3) A predetermined value is set in the RES register so that the program can branch to address θ where the data processing program is stored.

[作用] すなわち、上記のような手段を用いたループ制御型デー
タ処理装置にあっては、初期化が要求される場合におい
てのみ初期化命令が記憶されている番地が呼出され、そ
して初期化が実行された後には、O番地への分岐命令で
、データ処理のプログラムが記憶されている番地が呼出
され、このデータ処理だけが繰返し実行される。
[Operation] That is, in a loop control type data processing device using the above means, the address where the initialization instruction is stored is called only when initialization is requested, and the initialization is performed. After execution, the address where the data processing program is stored is called by a branch instruction to address O, and only this data processing is repeatedly executed.

[発明の実施例] 以下、図面を参照してこの発明の一実施例を説明する。[Embodiments of the invention] Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図はループ制御型のデータ処理装置の構成を示すも
のであって、プログラムカウンタ11は、ROM 12
に記憶された命令を番地指定するものである。番地指定
されたROM12は、その指定された番地に記憶されて
いる命令を命令デコーダ13へ出力する。この命令デコ
ーダ13は、ROM12から出力された命令を解読して
、その命令に対応した信号をアドレスバス14.データ
バス15およびコントロールバス16に出力する。この
コントロールバス1Bに出力される信号は、読出し信号
および書込み信号である。出力許可(OE M)レジス
タ17は、ストア命令の実行を判断するためのものであ
って、このOENレジスタ17の出力は、AND回路1
8の入力の一方に接続されている。このAND回路18
の他の一方の入力は、コントロールバス16に接続され
ている。
FIG. 1 shows the configuration of a loop control type data processing device, in which a program counter 11 is connected to a ROM 12.
It specifies the address of the instruction stored in the . The ROM 12 with the specified address outputs the instruction stored at the specified address to the instruction decoder 13. This instruction decoder 13 decodes the instruction output from the ROM 12 and sends a signal corresponding to the instruction to the address bus 14. Output to data bus 15 and control bus 16. The signals output to this control bus 1B are a read signal and a write signal. The output permission (OE M) register 17 is used to determine the execution of a store instruction, and the output of this OEN register 17 is output to the AND circuit 1.
It is connected to one of the inputs of 8. This AND circuit 18
The other input of is connected to the control bus 16.

このため、コントロールバス16を介してOENレジス
タ17からRA M 19へ出力される書込み信号は、
OENレジスタ17に設定された内容と、命令デコーダ
13から出力された書込み信号との論理積により決定さ
れる。したがって、リセット(RES) レジスタ20
からデータバス15を介してOENレジスタ17に設定
される信号が論理「1」である場合には、RA M 1
9への書込み信号が生成されてストア命令か実行され、
人出力ポート21からRA M 19へのデータの書込
みが可能になる。また、レジスタOE N 17に設定
される信号が論理「0」である場合には、この書込み信
号は生成されずストア命令は実行されなくなる。
Therefore, the write signal output from the OEN register 17 to the RAM 19 via the control bus 16 is
It is determined by the logical product of the contents set in the OEN register 17 and the write signal output from the instruction decoder 13. Therefore, the reset (RES) register 20
If the signal set in the OEN register 17 via the data bus 15 from
A write signal to 9 is generated and a store instruction is executed,
Data can now be written from the human output port 21 to the RAM 19. Further, if the signal set in the register OE N 17 is logic "0", this write signal will not be generated and the store instruction will not be executed.

論理ユニット(LU)22は、命令デコーダから出力さ
れる制御信号に基づいて論理演算を行なうものであって
、その演算結果は、リザルトレジス9 (RR) 23
に格納される。このRRレジスタ23の出力は、論理ユ
ニット22の入力および命令デコーダ13に接続されて
いる。RRレジスタ23から命令デコーダ13に論理「
1」、すなわち再スタート命令が出力されると、プログ
ラムカウンタ11は、命令デコーダ13によってθ番地
に設定されるようになっている。
The logic unit (LU) 22 performs logical operations based on control signals output from the instruction decoder, and the results of the operations are stored in a result register 9 (RR) 23.
is stored in The output of this RR register 23 is connected to the input of the logic unit 22 and the instruction decoder 13. From the RR register 23 to the instruction decoder 13, logic “
1, that is, when a restart instruction is output, the program counter 11 is set to address θ by the instruction decoder 13.

第2図は、上記実施例の動作を説明するフローチャート
であって、まず、電源が投入されると、RESレジスタ
20に「1」が設定され、ステップ101において、そ
の反転RESすなわちrOJがOENレジスタ17に設
定される。次に、ステップ102では、OENレジスタ
に設定された内容が「1」である場合に、命令デコーダ
13からRAM19へ書込み信号が出力され、ストア命
令が実行される。ストア命令が実行されると、入出力ポ
ート21からRA M 19へのデータの書込みが可能
となり、通常のデータ処理が実行される。また、OEM
レジスタ17に設定された内容が「0」である場合には
、RA M 19への書込み信号は出力されず、ストア
命令は実行されない。このため、データ処理は実行され
なくなる。
FIG. 2 is a flowchart explaining the operation of the above embodiment. First, when the power is turned on, "1" is set in the RES register 20, and in step 101, the inverted RES, that is, rOJ, is set in the OEN register. It is set to 17. Next, in step 102, if the content set in the OEN register is "1", a write signal is output from the instruction decoder 13 to the RAM 19, and the store instruction is executed. When the store instruction is executed, data can be written from the input/output port 21 to the RAM 19, and normal data processing is executed. Also, OEM
If the content set in the register 17 is "0", a write signal to the RAM 19 is not output, and the store instruction is not executed. Therefore, data processing is no longer executed.

ステップ103では、命令デコーダ13から出力される
読出し信号によって、RESレジスタ20の内容がRR
レジスタ23に設定され、この設定された内容が「1」
である場合には、次のアドレスの命令、すなわちステッ
プ104へ進む。また、RRレジスタ23に設定された
内容が「0」である場合には、再スタート命令が実行さ
れる。すなわち、プログラムカウンタ11の指定する番
地が0番地に設定されて、ステップ101の動作が実行
される。ステップ104では、RESレジスタ20の内
容がOENレジスタ17に設定される。ステップ105
では、このOENレジスタ17に設定された内容か「1
」であるので初期化が実行される。そして、ステップ1
06において、RESレジスタか「0」に設定され、プ
ログラムカウンタ11の指定する番地が0番地となるの
で、再びステップ101の動作が実行される。
In step 103, the contents of the RES register 20 are changed to RR by the read signal output from the instruction decoder 13.
It is set in register 23, and the set content is "1".
If so, the process advances to the instruction at the next address, ie, step 104. Further, if the content set in the RR register 23 is "0", a restart instruction is executed. That is, the address specified by the program counter 11 is set to address 0, and the operation of step 101 is executed. In step 104, the contents of the RES register 20 are set in the OEN register 17. Step 105
So, what is the content set in this OEN register 17?
”, initialization is executed. And step 1
At step 06, the RES register is set to "0" and the address designated by the program counter 11 becomes address 0, so the operation at step 101 is executed again.

すなわち、ステップ105で、いったん初期化が実行さ
れた後には、ステップ・101からステップ103の動
作すなわちデータ処理が繰返し実行されるようになって
いる。
That is, after initialization is once executed in step 105, the operations from step 101 to step 103, that is, data processing, are repeatedly executed.

[発明の効果] 以上のようにこの発明によれば、RESレジスタに設定
された内容に基づいてO番地への分岐命令の実行を制御
できるようにすると共に、初期化が実行された後に、上
記RESレジスタに所定の値を設定して、データ処理の
プログラムが記憶されている0番地に分岐できるように
した。したがって、初期化を実行する必要が無い場合に
は、初期化の命令が記憶されている番地を呼出さずに、
データ処理だけが繰返し実行できるようになる。
[Effects of the Invention] As described above, according to the present invention, execution of a branch instruction to address O can be controlled based on the contents set in the RES register, and the above-mentioned By setting a predetermined value in the RES register, it is possible to branch to address 0 where the data processing program is stored. Therefore, if there is no need to perform initialization, do not call the address where the initialization instruction is stored.
Only data processing can be executed repeatedly.

このため、従来のデータ処理装置に比べ、データの処理
速度が高速になる。
Therefore, data processing speed is faster than that of conventional data processing devices.

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

第1図はこの発明の一実施例に係るデータ処理装置を説
明する構成図、第2図は上記データ処理装置の動作を示
すフローチャートである。 11・・・プログラムカウンタ、12・・・ROM、1
3・・・命令デコーダ、17・・・OENレジスタ、1
8・・・AND回路、19・・・RAM、20・・・R
ESレジスタ、22・・・論理ユニット、23・・・リ
ザルトレジスタ。 出願人代理人 弁理士 鈴江武彦 第1図
FIG. 1 is a block diagram illustrating a data processing apparatus according to an embodiment of the present invention, and FIG. 2 is a flowchart showing the operation of the data processing apparatus. 11...Program counter, 12...ROM, 1
3...Instruction decoder, 17...OEN register, 1
8...AND circuit, 19...RAM, 20...R
ES register, 22...Logic unit, 23...Result register. Applicant's agent Patent attorney Takehiko Suzue Figure 1

Claims (1)

【特許請求の範囲】 0番地への分岐命令以外には分岐命令を持たないループ
制御型のデータ処理装置において、出力許可レジスタに
設定された内容に基づいてストア命令の実行を許可また
は禁止する書込み制御手段と、 上記出力許可レジスタに設定された内容に基づいて、デ
ータ処理のプログラムが記憶されている0番地への分岐
命令の実行を許可または禁止する再スタート制御手段と
、 上記再スタート制御手段により0番地への分岐が実行さ
れるように、初期化が実行された後に上記出力許可レジ
スタに対して所定の値を設定する再スタート設定手段と
、 を具備することを特徴とするループ制御型データ処理装
置。
[Claims] In a loop control type data processing device that does not have any branch instructions other than a branch instruction to address 0, writing that allows or prohibits the execution of a store instruction based on the contents set in an output permission register. a control means; a restart control means for permitting or prohibiting the execution of a branch instruction to address 0 where a data processing program is stored based on the contents set in the output permission register; and the restart control means. a restart setting means for setting a predetermined value in the output permission register after initialization is executed so that a branch to address 0 is executed by the loop control type, comprising: Data processing equipment.
JP28946985A 1985-12-24 1985-12-24 Loop control type data processor Granted JPS62150434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28946985A JPS62150434A (en) 1985-12-24 1985-12-24 Loop control type data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28946985A JPS62150434A (en) 1985-12-24 1985-12-24 Loop control type data processor

Publications (2)

Publication Number Publication Date
JPS62150434A true JPS62150434A (en) 1987-07-04
JPH0578856B2 JPH0578856B2 (en) 1993-10-29

Family

ID=17743677

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28946985A Granted JPS62150434A (en) 1985-12-24 1985-12-24 Loop control type data processor

Country Status (1)

Country Link
JP (1) JPS62150434A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5647804A (en) * 1979-09-27 1981-04-30 Toshiba Corp Execution control device of sequential controller
JPS56147256A (en) * 1980-04-15 1981-11-16 Casio Comput Co Ltd Program branch system for mini electronic computer
JPS57134704A (en) * 1981-02-13 1982-08-20 Omron Tateisi Electronics Co Programmable logical controller
JPS60110043A (en) * 1983-11-18 1985-06-15 Nec Corp Information processor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5647804A (en) * 1979-09-27 1981-04-30 Toshiba Corp Execution control device of sequential controller
JPS56147256A (en) * 1980-04-15 1981-11-16 Casio Comput Co Ltd Program branch system for mini electronic computer
JPS57134704A (en) * 1981-02-13 1982-08-20 Omron Tateisi Electronics Co Programmable logical controller
JPS60110043A (en) * 1983-11-18 1985-06-15 Nec Corp Information processor

Also Published As

Publication number Publication date
JPH0578856B2 (en) 1993-10-29

Similar Documents

Publication Publication Date Title
JPH0221018B2 (en)
JPH02235156A (en) Information processor
JP2655615B2 (en) Information processing device
US5003468A (en) Guest machine execution control system for virutal machine system
JP2583525B2 (en) Data processing device
US5586336A (en) Microcomputer capable of monitoring internal resources from external
JPS62150434A (en) Loop control type data processor
JPH08171504A (en) Emulation device
JPH056281A (en) Information processor
JPS60193046A (en) Detecting system for instruction exception
JPS6167148A (en) Microcomputer
JP2859048B2 (en) Microcomputer
JP2575025B2 (en) In-circuit emulator
JPH03149621A (en) Microprocessor
JPH01116702A (en) Sequence controller
JP3597744B2 (en) Interrupt factor signal flag register device
JP2903601B2 (en) Microcomputer with built-in ROM
JPH04167146A (en) Address tracing system for information processor
JPH03273349A (en) Access control system
JPS62208127A (en) Microprogram control information processor
JPH03129532A (en) Microsequence circuit
JPS6227423B2 (en)
JPH03164945A (en) Data processor
JPS60105048A (en) Microprogram control system
JPH0561669A (en) Semiconductor calculating device and electronic apparatus

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term