JPH0454531A - Program reading circuit - Google Patents

Program reading circuit

Info

Publication number
JPH0454531A
JPH0454531A JP2162874A JP16287490A JPH0454531A JP H0454531 A JPH0454531 A JP H0454531A JP 2162874 A JP2162874 A JP 2162874A JP 16287490 A JP16287490 A JP 16287490A JP H0454531 A JPH0454531 A JP H0454531A
Authority
JP
Japan
Prior art keywords
program
instruction
jump
address
read
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
JP2162874A
Other languages
Japanese (ja)
Inventor
Kazuhiko Sato
和彦 佐藤
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2162874A priority Critical patent/JPH0454531A/en
Publication of JPH0454531A publication Critical patent/JPH0454531A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野1 本発明は、プログラムメモリの読出しアドレスを発生す
るプログラム読出し回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application 1] The present invention relates to a program read circuit that generates a read address for a program memory.

[従来の技術] 従来、プログラマブルコントローラは、制御対象機器か
ら送信の多数の接点のオン/オフレベルを示す各信号を
データメモリに記憶した後、これら接点信号のオン/オ
フレベルに基き、シーケンス演算を行う。このシーケン
ス演算の結果は制御対象機器の接点のオンオフレベルを
指示する接点信号として上記データメモリに格納された
後、制御対象機器に送信される。
[Prior Art] Conventionally, a programmable controller stores in a data memory each signal indicating the on/off level of a large number of contacts transmitted from a device to be controlled, and then performs sequence calculation based on the on/off level of these contact signals. I do. The result of this sequence calculation is stored in the data memory as a contact signal indicating the on/off level of the contact of the device to be controlled, and then transmitted to the device to be controlled.

上記シーケンス演算の内容を規定したシーケンスプログ
ラムはシーケンス命令単位で実行順にプログラムメモリ
に予め格納され、演算の実行時にプログラムカウンタの
アドレス指定により演算対象のシーケンス命令がプログ
ラムメモリから連続的に読出される。
A sequence program that defines the contents of the sequence operation is stored in advance in a program memory in the order of execution in units of sequence instructions, and when an operation is executed, the sequence instructions to be operated are successively read out from the program memory by addressing the program counter.

シーケンス命令の中には特定の接点信号のレベルが規定
レベル、たとえば、オンである場合には、プログラム命
令を数ステップ飛び越しくジャンプ)しなければならな
い命令(応用命令と呼ばれる)がある。
Among the sequence instructions, there are instructions (referred to as application instructions) that require a program instruction to be skipped over several steps if the level of a specific contact signal is at a specified level, for example, on.

このような場合、従来回路では、プログラムメモリの読
出しを中断し、プログラムカウンタを空回しすることに
より、ジャンプ先の読出しアドレスを設定していた。こ
のため従来回路では空回しの時間だけシーケンス演算を
待機しなければならず、演算処理時間の短縮化の障害に
なっていた。
In such a case, in the conventional circuit, the reading address of the jump destination is set by interrupting the reading of the program memory and idling the program counter. For this reason, in the conventional circuit, sequence calculations had to wait for the idle time, which was an obstacle to shortening the calculation processing time.

このため、本願出願人はプログラムカウンタの初期設定
値をジャンプ先の読出しアドレスに設定することにより
、上記空回し処理を行う必要のないプログラム読出し回
路を提案している。
For this reason, the applicant of the present application has proposed a program reading circuit that eliminates the need to perform the above-mentioned idle processing by setting the initial setting value of the program counter to the jump destination reading address.

[発明が解決しようとする課題j しかしながら、この提案においては、リセット信号によ
り従来一般的に用いられている、初期設定値が固定のプ
ログラムカウンタを用いることはできないので、システ
ム起動のようなシーケンス演算の開始時にはその都度、
複数ビットの初期設定値をプログラムカウンタに入力し
て設定しなければならないという点において、なお、改
良の余地があった。
[Problem to be Solved by the Invention] However, in this proposal, it is not possible to use a program counter with a fixed initial setting value, which is commonly used in the past, due to the reset signal, so sequence calculations such as system startup At the beginning of each
There is still room for improvement in that the initial setting values of multiple bits must be input and set in the program counter.

そこで、本発明の目的は、上述の点に鑑みて、初期設定
値を固定化したプログラムカウンタを用いても、空回し
処理を行うことな(読出しアドレスのジャンプ処理が可
能なプログラム読出し回路を提供することにある。
SUMMARY OF THE INVENTION In view of the above-mentioned points, an object of the present invention is to provide a program reading circuit that can perform read address jump processing without performing idle processing even when using a program counter with a fixed initial setting value. It's about doing.

[課題を解決するための手段1 このような目的を達成するために、本発明は、演算の対
象のプログラム命令をプログラムメモリから順次にアド
レス指定により読出すプログラム読出し回路であって、
前記プログラムメモリの読出し開始位置を初期設定値と
なし、前記演算の実行毎に計数値を数値“1”ずつ連続
的に更新する計数手段と、前記プログラム命令の中のジ
ャンプ命令についてはアドレスジャンプ数を当該ジャン
プ命令の中に予め記載し、前記プログラムメモリから読
出されたプログラム命令が前記ジャンプ命令であること
を検出するジャンプ検出手段と、該ジャンプ命令検出手
段により前記ジャンプ命令が検出されたときは当該ジャ
ンプ命令の示すアドレスジャンプ数を累積的に加算する
第1加算手段と、前記計数手段の計数結果および前記第
1加算手段の累積結果を加算し、当該加算結果を前記プ
ログラムメモリに対する読出しアドレスとして出力する
第2加算手段とを具えたことを特徴とする。
[Means for Solving the Problems 1] In order to achieve such an object, the present invention provides a program reading circuit that sequentially reads out program instructions to be operated on from a program memory by addressing,
a counting means that takes the reading start position of the program memory as an initial setting value and continuously updates a count value by "1" each time the operation is executed; and an address jump number for a jump instruction among the program instructions; is written in the jump instruction in advance and detects that the program instruction read from the program memory is the jump instruction; and when the jump instruction is detected by the jump instruction detection means; a first addition means for cumulatively adding the number of address jumps indicated by the jump instruction; a count result of the counting means and a cumulative result of the first addition means; and the addition result is used as a read address for the program memory. and a second addition means for outputting the output.

[作 用] 本発明では、あるアドレスから複数回のジャンプ処理を
行うと、以後、連続的に更新される読出しアドレスはジ
ャンプ処理を行なわないで連続的に更新した読出しアド
レスと常にアドレスジャンプ数だけ一定の差を持つこと
に着目し、本発明では計数手段の計数結果として得られ
る、ジャンプ処理を全く行なわない場合のアドレス順序
を基準としてジャンプ処理を検出する毎に読出しアドレ
スを第1加算手段および第2加算手段により作成する。
[Function] In the present invention, when jump processing is performed multiple times from a certain address, the read address that is continuously updated thereafter is always equal to the number of address jumps from the read address that is continuously updated without performing jump processing. Focusing on the fact that there is a certain difference, in the present invention, each time a jump process is detected, the read address is added to the first adder and It is created by the second addition means.

[実施例1 以下、図面を参照して本発明の実施例を詳細に説明する
[Embodiment 1] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図に本発明を適用したプログラムコントローラの演
算部の回路構成を示す。
FIG. 1 shows a circuit configuration of a calculation section of a program controller to which the present invention is applied.

第1図において、本回路はプログラムメモリ1、データ
メモリ2、ビットシーケンス演算器3により構成される
In FIG. 1, this circuit is comprised of a program memory 1, a data memory 2, and a bit sequence calculator 3.

ビットシーケンス処理は、プログラムカウンタ5よりプ
ログラムメモリ1に対し読出しアドレスを出力し、プロ
グラムメモリ1から読出したシーケンス命令を命令レジ
スタ4にラッチする。命令レジスタ4は命令の処理内容
をシーケンス演算器3内の各処理ブロックに伝えるが、
命令が接点情報の演算の場合、命令レジスタ4はデータ
メモリ2に対し読出しアドレスを出力し、データメモリ
2から格納のデータを読み出す。
In the bit sequence processing, the program counter 5 outputs a read address to the program memory 1, and the sequence command read from the program memory 1 is latched into the instruction register 4. The instruction register 4 conveys the processing contents of the instruction to each processing block in the sequence calculator 3.
When the instruction is to calculate contact information, the instruction register 4 outputs a read address to the data memory 2 and reads the stored data from the data memory 2.

読み出したデータ中の必要なビット情報をマルチプレク
サ11により抽出しビット演算器1oで演算を行い、そ
の結果を演算レジスタ9に格納する。
Necessary bit information in the read data is extracted by the multiplexer 11, arithmetic is performed by the bit arithmetic unit 1o, and the result is stored in the arithmetic register 9.

一方、プログラムメモリ1がら読出しの命令がデータ出
力を指示するコイル命令の場合、命令レジスタ4はデー
タメモリ2に対し出力対象のデータの読出しアドレスを
出力し、データをデータメモリ2から読出す。コイル命
令処理回路12は、さらに読み出したデータ中の、コイ
ル命令処理回路において必要なビットのみをビット演算
レジスタ9のデータと入れ換えて、再びデータメモリ中
の出力データ領域に書込む。
On the other hand, if the instruction to read from the program memory 1 is a coil instruction that instructs data output, the instruction register 4 outputs the read address of the data to be output to the data memory 2, and reads the data from the data memory 2. The coil instruction processing circuit 12 further replaces only the bits necessary for the coil instruction processing circuit in the read data with the data in the bit operation register 9, and writes the data into the output data area in the data memory again.

プログラムカウンタ5は第2図に示すように、カウンタ
6、第1加算器7.第2加算器8.アンド回路6−2.
7−1およびオア回路6−1から構成される。カウンタ
6(計数手段)は第2加算器(第2加算手段)8からプ
ログラムメモリ1に出力される、読出しアドレスの出力
回数を計数するためのものであり、読出しアドレス複数
ビットのオア出力により作成されたクロックをシーケン
ス演算用の同期クロックに同期して入力する。
As shown in FIG. 2, the program counter 5 includes a counter 6, a first adder 7. Second adder8. AND circuit 6-2.
7-1 and an OR circuit 6-1. The counter 6 (counting means) is for counting the number of times the read address is output from the second adder (second addition means) 8 to the program memory 1, and is created by OR output of multiple bits of the read address. The clock is input in synchronization with the synchronous clock for sequence calculation.

第1加算器(第1加算手段)7は命令レジスタ4からア
ドレスジャンプ数が出力される毎にその数値を累積加算
する。
The first adder (first addition means) 7 cumulatively adds the address jump number each time the address jump number is output from the instruction register 4.

第2加算器(第2加算手段)8はカウンタ6の計数値と
第1加算器7の累積結果を加算し、その加算結果をプロ
グラムメモリ1に対する読出しアドレスとして出力する
A second adder (second addition means) 8 adds the count value of the counter 6 and the cumulative result of the first adder 7, and outputs the addition result as a read address to the program memory 1.

アンド回路7−1は演算レジスタ9からオンのジャンプ
指示信号が入力されたとき、命令レジスタ4から出力の
アドレスジャンプ数を第1加算器7に出力する。
The AND circuit 7-1 outputs the address jump number output from the instruction register 4 to the first adder 7 when the ON jump instruction signal is input from the operation register 9.

本実施例に用いるシーケンス命令のフォーマットを第3
図に示す。
The format of the sequence instruction used in this example is
As shown in the figure.

第3図において、シーケンス命令の中の応用命令は応用
命令を示す識別命令コード領域13.ジャンプの有無を
示すビット領域14.ジャンプの条件を示すビット領域
15.ジャンプ有りの場合のアドレスジャンプ数領域1
6.データメモリ中のビット情報のアドレス領域17に
分割され、各領域にそれぞれ所定の情報が格納される。
In FIG. 3, an application instruction in a sequence instruction is an identification instruction code area 13. Bit area 14 indicating whether there is a jump. Bit area 15 indicating jump conditions. Address jump number area 1 with jump
6. The bit information in the data memory is divided into address areas 17, and predetermined information is stored in each area.

次に、第1図の回路における本発明に関わる動作を説明
する。
Next, the operation related to the present invention in the circuit shown in FIG. 1 will be explained.

なお、第4図に示すようにプログラムメモリ1のアドレ
ス“3”に条件付きジャンプ命令を含む応用命令が格納
されているものとする。
As shown in FIG. 4, it is assumed that an application instruction including a conditional jump instruction is stored at address "3" of the program memory 1.

第1図において、システム起動時において、不図示のリ
セット信号発生回路により発生されたリセット信号によ
り各回路が動作可能状態となる。
In FIG. 1, when the system is started up, each circuit becomes operable by a reset signal generated by a reset signal generation circuit (not shown).

このとき、第2図のカウンタ6および第1加算器7は初
期値“1”、“O”に設定されるので第2加算器8の加
算結果は“1”となり、プログラムカウンタ5からは読
出しアドレス“1”がプログラムメモリに出力される。
At this time, the counter 6 and the first adder 7 in FIG. Address "1" is output to the program memory.

この結果、アドレス“1”に格納されたシーケンス命令
が命令レジスタ4に出力される。
As a result, the sequence instruction stored at address "1" is output to the instruction register 4.

このシーケンス命令は通常命令であるので命令レジスタ
4からはアドレスジャンプ数を示すデータは出力されな
い(アドレスジャンプ数“0”を出力)。
Since this sequence instruction is a normal instruction, data indicating the number of address jumps is not output from the instruction register 4 (the number of address jumps "0" is output).

この通常命令によりデータメモリ2から演算対象の演算
データが読出され、上述のようにビット演算器IOによ
りシーケンス演算が行なわれる。また、ビット演算器l
Oも応用命令の実行ではないので、演算レジスタ9にジ
ャンプ指示信号を出力せず、演算レジスタ9のプログラ
ムカウンタ5に対するジャンプ指示信号はオフレベルを
保持する。
In response to this normal instruction, the operation data to be operated on is read from the data memory 2, and the bit operation unit IO performs a sequence operation as described above. In addition, the bit operator l
Since O is also not an execution of an application instruction, no jump instruction signal is output to the arithmetic register 9, and the jump instruction signal for the program counter 5 of the arithmetic register 9 is held at the off level.

一方、第2図のプログラムカウンタではビット演算器l
Oのシーケンス演算が行なわれている間アドレス“1”
を保持しているが、次のステップの演算タイミングを指
示する同期クロックが入力されたときに、オア回路6−
1.アンド回路6−2を介して読出しアドレスおよび同
期クロックから作られたクロック信号がカウンタ6に入
力され、カウンタ6の計数値は“1”から“2”に更新
される。
On the other hand, in the program counter shown in FIG.
Address “1” while O sequence operation is being performed.
However, when a synchronous clock indicating the calculation timing of the next step is input, the OR circuit 6-
1. A clock signal generated from the read address and the synchronization clock is input to the counter 6 via the AND circuit 6-2, and the count value of the counter 6 is updated from "1" to "2".

第1加算器7へはアドレスジャンプ数として“0”が入
力されているので第1加算器7の出力は°゛0”であり
、その結果、第2加算器8の加算結果は“2”+“0”
=“2”となり、プログラムメモリ1に対する読出しア
ドレスが“1”から“2”に更新される。
Since “0” is input as the address jump number to the first adder 7, the output of the first adder 7 is °゛0”, and as a result, the addition result of the second adder 8 is “2”. +“0”
= "2", and the read address for the program memory 1 is updated from "1" to "2".

したがって、プログラムメモリ1のアドレス“2”から
演算対象のシーケンス命令が読出される。
Therefore, the sequence instruction to be operated on is read from address "2" of program memory 1.

以下、同様の手順で次の同期クロックでカウンタ6が“
3”を計数すると、プログラムメモリ1から応用命令(
第4図参照)が読出される。
Thereafter, following the same procedure, counter 6 will be set to “
3”, the application instruction (
(see FIG. 4) is read out.

この応用命令が第1図の命令レジスタ4に格納されると
、応用命令の中の条件付きのジャンプ有り情報(第3図
参照)によりアドレスジャンプ数がプログラムカウンタ
5に送出される。このとき、命令レジスタがジャンプ命
令検出手段として動作する。
When this application instruction is stored in the instruction register 4 of FIG. 1, the number of address jumps is sent to the program counter 5 based on the conditional jump presence information (see FIG. 3) in the application instruction. At this time, the instruction register operates as jump instruction detection means.

また、データメモリ2から読出した判別対象のデータ(
接点情報)がオン/オフいずれかのジャンプ条件に合致
しているか否かの判定がビット演算器lOにおいて行な
われる。
In addition, the data to be determined read from the data memory 2 (
A determination is made in the bit arithmetic unit IO as to whether the contact information (contact information) satisfies any of the on/off jump conditions.

この判定結果がジャンプせよの場合、この判定結果を示
す、たとえばオン信号が演算レジスタ9を介してプログ
ラムカウンタ5に送出される。
If the result of this determination is to jump, for example, an on signal indicating the result of this determination is sent to the program counter 5 via the arithmetic register 9.

このオン信号により第2図のプログラムカウンタ5では
アンド回路7−1のゲートが開き、命令レジスタ4から
保持出力されているジャンプ数“3”が第1加算器7に
入力される。第1加算器7は現在の累積結果“O”と入
力の“3”の加算を行い加算結果“3”を第2加算器8
に出力する。
This ON signal opens the gate of the AND circuit 7-1 in the program counter 5 of FIG. The first adder 7 adds the current cumulative result "O" and the input "3" and transfers the addition result "3" to the second adder 8.
Output to.

第2加算器8は現在のカウンタ6の計数値“3”と第1
加算器7の累積値“3”を加算し、その加算結果“6”
を次の同期クロックでプログラムメモリ11に出力する
。このため、プログラムカウンタ5は従来のように空回
しを行うことな(,1クロツクでジャンプ先のアドレス
設定を実行することができる。
The second adder 8 adds the current count value "3" of the counter 6 to the first adder 8.
The cumulative value “3” of adder 7 is added, and the addition result is “6”
is output to the program memory 11 at the next synchronous clock. Therefore, the program counter 5 can set the jump destination address in one clock cycle without running idly as in the conventional case.

また、応用命令のジャンプ条件の判定結果がジャンプ無
しの場合、第1図の演算レジスタ9からはオフ信号が出
力されるので、第2図のアンド回路7−1のゲートは開
かず、したがって、第1加算器7の累積結果は“0”の
ままである。このため、第2加算器8の加算結果は“3
”を保持する。次に、カウンタ6の計数値が“3”から
“4”に更新されたときに、第2加算器8の出力も“3
”から“4”に更新される。このように、アドレスのジ
ャンプをしない場合は第4図に示すように応用命令に付
属するシーケンス命令が順次に読出される。
Further, if the judgment result of the jump condition of the application instruction is no jump, an off signal is output from the arithmetic register 9 in FIG. 1, so the gate of the AND circuit 7-1 in FIG. 2 does not open, and therefore, The cumulative result of the first adder 7 remains "0". Therefore, the addition result of the second adder 8 is “3”.
" is held. Next, when the count value of the counter 6 is updated from "3" to "4", the output of the second adder 8 is also "3".
" is updated to "4". In this way, when the address is not jumped, the sequence instructions attached to the application instructions are sequentially read out as shown in FIG.

このようにしてシーケンス命令をプログラムメモリ1か
ら読出し、第2番目の応用命令により、たとえば4ステ
ツプだけアドレスをジャンプする場合、第1カウンタ7
は現在の累積値“3”に“4”を加算して累積値を“7
”に更新する。
In this way, if the sequence instruction is read from the program memory 1 and the address is to be jumped by, for example, 4 steps by the second application instruction, the first counter 7
adds “4” to the current cumulative value “3” to make the cumulative value “7”
”.

第2加算器8ではカウンタ6の計数値に累積値“7”を
加算することにより、プログラムメモリ1に対する飛び
越し先の読出しアドレスを作成する。
The second adder 8 adds the cumulative value "7" to the count value of the counter 6 to create a read address for the program memory 1 to be skipped.

以上、説明したように、複数回のアドレスのジャンプ処
理を行う場合でも、その都度アドレス処理は1クロツタ
で処理することができる。また、カウンタ6は計数を中
断することなく、連続的に行うことができる。
As described above, even when address jump processing is performed multiple times, the address processing can be performed in one step each time. Further, the counter 6 can perform counting continuously without interrupting counting.

なお、本実施例では第1図においてプログラムメモリ1
やデータメモリ2に対するリードライト信号やその他制
御信号の信号系を省略しているが、アドレス信号のタイ
ミングに対応させればよい。
In this embodiment, the program memory 1 in FIG.
Although the signal system of read/write signals for the data memory 2 and other control signals is omitted, it is sufficient to correspond to the timing of the address signal.

本実施例の他、次の例が挙げられる。In addition to this embodiment, the following examples are given.

l)  本実施例では応用命令についてのジャンプ処理
を説明したが、単にジャンプ処理を行う場合、たとえば
サブルーチンプログラムやループ処理へ移行するための
ジャンプ処理においても、本発明を適用可能なことは言
うまでもない。
l) Although jump processing for application instructions has been described in this embodiment, it goes without saying that the present invention can also be applied to simple jump processing, such as jump processing for transitioning to a subroutine program or loop processing. .

なお、ジャンプ先のアドレスが現在のアドレスよりも小
さいアドレスジャンプ数る場合は、アドレスジャンプ数
は負の値を用いることになる。
Note that if the jump destination address has a smaller address jump number than the current address, a negative value will be used for the address jump number.

2)  本実施例では命令レジスタによりジャンプ命令
(応用命令)を検出したが、デコーダなどのコード識別
回路を用いることも可能である。
2) In this embodiment, a jump instruction (applied instruction) is detected using an instruction register, but it is also possible to use a code identification circuit such as a decoder.

[発明の効果1 以上、説明したように本発明によれば、初期値固定の計
数手段(カウンタ)を用いても1演算クロツクでジャン
プ処理が可能となるので、ジャンプアドレス数の合計ク
ロック分従来回路よりも演算時間が短縮化される。また
、固定初期値の計数手段を用いることにより、電源起動
のような初期処理に1ビツトのリセット信号のみを用い
ることができ、回路が簡素化されるという効果が得られ
る。
[Effect of the Invention 1] As explained above, according to the present invention, jump processing is possible with one operation clock even if a counting means (counter) with a fixed initial value is used. The calculation time is shorter than that of a circuit. Further, by using a counting means with a fixed initial value, only a 1-bit reset signal can be used for initial processing such as power-on, and the circuit can be simplified.

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

第1図は本発明実施例の回路構成を示すブロック図、 第2図は第1図のプログラムカウンタ5の回路構成を示
すブロック図、 第3図は本発明実施例の応用命令のフォーマットを示す
説明図、 第4図は本発明実施例のプログラム命令の配列順を示す
説明図である。 1・・・プログラムメモリ、 2・・・データメモリ、 3・・・ピットシーケンス演算器、 4・・・命令レジスタ、 5・・・プログラムカウンタ、 6・・・カウンタ、 6−1・・・オア回路、 6−2.7−1・・・アンド回路、 7・・・第1加算器、 8・・・第2加算器、 9・・・演算レジスタ、 lO・・・ビット演算器、 II・・・マルチプレクサ。
FIG. 1 is a block diagram showing the circuit configuration of the embodiment of the present invention. FIG. 2 is a block diagram showing the circuit configuration of the program counter 5 in FIG. Explanatory Diagram FIG. 4 is an explanatory diagram showing the arrangement order of program instructions in the embodiment of the present invention. DESCRIPTION OF SYMBOLS 1...Program memory, 2...Data memory, 3...Pit sequence arithmetic unit, 4...Instruction register, 5...Program counter, 6...Counter, 6-1...OR Circuit, 6-2.7-1...AND circuit, 7...First adder, 8...Second adder, 9...Arithmetic register, lO...Bit arithmetic unit, II. ...Multiplexer.

Claims (1)

【特許請求の範囲】 1)演算の対象のプログラム命令をプログラムメモリか
ら順次にアドレス指定により読出すプログラム読出し回
路であって、 前記プログラムメモリの読出し開始位置を初期設定値と
なし、前記演算の実行毎に計数値を数値“1”ずつ連続
的に更新する計数手段と、 前記プログラム命令の中のジャンプ命令についてはアド
レスジャンプ数を当該ジャンプ命令の中に予め記載し、
前記プログラムメモリから読出されたプログラム命令が
前記ジャンプ命令であることを検出するジャンプ検出手
段と、 該ジャンプ命令検出手段により前記ジャンプ命令が検出
されたときは当該ジャンプ命令の示すアドレスジャンプ
数を累積的に加算する第1加算手段と、 前記計数手段の計数結果および前記第1加算手段の累積
結果を加算し、当該加算結果を前記プログラムメモリに
対する読出しアドレスとして出力する第2加算手段と を具えたことを特徴とするプログラム読出し回路。
[Scope of Claims] 1) A program readout circuit that sequentially reads out program instructions to be operated on from a program memory by addressing, wherein the readout start position of the program memory is set as an initial setting value, and the execution of the operation is performed. counting means for continuously updating the count value by "1" for each time; and for a jump instruction among the program instructions, the number of address jumps is written in advance in the jump instruction;
jump detection means for detecting that the program instruction read from the program memory is the jump instruction, and when the jump instruction is detected by the jump instruction detection means, cumulatively detecting the number of address jumps indicated by the jump instruction; and a second addition means for adding the counting result of the counting means and the cumulative result of the first adding means and outputting the addition result as a read address for the program memory. A program readout circuit featuring:
JP2162874A 1990-06-22 1990-06-22 Program reading circuit Pending JPH0454531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2162874A JPH0454531A (en) 1990-06-22 1990-06-22 Program reading circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2162874A JPH0454531A (en) 1990-06-22 1990-06-22 Program reading circuit

Publications (1)

Publication Number Publication Date
JPH0454531A true JPH0454531A (en) 1992-02-21

Family

ID=15762912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2162874A Pending JPH0454531A (en) 1990-06-22 1990-06-22 Program reading circuit

Country Status (1)

Country Link
JP (1) JPH0454531A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH073833U (en) * 1993-06-21 1995-01-20 京進工業株式会社 Expansion billet

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH073833U (en) * 1993-06-21 1995-01-20 京進工業株式会社 Expansion billet

Similar Documents

Publication Publication Date Title
JPH03204737A (en) Debug circuit of signal processing processor
JPH0454531A (en) Program reading circuit
JP4471947B2 (en) Data processing apparatus and data processing method
JPH0588884A (en) State mode setting method
JP2731047B2 (en) Program operand check method
JPS62279438A (en) trace circuit
JPS6232508B2 (en)
JPS588011B2 (en) Microprogram Seigiyohoshiki
JP3469753B2 (en) Return address read control method of processor and processor
JPH04332045A (en) Arithmetic processor
JPH0713758A (en) Instruction decoding method
JPS60193046A (en) Instruction exception detection method
JP3164690B2 (en) Address control device
SU754418A1 (en) SOFTWARE
JP3366235B2 (en) Data read control device
JPS6252334B2 (en)
JPH02133833A (en) In-circuit emulator control device
JPS6362065A (en) Data transfer control system
JPS6215645A (en) Central processing unit
JPS595931B2 (en) Address stop method for arithmetic processing system
JPS62108333A (en) Semiconductor device
JPH1165829A (en) Address conversion circuit
JPH0154729B2 (en)
JPH03113659A (en) Cache memory testing method
JPH11282787A (en) Input/output control device