[go: up one dir, main page]

JPH0578856B2 - - Google Patents

Info

Publication number
JPH0578856B2
JPH0578856B2 JP60289469A JP28946985A JPH0578856B2 JP H0578856 B2 JPH0578856 B2 JP H0578856B2 JP 60289469 A JP60289469 A JP 60289469A JP 28946985 A JP28946985 A JP 28946985A JP H0578856 B2 JPH0578856 B2 JP H0578856B2
Authority
JP
Japan
Prior art keywords
register
reset
initialization
data processing
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.)
Expired - Lifetime
Application number
JP60289469A
Other languages
Japanese (ja)
Other versions
JPS62150434A (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)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、例えば、0番地への分岐命令以外
には分岐命令を持たないようなループ制御型のデ
ータ処理装置に関する。
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 0, for example.

[背景技術] 例えば、0番地への分岐命令以外には分岐命令
を持たないループ制御型のデータ処理装置におい
ては、このデータ処理装置の状態を一義的に設定
するための初期化と、データ処理動作とが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 0, initialization to uniquely set the state of this data processing device and data processing are required. The operations are executed within one loop control. In other words, once initialization is executed, only data processing is executed repeatedly.
It is configured so that execution of initialization can be prohibited.

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

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

[発明が解決しようとする問題点] この発明は、上記のような点に鑑みなされたも
ので、初期化が実行された後、すなわち初期化を
実行する必要がない場合には、初期化命令が記憶
されている番地を読み出さずにデータ処理だけを
繰返し実行することができるループ制御型のデー
タ処理装置を提供しようとするものである。
[Problems 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番地への分岐命令以外には分岐命令を持た
ないループ制御型のデータ処理装置において、リ
セツトレジスタを初期化のためのリセツト指令状
態に設定すると共に、前記リセツトレジスタの内
容を反転して出力許可レジスタに設定し、この出
力許可レジスタの内容に基づいてストア命令の処
理の実行の許可もしくは禁止する書き込み制御が
行われるようにする。また前記レジスタリセツト
のリセツト指令状態を判別してこのリセツト指令
状態に設定されたリセツトレジスタの内容を前記
出力許可レジスタに設定して初期化状態を設定
し、この初期化設定に基づいて初期化が実行され
た後に、前記リセツトレジスタの内容を反転する
再スタート命令が設定されて、それ以後は前記再
スタート命令の設定された前記リセツトレジスタ
の内容に対応して前記出力許可レジスタがストア
命令の処理の実行が許可されて0番地へ分岐され
るようにする。
[Means for Solving the Problems] A loop control type data processing device according to the present invention is a loop control type data processing device that does not have a branch instruction other than a branch instruction to address 0, and is capable of initializing a reset register. In addition to setting the reset command state for make it happen. Further, the reset command state of the register reset is determined and the contents of the reset register set in this reset command state are set in the output permission register to set the initialization state, and initialization is performed based on this initialization setting. After execution, a restart instruction is set to invert the contents of the reset register, and thereafter, the output permission register is set to process the store instruction in accordance with the contents of the reset register set by the restart instruction. is allowed to execute and branches to address 0.

[作用] この様に構成されるループ制御型多処理装置に
おいては、電源が投入された状態においてはリセ
ツトレジスタがリセツト指令状態に設定されてい
るもので、この内容を反転して設定された出力許
可レジスタによつてストア命令の実行もしくは禁
止が行われる。そして、前記リセツトレジスタが
リセツト指令状態に設定されていることが判定さ
れたときにおいて初期化処理され、その後リセツ
トレジスタの内容が反転され、以後は0番地への
分岐命令が設定されるようになる。
[Function] In the loop control type multi-processing device configured in this way, the reset register is set to the reset command state when the power is turned on, and the set output is inverted by inverting this content. The permission register executes or prohibits the store instruction. Then, when it is determined that the reset register is set to the reset command state, initialization processing is performed, and the contents of the reset register are then inverted, and from then on, a branch instruction to address 0 is set. .

[発明の実施例] 以下、図面を参照してこの発明の一実施例を説
明する。第1図はループ制御型のデータ処理装置
の構成を示すものであつて、プログラムカウンタ
11は、ROM12に記憶された命令を番地指定
するものである。番地指定されたROM12は、
その指定された番地に記憶されている命令を令名
デコーダ13へ出力する。この命令デコーダ13
は、ROM12から出力された命令を解読して、
その命令に対応した信号をアドレスバス14、デ
ータバス15およびコントロールバス16に出力
する。このコントロールバス16に出力される信
号は、読出し信号および書込み信号である。出力
許可(OEN)レジスタ17は、ストア命令の実
行を判断するためのものであつて、このONEレ
ジスタ17の出力は、 AND回路18の入力の一方に接続されている。
このAND回路18の他の一方の入力は、コント
ロールバス16に接続されている。
[Embodiment of the Invention] An embodiment of the invention will be described below with reference to the drawings. FIG. 1 shows the configuration of a loop control type data processing device, in which a program counter 11 specifies an address of an instruction stored in a ROM 12. The address specified ROM12 is
The command stored at the designated address is output to the command decoder 13. This instruction decoder 13
decodes the instructions output from ROM12,
A signal corresponding to the command is output to address bus 14, data bus 15 and control bus 16. The signals output to this control bus 16 are read signals and write signals. An output enable (OEN) register 17 is used to determine execution of a store instruction, and the output of this ONE register 17 is connected to one of the inputs of an AND circuit 18.
The other input of this AND circuit 18 is connected to the control bus 16.

このため、コントロールバス16を介して
OENレジスタ17からRAM19へ出力される書
込み信号は、OENレジスタ17に設定された内
容と、命令デコーダ13から出力された書込み信
号との論理積により決定される。したがつて、リ
セツト(RES)レジスタ20からデータバス1
5を介してOENレジスタ17に設定される信号
が論理「1」である場合には、RAM19への書
込み信号が生成されてストア命令が実行され、入
出力ポート21からRAM19へのデータの書込
みが可能になる。また、レジスタOEN17に設
定される信号が論理「0」である場合には、この
書込み信号は生成されずストア命令は実行されな
くなる。
Therefore, via the control bus 16
The write signal output from the OEN register 17 to the RAM 19 is determined by the AND of the contents set in the OEN register 17 and the write signal output from the instruction decoder 13. Therefore, from reset (RES) register 20 to data bus 1
When the signal set in the OEN register 17 via the input/output port 21 is logic "1", a write signal to the RAM 19 is generated, a store instruction is executed, and data is written from the input/output port 21 to the RAM 19. It becomes possible. Further, when the signal set in the register OEN17 is logic "0", this write signal is not generated and the store instruction is not executed.

論理ユニツト(LU)22は、命令デコーダか
ら出力される制御信号に基づいて論理演算を行な
うものであつて、その演算結果は、リザルトレジ
スタ(RR)23に格納される。このRRレジス
タ23の出力は、論理ユニツト22の入力および
命令デコーダ13に接続されている。RRレジス
タ23から命令デコーダ13に論理「0」、すな
わち再スタート命令が出力されると、プログラム
カウンタ11は、命令デコーダ13によつて0番
地に設定されるようになつている。
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 (RR) 23. The output of this RR register 23 is connected to the input of the logic unit 22 and to the instruction decoder 13. When a logic "0", that is, a restart command is output from the RR register 23 to the instruction decoder 13, the program counter 11 is set to address 0 by the instruction decoder 13.

第2図は、上記実施例の動作を説明するフロー
チヤートであつて、まず、電源が投入されると、
RESレジスタ20に「1」が設定され、ステツ
プ101において、その反転RESすなわち「0」が
OENレジスタ17に設定される。次に、ステツ
プ102では、OENレジスタに設定された内容が
「1」である場合に、命令デコーダ13から
RAM19へ書込み信号が出力され、ストア命令
が実行される。ストア命令が実行されると、入出
力ポート21からRAM19へのデータの書込み
が可能となり、通常のデータ処理が実行される。
また、OENレジスタ17に設定された内容が
「0」である場合には、RAM19への書込み信
号は出力されず、ストア命令は実行されない。こ
のため、データ処理は実行されなくなる。
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, "0" is set.
Set in OEN register 17. Next, in step 102, if the content set in the OEN register is "1", the instruction decoder 13
A write signal is output to the RAM 19, and a 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.
Furthermore, if the content set in the OEN register 17 is "0", no write signal to the RAM 19 is 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では、このONEレジスタ17に設定された
内容が「1」であるので初期化が実行される。そ
して、ステツプ106において、RESレジスタが
「0」に設定され、プログラムカウンタ11の指
定する番地が0番地となるので、再びステツプ
101の動作が実行される。
In step 103, the RES register 20 is read by the read signal output from the instruction decoder 13.
The content of is set in the RR register 23, and if the set content is "1", the process advances to the instruction at the next address, that is, step 104. Also,
If the content set in the RR register 23 is "0", the 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. In step 105, since the content set in this ONE register 17 is "1", initialization is executed. Then, in step 106, the RES register is set to "0" and the address specified by the program counter 11 becomes address 0, so the process starts again.
101 operations are performed.

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

[発明の効果] 以上のようにこの発明によれば、RESレジス
タに設定された内容に基づいて0番地への分岐命
令の実行を制御できるようにすると共に、初期化
が実行された後に、上記RESレジスタに所定の
値を設定して、データ処理のプログラムが記憶さ
れている0番地に分岐できるようにした。したが
つて、初期化を実行する必要が無い場合には、初
期化の命令が記憶されている番地を呼出さずに、
データ処理だけが繰返し実行できるようになる。
このため、従来のデータ処理装置に比べ、データ
の処理速度が高度になる。
[Effects of the Invention] As described above, according to the present invention, execution of a branch instruction to address 0 can be controlled based on the contents set in the RES register, and after initialization is executed, By setting a predetermined value in the RES register, we made it 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, the data processing speed is higher than that of conventional data processing devices.

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

第1図はこの発明の一実施例に係るデータ処理
装置明する構成図、第2図は上記データ処理装置
の動作を示すフローチヤートである。 11……プログラムカウンタ、12……
ROM、13……命令デコーダ、17……ONEレ
ジスタ、18……AND回路、19……RAM、
20……RESレジスタ、22……論理ユニツト、
23……リザルトレジスタ。
FIG. 1 is a block diagram showing 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, 13...Instruction decoder, 17...ONE register, 18...AND circuit, 19...RAM,
20...RES register, 22...logic unit,
23...Result register.

Claims (1)

【特許請求の範囲】 1 0番地への分岐命令以外には分岐命令を持た
ないループ制御型のデータ処理装置において、 初期状態でリセツトレジスタを初期化のための
リセツト指令状態に設定するリセツトレジスタ設
定手段と、 このリセツトレジスタの内容を反転して設定さ
れる出力許可レジスタと、 この出力許可レジスタの内容に基づいてストア
命令の処理の実行の許可もしくは禁止する書き込
み制御手段と、 前記リセツトレジスタのリセツト指令状態を判
別してこれを前記出力許可レジスタに設定する初
期化設定手段と、 この初期化設定手段に基づいて初期化が実行さ
れた後に、前記リセツトレジスタの内容を反転す
る再スタート命令設定手段とを具備し、 以後前記再スタート命令の設定された前記リセ
ツトレジスタの内容に対応して前記出力許可レジ
スタが反転され、ストア命令の処理の実行が許可
されて0番地へ分岐されるようにしたことを特徴
とするループ制御型データ処理装置。
[Claims] In a loop control type data processing device that has no branch instructions other than a branch instruction to address 1, a reset register setting that sets the reset register to a reset command state for initialization in an initial state. an output permission register set by inverting the contents of the reset register; write control means for permitting or prohibiting the execution of store instruction processing based on the contents of the output permission register; and resetting the reset register. Initialization setting means for determining a command state and setting it in the output permission register; and restart command setting means for inverting the contents of the reset register after initialization is executed based on the initialization setting means. Thereafter, the output permission register is inverted in accordance with the contents of the reset register set by the restart instruction, execution of the store instruction is permitted, and branching is made to address 0. A loop control type data processing device characterized by:
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 JPS62150434A (en) 1987-07-04
JPH0578856B2 true 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
JPS62150434A (en) 1987-07-04

Similar Documents

Publication Publication Date Title
JPH0221018B2 (en)
JPH02235156A (en) Information processor
JPH0578856B2 (en)
JPS62197831A (en) Data processor
JPS629926B2 (en)
KR900007296B1 (en) Microcomputer application controller mounted on vehicle
JP2903601B2 (en) Microcomputer with built-in ROM
JPS60193046A (en) Instruction exception detection method
JPH0473167B2 (en)
KR920009445B1 (en) Multi-unit of memory
JPH059815B2 (en)
KR940011045B1 (en) Interrupt vector addressing method in micro controller unit
SU1124316A1 (en) Microcomputer
JPH04167146A (en) Address tracing system for information processor
JPS61131125A (en) Information processing unit
JPH0481939A (en) Control system for microcomputer
JPS63153637A (en) Data processor
JPH09101898A (en) Information processor
JPS62208127A (en) Microprogram control information processor
JPH02191034A (en) Microprogram controller
JPS6320631A (en) Register selecting system
JPS6326744A (en) Memory bank switching circuit for microprocessor
JPS60126733A (en) Read resetting system of register
JPS6227423B2 (en)
JPS6346540A (en) Starting system for program

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term