JPS61221939A - Instruction function system for digital signal processor - Google Patents

Instruction function system for digital signal processor

Info

Publication number
JPS61221939A
JPS61221939A JP6429685A JP6429685A JPS61221939A JP S61221939 A JPS61221939 A JP S61221939A JP 6429685 A JP6429685 A JP 6429685A JP 6429685 A JP6429685 A JP 6429685A JP S61221939 A JPS61221939 A JP S61221939A
Authority
JP
Japan
Prior art keywords
instruction
nop
processing
decoder
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
JP6429685A
Other languages
Japanese (ja)
Inventor
Hirohisa Karibe
雁部 洋久
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 JP6429685A priority Critical patent/JPS61221939A/en
Publication of JPS61221939A publication Critical patent/JPS61221939A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To increase the processing speed by converting the next instruction into a NOP based on the deciding result of conditions obtained from the status of the processing result and therefore skipping simply any instruction. CONSTITUTION:When the instruction decoded by a decoder 3 is equal to a SKIP instruction, a condition deciding part 4 decides the conditions designated by the SKIP instruction. If the conditions are satisfied to the next instruction with indication for conversion into a NOP, this indication is set to a register 5 for conversion into NOP. The register 5 produces an output and performs control to switch a selector 2. The selector 2 reads a NOP code and supplies it to the decoder 3. The decoder 3 decodes the NOP code and changes the next instruction into a NOP instruction.

Description

【発明の詳細な説明】 〔概 要〕 ディジタル信号処理プロセッサi;おいて、処理結果等
のスティタス感;よる条件判定を行って、その結果鑑:
基づいて次命令をNOP化する処理を行うととC二よっ
て、どのような命令でも簡単砿ニスキツプさせることが
でき、処理が高速化される。
[Detailed Description of the Invention] [Summary] In a digital signal processing processor i, conditions are judged based on the status of processing results, etc., and the results are reviewed:
By performing the process of converting the next instruction into a NOP based on C2, any instruction can be simply skipped, speeding up the processing.

〔産業上の利用分野〕[Industrial application field]

本発明はディジタル信号処理プロセッサ(nsp)など
における命令機能方式に係り、特(:処理結果等のステ
ィタス6二よる条件判定−二よって、次命令をスキップ
させる命令機能方式−二関するものである。
The present invention relates to an instruction function system in a digital signal processor (NSP) and the like, and particularly relates to an instruction function system that skips the next instruction based on condition determination based on status 62 of processing results, etc.

ディジタル信号処理プロセッサ(:おいで1命令記述に
基づいて種々の処理を高速C:実行するが、本発明はこ
の場合にどのような命令でも簡単(ニスキツプさせるこ
とができるようCl、て、処理を効率化し高速化を可能
C二する命令体系を提案するものである。
A digital signal processing processor executes various processes at high speed based on a single instruction description, and the present invention makes processing more efficient by using Cl so that any instruction can be easily skipped. This paper proposes an instruction system that enables high-speed processing.

〔従来の技術〕[Conventional technology]

ディジタル信号処理プロセラf(二おいて、処理結果の
スティタス(:よって命令処理を行ったり行わなかった
りする場合の処理方式としては、従来、条件ジャンア機
能を用いる方式と、条件C:よって同−命令内の処理を
行わないようにする方式とが用いられている。
Digital signal processing processor f A method is used in which the processing within the system is not performed.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

条件ジャンプ機能を用いる方式はジャンプ処理を行うこ
と(二上って、処理サイクル数が増加するという問題が
ある。また条件I:よって同−命令内の処理を行わない
よう≦;する方式は、一つの命令フィールドの条件規定
以外に併記できる範囲の命令1二しか無処理化できない
という問題がある。
The method that uses the conditional jump function requires jump processing (secondarily, there is a problem that the number of processing cycles increases. Also, the method that uses Condition I: Therefore, the method that does not perform processing within the same instruction is There is a problem that only 12 instructions that can be written together in addition to the condition definition of one instruction field can be made unprocessed.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の方式は、処理結果等のスティタスによる条件判
定を行って、条件判定の結果条件が満たされたときまた
は満たされなかったときのいずれかの場合C二、次命令
なNOP命令に変更する処理を行うようにしたものであ
る。
The method of the present invention makes a conditional judgment based on the status of the processing result, etc., and if the condition is satisfied or not as a result of the conditional judgment, the next instruction is changed to the NOP instruction. It is designed to perform processing.

〔作 用〕[For production]

本発明の方式では、条件判定結果(−基づいて次命令を
NOP化する処理を行うこと(:よって、条件こ応じて
一つの命令を実行したり、または実行しなかったりする
命令スキップ機能を実現することができる。
In the method of the present invention, processing is performed to convert the next instruction into a NOP based on the condition judgment result (-: Therefore, an instruction skip function is realized that executes or does not execute one instruction depending on the condition. can do.

〔実施例〕〔Example〕

第2図は本発明の方式(二おけるプログラムの流れを示
したものである。同図(:おいて(1)は条件文の条件
を判定することを示している。以下ではこの条件文を5
KIF命令と呼ぶこととする。
Figure 2 shows the flow of the program in the method (2) of the present invention. 5
This will be called a KIF command.

条件の判定によって例えば条件が満たされれば、処理A
、処理B、・・・を順次実行する。もしも条件が満たさ
れないときは処理AをNOP (無効)化することによ
って処理Aを実効的鑑二スキップして、次の処理B゛か
ら順次実行する。
For example, if the condition is satisfied by determining the condition, processing A is performed.
, Process B, . . . are executed sequentially. If the conditions are not met, processing A is effectively skipped by NOP (invalidation), and the next processing B is sequentially executed.

第1図は本発明の一実施例の構成を示したものであって
、1は命令ラッチ回路、2はセレクタ、5はデコーダ、
4は条件判定部、5はNOP化レジスタ、6は読出し専
用メモリ(Rod )である。
FIG. 1 shows the configuration of an embodiment of the present invention, in which 1 is an instruction latch circuit, 2 is a selector, 5 is a decoder,
4 is a condition determination section, 5 is a NOP register, and 6 is a read-only memory (Rod).

命令ラッチ回路1にはROM6からの命令がラッチされ
ていて、これから順次命令コードが読み出されて、セレ
クタ2を経てデコーダ3に入力されて命令の内容が解読
され、デコーダ5から命令の内容C:対応する制御信号
が出力される。
Instructions from the ROM 6 are latched in the instruction latch circuit 1. Instruction codes are sequentially read out from the instruction code, inputted to the decoder 3 via the selector 2, the contents of the instruction are decoded, and the contents of the instruction C are sent from the decoder 5. : The corresponding control signal is output.

いまデコーダ5区二おいてデコードされた命令が5KI
P命令であったときは、条件判定部4は5xzp命令で
指定されている条件判定を行う。判定結果次命令瀘二対
するNOP化指示の条件が成立したときは、これ−17
(NOP化レジスタ5にセットする。これg二よってN
OP化レジスタ5は出力を発生してセレクタ2を切り替
えるよう区二制aを行う。これによってセレクタ2はN
OPコードな読み込んでデコーダ5に入力し、デコーダ
5はこれを解読して次命令をMOP命令に変更する。
The instruction decoded by the decoder 5 and 2 now is 5KI.
If it is a P command, the condition determination unit 4 performs the condition determination specified by the 5xzp command. If the condition for NOP instruction for the next instruction 02 is satisfied as a result of the judgment, this -17
(Set in NOP register 5.
The OP register 5 generates an output to switch the selector 2. As a result, selector 2 becomes N
The OP code is read and input to the decoder 5, which decodes it and changes the next instruction to an MOP instruction.

これによって命令クツテ回路1から読み出されるプログ
ラムは第2図のように5KIP命令、処理A、処理B、
処理C1・・・であるが、実際感ニデコーNZ  −F
sd−v     v  JP h−x−AAta  
  、qyrp  AA   bn、xmB、処理C9
・・・となって処理Aがスキップされる。
As a result, the program read from the instruction output circuit 1 includes 5KIP instructions, process A, process B, and
Although it is processing C1..., the actual feeling is Nideko NZ-F
sd-v v JP h-x-AAta
, qyrp AA bn, xmB, processing C9
...and processing A is skipped.

この上う(二本発明の方式こよれば、スキップ文を処理
して次命令を実行すべきか否かを示す信号な得・それが
実行しないことを示すものであったときは、次命令をN
OP化するので、実質的に命令スキップが行われる。
Furthermore, according to the method of the present invention, there is a signal indicating whether or not to process the skip statement and execute the next instruction.If it indicates that the next instruction should not be executed, the next instruction is N
Since the instruction is changed to OP, an instruction is essentially skipped.

NOPコードは通常オール“1”またはオール“0#等
の簡単なコードで構成されているので、セレクタ2は簡
単な構成で実現することができる。
Since the NOP code is usually composed of a simple code such as all "1's" or all "0#", the selector 2 can be realized with a simple configuration.

〔発明の効果〕〔Effect of the invention〕

以上説明したよう(二本発明の方式−二よれば、処理結
果等のスティタス(二よる条件判定を行い、その結果砿
二基づいて次命令をNOP化する処理を行うこと(;よ
って、どのような命令でも簡単Cニスキツプさせること
ができる。従って本発明の方式(二よれば、IF文の機
能の実現が容易C二なる。また外部端子条件によるSK
I P命令を使用すること≦二よって、外部端子条件よ
りデバッグ機能を加える処理等を効果的に実現すること
ができる。
As explained above (2) According to the method-2 of the present invention, the status (2) of the processing result etc. is determined based on the condition, and the process of converting the next instruction to NOP based on the result (2) is performed (; Therefore, according to the method of the present invention (2), it is easy to realize the function of an IF statement.
By using the IP instruction≦2, it is possible to effectively implement processes such as adding a debug function based on external terminal conditions.

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

第1図は本発明の一実施例を示す因、 第2因はプログラムの流れを示す図である。 1・・・命令ラッチ回路。 2・・・セレクタ、 6・・・デコーダ、 4・・・条件判定部・ 5・・・NOP化レジスタ、 FIG. 1 shows an embodiment of the present invention. The second factor is a diagram showing the flow of the program. 1...Instruction latch circuit. 2...Selector, 6...decoder, 4...Condition judgment section/ 5... NOP register,

Claims (1)

【特許請求の範囲】 ディジタル信号処理プロセッサにおいて、 条件判定部(4)で処理結果等のステイタスによる条件
判定を行い、 条件判定の結果条件が満たされたときまたは満たされな
かったときのいずれかの場合において次命令をNOP命
令に変更する処理を行う ことによつて命令をスキップするようにしたことを特徴
とするディジタル信号処理プロセッサにおける命令機能
方式。
[Claims] In a digital signal processing processor, a condition determination unit (4) performs a condition determination based on the status of a processing result, etc., and as a result of the condition determination, either when the condition is satisfied or when the condition is not satisfied. 1. An instruction function system in a digital signal processing processor, characterized in that an instruction is skipped by performing a process of changing the next instruction to a NOP instruction in a case where the next instruction is changed to a NOP instruction.
JP6429685A 1985-03-28 1985-03-28 Instruction function system for digital signal processor Pending JPS61221939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6429685A JPS61221939A (en) 1985-03-28 1985-03-28 Instruction function system for digital signal processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6429685A JPS61221939A (en) 1985-03-28 1985-03-28 Instruction function system for digital signal processor

Publications (1)

Publication Number Publication Date
JPS61221939A true JPS61221939A (en) 1986-10-02

Family

ID=13254135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6429685A Pending JPS61221939A (en) 1985-03-28 1985-03-28 Instruction function system for digital signal processor

Country Status (1)

Country Link
JP (1) JPS61221939A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62180427A (en) * 1986-02-03 1987-08-07 Nec Corp Program control circuit
JPH02137028A (en) * 1988-11-18 1990-05-25 Fujitsu Ltd Instruction control system
EP0619557A2 (en) * 1993-03-31 1994-10-12 Motorola, Inc. A data processing system and method thereof
US5619408A (en) * 1995-02-10 1997-04-08 International Business Machines Corporation Method and system for recoding noneffective instructions within a data processing system
US7725694B2 (en) 2004-12-21 2010-05-25 Denso Corporation Processor, microcomputer and method for controlling program of microcomputer

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62180427A (en) * 1986-02-03 1987-08-07 Nec Corp Program control circuit
JPH02137028A (en) * 1988-11-18 1990-05-25 Fujitsu Ltd Instruction control system
EP0619557A2 (en) * 1993-03-31 1994-10-12 Motorola, Inc. A data processing system and method thereof
EP0619557A3 (en) * 1993-03-31 1996-06-12 Motorola Inc A data processing system and method thereof.
US5619408A (en) * 1995-02-10 1997-04-08 International Business Machines Corporation Method and system for recoding noneffective instructions within a data processing system
US7725694B2 (en) 2004-12-21 2010-05-25 Denso Corporation Processor, microcomputer and method for controlling program of microcomputer

Similar Documents

Publication Publication Date Title
JP3781519B2 (en) Instruction control mechanism of processor
JPS61221939A (en) Instruction function system for digital signal processor
US4674063A (en) Information processing apparatus having a sequence control function
JPH0523447B2 (en)
KR920003539B1 (en) Microprogram processor
JP2928680B2 (en) Compound condition processing method
KR920001142B1 (en) Micro processor
JPS5860355A (en) Information processing device
US5233695A (en) Microprocessor with a reduced size microprogram
US20040210748A1 (en) Processor and method capable of executing conditional instructions
JPS6049935B2 (en) Microprogram control method
US4813019A (en) Semiconductor integrated circuit
EP0756230B1 (en) Operating circuit and method for selecting signal processing commands in ADPCM system
JPS6027029A (en) Data processor
JPS6240538A (en) Data processor
JPH0517574B2 (en)
JPS638491B2 (en)
JPH02137028A (en) Instruction control system
JPS63141131A (en) Pipeline control system
JPH01150933A (en) Microprogram control device
JP3727434B2 (en) Parallel processor
KR0155932B1 (en) Alu for data path
JPH04370832A (en) Processor circuit
JPH01180045A (en) Central processor
JPS6024643A (en) Microprogram controlling system