JPH01224836A - Processor controller - Google Patents

Processor controller

Info

Publication number
JPH01224836A
JPH01224836A JP63051206A JP5120688A JPH01224836A JP H01224836 A JPH01224836 A JP H01224836A JP 63051206 A JP63051206 A JP 63051206A JP 5120688 A JP5120688 A JP 5120688A JP H01224836 A JPH01224836 A JP H01224836A
Authority
JP
Japan
Prior art keywords
address
instruction
program
section
condition
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
JP63051206A
Other languages
Japanese (ja)
Inventor
Kazumasa Enami
榎並 和雅
Nobuyuki Yagi
伸行 八木
Ryoichi Yajima
矢島 亮一
Kiyomasa Kanai
金井 清昌
Shigemi Mikami
三上 繁実
Nobuyuki Sasaki
信之 佐々木
Koji Hoshino
浩二 星野
Kazuhiro Harukawa
和弘 春川
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.)
Toshiba Corp
Japan Broadcasting Corp
Original Assignee
Toshiba Corp
Nippon Hoso Kyokai NHK
Japan Broadcasting Corp
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 Toshiba Corp, Nippon Hoso Kyokai NHK, Japan Broadcasting Corp filed Critical Toshiba Corp
Priority to JP63051206A priority Critical patent/JPH01224836A/en
Priority to KR1019890001283A priority patent/KR920001287B1/en
Priority to US07/308,306 priority patent/US4991019A/en
Publication of JPH01224836A publication Critical patent/JPH01224836A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically obtain a jump address by controlling an address control part by plural condition codes obtained from a controlled object part, generating respective branch addresses set in advance corresponding to respective conditions formed by the condition code, and supplying them to a program memory. CONSTITUTION:An address control part 200 to issue an address to a program memory 100 and a controlled object part, to which program data from the program memory 100 are supplied are provided. Then, a means to control an address control part 200 by plural condition codes obtained from the controlled object part, to output respective branch addresses set in advance corresponding to respective conditions formed by the condition code, and to supply them to the program memory 100 are provided. Thus, the condition code from the controlled object part is always checked, the branch address corresponding to the respective conditions are obtained automatically corresponding to the respective conditions of the condition code, and updating a program step especially is not required.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、例えば映像信号のリアルタイム処理に用い
られるデジタル信号処理用LSIの内部に設けて有効な
プロセッサ制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a processor control device that is effective when installed inside a digital signal processing LSI used for real-time processing of video signals, for example.

(従来の技術) 例えば、映像信号処理を行なう場合、水平同期信号や垂
直同期信号が到来した場合、信号処理のプロセスが大き
く変わることが多い。例えば、映像信号のアドレスを示
すデジタルアドレスを発生している場合、水平同期信号
が到来すると同期信号期間に必要なルーチンにジャンプ
し、例えばデータの書換え等を行ない、走査期間が開始
されると、再び初期値からアドレスを発生させる必要が
ある。またある映像信号に部分的に複数の映像信号を挿
入する場合、挿入する映像信号に応じレベル合せのため
に利得制御状態を切換えなければならないような状態が
生じる。このような場合は、ジャンプ先のアドレスは、
複数の条件を判定してから決定されることが多い。
(Prior Art) For example, when performing video signal processing, when a horizontal synchronization signal or a vertical synchronization signal arrives, the signal processing process often changes significantly. For example, when a digital address indicating the address of a video signal is generated, when a horizontal synchronization signal arrives, the routine jumps to the routine necessary for the synchronization signal period, and, for example, data is rewritten, etc., and when the scanning period starts, It is necessary to generate an address from the initial value again. Furthermore, when a plurality of video signals are partially inserted into a certain video signal, a situation arises in which the gain control state must be switched in order to adjust the level depending on the video signal to be inserted. In this case, the jump destination address is
It is often determined after evaluating multiple conditions.

(発明が解決しようとする課題) 上記のように複数の条件を判定した後に、現在のルーチ
ンとは異なるルーチンにジャンプするような方法を採用
すると、プログラムのステップが多くなり、判定ステッ
プを経過する期間に映像信号の欠落を生じ、リアルタイ
ム処理回路としては好ましくない。
(Problem to be solved by the invention) If a method is adopted in which a routine jumps to a routine different from the current routine after determining multiple conditions as described above, the number of steps in the program increases and the determination step is passed. This is not preferable as a real-time processing circuit because the video signal is dropped during the period.

そこでこの発明は、プログラム実行の中にあってもコン
ディションコードを常時チエツクできる構成として、コ
ンディジジンコードの内容に応じて、その判定を待つま
でもなく自動的にジャンプアドレスが得られるようにし
たプロセッサ制御装置を提供することを目的とする。
Therefore, the present invention has developed a processor that has a structure that allows the condition code to be checked at all times even during program execution, so that a jump address can be automatically obtained according to the contents of the condition code without waiting for the judgment. The purpose is to provide a control device.

[発明の構成] (課題を解決するための手段) この発明は、プログラムメモリに対してアドレスを与え
るアドレス制御部、前記プログラムメモリからのプログ
ラムデータが与えられる被制御対象部とを有する。そし
て被制御対象部から得られる複数のコンディションコー
ドにより前記アドレス制御部を制御し、前記コンディシ
ョンコードが形成する各状態に応じて予めセットされた
老それぞれの分岐アドレスを出力し該プログラムメモリ
に与える手段を具備するものである。
[Structure of the Invention] (Means for Solving the Problems) The present invention includes an address control section that provides an address to a program memory, and a controlled object section that is given program data from the program memory. and means for controlling the address control unit using a plurality of condition codes obtained from the controlled target unit, outputting preset branch addresses according to each state formed by the condition codes, and providing the output to the program memory. It is equipped with the following.

(作用) 上記の手段により、被制御対象部からのコンディション
コードは常にチエツクされており、コンディションコー
ドの各状態に応じて、自動的にそれぞれの状態に応じた
分岐アドレスが得られ、わざわざプログラムステップを
更新する必要がない。
(Function) With the above means, the condition code from the controlled object part is always checked, and the branch address corresponding to each condition is automatically obtained according to each condition code state, and the program step is not necessary. There is no need to update.

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

第1図はこの発明の基本構成であり、100はプログラ
ムを格納した外部のプログラムメモリである。メモリ1
00の読出しアドレスは、LSI内部に構成されたアド
レス制御部200から与えられる。アドレス制御部20
0は、ジャンプアドレステーブル201.切換え回路2
02゜203、アドレスラッチ回路204.プログラム
カウンタ205により構成される。
FIG. 1 shows the basic configuration of the present invention, and 100 is an external program memory that stores programs. memory 1
A read address of 00 is given from an address control section 200 configured inside the LSI. Address control section 20
0 is the jump address table 201. switching circuit 2
02°203, address latch circuit 204. It is constituted by a program counter 205.

アドレス制御部200は、システムクロックの周期で自
動的に次のアドレスを発生することができる。つまりア
ドレスラッチ回路204の出力アドレスは、ブリフェッ
チアドレスとして外部メモリ100に与えられるととも
に、アドレスカウンタ205で+1され次のアドレスと
なり、切換え回路203を介してアドレスラッチ回路2
04にラッチされる。
The address control unit 200 can automatically generate the next address at the cycle of the system clock. In other words, the output address of the address latch circuit 204 is given to the external memory 100 as a brief fetch address, and is incremented by 1 by the address counter 205 to become the next address.
It is latched to 04.

ブリフェッチアドレスにより読み出された外部メモリ1
00からのプログラムデータは、被制御対象に与えられ
る。
External memory 1 read by brief fetch address
Program data from 00 is given to the controlled object.

被制御対象からは、例えば演算部におけるフラッグ、あ
るいは水平同期、垂直同期に基づくコンディションコー
ドが得られ、条件1あるいは2が成立する。例えば、外
部メモリ100の10番地の命令を実行し、次にブリフ
ェッチによる11番地の命令を実行したとき、例えば条
件1が成立して分岐すべき状態になったとすると、切換
え回路203が制御され、アドレステーブル201から
の例えばジャンプアドレスAdlがラッチ回路203に
ラッチされる。ここで、アドレスが外部メモリ100の
例えば40番地であったとすると、次にフェッチするア
ドレスは41番地である。これを達成するために、切換
え回路203は次にプログラムカウンタ205の出力、
つまり40番地+1番地−41番地をアドレスラッチ回
路204にラッチさせる。これにより、次の命令は、外
部メモリ100の41番地のものから使用されることに
なる。
For example, a flag in an arithmetic unit or a condition code based on horizontal synchronization or vertical synchronization is obtained from the controlled object, and condition 1 or 2 is satisfied. For example, when the instruction at address 10 of the external memory 100 is executed, and then the instruction at address 11 is executed by brief fetch, if condition 1 is satisfied and a branch is to be made, the switching circuit 203 is controlled, For example, a jump address Adl from the address table 201 is latched into the latch circuit 203. Here, if the address is, for example, address 40 in the external memory 100, the address to be fetched next is address 41. To accomplish this, switching circuit 203 then outputs the output of program counter 205;
In other words, the address latch circuit 204 latches address 40+1-41. As a result, the next instruction will be used starting from the one at address 41 of the external memory 100.

このようなプログラムの分岐処理が成された後は再び、
元のブリフェッチ処理に移る。
After such program branch processing is completed,
Proceed to the original brifetch processing.

上記の説明では、−度だけ分岐が生じた例を説明したが
、プログラムテーブル600から出力された命令を実行
したときにさらに分岐する条件が成立する場合でも対応
できる。この場合は、ジャンプアドレステーブル201
に複数の命令を予め格納しておき、被制御対象からのコ
ンディションコードの組合わせ状態(例えば条件2)に
より、アドレスAd2がラッチ回路204にラッチされ
る。
In the above description, an example has been described in which a branch occurs by − degrees, but it is also possible to deal with a case where a condition for further branching is satisfied when an instruction output from the program table 600 is executed. In this case, jump address table 201
A plurality of instructions are stored in advance in the address Ad2, and the address Ad2 is latched into the latch circuit 204 depending on the combination of condition codes from the controlled object (for example, condition 2).

第2図は、第1図の回路を更に具体的に示している。FIG. 2 shows the circuit of FIG. 1 in more detail.

外部メモリ100のアドレス制御部200は、ジャンプ
アドレステーブル201、切換え回路202.203.
ラッチ回路204.プログラムカウンタ205などによ
り構成されている。またプログラムテーブル部600は
、例えば8個のテーブルを有し、いずれのテーブルのプ
ログラムを読み出すかは、先のデコーダ部500からの
指令により決定される。さらにマルチプレクサ部300
は、プログラムテーブル部600からのプログラムデー
タを切換え選択する切換え回路301、この切換え回路
301からの出力と外部メモリ100からの出力とのい
ずれかを選択切換えする切換え回路302を有する。ま
た、デコーダ部500は、デコーダ501の他に、アド
レス制御部200の出力アドレスの変化を停止するとと
もに、命令ラッチ部400の命令を一定に保持するため
に、各ラッチ部の入力クロックを停止することができる
クロック制御部502を存する。
The address control section 200 of the external memory 100 includes a jump address table 201, switching circuits 202, 203, .
Latch circuit 204. It is composed of a program counter 205 and the like. Further, the program table section 600 has, for example, eight tables, and which table's program is to be read is determined by a command from the decoder section 500. Furthermore, the multiplexer section 300
has a switching circuit 301 that switches and selects program data from the program table unit 600, and a switching circuit 302 that selects and switches between the output from the switching circuit 301 and the output from the external memory 100. In addition to the decoder 501, the decoder unit 500 also stops the change in the output address of the address control unit 200, and stops the input clock of each latch unit in order to keep the command of the instruction latch unit 400 constant. There is a clock control unit 502 that can perform the following steps.

今、デコーダ部500からの制御コードを図のように、
■、■、■、■、■、Aα、Adとし、また各部のアド
レスデータを図のようにAdl〜Ad8、命令データを
D al −D a6とする。
Now, the control code from the decoder section 500 is as shown in the figure.
(2), (2), (2), (2), (2), Aα, and Ad, and the address data of each part is Adl to Ad8 as shown in the figure, and the instruction data is D al -D a6.

第3図は通常のブリフェッチにより、命令を読取るシー
ケンスを示している。例えばa番地の命令が実行される
までにはクロックの3周期が必要であり、a番地命令フ
ェッチ、a番地命令デコード、a番地命令実行という過
程がある。ここで、プリフェッチが行われるので、a番
地命令のデコードが行われているときは、b番地命令の
フェッチが行われる。このようにプログラムは絶間無く
読取られ、実行も絶間無く得られる。前の命令がデコー
ドされているときに、次の命令がフェッチされるのは、
プログラムカウンタ205によりAd6+1の処理が行
われ、Ad4. Ad5が次の命令のアドレスを形成し
ているからである。
FIG. 3 shows a sequence for reading instructions by normal brifetch. For example, three clock cycles are required before the instruction at address a is executed, and there are steps such as fetching the instruction at address a, decoding the instruction at address a, and executing the instruction at address a. Here, since prefetching is performed, when the instruction at address a is being decoded, the instruction at address b is fetched. In this way, programs can be read and executed without interruption. The next instruction is fetched while the previous instruction is being decoded.
The program counter 205 processes Ad6+1, and Ad4. This is because Ad5 forms the address of the next instruction.

上記のシーケンスを得る場合は、デコーダ501は、切
換え回路203ではプログラムカウンタ205の出力A
d4が選択され、また切換え回路302では外部メモリ
100からのプログラムデータDa4が選択されるよう
に制御する。
To obtain the above sequence, the decoder 501 outputs the output A of the program counter 205 in the switching circuit 203.
d4 is selected, and the switching circuit 302 controls the program data Da4 from the external memory 100 to be selected.

デコーダ501は、コンディションコードX1゜X2と
デコードの内容により、制御コード■、■。
The decoder 501 generates control codes ■ and ■ according to the condition codes X1 and X2 and the contents of the decode.

■、■、■、Aα、Adを決定する。Determine ■, ■, ■, Aα, and Ad.

上記のシーケンサを制御する命令としては以下のような
命令がある。
The instructions for controlling the above sequencer include the following instructions.

DO:白番地ループ(同じ命令を繰返す。)CONT 
:次番地分岐(次の番地の命令へすすむ。) JMP:分岐命令(ジャンプ先の命令へ進む。)これら
の命令は、Do/C0NT/JMP。
DO: White address loop (repeat the same command) CONT
:Next address branch (Proceed to the instruction at the next address.) JMP: Branch instruction (Proceed to the instruction at the jump destination.) These instructions are Do/C0NT/JMP.

Do/JMP/JMPのように、3つを組合わせて使用
され、この3つの動作はコンディションコードXi、X
2によって決まる。
These three operations are used in combination, such as Do/JMP/JMP, and these three operations have condition codes Xi, X
Determined by 2.

例えばDo/C0NT/JMPの命令のときは、(1)
コンディジジンコードXi、X2が共に成立しないとき
・・・DO (2)コンディションコードX1が成立したとき・・・
0NT (3)コンディションコードX2が成立したとき・・・
JMP (4)コンディションコードXi、X2共に成立したと
き・・・C0NT の命令としてデコードされる。
For example, for Do/C0NT/JMP commands, (1)
When condition code Xi and X2 are not established...DO (2) When condition code X1 is established...
0NT (3) When condition code X2 is established...
JMP (4) When both condition codes Xi and X2 are established...Decoded as a C0NT command.

以下各DO,C0NT、JMPが成立したときの動作を
個゛々に説明する。
The operations when DO, C0NT, and JMP are established will be individually explained below.

DO命令 第4図は、例えば1番地の命令がDo命令であった場合
のシーケンスを示している。1番地の命令がラッチ部4
00にラッチされてデコードされると、ラッチ回路20
4のアドレスAd6は2番地命令をフェッチする。しか
しこのときは、ラッチ部400とラッチH2O4に与え
られるクロックがクロック制御回路502により停止さ
れる。このためにデコーダ501に与えられる命令は1
番地命令が維持され、またアドレスAd6も2番地フェ
ッチ用の内容を維持する。この結果、ラッチ部400に
保持されている1番地命令のデコード及び実行が継続さ
°れる。この状態から他の状態に移るには、例えばコン
ディションコードの入力がある。そのときは、2番地命
令のデコード、実行が成される。
DO Instruction FIG. 4 shows a sequence when, for example, the instruction at address 1 is a Do instruction. The instruction at address 1 is latch section 4
When latched to 00 and decoded, the latch circuit 20
Address Ad6 of No. 4 fetches the instruction at address No. 2. However, at this time, the clocks applied to the latch section 400 and the latch H2O4 are stopped by the clock control circuit 502. For this purpose, the command given to the decoder 501 is 1
The address command is maintained, and the address Ad6 also maintains the contents for address 2 fetch. As a result, decoding and execution of the 1st address instruction held in latch section 400 continues. To move from this state to another state, for example, a condition code is input. At that time, the instruction at address 2 is decoded and executed.

この命令は、例えば全ての画素データに対して同じ処理
を行なう場合に有効であり、1命令でよい。
This command is effective, for example, when performing the same processing on all pixel data, and only one command is required.

C0NT命令 この命令は、先の第3図で説明した動作と同じであり、
第3図のa、b、c、dが連続した番地となる。
C0NT instruction This instruction is the same as the operation explained in Figure 3 above,
The addresses a, b, c, and d in FIG. 3 are consecutive addresses.

JMP命令 この命令は、プログラムテーブル600に予め格納され
ている命令を利用して、ジャンプ動作時の命令の途絶え
を防止するものである。
JMP instruction This instruction uses instructions previously stored in the program table 600 to prevent interruption of instructions during a jump operation.

第5図はジャンプ動作時のシーケンス例を示している。FIG. 5 shows an example of a sequence during a jump operation.

a、b、c・・・が連続番地であり、例えばb番地の命
令をデコードしたときにジャンプ命令が成立したとする
と、b番地命令を実行している間にプログラムテーブル
600のプログラムデータが出力される。また切換え回
路301,302が制御コード■、■により制御されて
、プログラムテーブル600からのデータがラッチ部4
00にラッチされる。アドレス制御部200では、C番
地命令を読込むためのアドレスが発生するが、ジャンプ
番地(例えば40番地)の命令がデコードされる間に、
ブリフェッチアドレスは(40+1)番地におきかわる
。これは、ジャンプ命令のときは、制御コードAα、■
、■によりジャンプアドレステーブル201.切換え回
・路202゜203が制御され、ジャンプアドレステー
ブル201に予め格納されている41番地のアドレスが
ラッチ回路204にラッチされるからである。
If a, b, c, etc. are consecutive addresses and, for example, a jump instruction is established when the instruction at address b is decoded, the program data in the program table 600 is output while the instruction at address b is being executed. be done. Furthermore, the switching circuits 301 and 302 are controlled by the control codes ■ and ■, and the data from the program table 600 is transferred to the latch section 4.
It is latched to 00. In the address control unit 200, an address for reading the C address instruction is generated, but while the instruction at the jump address (for example, address 40) is decoded,
The brief fetch address is replaced by address (40+1). In the case of a jump instruction, this is the control code Aα,■
, ■ jump address table 201. This is because the switching circuits 202 and 203 are controlled, and the address at address 41, which is stored in advance in the jump address table 201, is latched into the latch circuit 204.

これにより40番地の命令が実行されるときは、41番
地の命令がデコードされていることになり、ブリフェッ
チが連続して得られる。
As a result, when the instruction at address 40 is executed, it means that the instruction at address 41 has been decoded, and brief fetches can be obtained continuously.

仮にプログラムテーブル600を使用しないで、外部メ
モリ100のジャンプ番地(40番地)をアクセスする
とすると、b番地命令をデコードしてデコード結果が判
明する図示のX点から40番地命令をフェッチしなけれ
ばならない。これであると、期間tは、外部メモリ10
0のアクセスタイムを充分満足することができず、デー
タ誤りなどを生じる。
If the jump address (address 40) of the external memory 100 is accessed without using the program table 600, the instruction at address b must be decoded and the instruction at address 40 must be fetched from point X in the figure, where the decoding result is known. . In this case, the period t is the external memory 10
It is not possible to fully satisfy the access time of 0, resulting in data errors and the like.

ジャンプ先としては、ジャンプ直前のデコード出力によ
り、種々のジャンプ番地を設定することができるもので
、プログラムテーブル600に予め各種のプログラムデ
ータを格納しておき、また対応した次の番地をジャンプ
アドレステーブル201に格納しておき、デコード内容
により選択すればよい。
As the jump destination, various jump addresses can be set by decoding output immediately before the jump. Various program data are stored in advance in the program table 600, and the corresponding next address is set in the jump address table. 201 and select it depending on the decoded content.

上記の説明は、各DO,C0NT、JMPの命令を個々
に説明した。しかし実際にシステムが動作する場合には
、上記命令の組合わせにより動作する。
In the above description, each DO, C0NT, and JMP command was explained individually. However, when the system actually operates, it operates by a combination of the above instructions.

例えばDo/C0NT/JMP命令を使うには、第6図
に示すような処理を行なうときに有効である 第6図は、映像信号A2の一部に部分的に映像信号を8
2を挿入する場合、両者の利得の均一化を得るために乗
数を掛けるときの処理を示している。映像信号A2にα
、映像信号B2にβの乗数を掛けるものとすると、ステ
ップs01で映像信号A2にαを掛け、映像信号B2が
入力したか否かを判断する(ステップs 02)。映像
信号B2が入力していなければ、水平同期があるか否か
を判定しくステップ803)、水平同期が無ければステ
ラ1S吋に戻る。ステップs02で映像信号B2が入力
したときは、映像信号B2に乗数βを掛け(ステップ5
04)、水平同期があるか否かを判断する(ステップ5
05)。ここで水平同期が無ければステップs02に戻
る(CONT)。ステップs03、s05で水平同期が
得られた場合は、同期期間に必要な例えば乗数の変更処
理などにジャンプ(JMP)する。この処理が終われば
、またステップsolに戻るようにしておけば上記の処
理が継続される。ステップs02の判断出力としては、
例えば演算部の比較結果得られたフラッグにより判定す
ることができこれを第1のコンディションコードとして
用い、また同期信号を第2のコンディションコードとし
て用いれば良い。このように1つの命令を1回アクセス
すれば、コンディションコードを利用することにより複
数の処理機能を実現できる。
For example, when using the Do/C0NT/JMP command, the process shown in FIG. 6 is effective when performing the processing shown in FIG.
In the case of inserting 2, processing is shown for multiplying by a multiplier in order to equalize the gains of both. α to video signal A2
, if the video signal B2 is multiplied by a multiplier of β, the video signal A2 is multiplied by α in step s01, and it is determined whether the video signal B2 has been input (step s02). If the video signal B2 is not input, it is determined whether there is horizontal synchronization (step 803), and if there is no horizontal synchronization, the process returns to Stella 1S. When the video signal B2 is input in step s02, the video signal B2 is multiplied by the multiplier β (step 5
04), determine whether there is horizontal synchronization (step 5)
05). If there is no horizontal synchronization here, the process returns to step s02 (CONT). If horizontal synchronization is obtained in steps s03 and s05, the process jumps to processing for changing the multiplier, etc., which is necessary during the synchronization period (JMP). When this process is finished, the process described above can be continued by returning to step sol. As the judgment output of step s02,
For example, the determination can be made based on a flag obtained as a result of comparison by the arithmetic unit, and this may be used as the first condition code, and the synchronization signal may be used as the second condition code. In this way, by accessing one instruction once, multiple processing functions can be realized by using condition codes.

次に、例えばDO/JMF’/JMPの命令のときは次
のような条件と命令の関係になる。
Next, for example, in the case of a DO/JMF'/JMP command, the relationship between the conditions and the command is as follows.

(1)コンディションコードXi、X2が共に成立しな
いとき・・・DO (2)コンディションコードx1が成立したとき0.。
(1) When both condition codes Xi and X2 do not hold...DO (2) When condition code x1 holds 0. .

JMP (3)コンディションコードX2が成立したとき・・・
JMP (4)コンディションコードXi、X2共に成立したと
き・・・JMP このような場合は、ジャンプ先の番地を各(2)。
JMP (3) When condition code X2 is established...
JMP (4) When condition codes Xi and X2 are both established...JMP In this case, set the jump destination address to each (2).

(3)の条件のときに異なる番地にしておけば3分岐(
1つはDo全命令とき)が得られる。(4)の条件のと
きは、2つのジャンプ先のいずれかの番地が優先する。
If condition (3) is met, if you set different addresses, there will be 3 branches (
One is obtained when there is a Do all command). In the case of condition (4), one of the two jump destination addresses takes priority.

例えばa番地の命令がDo/JMP/JMPであり、第
1のジャンプ先が例えば40番地、第2のジャンプ先が
50番地であるとする。このときは、ジャンプアドレス
テーブル201のアドレスAdl、 Ad2として41
番地と51番地が設定されている。そしてプログラムテ
ーブル600には、予め40番地命令と、50番地命令
とが記憶されている。
For example, assume that the instruction at address a is Do/JMP/JMP, the first jump destination is address 40, and the second jump destination is address 50, for example. At this time, the addresses Adl and Ad2 of the jump address table 201 are set to 41.
The address and address 51 are set. In the program table 600, a 40th address instruction and a 50th address instruction are stored in advance.

そして例えば、Do全命令自番地ループ)を実行中(第
4図で説明)に、コンディションコードX1が成立(例
えば演算器のフラッグに応答)すると第5図で説明した
ように40番地にジャンプし、コンディションコードX
2が成立(同期信号到来)すると50番地にジャンプす
る。これは、例えば同期信号に同期してアドレスを発生
させるとともに映像信号のアドレスを発生させる場合な
どに有効である。例えば、第7図(a)に示すように初
期値から最大(MAX)までの三角波を得るアドレスを
発生するには、同図(b)に示すような処理が必要であ
る。
For example, when the condition code X1 is established (for example, in response to the flag of the arithmetic unit) while executing the Do all instruction own address loop (explained in Figure 4), the program jumps to address 40 as explained in Figure 5. , condition code X
When 2 is established (synchronization signal arrives), it jumps to address 50. This is effective, for example, when generating an address in synchronization with a synchronization signal and also generating an address for a video signal. For example, in order to generate an address for obtaining a triangular wave from the initial value to the maximum (MAX) as shown in FIG. 7(a), processing as shown in FIG. 7(b) is required.

つまり、初期値を与えて初期アドレスを得る(ステップ
sl)。次に初期アドレスに増加分を加算して(ステッ
プs2)その値PAが最大値を越えたかどうかを比較器
により判定する(ステップs3)。最大値に達していな
い場合には、水平同期が到来したか否かを判定する(ス
テップs4)。水平同期が到来していれば、ステップS
1に戻り、到来していなければステップS2に移行する
。ステップs3でPAが最大値に達していれば、ステッ
プs5でPA−0にして水平同期が到来しているかどう
かを判定する(ステップs6)。水平同期が到来してい
なければステップS1に戻る。水平同期が到来すればス
テップs7に分岐する。このような処理を行なうことは
、同図(a)に示すような各種の三角波で変化する映像
信号アドレスを発生できることになる。
That is, an initial value is given to obtain an initial address (step sl). Next, the increment is added to the initial address (step s2), and a comparator determines whether the value PA exceeds the maximum value (step s3). If the maximum value has not been reached, it is determined whether horizontal synchronization has arrived (step s4). If horizontal synchronization has arrived, step S
1, and if it has not arrived, the process moves to step S2. If PA has reached the maximum value in step s3, it is set to PA-0 in step s5 and it is determined whether horizontal synchronization has arrived (step s6). If horizontal synchronization has not arrived, the process returns to step S1. When horizontal synchronization occurs, the process branches to step s7. By performing such processing, it is possible to generate video signal addresses that change with various triangular waves as shown in FIG. 2(a).

ステップ82.83,85.86のループは、Do全命
令相当し、ステップs4あるいはS6で水平同期が到来
した場合は、条件1(第1のJMP命令)に相当し、ス
テップS4で水平同期□ が無い場合は条件2(第2の
JMP命令)に相当する。
The loop of steps 82.83 and 85.86 corresponds to all Do commands, and when horizontal synchronization occurs in step s4 or S6, it corresponds to condition 1 (first JMP command), and in step S4 horizontal synchronization □ If there is no command, this corresponds to condition 2 (second JMP command).

同図(a)のアドレス波形を連続して発生する場合は、
水平同期が到来したときは、第1のジャンプ先のプログ
ラムで、同期信号期間に必要な例えばデータの書替えや
演算などの処理を行ない、その後ステップslに戻るよ
うにすればよい。同図(a)では、アドレス波形が水平
同期に位相同期した例と、水平周期で1/2位相がずれ
例を示しているが、このような波形を得るにはステップ
s1における初期値とステップs2における基準値(P
A)を変更することにより可能である。
When the address waveform shown in figure (a) is generated continuously,
When horizontal synchronization has arrived, the program at the first jump destination may perform processing such as data rewriting or calculation required during the synchronization signal period, and then return to step sl. Figure (a) shows an example in which the address waveform is phase synchronized with the horizontal synchronization, and an example in which the address waveform is phase shifted by 1/2 in the horizontal period.To obtain such a waveform, the initial value in step s1 and the step Reference value at s2 (P
This is possible by changing A).

次に上記したシーケンサが利用される映像信号処理シス
テムの例を説明する。
Next, an example of a video signal processing system using the above-described sequencer will be explained.

第8図において、ネットワーク部2oには、17ビツト
の2つの外部映像信号AI、Blを入力することができ
る。この他にも17ビツトの入力部が用意され、全体で
32ある。
In FIG. 8, two 17-bit external video signals AI and Bl can be input to the network section 2o. In addition to this, 17-bit input sections are prepared, making 32 in total.

ネットワーク部20は、複数(例えば17x48)の1
7ビツト出力部を有し、例えば第17番目から第48番
目の出力部を2組づつまとめ各組をプログラマブル演算
処理部21 (01)〜21(16)にそれぞれ接続し
ている。プログラマブル演算処理部21 (01)〜2
1 (1B)の各出力はそれぞれネットワーク部20の
例えば第17番目がら第32番目までの入力部に接続さ
れている。ネットヮ−ク部20には、最終的な映像出力
を得るための出力部が設けられている。出力部は複数(
例えば第1番目から第16番目まで)設けられ、次段の
同様なネットワーク部に接続することができる。
The network unit 20 includes a plurality of (for example, 17x48)
It has a 7-bit output section, and for example, the 17th to 48th output sections are grouped into two sets and each set is connected to the programmable arithmetic processing sections 21 (01) to 21 (16), respectively. Programmable arithmetic processing unit 21 (01) to 2
1 (1B) are respectively connected to, for example, the 17th to 32nd input sections of the network section 20. The network section 20 is provided with an output section for obtaining a final video output. There are multiple output sections (
For example, from the 1st to the 16th network section), and can be connected to a similar network section at the next stage.

22はメイン制御部であり、ネットワーク部20、演算
処理部21 (01)〜21 (1B)の各制御部に対
して制御信号を与える。
A main control section 22 provides control signals to the network section 20 and the arithmetic processing sections 21 (01) to 21 (1B).

上記のシステムで扱われる入力デジタル信号形式は、同
図(b)に示すように全体で17ビツトであり、その内
1ビットが同期信号情報として利用され、残りのビット
が映像信号データあるいは同期信号データである。同期
信号情報が、“1“のときは残りの16ビツトが同期信
号データであり、“0”のときは残りの16ビツトは映
像信号データである。
The input digital signal format handled by the above system is 17 bits in total, as shown in Figure (b), of which 1 bit is used as synchronization signal information, and the remaining bits are used as video signal data or synchronization signal. It is data. When the synchronization signal information is "1", the remaining 16 bits are synchronization signal data, and when it is "0", the remaining 16 bits are video signal data.

さらにネットワーク部20は、例えば9個のLSIが1
つのボードに設けられて構成され、17ビツトの入力部
及び出力部は、それぞれLSIに2ビツトづつ割当てら
れる。このようにして1つのLSIの端子数の増大を防
ぐようにする。またネットワーク部20には、ネットワ
ーク制御部が内蔵されておりメイン制御部22あるいは
演算処理部からの指令によりプログラマブルにその入力
出力接続系統を切換えることができる。
Further, the network section 20 has nine LSIs connected to one
The 17-bit input section and the 17-bit output section each have 2 bits assigned to each LSI. In this way, an increase in the number of terminals on one LSI is prevented. Further, the network section 20 has a built-in network control section, and the input/output connection system can be programmably switched by a command from the main control section 22 or the arithmetic processing section.

第9図は、演算処理部の1つ、例えば21 (01)を
取出して示している。
FIG. 9 shows one of the arithmetic processing units, for example 21 (01).

ネットワーク部20は、その制御状態により、演算処理
部21 (01)に対して、前記外部映像信号A1、B
1あるいは、他の演算処理部から帰還された映像信号を
ベアでこの演算処理部21 (01)に供給することが
でき、また一方の映像信号のみを供給することもできる
Depending on its control state, the network section 20 transmits the external video signals A1 and B to the arithmetic processing section 21 (01).
Alternatively, the video signal fed back from the calculation processing section 21 (01) or another calculation processing section can be supplied bare to this calculation processing section 21 (01), or only one video signal can be supplied.

演算処理部21 (Of)は、映像信号A2.B2を受
付ける2人力部を有し、各入力部は、同期分離部31A
、31Bに接続されている。同期分離部31A、31B
で分離された同期信号は、シーケンサ37に人力され、
演算処理部21 (01)の動作タイミングを決めるた
めの基準とされたり、映像信号A2.B2の時間調整の
ために利用される。
The arithmetic processing unit 21 (Of) receives the video signal A2. It has two input sections that accept B2, and each input section is connected to a synchronization separation section 31A.
, 31B. Synchronization separation section 31A, 31B
The synchronization signal separated by is input to the sequencer 37,
It is used as a reference for determining the operation timing of the arithmetic processing unit 21 (01), and the video signal A2. Used for time adjustment of B2.

同期分離部31A、31Bで分離された16ビツトの映
像データは、乗算部32及び演算部33に入力すること
ができる。乗算部32では、2つの映像信号同士を乗算
したりあるいは片方の映像信号に定数や可変値を乗算す
ることができる。演算部33では、2人力映像信号を加
算、減算あるいは比較処理したり、一方の映像信号に対
しである値を加算あるいは減算、更にはある値との比較
処理を行なうことができる。
The 16-bit video data separated by the synchronization separation sections 31A and 31B can be input to the multiplication section 32 and the calculation section 33. The multiplier 32 can multiply two video signals or can multiply one video signal by a constant or a variable value. The arithmetic unit 33 can add, subtract, or compare two video signals, add or subtract a certain value to one video signal, or perform a comparison process with a certain value.

乗算部32と演算部33で得られた出力は、さらに互い
の一方の入力に供給することができまた、切換え部34
にも供給される。
The outputs obtained by the multiplier 32 and the arithmetic unit 33 can be further supplied to one input of each other, and
Also supplied.

切換え部34は、いずれか一方の入力を選択して出力し
、その出力は同期付加部35を介して導出される。同期
付加部35では、同期信号の付加あるいは停止を行なう
ことができる。
The switching unit 34 selects and outputs one of the inputs, and the output thereof is derived via the synchronization adding unit 35. The synchronization adding section 35 can add or stop a synchronization signal.

この演算処理部21 (01)には、更に同期信号処理
部36、アドレス発生部38が設けられている。
This arithmetic processing section 21 (01) is further provided with a synchronization signal processing section 36 and an address generation section 38.

さらに外部のプログラムメモリに附随して、コントロー
ルメモリ41も内蔵されている。コントロールメモリ4
1は、演算処理部21 (Of)内部の各データ処理部
がそれぞれ独自の分担処理を行なう場合に、全ての命令
をプログラムメモリからその都度読み出す必要がないよ
うに、各デー9夕処理部の固有のプログラムを予め格納
することができるものである。
Furthermore, a control memory 41 is also included in addition to the external program memory. control memory 4
1 is designed so that when each data processing section inside the arithmetic processing section 21 (Of) performs its own assigned processing, it is not necessary to read out all instructions from the program memory each time. A unique program can be stored in advance.

第10図は上記のシステムを用いて、映像信号の合成を
行なう場合の例を示している。この場合は、ネットワー
ク部20は、演算処理部21 (01)から21 (0
3)の接続形態を図のように設定すれば外部映像信号A
1と81とを加算合成した出力を得ることができる。映
像信号A1は演算処理部21 (01)の乗算器に入力
されα倍され、映像信号B1は演算処理部21 (02
)の乗算器に入力され(1−α)倍される。各乗算器の
出力は、演算処理部21 (03)に入力され、演算器
において加算処理されて導出される。 ネットワーク部
20及び演算処理部21 (01)〜21 (1B)は
その処理目的に応じて各種の形態に切換え可能である。
FIG. 10 shows an example of combining video signals using the above system. In this case, the network section 20 operates from the arithmetic processing sections 21 (01) to 21 (0
If the connection form of 3) is set as shown in the figure, the external video signal A
An output obtained by adding and combining 1 and 81 can be obtained. The video signal A1 is input to the multiplier of the arithmetic processing unit 21 (01) and multiplied by α, and the video signal B1 is input to the multiplier of the arithmetic processing unit 21 (02).
) is input to the multiplier and multiplied by (1-α). The output of each multiplier is input to the arithmetic processing unit 21 (03), and is added and derived in the arithmetic unit. The network section 20 and the arithmetic processing sections 21 (01) to 21 (1B) can be switched to various forms depending on their processing purpose.

上記のような演算処理部において、それぞれ受持ちの映
像信号処理を行なう場合、先に説明したシーケンサは有
効に利用され、命令をアクセスする場合に映像信号の実
時間処理を円滑に得ることができる。
When each of the arithmetic processing units described above performs its own video signal processing, the sequencer described above is effectively used, and real-time processing of the video signal can be smoothly obtained when accessing instructions.

[発明の効果] 上記したようにこの発明は、プログラム実効の中にあっ
てもコンディションコードを常時チエツクできる構成と
して、コンディションコードの内容に応じて、その判定
を待つまでもなく自動的にジャンプアドレスが得られる
ようにしリアルタイム処理に有効な回路を得る。
[Effects of the Invention] As described above, the present invention has a configuration in which the condition code can be checked at all times even during program execution, and the jump address is automatically set according to the content of the condition code without waiting for its determination. A circuit that is effective for real-time processing is obtained.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は第1図の回路を更に具体化して示すブロック図、第3
図乃至第5図はこの発明装置の動作例を説明するために
示したシーケンス説明図、第6図及び第7図はこの発明
装置により実効される信号処理の例を示す説明図、第8
図(a)はこの発明を用いた装置の全体を示す構成説明
図、同図(b)は信号フォーマットを示す図、同図(c
)はネットワーク部を更に説明するために示した図、第
9図は第8図の演算処理部の構成を示すブロック図、第
10図はこの発明による信号処理・形態の一例を示す説
明図である。 100・・・外部メモリ、200・・・アドレス制御部
、201・・・ジャンプアドレステーブル、201゜2
03・・・切換え回路、204・・・ラッチ回路、20
5・・・プログラムカウンタ。 出願人代理人 弁理士 鈴江武彦 第6図   ゛ 水平ITI朋 第7図 x(1−α) 第10図 (a) 第 8 7bit (b)
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a block diagram showing a further embodiment of the circuit in FIG. 1, and FIG.
5 to 5 are sequence explanatory diagrams shown to explain an example of the operation of this invention device, FIGS. 6 and 7 are explanatory diagrams showing an example of signal processing executed by this invention device, and FIG.
Figure (a) is an explanatory diagram showing the overall configuration of the device using this invention, Figure (b) is a diagram showing the signal format, Figure (c
) is a diagram shown to further explain the network section, FIG. 9 is a block diagram showing the configuration of the arithmetic processing section in FIG. 8, and FIG. 10 is an explanatory diagram showing an example of the signal processing/form according to the present invention. be. 100...External memory, 200...Address control unit, 201...Jump address table, 201゜2
03...Switching circuit, 204...Latch circuit, 20
5...Program counter. Applicant's agent Patent attorney Takehiko Suzue Figure 6 ゛Horizontal ITI Figure 7 x (1-α) Figure 10 (a) 8th 7bit (b)

Claims (1)

【特許請求の範囲】[Claims] プログラムメモリに対してアドレスを与えるアドレス制
御部と、前記プログラムメモリからのプログラムデータ
が与えられる被制御対象部と、この被制御対象部から得
られる複数のコンディションコードにより前記アドレス
制御部を制御し、前記コンディションコードが形成する
各状態に応じて予めセットされたそれぞれの分岐アドレ
スを発生し該プログラムメモリに与える手段とを具備し
たことを特徴とするプロセッサ制御装置。
an address control unit that provides an address to a program memory; a controlled target unit that receives program data from the program memory; and a plurality of condition codes obtained from the controlled target unit to control the address control unit; A processor control device characterized by comprising means for generating preset branch addresses in accordance with each state formed by the condition code and providing them to the program memory.
JP63051206A 1988-02-12 1988-03-04 Processor controller Pending JPH01224836A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP63051206A JPH01224836A (en) 1988-03-04 1988-03-04 Processor controller
KR1019890001283A KR920001287B1 (en) 1988-02-12 1989-02-03 Digital video signal processing apparatus
US07/308,306 US4991019A (en) 1988-02-12 1989-02-09 Digital video signal processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63051206A JPH01224836A (en) 1988-03-04 1988-03-04 Processor controller

Publications (1)

Publication Number Publication Date
JPH01224836A true JPH01224836A (en) 1989-09-07

Family

ID=12880430

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63051206A Pending JPH01224836A (en) 1988-02-12 1988-03-04 Processor controller

Country Status (1)

Country Link
JP (1) JPH01224836A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5433645A (en) * 1978-07-07 1979-03-12 Toshiba Corp Signal control unit
JPS55119747A (en) * 1979-03-08 1980-09-13 Nec Corp Microprogram control unit
JPS5627453A (en) * 1979-08-09 1981-03-17 Sanyo Electric Co Ltd Address control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5433645A (en) * 1978-07-07 1979-03-12 Toshiba Corp Signal control unit
JPS55119747A (en) * 1979-03-08 1980-09-13 Nec Corp Microprogram control unit
JPS5627453A (en) * 1979-08-09 1981-03-17 Sanyo Electric Co Ltd Address control system

Similar Documents

Publication Publication Date Title
KR920001287B1 (en) Digital video signal processing apparatus
US5459847A (en) Program counter mechanism having selector for selecting up-to-date instruction prefetch address based upon carry signal of adder which adds instruction size and LSB portion of address register
JPH0869377A (en) Electronic circuit and method for use of coprocessor
JPH0772864B2 (en) Digital signal processor
US5185880A (en) Stored instructions executing type timing signal generating system
JPH01224836A (en) Processor controller
JP2523767B2 (en) Advance control device
US5590364A (en) Signal processing apparatus
JPH01224837A (en) Processor controller
JP2000010779A (en) Digital signal processor
KR100345937B1 (en) A digital signal processor
JP2906792B2 (en) Digital processor and control method thereof
JPS63298633A (en) Instruction fetching control system in pipeline processor
US5822775A (en) Efficient data processing method for coefficient data in a digital dignal, processor
JP2001092658A (en) Data processing circuit and data processor
JP2825315B2 (en) Information processing device
JP3971509B2 (en) Processor
JPH02100137A (en) Instruction execution control system
JPH09288506A (en) Sequence control circuit capable of programming
JPH0228724A (en) System for controlling branching instruction
JPH05265746A (en) Microprocessor
JPH07104996A (en) Microprogram controller
JPH0812599B2 (en) Data processing device
JPH04278636A (en) Microprogram controller
JPH01112347A (en) Address control circuit for digital signal processor