JPH0343830A - Block repeating circuit - Google Patents

Block repeating circuit

Info

Publication number
JPH0343830A
JPH0343830A JP17979489A JP17979489A JPH0343830A JP H0343830 A JPH0343830 A JP H0343830A JP 17979489 A JP17979489 A JP 17979489A JP 17979489 A JP17979489 A JP 17979489A JP H0343830 A JPH0343830 A JP H0343830A
Authority
JP
Japan
Prior art keywords
register
value
address
instruction
sequence
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
JP17979489A
Other languages
Japanese (ja)
Inventor
Teruo Ishihara
輝雄 石原
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 JP17979489A priority Critical patent/JPH0343830A/en
Publication of JPH0343830A publication Critical patent/JPH0343830A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To perform a sequence where M pieces of instructions are repeated by N times as a single block in a pipeline processing system by repeating both sets of the head address of a block held in a program counter when the value of this counter is equal to M. CONSTITUTION:The value of a program counter 24 is increased one by one every time an instruction for a pipeline process is carried out by one step. When the value of the counter 24 is equal to M, the address held in an address holding register 22 is set again to the counter 24. Then the repeating frequency is held in a sequence frequency register 23. When the repeating frequency is equal to N, the repeating process is stopped and the next process is carried out. Thus it is possible to perform a sequence where M pieces of instructions are repeated by N times as a single block in a pipeline processing system.

Description

【発明の詳細な説明】 [概要] パイプライン処理方式を用いて繰返し処理を行う場合の
ブロックリピート方式に関し、M個のインストラクショ
ンを1個のブロックとしてN回繰返すシーケンスをパイ
プライン処理方式で行えるようにすることを目的とし、
M個のインストラクションを1個のブロックとしてN回
繰返すシーケンスをバイブライン方式で行う場合におい
て、前記Mの値を保持するMレジスタと、Nの値を保持
するNレジスタと、M個のインストラクションをN回繰
り返すシーケンスを示す命令が来たら、その命令の番地
の次の番地アドレスを保持するアドレス保持レジスタを
設けておき、前記アドレス保持レジスタの値をプログラ
ムカウンタに初期セットすると共に、以降、命令ROM
から読出した命令を保持するインストラクションレジス
タを2個直列接続して、初段のインストラクションレジ
スタの値をルックアヘッドデコーダによりデコードして
予め内部RAMのアドレスを求めておくというパイプラ
イン処理のインストラクションを1ステップずつ実行す
る度にプログラムカウンタの値を1ずつ増加させるよう
にし、プログラムカウンタの値とMレジスタの値とが一
致したら、前記アドレス保持レジスタに保持されている
番地アドレスをプログラムカウンタに再セットすると共
に、シーケンスの繰返し回数をシーケンス回数レジスタ
に保持しておき、前記シーケンスの繰返し回数がNにな
ったらリピート処理をストップして次の処理に移行する
ように構成する。
[Detailed Description of the Invention] [Summary] Regarding the block repeat method when iterative processing is performed using the pipeline processing method, it is possible to perform a sequence in which M instructions are repeated N times as one block using the pipeline processing method. The purpose is to
When performing a sequence in which M instructions are repeated N times as one block using the vibrine method, the M register holding the value of M, the N register holding the value N, and the M instructions are When an instruction indicating a sequence to be repeated twice is received, an address holding register is provided to hold the address next to the address of the instruction, and the value of the address holding register is initially set in the program counter.
Two instruction registers that hold instructions read from are connected in series, and the value of the first stage instruction register is decoded by a look-ahead decoder to obtain the address of the internal RAM in advance.The instructions for pipeline processing are executed one step at a time. The value of the program counter is increased by 1 each time the program is executed, and when the value of the program counter and the value of the M register match, the address held in the address holding register is reset to the program counter, and The number of repetitions of the sequence is held in a sequence number register, and when the number of repetitions of the sequence reaches N, the repeat processing is stopped and the process proceeds to the next processing.

[産業上の利用分野] 本発明はバスプライン処理方式を用いて繰返し処理を行
う場合のブロックリピート回路に関する。
[Industrial Field of Application] The present invention relates to a block repeat circuit for performing repetitive processing using a bus spline processing method.

[従来の技術] プログラム制御方式の信号処理LSI(特にプロセッサ
)等のプログラムシーケンス制御においては、信号処理
を高速化するために、パイプライン方式による処理が行
われている。第6図は、従来回路の構成例を示すブロッ
ク図である。最初は、セレクタ1はセレクト信号PC8
1により1側がセレクトされている。従って、セレクタ
1は“1“をセレクトしている。このセレクタ1の出力
は加算器2に入ってフィードバック信号と加算される。
[Prior Art] In program sequence control of program control type signal processing LSIs (particularly processors), processing using a pipeline method is performed in order to speed up signal processing. FIG. 6 is a block diagram showing an example of the configuration of a conventional circuit. Initially, selector 1 uses select signal PC8
1 selects the 1 side. Therefore, selector 1 selects "1". The output of this selector 1 enters an adder 2 and is added to the feedback signal.

加算器2の出力はセレクタ3に入るが、このセレクタ3
もセレクタ1と同様、1側がセレクトされている。従っ
て、セレクタ3は加算器2の出力をセレクトしており、
加算器2の出力がプログラムカウンタ4に入っている。
The output of adder 2 enters selector 3;
Similarly to selector 1, the 1 side is selected. Therefore, selector 3 selects the output of adder 2,
The output of adder 2 is entered into program counter 4.

該プログラムカウンタ4の初期値はパワーオンリセット
により0が入るようになっている。そして、該プログラ
ムカウンタ4の出力は、フィードバックされて加算器2
の一方の人力に人力されると共に、命令ROM5にアド
レスとして入っている。そして、マシンクロックに同期
してプログラムカウンタ4の出力は、加算器2により1
ずつインクリメントされていく。
The initial value of the program counter 4 is set to 0 upon power-on reset. The output of the program counter 4 is fed back to the adder 2.
It is manually input to one side of the computer, and is also stored in the instruction ROM 5 as an address. Then, in synchronization with the machine clock, the output of the program counter 4 is converted to 1 by the adder 2.
It is incremented one by one.

当該アドレスによりアクセスされた命令ROM番地に格
納されている命令は読出されてインストラクションレジ
スタが6.7と2個直列接続された回路に入る。先ず、
命令ROM5の出力は第1のインストラクションレジス
タ6 (IRI)に入る。IRIの出力はマシンクロッ
クに同期して第2のインストラクションレジスタ7(I
R2)に入る。この間に、IRIの出力は、ルックアヘ
ッドデコーダ8に入って内部RAMアドレス等が前もっ
て計算され、出力される。そして、次のタイミングでI
R2に入った命令がデコーダ9によりデコードされ、実
行される。例えば、MOV  A。
The instruction stored in the instruction ROM address accessed by the address is read and entered into a circuit in which two instruction registers 6 and 7 are connected in series. First of all,
The output of the instruction ROM 5 enters the first instruction register 6 (IRI). The output of IRI is sent to the second instruction register 7 (I
Enter R2). During this time, the output of the IRI enters the look-ahead decoder 8, where internal RAM addresses and the like are calculated in advance and output. Then, at the next timing I
The instruction entered into R2 is decoded by the decoder 9 and executed. For example, MOV A.

B (Bレジスタの内容をAレジスタに移せ)のような
命令を実行する場合、Aレジスタ、Bレジスタの値をル
ックアヘッドデコーダ8により予め求めておき、デコー
ダ9でMOV命令を実行する際にはAレジスタ、Bレジ
スタの番地が分かっているので、速やかに命令を実行す
ることができる(バイブライン動作)。
When executing an instruction such as B (move the contents of the B register to the A register), the values of the A and B registers are obtained in advance by the look-ahead decoder 8, and when the decoder 9 executes the MOV instruction, Since the addresses of the A and B registers are known, instructions can be executed quickly (vibration line operation).

なお、セレクト信号pcsoによりセレクタ1゜3の0
側がセレクトされる場合は、IR2にジャンプ先の番地
アドレスが入った時に、この番地をプログラムカウンタ
4にセットしてジャンプ命令を実行する場合等が考えら
れる。
Note that the selector 1゜3 is set to 0 by the select signal pcso.
When the side is selected, a case may be considered in which when the jump destination address is entered in IR2, this address is set in the program counter 4 and a jump instruction is executed.

[発明が解決しようとする課題] このような回路で繰返し命令(リピート命令)を実行さ
せる場合には、プログラムカウンタ5及びIRI、IR
2,ルックアヘッドデコーダ8及びデコーダ9により構
成されるパイプラインをリピートする回数だけ止めてお
き、繰返し実行させる命令をIR2に保持させ、このI
R2の出力をデコーダ9により繰返しデコードすること
により処理している。従って、従来の回路によれば、複
数の命令がまとまった命令ブロックを繰返し行うという
ことができなかった。
[Problems to be Solved by the Invention] When executing a repeat instruction (repeat instruction) in such a circuit, the program counter 5, IRI, IR
2. Stop the pipeline configured by the look-ahead decoder 8 and decoder 9 the number of times you want to repeat it, have the IR2 hold the instructions to be repeatedly executed, and
The output of R2 is processed by being repeatedly decoded by the decoder 9. Therefore, with the conventional circuit, it is not possible to repeatedly execute an instruction block consisting of a plurality of instructions.

本発明はこのような課題に鑑みてなされたものであって
、M個のインストラクションを1個のブロックとしてN
回繰返すシーケンスをパイプライン処理方式で行えるよ
うにすることができるブロックリピート回路を提供する
ことを目的としている。
The present invention has been made in view of these problems, and it is possible to set up N instructions by using M instructions as one block.
An object of the present invention is to provide a block repeat circuit that can perform a sequence that is repeated several times using a pipeline processing method.

[課題を解決するための手段] 第1図は本発明の原理ブロック図である。第5図と同一
のものは、同一の符号を付して示す。図に示す回路は、
M個のインストラクションを1個のブロックとしてN回
繰返すシーケンスをパイプライン方式で行う回路である
ものとする。図において、20はIRIの出力から前記
Mの値を取込み、保持するMレジスタ、21は同じ(I
RIからNの値を取込み、保持するNレジスタ、22は
M個のインストラクションをN回繰り返すシーケンスを
示す命令が来たら、その命令の番地の次の番地アドレス
を保持するアドレス保持レジスタである。
[Means for Solving the Problems] FIG. 1 is a block diagram of the principle of the present invention. Components that are the same as those in FIG. 5 are designated by the same reference numerals. The circuit shown in the figure is
Assume that the circuit performs a sequence in which M instructions are treated as one block and repeated N times in a pipelined manner. In the figure, 20 is an M register that takes in and holds the value of M from the output of IRI, and 21 is the same (I
The N register 22 that takes in the value of N from RI and holds it is an address holding register that holds the address next to the address of the instruction when an instruction indicating a sequence of repeating M instructions N times comes.

23はM個のインストラクションを何回繰返したかを示
す繰返し回数を保持するシーケンス回数レジスタで、N
レジスタ21と接続されている。
23 is a sequence number register that holds the number of repetitions indicating how many times M instructions are repeated;
It is connected to the register 21.

24はプログラムカウンタで、マシンクロックに同期し
てlずつインクリメントされる。該プログラムカウンタ
24の出力は命令ROM5にアドレスとして与えられる
と共に、アドレス保持レジスタ22にも接続され、該ア
ドレス保持レジスタ22に繰返し命令の開始番地アドレ
スを与えるようになっている。そして、Mレジスタ20
及びシーケンス回数レジスタ21からはアドレス保持レ
ジスタ22に制御信号が入っている。25は“1゜とア
ドレス保持レジスタ22の出力のうちのいずれか一方を
セレクトするセレクタである。
24 is a program counter, which is incremented by l in synchronization with the machine clock. The output of the program counter 24 is given as an address to the instruction ROM 5, and is also connected to an address holding register 22, so that the start address of the repeat instruction is given to the address holding register 22. And M register 20
A control signal is input from the sequence number register 21 to the address holding register 22. 25 is a selector that selects either “1°” or the output of the address holding register 22;

[作用] パイプライン処理のインストラクションを1ステップず
つ実行する度にプログラムカウンタ23の値を1ずつ増
加させるようにし、プログラムカウンタ24の値とMレ
ジスタ20の値とが一致したら、Mレジスタ20からの
制御によりアドレス保持レジスタ22に保持されている
番地アドレスをプログラムカウンタ24に再セットする
と共に、シーケンスの繰返し回数をシーケンス回数レジ
スタ23に保′持しておくようにする。そして、前記シ
ーケンスの繰返し回数がNになったらシーケンス回数レ
ジスタ23からの制御によりアドレス保持レジスタ22
に保持されている番地アドレスを破棄し、リピート処理
をストップして次の処理に移行するようにする。このよ
うにすることによりM個のインストラクションを1個の
ブロックとしてN回繰返すシーケンスをパイプライン処
理方式%式% 第2図は本発明の作用説明図で、実際のインストラクシ
ョンの実行の様子を示している。プログラムのインスト
ラクションが(b)に示すようなものであったものとす
る。プログラムカウンタ(PC)の値(とりもなおさず
アドレス値)が01.02,03と更新され(これらの
値は16進を示す。以下同じ)、03番地の命令がRE
PM、N(以下のインストラクション数Mの命令を1個
のブロックとしてN回繰返せ)という命令であったもの
とする。
[Operation] The value of the program counter 23 is incremented by 1 each time the pipeline processing instructions are executed one step at a time, and when the value of the program counter 24 and the value of the M register 20 match, the value of the M register 20 is increased. Under control, the address held in the address holding register 22 is reset to the program counter 24, and the number of repetitions of the sequence is held in the sequence number register 23. When the number of repetitions of the sequence reaches N, the address holding register 22 is controlled by the sequence number register 23.
The address held in is discarded, repeat processing is stopped, and the next processing is started. By doing this, a sequence in which M instructions are repeated N times as one block is created using a pipeline processing method. There is. Assume that the program instructions are as shown in (b). The program counter (PC) value (address value) is updated to 01.02, 03 (these values indicate hexadecimal. The same applies hereinafter), and the instruction at address 03 is updated to RE.
Assume that the instruction is PM, N (repeat the following instructions with the number of instructions M as one block N times).

この時、03番地のリピート命令の次の番地、即ち04
番地のアドレスデータ′04°がアドレス保持レジスタ
22にセットされる。図の例では、インストラクション
数Mは04から09までの6である。この6個のインス
トラクションを1個のブロックとしてN回繰返す。(a
)にその繰返しの様子を示す。即ち、04〜09までの
シーケンスがM、  1〜M、 NまでのN回繰返され
ている。
At this time, the address next to the repeat instruction at address 03, that is, 04
Address data '04° of the address is set in the address holding register 22. In the illustrated example, the number of instructions M is 6 from 04 to 09. These six instructions are repeated N times as one block. (a
) shows the repetition. That is, the sequence from 04 to 09 is repeated N times from M, 1 to M, N.

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

第3図は本発明の一実施例を示す槽底ブロック図である
。第1図と同一のものは、同一の符号を付して示す。図
において、30は2人力加算器であり、その一方に“1
”が、他方の入力にプログラムカウンタ24からのフィ
ードバック信号が入っている。そして、該加算器30の
出力がセレクタ25の一方の人力に入っている。該セレ
クタ25の他方の入力には、アドレス保持レジスタ22
の出力が入っており、セレクト信号pcsi、pC32
によりそのいずれか一方がセレクトされる。
FIG. 3 is a tank bottom block diagram showing an embodiment of the present invention. Components that are the same as those in FIG. 1 are designated by the same reference numerals. In the figure, 30 is a two-man power adder, one of which has "1".
”, the feedback signal from the program counter 24 is input to the other input.The output of the adder 30 is input to one input of the selector 25.The other input of the selector 25 is the feedback signal from the program counter 24. Holding register 22
It contains the output of the select signal pCSI, pC32
One of them is selected by .

例えば、PC81が入った時には1側がセレクトされ、
加算器30出力がプログラムカウンタ24に入り、PC
82が入った時には2側がセレクトされ、アドレス保持
レジスタ22出力がプログラムカウンタ24に入る。
For example, when PC81 is inserted, side 1 is selected,
The adder 30 output enters the program counter 24 and the PC
When 82 is input, the 2 side is selected and the output of the address holding register 22 is input to the program counter 24.

31は一方の人力にマシンクロックCK、他方の入力に
リピートスタート信号(1レベル)又はリピートエンド
信号(0レベル)を受けるオアゲートで、その出力はア
ドレス保持レジスタ22に制御信号として入っている。
31 is an OR gate which receives the machine clock CK on one input and a repeat start signal (1 level) or repeat end signal (0 level) on the other input, and its output is input to the address holding register 22 as a control signal.

32はリピートスタート信号を受けると“1”又は“2
”を初期セットし、セットした値からインストラクショ
ンの数をMまでカウントするMカウンタ、33はその一
方の人力にNレジスタ20の出力を、他方の人力にMカ
ウンタ32の出力を受けて両者の比較を行う比較器であ
る。該比較器33は両者が一致した時PC32信号を発
生する。
32 becomes “1” or “2” when receiving the repeat start signal.
" is initially set, and the M counter 33 counts the number of instructions up to M from the set value. The M counter 33 receives the output of the N register 20 for one of the manual inputs, and the output of the M counter 32 for the other manual input, and compares the two. The comparator 33 generates the PC32 signal when the two match.

34はリピートスタートによりNレジスタ21の出力を
セットし、以後インストラクション数Mの実行が終了す
る度にPC32信号を受けてダウンカウントし、カウン
ト数がOになったらリピートエンド信号を発生するNダ
ウンカウンタである。
34 is an N down counter that sets the output of the N register 21 by a repeat start, receives a PC 32 signal and counts down every time the execution of the number M of instructions is completed, and generates a repeat end signal when the count reaches O. It is.

該ダウンカウンタ34は、第1図のシーケンス回数レジ
スタ23に相当する。このように構成された回路の動作
を第4図に示すタイミングチャートを参照しながら説明
すれば、以下のとおりである。
The down counter 34 corresponds to the sequence number register 23 in FIG. The operation of the circuit configured in this manner will be described below with reference to the timing chart shown in FIG.

通常の動作では、セレクタ25はPC81により1側が
セレクトされている。そして、第4図(イ)に示すよう
なマシンクロックCKによりプログラムカウンタ24の
値に加算器30により1を加えたものが新たなプログラ
ムカウンタ24の値となるようになっている。そして、
アドレス保持レジスタ22には、マシンクロックCKに
より(ハ)に示すように1サイクル前の値が常に入るよ
うになっている。そして、IRI、IR2の2個のイン
ストラ゛クションレジスタを用い、IRIの出力をルッ
クアヘッドデコーダ8により予め内部RAM等のアドレ
スを求めておき、IR2の命令の実行と並行して処理す
ることによりバイブライン動作が行われている。
In normal operation, the 1 side of the selector 25 is selected by the PC 81. Then, the new value of the program counter 24 is obtained by adding 1 to the value of the program counter 24 by the adder 30 using the machine clock CK as shown in FIG. 4(A). and,
The address holding register 22 is always set to the value of one cycle before by the machine clock CK, as shown in (c). Then, by using two instruction registers, IRI and IR2, the address of the internal RAM etc. is determined in advance by the look-ahead decoder 8 for the output of IRI, and is processed in parallel with the execution of the instruction in IR2. Line movement is taking place.

さて、IRlに(ニ)に示すようにリピート命令REP
が入ると、この命令はルックアヘッドデコーダ8により
デコードされ、リピートサイズM。
Now, write the repeat command REP to IRl as shown in (d).
When the instruction is entered, this instruction is decoded by the look-ahead decoder 8, and the repeat size is M.

Nが求められる。求められたM、Nの値はそれぞれNレ
ジスタ20.Nレジスタ21に格納される。
N is required. The obtained values of M and N are stored in the N register 20. It is stored in the N register 21.

つまり、Nレジスタ20には(へ)に示すようにM−6
が格納され、Nレジスタ21にはリピート数Nが格納さ
れる。
In other words, the N register 20 has M-6 as shown in (v).
is stored, and the repeat number N is stored in the N register 21.

次のサイクルでIR2にリピート命令REPが入ると、
デコーダ9でデコードされる。そして、該デコーダ9か
らデコードされるリピートスタート信号によりMカウン
タ32には(ト)に示すように“2″が格納される。ま
た、このリピートスタート信号はオアゲート31にも入
り、アドレス保持レジスタ22に入るマシンクロックC
Kの動作をストップさせる。マシンクロックCKの動作
がストップした時のアドレス保持レジスタ22には(ハ
)に示すように“04″が保持される。この“04”は
、リピート命令REPの次にくるインストラクションの
プログラムカウンタ値である。
When the repeat command REP enters IR2 in the next cycle,
It is decoded by a decoder 9. Then, by the repeat start signal decoded from the decoder 9, "2" is stored in the M counter 32 as shown in (G). This repeat start signal also enters the OR gate 31, and the machine clock C enters the address holding register 22.
Stop K's operation. When the operation of the machine clock CK is stopped, the address holding register 22 holds "04" as shown in (c). This "04" is the program counter value of the instruction following the repeat instruction REP.

それと同時にMカウンタ32がカウント動作を開始する
At the same time, the M counter 32 starts counting.

インストラクションを実行する度にMカウンタ32の値
は(ト)に示すように1ずつ更新される。
Each time an instruction is executed, the value of the M counter 32 is updated by 1 as shown in (g).

プログラムカウンタ24の出力も(ロ)に示すように1
ずつ更新されるが、アドレス保持レジスタ22はマシン
クロックCKが止められているので、その内容は(ハ)
に示すように変化しない。そして、Mカウンタ32の値
がNレジスタ20の値(M−6)と一致すると、比較器
33は一致信号PCS2を出力する。
The output of the program counter 24 is also 1 as shown in (b).
However, since the machine clock CK is stopped for the address holding register 22, its contents are (c).
There is no change as shown in . When the value of the M counter 32 matches the value (M-6) of the N register 20, the comparator 33 outputs a match signal PCS2.

このPC32C32信レクタ25に入り、この時だけ2
側がセレクトされ、アドレス保持レジスタ22に保持さ
れている値(ここでは“04”)が再度プログラムカウ
ンタ24にセットされる。
This PC32C32 communication receiver 25 is entered, and only this time 2
side is selected, and the value held in the address holding register 22 (here, "04") is set in the program counter 24 again.

それと同時にこのPC92信号はNダウンカウンタ34
に入り、その内容を1だけダウンカウントさせる。また
、Mカウンタ32はリセットされて今度は“1”がセレ
クトされ1からカウントを開始する。その次のサイクル
では、セレクタ3番≠再び1側をセレクトしており、プ
ログラムカウンタ24は初期値“04″から1ずつイン
クリメントされる。
At the same time, this PC92 signal is sent to the N down counter 34.
, and cause its contents to count down by 1. Further, the M counter 32 is reset, and this time "1" is selected and starts counting from 1. In the next cycle, selector No. 3≠1 side is selected again, and the program counter 24 is incremented by 1 from the initial value "04".

以上の動作を繰返すことにより、ブロックリピートが行
われる。そして、Nダウンカウンタ34の値が0になる
と、N回のリピートが行われたことになる。そこで、N
ダウンカウンタ34からはリピートエンド信号“0”が
出力され、オアゲート31を開きマシンクロックCKが
アドレス保持レジスタ22に入るようにする。この結果
、プログラムはリピートサイクルから抜は出し、次のア
ドレスからの命令を実行するようになる。
Block repeat is performed by repeating the above operations. Then, when the value of the N down counter 34 becomes 0, it means that the repeat has been performed N times. Therefore, N
A repeat end signal "0" is output from the down counter 34, and the OR gate 31 is opened to allow the machine clock CK to enter the address holding register 22. As a result, the program exits the repeat cycle and executes the instruction starting from the next address.

第5図は本発明の動作を示すフローチャートである。本
発明は、 Mの値を保持するNレジスタと、Nの値を保持するNレ
ジスタと、M個のインストラクションをN回繰り返すシ
ーケンスを示す命令が来たら、その命令の番地の次の番
地アドレスを保持するアドレス保持レジスタを用意して
おき(ステップ1)、前記アドレス保持レジスタの値を
プログラムカウンタに初期セットすると共に、以降、命
令ROMから読出した命令を保持するインストラクショ
ンレジスタ2個を直列接続して初段のインストラクショ
ンレジスタの値をデコードして予め内部RAMのアドレ
スを求めておくというパイプライン処理のインストラク
ションを1ステップずつ実行する度にプログラムカウン
タの値を1ずつ増加させ(ステップ2)、 プログラムカウンタの値とNレジスタの値とが一致した
ら、前記アドレス保持レジスタに保持されている番地ア
ドレスをプログラムカウンタに再セットすると共に、シ
ーケンスの繰返し回数を保持しておき(ステップ3)、 前記シーケンスの繰返し回数がNになったらリピート処
理をストップして次の処理に移行する(ステップ4)よ
うに構成している。
FIG. 5 is a flowchart showing the operation of the present invention. The present invention provides an N register that holds a value of M, an N register that holds a value of N, and an instruction that indicates a sequence of repeating M instructions N times. An address holding register to be held is prepared (step 1), and the value of the address holding register is initially set in the program counter, and thereafter, two instruction registers for holding instructions read from the instruction ROM are connected in series. Each time a pipeline processing instruction, in which the address of the internal RAM is determined in advance by decoding the value of the first-stage instruction register, is executed step by step, the value of the program counter is increased by 1 (step 2). When the value matches the value of the N register, the address held in the address holding register is reset to the program counter, and the number of repetitions of the sequence is held (step 3). When the value becomes N, the repeat process is stopped and the process proceeds to the next process (step 4).

上述の実施例では、シーケンス回数レジスタとして、リ
ピート回数Nを検出するNダウンカウンタを用いて、そ
の値が0になるのを検出する方式を用いたが、本発明は
これに限るものではない。
In the above-described embodiment, an N down counter for detecting the number of repeats N is used as the sequence number register, and a method of detecting when the value becomes 0 is used, but the present invention is not limited to this.

Nアップカウンタを用いて、該Nアップカウンタの出力
をNレジスタの値を比較し、一致したらリピート動作を
止めるようにしてもよい。
An N-up counter may be used to compare the output of the N-up counter with the value of the N register, and if they match, the repeat operation may be stopped.

[発明の効果] 以上、詳細に説明したように、本発明によればリピート
するブロックの先頭番地を保持し、この保持しているア
ドレスからプログラムカウンタの値を1ずつインクリメ
ントし、その値がブロックのインストラクションの数M
に達したら、再度プログラムカウンタに保持しているブ
ロックの先頭番地をセットすることを必要リピート回数
Nだけ繰返すようにすることにより、M個のインストラ
クションを1個のブロックとしてN回繰返すシーケンス
をパイプライン処理方式で行えるようにすることができ
、実用上の効果が大きい。
[Effects of the Invention] As described in detail above, according to the present invention, the start address of a block to be repeated is held, the value of the program counter is incremented by 1 from this held address, and the value is set as the block address. number of instructions M
When the address of the block held in the program counter is reached, the start address of the block held in the program counter is set again for the required number of repeats N, thereby creating a pipeline that repeats M instructions N times as one block. This can be done using a processing method, which has great practical effects.

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

第1図は本発明の原理ブロック図、 第2図は本発明の作用説明図、 第3図は本発明の一実施例を示す構成ブロック図、 第4図は各部の動作を示すタイミングチャート、第5図
は本発明の動作を示すフローチャート、第6図は従来回
路の構成例を示すブロック図である。 第1図において、 5はプログラムカウンタ、 6.7はインストラクションレジスタ、8はルックアヘ
ッドデコーダ、 9はデコーダ、 20はNレジスタ、 21はNレジスタ、 22はアドレス保持レジスタ、 23はシーケンス回数保持レジスタ、 24はプログラムカウンタである。
Fig. 1 is a principle block diagram of the present invention, Fig. 2 is an explanatory diagram of the operation of the present invention, Fig. 3 is a configuration block diagram showing an embodiment of the present invention, Fig. 4 is a timing chart showing the operation of each part, FIG. 5 is a flowchart showing the operation of the present invention, and FIG. 6 is a block diagram showing an example of the configuration of a conventional circuit. In FIG. 1, 5 is a program counter, 6.7 is an instruction register, 8 is a look-ahead decoder, 9 is a decoder, 20 is an N register, 21 is an N register, 22 is an address holding register, 23 is a sequence count holding register, 24 is a program counter.

Claims (1)

【特許請求の範囲】  M個のインストラクションを1個のブロックとしてN
回繰返すシーケンスをパイプライン方式で行う場合にお
いて、 前記Mの値を保持するMレジスタ(20)と、Nの値を
保持するNレジスタ(21)と、M個のインストラクシ
ョンをN回繰り返すシーケンスを示す命令が来たら、そ
の命令の番地の次の番地アドレスを保持するアドレス保
持レジスタ(22)を設けておき、 前記アドレス保持レジスタ(22)の値をプログラムカ
ウンタ(24)に初期セットすると共に、以降、命令R
OM(5)から読出した命令を保持するインストラクシ
ョンレジスタを(6)、(7)と2個を直列接続して、
初段のインストラクションレジスタ(6)の値をルック
アヘッドデコーダ(8)によりデコードして予め内部R
AMのアドレスを求めておくというパイプライン処理の
インストラクションを1ステップずつ実行する度にプロ
グラムカウンタ(24)の値を1ずつ増加させるように
し、 プログラムカウンタ(24)の値とMレジスタ(20)
の値とが一致したら、前記アドレス保持レジスタ(22
)に保持されている番地アドレスをプログラムカウンタ
(24)に再セットすると共に、シーケンスの繰返し回
数をシーケンス回数レジスタ(23)に保持しておき、 前記シーケンスの繰返し回数がNになったらリピート処
理をストップして次の処理に移行するように構成したこ
とを特徴とするブロックリピート回路。
[Claims] M instructions are N as one block.
In the case where a sequence that is repeated several times is performed in a pipeline method, the M register (20) that holds the value of M, the N register (21) that holds the value of N, and the sequence that repeats M instructions N times are shown. When an instruction comes, an address holding register (22) is provided to hold the address next to the address of the instruction, and the value of the address holding register (22) is initially set in the program counter (24), and from then on. , command R
Two instruction registers (6) and (7) that hold the instructions read from OM (5) are connected in series,
The value of the first-stage instruction register (6) is decoded by the look-ahead decoder (8) and stored in the internal R in advance.
The value of the program counter (24) is incremented by 1 each time the pipeline processing instruction to obtain the address of AM is executed one step at a time, and the value of the program counter (24) and the M register (20) are
If the values match, the address holding register (22
) is reset in the program counter (24), and the number of repetitions of the sequence is stored in the sequence number register (23), and when the number of repetitions of the sequence reaches N, repeat processing is performed. A block repeat circuit characterized in that it is configured to stop and move on to the next process.
JP17979489A 1989-07-11 1989-07-11 Block repeating circuit Pending JPH0343830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17979489A JPH0343830A (en) 1989-07-11 1989-07-11 Block repeating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17979489A JPH0343830A (en) 1989-07-11 1989-07-11 Block repeating circuit

Publications (1)

Publication Number Publication Date
JPH0343830A true JPH0343830A (en) 1991-02-25

Family

ID=16072011

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17979489A Pending JPH0343830A (en) 1989-07-11 1989-07-11 Block repeating circuit

Country Status (1)

Country Link
JP (1) JPH0343830A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06236271A (en) * 1993-01-08 1994-08-23 Internatl Business Mach Corp <Ibm> Processor and method for guess and execution of instruction
CN100409784C (en) * 2004-01-09 2008-08-13 帝人纤维株式会社 Shoe interior material, insole and boot

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06236271A (en) * 1993-01-08 1994-08-23 Internatl Business Mach Corp <Ibm> Processor and method for guess and execution of instruction
CN100409784C (en) * 2004-01-09 2008-08-13 帝人纤维株式会社 Shoe interior material, insole and boot

Similar Documents

Publication Publication Date Title
US4591979A (en) Data-flow-type digital processing apparatus
US7051194B2 (en) Self-synchronous transfer control circuit and data driven information processing device using the same
US5253349A (en) Decreasing processing time for type 1 dyadic instructions
JPH0343830A (en) Block repeating circuit
JPS63200234A (en) Data processor
JPH01500065A (en) Apparatus and method for microprogram information processing system with multiple control stores
JPS5947651A (en) Program controller
JP2979653B2 (en) Information processing device
SU1339546A1 (en) Self-monitoring operational device
JP2758624B2 (en) Speed control method of micro program
JP3117214B2 (en) Sequencer microprogram control method
JPH10187790A (en) Logic circuit simulator
JPH03171335A (en) Address comparison device
SU896623A1 (en) Device for control of conveyer computing device
JPS60241104A (en) Arithmetic method of digital controller
JPH03233724A (en) Repetitive processing control system
JPS6014333A (en) Microprogram controller
JPS61165171A (en) Microcomputer
JPH0887411A (en) Method and device for pipeline operation
JPH10133717A (en) Simulator for sequencer
JPH04344530A (en) Micro program control circuit
JPS61127035A (en) Processor containing repetition control circuit
JPH01147605A (en) Microprogram sequence controller
JPH01284970A (en) Iteration arithmetic circuit
JPS60120453A (en) Processing system of received data