JPH0619701A - Flag control circuit - Google Patents

Flag control circuit

Info

Publication number
JPH0619701A
JPH0619701A JP4030271A JP3027192A JPH0619701A JP H0619701 A JPH0619701 A JP H0619701A JP 4030271 A JP4030271 A JP 4030271A JP 3027192 A JP3027192 A JP 3027192A JP H0619701 A JPH0619701 A JP H0619701A
Authority
JP
Japan
Prior art keywords
flag
output
comparator
threshold value
control circuit
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.)
Withdrawn
Application number
JP4030271A
Other languages
Japanese (ja)
Inventor
Shinobu Abe
忍 阿部
Seiji Kawamura
誠司 川村
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 JP4030271A priority Critical patent/JPH0619701A/en
Publication of JPH0619701A publication Critical patent/JPH0619701A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently use ROM into which firmware being a program that sequentially operates a flag control circuit is written and which has prescribed capacity and to speed up processing speed. CONSTITUTION:The flag control circuit which compares an operated result Cres that is the output of an ALU computing element 10 and is accumulated in an accumulator C with an arbitrary threshold Th in a comparator 20 and which controls the polarity H/L of the flag of the compared result is provided with a threshold register 1 storing the arbitrary threshold Th becoming the reference input of the comparator 20. The comparator 20 being hardware compares the operated result Cres accumulated in the accumulator C with the threshold Th stored in the threshold register 1 and the signal H of the compared result is inputted to a latch 30. An input clock CLK to the latch 30 is decided by the output signal H when an instruction program which is firmware that is previously written into ROM 41 and which judges the state H/L of the flag is executed, and the clock is transmitted from the latch 30 as a positive H flag F0.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はデータ伝送でディジタル
信号を処理するプロセッサDSPに係り、特に其の主要
部であるALU演算器の演算結果と所定のしきい値とを
比較しその大小を判断し、その結果の信号として正負極
性のフラグH/L を出力するフラグ制御回路に関する。其
のフラグ制御回路としては、そのハードウェアの回路の
構成がやむを得ず大きくなっても、それを動作させる制
御プログラムであるファームウェアの規模は出来るだけ
小さいことが望まれている。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a processor DSP for processing digital signals in data transmission, and in particular, compares the arithmetic result of an ALU arithmetic unit, which is the main part thereof, with a predetermined threshold value to judge the magnitude. The present invention relates to a flag control circuit that outputs a positive / negative polarity flag H / L as a result signal. As for the flag control circuit, it is desired that the scale of the firmware which is the control program for operating the flag control circuit is as small as possible, even if the hardware circuit configuration becomes unavoidably large.

【0002】[0002]

【従来の技術】従来のディジタル信号処理DSP のファー
ムウェアの一例として、図4に、2個のデータA,Bの算
術および論理演算を行うALU演算器により其の出力の
アキュムレータC に生成された或る演算結果Cresと、そ
の任意のしきい値Thとを比較し大小を判断する場合の処
理のフローを示す。そしてこの図4の判断処理を行うた
めのハードウェアの構成を図5に示す。図5のALU演
算器10で其の出力のアキュムレータC に生成された演算
結果Cresと任意のしきい値Thとを比較し大小の判断を行
う場合、図4の(100) の処理プログラムで、2個のデー
タの算術および論理演算を行うALU演算器10で、その
出力のアキュムレータC に生成した演算結果Cresを、(1
01) の処理プログラムで、退避用レジスタB に転送し、
次に、その大小比較の基準値となるしきい値Thを演算用
レジスタA に代入する。その後(102) の処理プログラム
で、再びALU演算器で、退避用レジスタB の出力のア
キュムレータC の値Cresから演算用レジスタA の出力の
しきい値Thを減算し、その減算結果Ccmpをアキュムレー
タC に残す。このアキュムレータC に残った減算結果Cc
mpが、求めているALU演算器10の演算結果Cresとしき
い値Thとの比較結果である。そしてこの減算結果Ccmpの
正負を定める為に、(103) の処理プログラムで、接地GN
D の値0 との大小比較を、比較器であるコンパレータ20
Aにて行い、減算結果Ccmpの方が値0 より大きい正の場
合及び値0 に等しい時、即ち Cres ≧0の時のコンパレ
ータ20A の出力"H"を、データのラッチ30である Dフリ
ップフロップFFの D入力とし、その定められたクロック
入力CLK により該FFの Q出力の信号H/L を、その大小比
較の条件分岐のアドレスを表す正負H/Lの信号のフラグF
1とし、フラグモニタFMで其の正H のフラグF1を選択
し、其の正H のフラグF1の状態により、プログラムカウ
ンタPCの出力値を決定し、其のアドレスからの命令で実
行する構成であった。
2. Description of the Related Art As an example of firmware of a conventional digital signal processing DSP, FIG. 4 shows a case where an ALU arithmetic unit for performing arithmetic and logical operations of two data A and B is generated in an accumulator C of its output. A processing flow in the case of comparing the calculation result Cres and the arbitrary threshold value Th to judge the magnitude is shown. FIG. 5 shows the hardware configuration for performing the determination process of FIG. When the ALU calculator 10 of FIG. 5 compares the calculation result Cres generated in the accumulator C of its output with an arbitrary threshold value Th to judge the magnitude, the processing program of (100) of FIG. The arithmetic result Cres generated in the accumulator C of the output is calculated by (1
In the processing program of 01), transfer to the save register B,
Next, the threshold value Th, which is the reference value for the magnitude comparison, is assigned to the arithmetic register A. After that, in the processing program of (102), the ALU calculator again subtracts the threshold value Th of the output of the register A for calculation from the value Cres of the accumulator C of the output of the save register B, and the subtraction result Ccmp is used as the accumulator C. Leave on. Subtraction result Cc remaining in this accumulator C
mp is the comparison result between the calculated calculation result Cres of the ALU calculator 10 and the threshold value Th. Then, in order to determine the positive or negative of this subtraction result Ccmp, in the processing program of (103), ground GN
Comparing the magnitude of D value 0 with the comparator 20
When the subtraction result Ccmp is greater than 0 and is equal to 0, that is, when Cres ≥0, the output "H" of the comparator 20A is the D flip-flop which is the data latch 30. It is used as the D input of FF, and the signal H / L of the Q output of the FF is output by the defined clock input CLK, and the flag F of the positive / negative H / L signal that represents the address of the conditional branch of the magnitude comparison
1, and selects the flag F 1 of its positive H flag monitor FM, the state of the flag F 1 of its positive H, determines the output value of the program counter PC, executes the instruction from its address It was a composition.

【0003】[0003]

【発明が解決しようとする課題】従来のディジタル信号
処理DSP の主要部のALU演算器により或る演算結果と
任意のしきい値とを比較しその大小判断を行う場合は、
上記の如く、初めALU演算器10の出力のアキュムレー
タC に生成されたALU演算の演算結果Cresを、任意の
しきい値Thと比較して其の大小の判断を行うために、再
びALU演算器10にて前の演算結果Cresと所定のしきい
値Thとの減算を行う必要がある。従って、これ等のハー
ドウェアの回路を動作させる処理プログラムを一定容量
の ROM 40に書き込みファームウェアとするには、図4
の処理プログラムのフローの如く、其の処理プログラム
100 〜103の数が大きくて、それを書き込む一定容量のR
OM40の負担が大きくなると言う問題と処理に時間が掛か
ると言う問題があった。
In the case of comparing a certain calculation result with an arbitrary threshold value by the ALU calculator of the main part of the conventional digital signal processing DSP and judging the magnitude,
As described above, in order to compare the operation result Cres of the ALU operation generated in the accumulator C of the output of the ALU operator 10 with an arbitrary threshold value Th and judge the magnitude of the threshold value Th again, the ALU operator again. At 10, it is necessary to subtract the previous calculation result Cres from the predetermined threshold Th. Therefore, in order to write the processing program for operating these hardware circuits into the ROM 40 of a certain capacity and to make it the firmware,
The processing program, like the processing program flow
The number of 100-103 is large, and R of a certain capacity to write it
There was a problem that the load on the OM40 would be heavy and a problem that processing would take time.

【0004】本発明の目的は、ディジタル信号処理DSP
の主要部のALU演算器でアキュムレータC に生成され
た演算結果Cresと任意のしきい値Thとを比較し大小判断
を行う場合に、其の各回路を動作させる為に ROMに書き
込まねばならないファームウェアとしての処理プログラ
ムの数が成るべく少なくて済み、結果として高速度で処
理されて、ファームウェア上で、ALU演算の結果Cres
としきい値Thとの大小判断の結果の条件分岐H/Lを表す
フラグF0を出力するフラグ制御回路を実現することにあ
る。
The object of the present invention is to provide a digital signal processing DSP.
The firmware that must be written in ROM to operate each circuit when comparing the calculation result Cres generated in the accumulator C with the arbitrary threshold Th by the ALU calculator of the main part of As a result, the number of processing programs is as small as possible, resulting in high-speed processing, and the result of ALU calculation Cres
It is to realize a flag control circuit that outputs a flag F 0 indicating a conditional branch H / L as a result of the judgment of the magnitude of the threshold value Th and the threshold value Th.

【0005】[0005]

【課題を解決するための手段】この目的達成のための本
発明のフラグ制御回路の基本構成を図1の原理図に示
す。図1の原理図の中で、10はディジタル信号を処理す
るプロセッサDSP の主要部である2個の入力データA,B
の算術および論理演算を行うALU演算器であり、20は
ALU演算器(10)の出力のアキュムレータC に蓄積され
た演算結果Cresと基準入力の任意のしきい値Thとの大小
を比較する比較器である。1は比較器(20)の基準入力の
任意のしきい値Thを記憶するしきい値レジスタであり、
前記アキュムレータ(C)に蓄積されたALU演算器(10)
の演算結果(Cres)と該しきい値レジスタ(1)に記憶され
たしきい値(Th)との大小比較をハードウェアの比較器(2
0)により行い、その比較器の出力の比較結果が(Cres ≧
Th)の時の出力(H) が、データラッチ(30)の Dフリップ
フロップFF(30)の D入力に入力され、予め ROM(41)にフ
ァームウェアとして書込まれた該大小比較の比較結果を
表すフラグFの状態(H)を判断する命令プログラムが、実
行された時の出力信号(H)により、其のFF( 30)の入力ク
ロック(CLK)の入力が定められて、其のFF(30)の Q出力
から正(H)のフラグ(F0)として送出されるように構成す
る。
The basic configuration of the flag control circuit of the present invention for achieving this object is shown in the principle diagram of FIG. In the principle diagram of FIG. 1, reference numeral 10 denotes two input data A and B which are main parts of a processor DSP which processes digital signals.
Is an ALU arithmetic unit for performing arithmetic and logical operations of, and 20 is a comparison for comparing the arithmetic result Cres stored in the accumulator C of the output of the ALU arithmetic unit (10) with the arbitrary threshold Th of the reference input. It is a vessel. 1 is a threshold value register that stores an arbitrary threshold value Th of the reference input of the comparator (20),
ALU computing unit (10) stored in the accumulator (C)
Comparing the result of calculation (Cres) with the threshold value (Th) stored in the threshold value register (1), the hardware comparator (2
0) and the comparison result of the output of the comparator is (Cres ≧
The output (H) at the time of (Th) is input to the D input of the D flip-flop FF (30) of the data latch (30), and the comparison result of the magnitude comparison written in advance as firmware in the ROM (41) is displayed. The input signal (H) of the FF (30) determines the input of the input clock (CLK) of the FF (30) by the output signal (H) when the instruction program that determines the state (H) of the flag F It is configured to be sent as a positive (H) flag (F 0 ) from the Q output of 30).

【0006】[0006]

【作用】従来例と同様にALU演算器10のアキュムレー
タC に生成された演算結果Cresと基準入力となる任意の
しきい値Thとを比較し大小の判断を行う場合、本発明で
は、最初から、しきい値Thを、比較器20の基準入力とし
てしきい値レジスタ1 にロードする。比較器20は、此の
しきい値レジスタ1 にロードされたしきい値ThとALU
演算器10の出力のアキュムレータC に生成された演算結
果Cresとを入力し、両者の減算をして比較を行い、その
比較結果の(Cres ≧ Th)の時の出力(H) をデータラッチ
(30)のフリップフロップFF(30)の D入力に入力する事
と、ROM 41の中のファームウェアをデコーダ42でデコー
ドする事とが独立に行われる。そして、比較器20の比較
結果のCres≧Thの時の出力H が、データラッチ30のフリ
ップフロップFFを介し、正HのフラグF0として出力され
る。そして此の正H のフラグF0の実際の出力を、予め R
OM(41)に書き込まれたファームウェアで制御する。即
ち、予め ROM 41 に書き込まれたファームウェアの中の
前記比較器20の出力のフラグの状態H/L を判断する命令
プログラムを、デコーダ(42)でデコードし、フラグ状態
検出器(43)にて其のフラグ状態 Hを検出して実行した時
の出力信号(H)により、其のラッチのFF(30)の入力クロ
ック(CLK) の入力を定めて、該FF(30)の Q出力から正
(H)のフラグF0として送出する。此の後、ファームウェ
アは、正フラグF 0の状態H を基にして、前記比較器20に
おけるしきい値Thとの大小判断のプログラムの2つのア
ドレスの条件分岐を行う。この事により、本発明のフラ
グ制御回路は、そのハードウェアとしては比較器20に入
力するしきい値レジスタ1 の分だけ増大するが、ROM 41
に書き込まれるファームウェアの処理プログラムの数
は、図2の本発明の処理プログラムのフロー図に示す如
く、(202) のしきい値レジスタ1にしきい値THをロード
する1個の処理プログラムが、図4の従来の処理プログ
ラムの中の(101) のアキュムレータC の値Cresをレジス
タB に退避する処理プログラムと、(102)のアキュムレ
ータC の値Cresからしきい値Thを減算する処理プログラ
ムの2つの処理プログラムと等価の処理を行って、その
処理プログラムの数を1だけ減少させる。従って、其の
処理プログラムをファームウェアとして予め書き込む R
OM 41 の負担を軽減することが出来、処理を高速化する
ことが出来る。
The function of the ALU arithmetic unit 10 is the same as in the conventional example.
The calculation result Cres generated in C and any reference
In the present invention, when comparing the threshold value Th to judge the magnitude
From the beginning, the threshold value Th is set as the reference input of the comparator 20.
Load threshold register 1. Comparator 20
Threshold Th and ALU loaded in threshold register 1
The operation result generated in the accumulator C at the output of the operation unit 10
Enter the result Cres, subtract both and compare,
Data latch output (H) when comparison result (Cres ≥ Th)
Input to D input of (30) flip-flop FF (30)
Decoder 42 decodes the firmware in ROM 41.
This is done independently. And comparison of comparator 20
The resulting output H when Cres ≥ Th is
Positive F flag F via flip-flop FF0Is output as
It And this positive H flag F0The actual output of R
It is controlled by the firmware written in OM (41). Immediately
Of the firmware written in ROM 41 in advance
Command to judge the flag state H / L of the output of the comparator 20
Decode the program with the decoder (42), and flag status
When the flag state H is detected by the detector (43) and executed
The output signal (H) of the latch causes the input clock of FF (30) of that latch.
Clock (CLK) input, positive output from the Q output of the FF (30).
(H) flag F0As. After this, the firmware
A is the positive flag F 0Based on the state H of
Two thresholds of the threshold judgment Th
Perform conditional branching of the dress. Because of this, the flag of the present invention
The hardware control circuit is included in the comparator 20 as its hardware.
ROM 41
Number of firmware processing programs written to
Is as shown in the flow chart of the processing program of the present invention in FIG.
Load threshold TH into threshold register 1 of (202)
One processing program to execute is the conventional processing program of FIG.
Register (101) accumulator C value Cres in ram
Processing program to be saved in data B and the (102) Accumulation
Processing program that subtracts the threshold value Th from the value Cres of the data C
Performs processing equivalent to the two processing programs of
Decrease the number of processing programs by one. Therefore, that
Write the processing program as firmware in advance R
The load on the OM 41 can be reduced, and the processing speed can be increased.
You can

【0007】[0007]

【実施例】図3は本発明の実施例のフラグ制御回路の構
成を示すブロック図である。図3の中、図1と同じ記号
番号の回路は同じ機能の回路を表す。図3の中の新設の
44は、入力クロックCLK に同期して Q出力からデータを
出力するラッチである DフリップフロップFF 30 の Q出
力のフラグF0のH/Lを制御する為の入力クロックCLKに対
する ANDゲートであって、その一方の入力はクロックCL
K であり、他方の入力はROM 41に予め書き込まれたファ
ームウェアの中のフラグ状態Hの判断命令を検出し実行
した時の出力であって、この2入力の論理積を取る。比
較器20のコンパレータは、ALU演算器10の出力のアキ
ュムレータCの蓄積された演算結果Cresから、しきい値
レジスタ1 の出力のしきい値Thと比較する為に、しきい
値Thを減算する。そしてコンパレータ20の出力が(Cres
− Th ≧ 0)で、正の時のコンパレータ20の出力H を、
DフリップフロップFF 30 にラッチし、入力クロックCLK
に同期して出力させる為に、コンパレータ20の出力が
正(Cres − Th ≧ 0)の時の出力H を其の D入力に入力
し、CLK入力のクロックCLK に同期して Q出力から正Hの
フラグF0を出力する DフリップフロップFF 30の入力ク
ロックCLK をファームウェアによりオン/ オフする為に
ANDゲート44が設けられる。そしてANDゲート44は、ROM
41に予め書き込まれたファームウェアによる条件分岐
命令によりフラグF0の状態H/L を判断する時のみ、即
ち、予め ROM 41 に書き込まれたファームウェアである
コンパレータ20の出力のフラグ状態H/L を判断する命令
プログラムを、デコーダ42でデコードし、フラグ状態検
出器43にて其のフラグF0の状態 Hを検出して実行した時
の出力信号H を入力した時のみ、ANDゲート44の出力はH
となり、其の出力Hが、コンパレータ20の出力のラッチ
30の DフリップフロップFFへ、入力クロックCLK として
供給され DフリップフロップFFを動作させる。前記フラ
グ状態検出器43にて其のフラグF0の状態Hを検出しない
時は、その出力信号は Lとなるので、ANDゲート44の出
力はL となり、ANDゲート44の出力Lは、コンパレータ20
の出力のラッチ30の DフリップフロップFFへ入力クロッ
クCLK を供給せず、 DフリップフロップFFを非動作とす
る。従って、ラッチ30の DフリップフロップFFから以降
のフラグF0を保持するステータスレジスタ50と其のフラ
グF0の正負H/L を監視するフラグモニタFM等の回路も非
動作となって、フラグ制御回路の消費電力が削減され
る。なお、ALU演算器10の出力のアキュムレータCの
蓄積された演算結果Cresを比較する比較器20の基準入力
であるしきい値THが、ALU演算器10の各演算毎に変化
する場合は、該しきい値レジスタ1 が、可変のしきい値
を記憶する可変しきい値レジスタであれば良い。
FIG. 3 is a block diagram showing the configuration of a flag control circuit according to an embodiment of the present invention. In FIG. 3, circuits having the same symbol numbers as in FIG. 1 represent circuits having the same function. New installation in Figure 3
44 is an AND gate for the input clock CLK for controlling the H / L of the flag F 0 of the Q output of the D flip-flop FF 30 which is a latch that outputs data from the Q output in synchronization with the input clock CLK. , One input is the clock CL
K is the other input, which is the output when the judgment command of the flag state H in the firmware written in advance in the ROM 41 is detected and executed, and the logical product of these two inputs is taken. The comparator of the comparator 20 subtracts the threshold value Th from the accumulated operation result Cres of the accumulator C of the output of the ALU operation unit 10 for comparison with the threshold value Th of the output of the threshold value register 1. . And the output of the comparator 20 becomes (Cres
-Th ≥ 0), the output H of the comparator 20 when it is positive is
Latch in D flip-flop FF 30 and input clock CLK
In order to output it in synchronization with, the output H of the comparator 20 when the output of the comparator 20 is positive (Cres − Th ≧ 0) is input to its D input, and from the Q output to positive H in synchronization with the clock CLK of the CLK input. In order to turn on / off the input clock CLK of the D flip-flop FF 30 that outputs the flag F 0 of
An AND gate 44 is provided. And the AND gate 44 is a ROM
Only when judging the state H / L of the flag F 0 by the conditional branch instruction by the firmware written in 41, that is, the flag state H / L of the output of the comparator 20 which is the firmware written in the ROM 41 in advance is determined. The output of the AND gate 44 is H only when the decoder 42 decodes the instruction program and the flag state detector 43 detects the state H of the flag F 0 and outputs the output signal H when it is executed.
And its output H is the latch of the output of comparator 20
It is supplied as an input clock CLK to 30 D flip-flops FF to operate the D flip-flops FF. When the flag state detector 43 does not detect the state H of the flag F 0 , its output signal becomes L, so the output of the AND gate 44 becomes L and the output L of the AND gate 44 becomes the comparator 20.
The input clock CLK is not supplied to the D flip-flop FF of the output latch 30, and the D flip-flop FF is deactivated. Therefore, the status register 50 that holds the subsequent flag F 0 from the D flip-flop FF of the latch 30 and the circuit such as the flag monitor FM that monitors the positive / negative H / L of the flag F 0 are also inactive, and the flag control is performed. The power consumption of the circuit is reduced. If the threshold value TH, which is the reference input of the comparator 20 that compares the accumulated calculation result Cres of the accumulator C output from the ALU calculator 10, changes for each calculation of the ALU calculator 10, The threshold register 1 may be a variable threshold register that stores a variable threshold.

【0008】[0008]

【発明の効果】以上説明した如く、本発明によれば、A
LU演算器の演算結果のアキュムレータの蓄積値と,
意のしきい値との大小を比較する際のファームウェアと
して、 アキュムレータの蓄積値のレジスタへの退避の分と
しきい値との大小比較のための減算の分とが不要となる
ので、ファームウェアが書き込まれる一定容量のROMの
負担を軽減する事及び処理の高速化が出来る効果が得ら
れる。
As described above, according to the present invention, A
As a firmware for comparing the accumulated value of the accumulator of the operation result of the LU arithmetic unit with the size of an arbitrary threshold, as the firmware for comparing the saved amount of the accumulated value of the accumulator to the register and the threshold Since the amount of subtraction is unnecessary, it is possible to reduce the load on the ROM of a fixed capacity in which the firmware is written and to speed up the process.

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

【図1】 本発明のフラグ制御回路の基本構成を示す原
理図
FIG. 1 is a principle diagram showing a basic configuration of a flag control circuit of the present invention.

【図2】 本発明のフラグ制御回路を動作させる処理プ
ログラムのフロー図
FIG. 2 is a flowchart of a processing program for operating a flag control circuit of the present invention.

【図3】 本発明の実施例のフラグ制御回路の構成を示
すブロック図
FIG. 3 is a block diagram showing a configuration of a flag control circuit according to an embodiment of the present invention.

【図4】 従来のフラグ制御回路の処理プログラムのフ
ロー図
FIG. 4 is a flowchart of a processing program of a conventional flag control circuit.

【図5】 従来のフラグ制御回路の構成を示すブロック
FIG. 5 is a block diagram showing a configuration of a conventional flag control circuit.

【符号の説明】[Explanation of symbols]

1はしきい値レジスタ、10はALU演算器、20は比較
器、30はラッチで DフリップフロップFF、41は ROM、42
はデコーダ、43はフラグ状態検出器、44は ANDゲートで
ある。
1 is a threshold register, 10 is an ALU calculator, 20 is a comparator, 30 is a latch and D flip-flop FF, 41 is ROM, 42
Is a decoder, 43 is a flag state detector, and 44 is an AND gate.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ディジタル信号を処理するプロセッサ(D
SP) の主要部である2個の入力データ(A,B)の算術およ
び論理演算を行うALU演算器(10)の出力のアキュムレ
ータ(C)に蓄積された演算結果(Cres)と任意のしきい値
(Th)との大小を比較器(20)で比較し其の比較結果の信号
であるフラグの極性(H/L)を制御するフラグ制御回路に
おいて、該比較器(20)の基準入力となる任意のしきい値
(Th)を記憶するしきい値レジスタ(1)を具え、前記アキ
ュムレータ(C)に蓄積された演算結果(Cres)と該しきい
値レジスタ(1)に記憶されたしきい値(Th)との大小比較
をハードウェアである比較器(20)によって行い、その比
較結果の信号(H) がラッチ(30)に入力され、予めROM (4
1)に書込まれたファームウェアである該フラグの状態(H
/L) を判断する命令プログラムが、デコードされ、実行
された時の出力信号(H)により其のラッチ(30)の入力ク
ロック(CLK) が定められて、該ラッチ(30)から正(H) の
フラグ(F0)として送出されることを特徴としたフラグ制
御回路。
1. A processor (D) for processing digital signals
The arithmetic result (Cres) accumulated in the accumulator (C) of the output of the ALU arithmetic unit (10) that performs arithmetic and logical operations on the two input data (A, B) that is the main part of SP) Threshold
It becomes the reference input of the comparator (20) in the flag control circuit that compares the magnitude of (Th) with the comparator (20) and controls the polarity (H / L) of the flag that is the signal of the comparison result. Any threshold
(Th) is provided with a threshold value register (1), the calculation result (Cres) accumulated in the accumulator (C) and the threshold value (Th) stored in the threshold value register (1) The size comparison of the two is performed by a hardware comparator (20), the signal (H) of the comparison result is input to the latch (30), and the ROM (4
The state of the flag (H which is the firmware written in 1) (H
/ L), the input clock (CLK) of the latch (30) is determined by the output signal (H) when the instruction program is decoded and executed, and the positive (H) is output from the latch (30). ) Flag (F 0 ) is transmitted as a flag control circuit.
【請求項2】 前記比較器(20)の基準入力となるしきい
値(TH)が該ALU演算器(10)の処理毎に変化する場合
は、該しきい値レジスタ(1) が可変のしきい値を記憶す
る可変しきい値レジスタ(1A)であることを特徴とする請
求項1記載のフラグ制御回路。
2. The threshold value register (1) is variable when the threshold value (TH) serving as a reference input of the comparator (20) changes for each processing of the ALU calculator (10). The flag control circuit according to claim 1, wherein the flag control circuit is a variable threshold value register (1A) for storing a threshold value.
JP4030271A 1992-02-18 1992-02-18 Flag control circuit Withdrawn JPH0619701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4030271A JPH0619701A (en) 1992-02-18 1992-02-18 Flag control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4030271A JPH0619701A (en) 1992-02-18 1992-02-18 Flag control circuit

Publications (1)

Publication Number Publication Date
JPH0619701A true JPH0619701A (en) 1994-01-28

Family

ID=12299041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4030271A Withdrawn JPH0619701A (en) 1992-02-18 1992-02-18 Flag control circuit

Country Status (1)

Country Link
JP (1) JPH0619701A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10729436B2 (en) 2005-08-31 2020-08-04 Ethicon Llc Robotically-controlled surgical stapling devices that produce formed staples having different lengths

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10729436B2 (en) 2005-08-31 2020-08-04 Ethicon Llc Robotically-controlled surgical stapling devices that produce formed staples having different lengths

Similar Documents

Publication Publication Date Title
US5500943A (en) Data processor with rename buffer and FIFO buffer for in-order instruction completion
JPH04130510A (en) Power saving system for information processor
JPH08305568A (en) Information processing unit
JP2000047872A (en) Microprocessor equipped with low-power-consumption operating function
US6205414B1 (en) Methodology for emulation of multi-threaded processes in a single-threaded operating system
US4841454A (en) Display controller with a variable scrolling speed, and method for operating same
JPH0619701A (en) Flag control circuit
US6640298B1 (en) Branch prediction apparatus
US20030037227A1 (en) Processor enabling exception handling to be set by program
EP0265948A2 (en) Data processor capable of immediately calculating branch address in relative address branch
KR920005230B1 (en) Apparatus for instruction queue management
JPH11110063A (en) Computer system
JP2557629B2 (en) Interrupt method
KR970004474B1 (en) Method and apparatus for explicitly evaluating conditions in a data processor
JP2510691B2 (en) Arithmetic processing method
JPH04306716A (en) Power source output monitor control system
JPH02249025A (en) Signal processor
JPH09212363A (en) Information processor
JPH11149373A (en) Processor
JP2000305782A (en) Arithmetic unit
CN115168835A (en) Control method, control equipment and storage medium
JPS58127245A (en) Processor of control data for microprogram
JPS63255735A (en) Floating-point multiplier
JPH04131967A (en) Data processor
JPS6265134A (en) Interruption processing system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990518