CA1288169C - Digital signal processor - Google Patents

Digital signal processor

Info

Publication number
CA1288169C
CA1288169C CA000568527A CA568527A CA1288169C CA 1288169 C CA1288169 C CA 1288169C CA 000568527 A CA000568527 A CA 000568527A CA 568527 A CA568527 A CA 568527A CA 1288169 C CA1288169 C CA 1288169C
Authority
CA
Canada
Prior art keywords
data
address
instruction
memory
register
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.)
Expired - Fee Related
Application number
CA000568527A
Other languages
French (fr)
Inventor
Tokumichi Murakami
Koh Kamizawa
Yoshiaki Katoh
Naoto Kinjo
Hideo Ohira
Masatoshi Kameyama
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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
Priority claimed from JP14087287A external-priority patent/JPS63304344A/en
Priority claimed from JP18685887A external-priority patent/JPS6429932A/en
Priority claimed from JP19700987A external-priority patent/JPS6441028A/en
Priority claimed from JP62273763A external-priority patent/JPH0630056B2/en
Priority claimed from JP27481087A external-priority patent/JPH01116730A/en
Priority claimed from JP62296612A external-priority patent/JPH0766328B2/en
Priority claimed from JP62296611A external-priority patent/JPH0766327B2/en
Priority claimed from JP31655387A external-priority patent/JPH01156825A/en
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of CA1288169C publication Critical patent/CA1288169C/en
Application granted granted Critical
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/57Arithmetic logic units [ALU], i.e. arrangements or devices for performing two or more of the operations covered by groups G06F7/483 – G06F7/556 or for performing logical operations
    • G06F7/575Basic arithmetic logic units, i.e. devices selectable to perform either addition, subtraction or one of several logical operations, using, at least partially, the same circuitry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7828Architectures of general purpose stored program computers comprising a single central processing unit without memory
    • G06F15/7832Architectures of general purpose stored program computers comprising a single central processing unit without memory on one IC chip (single chip microprocessors)
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7839Architectures of general purpose stored program computers comprising a single central processing unit with memory
    • G06F15/7842Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers)
    • G06F15/786Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers) using a single memory module
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3005Arrangements for executing specific machine instructions to perform operations for flow control
    • G06F9/30058Conditional branch instructions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30094Condition code generation, e.g. Carry, Zero flag
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/34Addressing or accessing the instruction operand or the result ; Formation of operand address; Addressing modes
    • G06F9/345Addressing or accessing the instruction operand or the result ; Formation of operand address; Addressing modes of multiple operands or results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/34Addressing or accessing the instruction operand or the result ; Formation of operand address; Addressing modes
    • G06F9/355Indexed addressing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline, look ahead
    • G06F9/3877Concurrent instruction execution, e.g. pipeline, look ahead using a slave processor, e.g. coprocessor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline, look ahead
    • G06F9/3885Concurrent instruction execution, e.g. pipeline, look ahead using a plurality of independent parallel functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2207/00Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F2207/38Indexing scheme relating to groups G06F7/38 - G06F7/575
    • G06F2207/3804Details
    • G06F2207/386Special constructional features
    • G06F2207/3884Pipelining

Abstract

ABSTRACT OF THE DISCLOSURE
A digital signal processor of a simple circuit configu-ration capable of implementing arithmetic processes and interruption processes efficiently in a reduced number of steps at a high processing speed. The digital signal proces-sor comprises instruction execution pipeline stages including a stage in which data is read from a data memory and the data is applied to an arithmetic unit; an arithmetic unit for the execution stage, including a barrel shifter, a multiplier and an arithmetic and logic unit, a normalizing barrel shifter, a round-off/accumulation adder, internal data memories and a DMA transfer bus for a write/accumulation stage, an address generating unit capable of parallel and two-dimensional generation of two inputs one output data memory addresses and a DMA control unit for controlling the two-dimensional data transfer through a DMA bus between the internal data memories and an external data memory for an instruction execution stage.

Description

DIGITAL SIGNAL PROCESSOR

BACKGROUND OF THE INVENTION
-Field of the Invention The present invention relates to a digital signal processor capable of efficiently carrying out the arithmetic or interruption processing mainly of successive signals at a high speed through a small number of steps.
The prior art will be described in detail hereinbelow.

SUMMARY OF THE INVENTION
The present invention has been made to solve the problems in the conventional digital signal processor.
Accordingly, it is a first object of the present invention to provide a digital signal processor 1~ having compatible addresses and data format and capable of performing processes having less repetition ~k lZ88169 of the same operation without deteriorating the efficiency, capable of performing high processes as well as process for product-sum at a high processing speed, capable of efficiently controlling data operating accuracy by simple means, capable of applying vector data to and providing vector data from an arithmetic unit at a high speed, and capable of highly flexible addressing.
It is a second object of the present invention to provide a digital signal processor of a signal processing system capable of performing a conditional test instruction process or the like in a reduced number of steps and capable of performing a conditional test instruction process in a fixed execution time regardless of the result of the conditional test instruction process.
It is a third object of the present invention to provide a digital signal processor of a signal processing system capable of performing a multipoint process without entailing reduction in the processing speed and increase in instruction steps.
It is a fourth object of the present invention to provide a flexible digital signal processor capable of readily changing the program on instruction from a host processor and capable of performing complex processes and other temporary processes without requiring much ~88169 additional hardware and without entailing the deterioration of the processing efficiency.
It is a fifth object of the present invention to provide a digital signal processor of an interrupt process system capable of performing interruption processes at a high efficiency by quickly responding to an interruption request and quickly keeping data on standby and quickly restoring data.
It is a sixth object of the present invention to provide a digital signal processor incorporating a highly functional address generating circuit having a compara-tively short control code bit length and a simple circuit configuration and capable of dealing with two-dimensional signal processing such as image signal processing, and lS capable of efficiently executing a simple program software for two-dimensional signal processing requiring complex address calculation.
It is a seventh object of the present invention to provide a digital signal processor incorporating a multiport memory circuit of a comparatively simple and small-scale circuit configuration having a short cycle time for each port.
Finally, it is an eighth object of the present invention to provide a digital signal processor with an address generating system for signal processing comprising multifunction address generator intended for two-dimensional signal processing such as video signal lZ88169 processing by employing comparatively short control code bit length and simplified circuit structure.
To achieve the foregoing objects of the invention, the present invention has the following constitution, S functions and features.
A digital signal processor according to the present invention has a five-stage constitution including, in addition to an instruction execution pipeline stage, a stage for reading data from a data memory and applying the data to an arithmetic unit and a stage for writing data provided by the arithmetic unit in the data memory, or accumulating or rounding the data by an accumulator included in the arithmetic unit, a barrel shifter, a multiplier and an arithmetic and logic unit respectively for the execution stage of the five stages are arranged on the sameline in the arithmetic unit, a normalizing barrel shifter for wrïte/accumulation state is connected to the barrel shifter, the multiplier and the arithmetic and logic unit to use the outputs of the normalizing barrel shifter as inputs of an adder for rounding or accumulation or as the outputs of the arithmetic unit, an internal memory comprises two 2-port memories, one of the ports, namely, the read port, of each 2-port memory is connected to the corresponding two input buses of the arithmetic unit and the other port, namely, the read/write port, of the same is connected to one of the output bus of the arithmetic unit or to a DMA transfer 121S~

bus, an address generating unit which generates 2-input l-output data memory addresses two-dimensionally and in parallel for the arithmetic unit and a DMA
control unit for two~-dimensionally transferring data between the internal data memory and an external data memory by using the DMA bus are provided for the instruction execution stage, and the respective data formats of the address generating unit, the DMA control unit and the arithmetic units are compatible with each other.
The digital signal processor according to the present invention specifies the operations of the arithmetic unit uniquely and operates on microinstruction codes constructed by combining function codes correspond-lS ing to the operations of the arithmetic unit and 2-source and l-destination control codes corresponding to the normalizing barrel shifter, the two inputs and one output.
Thus, the instruction execution pipeline stage of the present invention eliminates most of a microinstruction description taking into consideration delayed operation and is able to operate efficiently even when the frequency of repetition of execution of the same instruction is not very large.
The arithmetic unit of the digital signal processor according to the present invention performs the calculation of one term of product-sum, absolute differential sum and differential square sum, and ~ ~8~;9 rounding and shift of data in a time equivalent to one machine cycle. The internal data memory and the bus construction enables execution of 2-input and l-output data transfer to the arithmetic unit in parallel to arithmetic operation, and the combination of the internal data memory, the bus construction and the address generator for two-dimensional address generation enables efficient operation of vector data.
Since the data format of the address generator is compatible with that of the arithmetic unit, data conversion is unnecessary, for example, in table look-up and reference to a dictionary.
The DMA control unit performs two-dimensional data reception from the external data memory in parallel with the internal operation to curtail processing time for data input and output effectively.
The microinstruction set used by the present invention specifies the combination of the operations of internal H/W resources uniquely to simplify the program description, and specifies the number of digits of data and source destination address generating formula for each microinstruction to enable the direct control of the digit adjustment for complex data operation and the method of scanning the data memories. Accordingly, the necessity of considering the context of the instruction is limited to the least extent, the program description is simplified, and the program can easily be described in a high level language such as C language.

~l288169 Furthermore, the digital signal processing method and digital signal processor according to the present invention is characterized in performing operation according to a decoded instruction in executing the instruction, subjecting the result of operation, on conditional test instruction, to a test to decide whether or not the result of operation meets a predetermined condition, and sequentially holding the results of tests in a register. Accordingly, the digital signal processing method and digital signal processor according to the present invention decides, on a conditional test instruction, whether or not a condition code meets a predetermined condition, and then stores only the result of decision in a special register.
The digital signal processor according to the present invention has a plurality of conditional decision units and branched addresses for conditions meeting branching conditions among the results of tests provided by the condition decision units selected in order of priority. Accordingly, a plurality of condition decision operations are performed simultaneously for different branching conditions by the plurality of condition decision units, and then branched addresses for the results of decision meeting the branching conditions are selected in order of priority for multipoint branching process.

1288i69 still further, the digital signal processor according to the present invention incorporates a writable instruction memory as an internal instruction memory, and is controlled by instructions provided by a host processor for temporary stop and restart of operation, and for writing in and reading from the writable instruction memory. Accordingly, the operation of the digital signal processor is stopped temporarily by the host processor, and the operation of the digital signal processor is restarted for other process after the internal instruction memory of the digital signal processor has been rewritten.
Moreover, an interruption processing system according to the present invention switches working registers at least of a dual construction of the digital signal processor for keeping data on standby and restoring the data required for an interruption process.
Accordingly, all the working registers at least of a dual construction accomplish data standby and data restoration automatically and simultaneously by switching the registers. The interruption process can be performed at any time by forming the registers which cannot be operated directly by instructions, such as a pipeline register, in the same construction.
Furthermore, a signal process address control system according to the present invention performs relative and indirect addressing by using an address lZ~816~
displacement indicated by an immediate value in a control code, in addition to index modify addressing by the combination of an address register and an index modify register, and enables immediate addressing for every instruction in the field of a horizontal microinstruction. Accordingly, relative and indirect addressing according to the present invention generates a two-dimensional address efficiently in an optional combination with an index modify addressing, and executes a complex two-dimensional signal processing algorithm efficiently through immediate addressing in each horizontal microinstruction.
The present invention constitutes a multiport memory circuit having more than three ports by employing a plurality of 2-port memory circuits, and the ports are selected by addressing. Accordingly, the output port of the 2-port memory circuit is selectively connected to an access port so that the memory circuit operates in a mode e~uivalent to that of operation of a multiport memory circuit.
The address generating system for signal processing of the present invention makes relative addressing depending on the address displacement indicated by an intermediate value in the control code in addition to the index modification address through combination of the address register and index modification register and also intermediately carries out address designation for every ~Z88~.~,9 microinstruction in the relevant field among the horizontal microinstructions.
BRIEF DESCRIPTION OF THE DRAWINGS
Fig. 1 is a block diagram showing the constitution of a DSSPl as a first example of a conventional digital signal processor;
Fig. 2 is a time chart of assistance in explaining the instruction execution timing of the DSSPl of Fig. l;
Fig. 3 is an illustration of a microinstruction set to be executed by the DSSPl of Fig. l;
Fig. 4 is a diagram of assistance in explaining binary tree search operation;
Fig. 5 is a diagram showing an example of arrangement of reference vectors of Fig. 4 in a data memory;
Fig. 6 is a block diagram showing the constitution of a second example of a conventional digital signal processor;
Fig. 7 is a flow chart of assistance in explaining a mode of executing successive decision instructions;
Fig. 8 is a time chart of assistance in explaining the respective operations of the components of the digital signal processor of Fig. 6 in performing processes;
Fig. 9 is a flow chart of assistance in explaining a conditional multipoint branch process to be performed by a third example of a conventional digital signal processor;

~ .

~2~8~69 Fig. 10 is a time chart of assistance in explaining the execution of a conditional branch instruction by 'he conventional digital signal processor of Fig. 9;
Fig. 11 is a block diagram of a fourth example of a S conventional digital signal processor;
Fig. 12 is a flow chart of assistance in explaining the operation of the digital signal processor of Fig. 11;
Fig. 13 is a block diagram of a fifth example of a conventional digital signal processor including an interruption process system;
Fig. 14 is a flow chart showing steps of interruption process to be executed by the digital sianal processor of Fig. 13;
Fig. 15 is a block diagram of a conventional address generator as a sixth example of the prior art;
Fig. 16 is a diagram of control codes for controlling the address generator of Fig. 15;
Fig. 17 is a table showing the control codes of Fig. 16 and the corresponding operations of the address generator of Fig. 15;
Fig. 18 is a block diagram showing the constitution of a multiport memory circuit as a seventh example of the prior art;
Fig. 19 is a time chart showing an example of timing of operation of the multiport memory circuit of Fig. 18;

ll ~28~

Fig. 20 is a block diagram indicating the structure of address generator based on the address control system of the prior art;
Fig. 21 is a table for explaining operations by address control code of address generator of Fig. 20;
Fig. 22 is a data series on the bidimensional space;
Fig. 23 is a flowchart indicating addressing operations for data series of Fig. 22 by the address generator of Fig. 20;
Fig. 24 is a block diagram of a digital signal processor, in a first embodiment, according to the present invention;
Fig. 25 is a block diagram of an arithmetic unit incorporated into the digital signal processor of Fig. 20;
Fig. 26 is a diagrammatic illustration showing the constitution of an internal data memory incorporated into the digital signal processor of Fig. 24;
Fig. 27 is a diagrammatic illustration showing the constitution of an address generator incorporated into the digital signal processor of Fig. 20;
Fig. 28 is a time chart of assistance in explaining the timing of operations of the digital signal processor of Fig. 20;
Fig. 29 is a diagram of an example of a microinstruction set to be executed by the digital signal processor of Fig. 20;

12881~;9 Fig. 30 is a block diagram of a digital signal processor, in a second embodiment, according to the present invention;
Fig. 31 is a flow chart showing steps of operation for executing a conditional test instruction according to the present invention;
Fig. 32 is a time chart of assistance in explaining the respective operations of the components of the digital signal processor of Fig. 26 in executing a conditional test instruction;
Fig. 33 is a diagram of assistance in explaining the operation of a test register;
Fig. 34 is a diagram of assistance in explaining binary tree search;
Fig. 35 is a block diagram of a digital signal processor, in a third embodiment, according to the present invention;
Fig. 36 is a flow chart of assistance in explaining the operation of the digital signal processor of Fig. 35;
Fig. 37 is a time chart of assistance in explaining the execution of a conditional multipoint branch instruction according to the present invention;
Fig. 38 is a block diagram of a digital signal processor, in a fourth embodiment, according to the present invention;
Fig. 39 is a flow chart of assistance in explaining the operation of the digital signal processor of Fig. 34;

.

~ 288169 Fig. 40 is a block diagram of a modification of the digital signal processor of Fig. 38;
Fig. 41 is a flow chart of assistance in explaining the operation of the digital signal processor of Fig. 36;
Fig. 42 is a block diagram of a digital signal processor, in a digital signal processor, in a fifth embodiment, according to the present invention, incorporating an interruption processing system;
Fig. 43 is a flow chart showing steps of operation of the interruption processing system of Fig. 38;
Fig. 44 is a block diagram of an address generator incorporated into a digital signal processor, in a sixth embodiment, according to the present invention;
Fig. 45 is a diagram showing an example of a control lS code for controlling the address generator of Fig. 44;
Fig. 46 is a table of assistance in explaining operation controlled by the control code of Fig. 45;
Fig. 47 is a block diagram of a signal processor incorporating the address control system according to the present invention;
Fig. 48 is a diagram showing an example of a horizontal instruction code for the signal processor of Fig. 47;
Fig. 49 is a block diagram of a multiport memory circuit incorporated into a digital signal processor, in a seventh embodiment, according to the present invention;

:

~288~69 Fig. 50 is a table of assistance in explaining address allocation by the multiport memory circuit of Fig. 49;
Fig. 51 is a block diagram indicating the structure of address generator adopted to the address generating system for signal process as an embodiment of the present invention;
Fig. 52 is a flowchart indicating addressing operation for data series of Fig. 55 by means of the address generator of Fig. 51;
Fig. 53 is an example of address control code in the address generator of Fig. 51;
Fig. 54 is a table for explaining operations by address control code of Fig. 53;
Fig. 55 is a block diagram indicating the structure of signal processor adopting the address generating system for signal processing of Fig. 51; and Fig. 56 is an example of instruction code in the signal processor of Fig. 55.
~F-g. 1 is a block diagram showing the constitution of DSSPl (Digital Speech Signal Processor 1), namely, an exemplary conventional digital signal processor, "A
High-speed VLSI Signal Processor with Normalizing Floating-point Systems", the proceedings of the annual communication Symposium of the Institute of Electronics and Communication Engineers of Japan (IECEJ), 1986, Japan. This exemplary conventional digital signal . ~ .

~Z88i6~
processor corresponds to a first embodiment of the present invention.
Shown in Fig. 1 are program counter (PC) 1 internally provided with a stack for instruction address S control, an instruction mask ROM 2 storing micro-instructions, an instruction register (IR0) 3 for receiving one microinstruction provided by the instruction mask ROM 2 or one external microinstruction every machine cycle, an instruction register (IRl) 4 for - l5a -.~

~ 2881~9 receiving only the bit field requiring decoding included in a microinstruction given to the instruction register (IR0) 3, an instruction decoder 5 for decoding the microinstruction given to the instruction register (IRl) 4, a program bus (P-Bus) 6 for distributing microinstructions to the functional units, a register (BI) 7 which receives immediate data (18-bit width) included in a microinstruction provided on the program bus (P-Bus) 6 and applies the same to a data bus (D-Bus) 8 (18-bit width) for internally transferring data obtained by operation, a register (AM) 9 which receives an address mode instruction of data memory through the program bus (P-Bus) 6, a register (AD) 10 (4w x 16-bit width) for holding address pointer information for generating an indirect address, a page register (PR) 11 (3-bit width) which specifies the page in an external data memory, an address computation unit (AAU) 12 (9-bit width) capable of simultaneously generating three addresses at the maximum, an address register (AR0) 13, an address register (AR1) 14, an address register (AR2) 15, an address selector (RAS) 16, a loop counter (LC) 17, a status register (SR) 18 for indicating the operating mode and status of the processor, a DMA control unit 19 for controlling the direct data transfer between serial I/O ports (SI0~1, SO0/1) 32 and an external data memory, an address register (AR) 20 for holding addresses of 12-bit width to be given to an external data memory, a _16 _ .`' ~ 288169 dual port internal data memory (20-RAM) 21 of 512w x 18 bits capacit~ capable of simultaneous read and write of two data, a register (DP0) 22 for holding input data of operand, a register (DPl) 23 for holding input data of operator, a multiplier (FMPL) 24 for multiplying the floating point of 12E6 bit format, a register (P) 25 for holding the results of operation of the multiplier (FMPL) 24, a selector 26, a selector 27, a floating-point arithmetic logical operation unit 28 mainly for carrying out the floating-point operation of 12E6 bit format, accumulators (ACC0 to ACC 3) 29 of 4w x 18 bits for holding and accumulating the outputs of the floating-point arithmetic logical operation unit (FALU) 28, a data register (DR) 30 connected to the data bus (D-Bus) 8 to temporarily hold data to be read from and to be written in an external data memory, a read/write control circuit (R/W Cont) 31 for reading data from and writing data in an external data memory, serial I/O ports (SI0/1, SO0/1) 32 for full-duplex two-channel data transfer with external devices, an interrupt control circuit (Int Cont) 33, an external data memory bus control circuit (Bus Cont) 34, a clock control circuit (CLK Cont) 35 for controlling internal timing, and a selector 36.
Fig. 2 is a time chart of assistance in explaining the microinstruction execution sequence of the digital signal processor DSSPl shown in Fig. 1. Shown in Fig. 2 are cycle timing 40 consisting of four phases of clocks, ; '~' .~ .

~8~

fetch stage timing 41 showing stages of the address output of the program counter (PC) 1 and the microinstruction input of the instruction register (IR0) 3, decode stage timing 42 of decoding the input microinstruction of the instruction register (IRl) 4 by the instruction decoder 5, timing 43 of updating the address computation unit 12 in the decode stage, timing 44 of operation of the floating-point multiplier (FMPL) 24, timing 45 of operation of the floating-point arithmetic logical operation unit (FALU) 28, timing 46 of transferring data through the data bus (D-Bus) 8 between the registers, and timing 47 of reading data from and writing data in the external data memory through the data register (DR) 30.
Referring to Fig. 3 showing the respective constructions of microinstructions of 32-bit width per word representing four groups of microinstructions of the digital signal processor DSSPl of Fig. 1, indicated at 50 is a sequence instruction for controlling instruction processing steps, at 51 is a mode instruction for initializing and setting modes of the status register (SR) 18l the address computation unit (AAU) 12 and the DMA control unit 19, at 52 is an operation instruction mainly for controlling the operation of the floating-point arithmetic logical operation unit (FALU) 28 andparallel data transfer accompanying the operation of the floating-point arithmetic logical operation unit (FALU) . _18 _ ~za8~69 28, and at 53 is a load instruction for loading immediate data on an optlonal register or a data memory.
The operation of the digital data processor (DSSPl) will be described hereinafter, in which the components will be denoted by the abbreviated designation shown in the foregoing description.
First the general mode of operation will be described with reference to Fig. 1. In this digital signal processor DSSPl, the P-Bus 6 and the D-Bus 8 are provided individually. The application of the microinstruction to the IR0 3, the transfer of the microinstruction through the P-Bus 6, the decoding of the microinstruction by the instruction decoder 5, and execution of the instruction by the D-Bus 8, the FMPL 24 and the FALU 28 are carried out in parallel through a pipeline process. The D-Bus 8 and all the execution units including the 2P-~AM 21 are of register-base, namely, all the inputs and outputs are connected to the registers.
In the timing of access to the registers, outputs are provided at the leading edge of the machine cycle and the outputs are set in the registers at the trailing edge of the machine cycle. The contents of data actually processed is not the contents of data set in the register by the same microinstruction, but the contents of data set in the register by the preceding microinstruction.
Such a mode of operation is called as delayed operation.
The interior of the arithmetic unit is partitioned into --19 _ ~Z8~69 sections by the registers to enable the parallel operation of the sections. For example, the FMPL 24 continually executes the floating-point multiplication once every machine cycle. In applying data to the FMPL
20, the data is set in the DP0 22 and DPl 23 by the preceding microinstruction, and the contents of the P 25 is fetched by the succeeding or later microinstruction to obtain the results of multiplication. While the contents of the P 25 is being fetched, the data is held by the DP0 22, DPl 23 and the P 25. Accordingly, one multiplication operation formerly requiring three microinstructions for data input, multiplication and data output can be carried out by one microinstruction when the process is executed continuously.
In this DSSPl, the FMPL 24 and the FALU 28 are connected by the P 25. The FALU is able to accumulate the contents of the P25 in the ACC0 29 to the ACC3 29 to execute one term of product-sum operation which is often used in filtering and the barafly operation of fast Fourier transform (FFT) in one machine cycle similarly to one pair of a multiplier and accumulator shown in "Packing a signal processor onto a single digital board", Louis Schirm, Electronics, Dec. 20, 1979. For example, the product-sum is calculated by using an expression:

~ = (ai x bi) _20 -~ 288169 where N is an integer not less than 1 (one), and ai and bi are input data. In this processor, three microinstructions for applying data to the DP0 22 and DPl 23, for executing multiplication by the FMPL 24 and for accumulating the results of multip'ication set in the P 25 by the FALU 28 in the ACC0 to ACC3 to obtain one term of the product-sum. Naturally, when the operation is carried out continuously, one term of the product-sum can be obtained for one microinstruction.
Thus, to obtain one term of the product-sum for one microinstruction, two input data corresponding to the input data ai and bi must be given respectively to the DP0 22 and the DPl 23 every one microinstruction.
Accordingly, the 2P-RAM 21 is enabled to supply the two input data, and a bus is provided to transfer the data read from the 2P-RAM 21 directly to the DP0 22 and DPl 23 without using the D-Bus 8 to avoid bus contention in the D-Bus 8. The AAU 12 has output means for selectively providing two address data among address data of 9-bit width provided through the AR0 13 ARl 14 and AR2 15 mainly to address the input data of the 2P-RAM 21. The AAU 12 is able to specify three addresses simultaneously at the maximum only in generating addresses for the two input data given thereto from the 2P-RAM 21, and an address for one output data given through the DR 30 and the AR 20 to the external data memory. Each addressing is a so-called indirect addr~ssing system using an address _21 _ , .

~I.Z88~69 pointer internally set in the AAU 12. The AR0 13 is susceptible to increment, modulo, bit reverse, repeat, increment base address and updating of increment, while the ARl 14 and theAR2 15 are susceptible only to simple increment. The AAU 12 is able to perform address operation only in a 9-bit natural binary system. In specifying a 12-bit address in the external data memory, three bits for specifying a memory page are added to the nine bits to specify twelve bits.
On the other hand, since the FMPL 24 and the FALU
28 execute operation in a normalized floating-point system of 12E6, all the data for the 2P-RAM 21, the DP0 22, the DPl 23, the ACC0 29 through ACC3 29, the DR 30, the D-Bus 8 and BI 7 are of 18-bit width, and hence the FALU 28 needs a special operation mode for calculating a special address initial value. Accordingly, the data representing the result of operation stored in the AR0 13, the ARl 14, the AR2 15, the AR 20 and the ACC0 29 through the ACC3 29 are not compatible with those data.
The DMA control unit 19 controls, independently of the microinstruction, full-duplex 2-channel data transfer between the serial I/O ports SI0/1 32 and SO0/1 32, and the external data memories through the D-Bus 8 and the AR
20 and DR 30. Therefore it is possible that the microinstruction operation controlled by the instruction decoder 5 and the internal resource contend with each other.

. .. . .

~.288169 To avoid the contention, the instruction decoder 5 is held inoperative for six machine cycles for every word to interrupt operation according to the microinstruction in transferring data by the DMA control unit 19.
The DSSPl is capable of performing the following operations in parallel within one microinstruction in executing microinstructions.
(1) The 9-bit address operation of three kinds at the maximum by the AAU 12.
(2) The floating-point multiplication of 12E6 by the FMPL24.
(3) The floating-point operation of 12E6 by the FALU 28.
(4) Data transfer through the D-Bus 8 and the DR
30 between the external memories.
(5) DMA data transfer through the full-duplex 2-channel serial I/O ports SI0/1 32 and SO0/1 32, D-Bus 8 and the DR 30 between the external memories.
The microinstruction execution timing of the DSSPl will be described with reference to Fig. 2. The machine cycle 40 of the DSSPl is divided into four phases of timing P0 through P3. The nominal machine cycle time is as high as 50 nsec. Accordingly, it is practicall~
difficult to accomplish three operations, namely, reading a microinstruction from the instruction mask ROM 2, decoding the microinstruction by the instruction decoder ..,~":

lX88169 5 and execution of the instruction by the internal resources such as the FMPL 24 and the FALU 28, within one machine cycle. Accordingly, the three operations are divided into stages for each machine cycle to form a three-stage pipeline to enable high-speed operation.
The following operations are performed in the stages of the three-stage pipeline.
(1) Fetch stage 41:
A microinstruction address is provided by the PC 1, a microinstruction is read from the instruction mask ROM
2 and the microinstruction is set in the IR0 3.
(2) Decode stage 42 and 43:
The microinstruction is transferred from the IR0 3 to the IRl 4, the microinstruction is decoded by the instruction decoder 5, the program control mode is set, the microinstruction is transferred from the IR0 3 to the P-Bus 6, and address operation of the AAU 12 through the AM 9 and the AD 10.
(3) Execut~on stage 44, 45, 46 and 47:
Operation of data by the FMPL 24 and FALU 28, data transfer through the D-Bus 8, and access to the external data memories through the AR 20 and the DR 30.
Thus, the DSSPl needs three machine cycles to execute one microinstruction. This processor executes one microinstruction equivalently by the pipeline method.
Accordingly, the actual execution of the microinstruction is delayed by two machine cycles from the read of the _ 24 _ lZ88169 microinstruction from the instruction mask ROM 2. To avoid the timing contention between the internal resources, the internal buses are divided into the P-Bus 6 and the D-Bus 8, and the instruction mask ROM 2 and the 2P-RAM 21 are separated. However, since a branch instruction is executed actually in the decode stage, the microinstruction being set in the IR0 3 is executed in the decode stage. That is, an instruction succeeding a branch instruction is executed unconditionally. To avoid such unconditional execution of instructions, the DSSPl changes the instruction succeeding the branch instruction automatically into a no-operation instruction (NOP) during the execution of the branch instruction. Such a function is aimed at simplifying microinstruction description, however, one machine cycle is wasted in the branching operation and two machine cycles are wasted in indirect branching operation using the D-~us 8. Generally, no problem arises in about 80% of unconditional branching operations even if ~he succeeding instruction is executed when the sequence of instruction description is arranged properly and hence loss of machine cycles can be avoided. However, the DSSPl is unable to avoid the loss of machine cycles.
The microinstruction set of the DSSPl will be described hereinafter with reference to Fig. 3. A
microinstruction set includes only four instructions, namely, a sequence instruction, a mode instruction, an operation instruction and a load instruction.

~.288169 The sequence instruction controls the PC 1 for loop and subroutine call. The mode instruction initializes and sets the modes of the AAU 12, the selector 16, the LC 17, the SR 18 and the DMA control unit 19. The load instruction is used for loading immediate data of 18-bit width on the registers connected to the D-Bus 8 through the BI 7. The objective resources of the foregoing three microinstructions are fixed depending on instruction operation. On the other hand, as regards the operation instruction, all the internal resources capable of parallel operation must be specified directly.
Accordingly, the bit length of the instructions is dependent on the bit length of the operation instruction.
The DSSPl uses horizontal microinstructions of 32-bit width. The FMPL 24 is free to run and no instruction is given thereto directly. The operation of the FALU 28 is specified directly by an instruction. For example, operations of the FALU 28 is controlled by the following instructions.
(1) Absolute value instruction: ¦X¦
(2) Signum function instruction: Sign (Y)-X
(3) Addition instruction: X + Y
(4) Subtraction instruction: X - Y
(5) Maximum value instruction: MAX (X, Y) (6) Minimum value instruction: MIN (X, Y) (7) Fixed-to-floating translation instruction:
FLT (X) ;~ _26 " . ~

~1.288169 (8) Floating-to-fixed translation instruction:
FIX (X) (9) Shift instruction: Rl, Ll to L8 (10) Logic instruction: AND, OR, EOR, NOT
(11) Mantissa addition instruction: XM + YM
(12) Characteristic subtraction instruction:
XE ~ YE
However, it is a problem in the DSSPl that the operation of the DSSP1 is based on floating-point operation, while the DSSPl carries out logic and address operations on the basis of fixed-point operation. As mentioned above, the floating-point operation and the fixed-point operation are not compatible with each other.
In addressing in the`memory, for example, on the basis of the results of operation, the instruction (8) must be executed by the FALU 28. Furthermore, since floating-point data is not handled in general data input and output operation, the instruction (7) or the instruction (8) must be executed for every data input or output operation to translate the data.
Another problem in the DSSPl is that bits are always truncated in normalizing floating-point data entailing errors in operation, because the accuracy of operation of the signal processor is limited. However, when floating-point data is normalized only by truncating bits, the absolute value of the results of operation is always smallex than the true value and hence the ~i; -27 -~ Z881~;9 distribution of the errors is not random. The errors can be regarded as negligibly small by increasing the operation word length. However, since the ordinary signal processor is required to operate at a high speed, increase in the operation word length is limited.
Such a problem cannot be ignored particularly in image signal processing in which interframe processing is performed by an IIR digital filter (recursive digital filter), and the DSSPl must round the results of operation bv a logical operation instruction or the like.
Furthermore, in a general signal processing algorithm, in most cases, the accuracy of operation is regulated specifically for every unit process, and hence the accuracy of operation does not necessarily coincide with the operation word length of the signal processor. In such a case, the format of the operation data is converted repeatedly by the FALU 28 for every unit process.
It is a further problem in the DSSPl that operation capable of high-speed processing is limited only to product-sum operation. Such a limitation to the mode of operation is not a problem for FFT and FIR filters.
However, the recent signal processing algorithm requires for operation to determine the degree of approximation of vectors A and B, i.e., distance calculation, such as expressed by the following expressions to be carried out at a high processing speed.

N

¦ai - b i=l (ai _ bi) where ai and bi are the elements of vectors and N is the number of vectors.
The DSSPl is unable to support such an operation and hence such an operation must be decomposed into individual four arithmetic operations for processing.
Therefore, three separate operations must be executed to calculate a single term. When each one term is calculated by using the foregoing expressions, nine instructions (9 = 3 x 3) must be provided for one term due to delay, which deteriorates process multitude excessively. Naturally, the process multitude can be increased by sorting in differential + square accumulation by saving interim results by the 2P-RAM 21. However, it is difficult to use the limited space of the data memory effectively and hence it is impossible to process a large quantity of data.
Consider, for example, binary tree search as shown in Fig. 4. Suppose that an input vector A is set in the 2P-RAM 21, and a reference vector B of a tree construction is allocated to the nodes indicated by reference numerals in an external memory as shown in Fig. 5. An evaluation function expressing the degree of approximation between ~ ~88169 the input vector A and the reference vector B is absolute N

differential sum~ ai bil{ 1 2 N
B = (bl, b2, ..., bN)}. A reference vector which provides the least absolute differential sum is selected at each node of the binary tree and finally a reference vector which provides the highest degree of approximation is obtained. In this binary tree search, when the number of the present node is n, the degree of approximation between two reference vectors B at a node 2n+1 and 2n+2 is determined, and then the node number of a reference vector to be compared at the next stage is calculated on the basis of the degree of approximation. To carry out the foregoing binary tree search by the DSSPl, the following instruction steps are necessary.

Input data conversion: N + 2 steps Evaluation value calculation for one vector: 9N + 2 steps Evaluation value rounding: About 3 steps Evaluation value comparison: 4 steps Calculation of reference vector address for the next node: About 9 steps Total: 18N + 14 steps 1 stage + N + 2 steps.

This total number of steps is approximately nine times the number of steps when the ideal number of steps necessary for evaluation value calculation is 2N and the conversion of address and input data is unnecessary. In such a process, since the same process is not performed '~.Z88169 successively, it is necessary to be always conscious of the context of instructions. Consequently, process efficiency is deteriorated significantly, a very complex program is necessary and, obviously, a problem arises in the quantity of work necessary for developing softwares.
The conventional digital signal processor thus constituted has the following problems.
It is necessary to be always conscious of the context of instructions in producing a program, and the same instructions must be executed successively otherwise the process efficiency cannot be improved.
Address and data format are not compatible with each other, and hence format needs to be converted for every data, for example, in table look-up.
Designed particularly for obtaining product-sum, the arithmetic unit is unable to operate at a high efficiency and a complex program is necessary in operation other than that for obtaining product-sum.
The control of the accuracy of data operation is difficult and automatic rounding is impossible.

. Simultaneous Read/Write from the data memory for 2-input l-output operation is impossible, and the efficiency is deteriorated excessively, for example, in vector data processing.
. Immediate specification of an indirect address mode in the instruction is impossible and hence the process needs to be interrupted for every address mode change.

~.288169 A second exemplary conventional digital signal processor, which corresponds to a second embodiment of the present invention, will be described hereinafter.
Fig. 6 is a schematic block diagram showing the constitution of a digital signal processor (DSSPl) mainly for voice signal processing, published in the preprint No. S10-1 for the Denshi Tsushin Gakkai Tsushin Bumon Zenkoku Taikai Symposium, 1986.
Referring to Fig. 6, the DSSPl comprises a program counter (PC) 61 for holding instruction execution addresses (hereinafter referred to as "instruction addresses"), an instruction memory 62 for storing instruction words, a decoder 63 for decoding instruction - words, a program bus 64 for transferring decoded control 15 data, a data memory 65 for storing data, a data bus 66 for transferring main data, a bus interface register (hereinafter abbreviated to "BIR") 67 for interconnecting the program bus 64 and the data bus 66, a processing circuit (hereinafter referred to as "EU") 68 which 20 performs arithmetical operations, a register (flag register) 69 having a flip-flop for holding the status of the results of arithmetical operations, namely, a flag, an adder which adds 1 (one) to an input, a switching circuit 71, and a condition decision unit 72.
The operation of the processor will be described hereinafter with reference to Fig. 6. Generally, the signal processor has a pipeline construction to improve . ~ -~ 288~69 the processing speed. This exemplary digital signal processor has a three-stage pipeline construction.
An ordinary processor decodes and executes an instruction word, and then decodes and executes the next instruction word. A processor of a pipeline construction decodes the succeeding instruction word during the execution of the preceding instruction word. Accordingly, the processing speed of the processor of a pipeline system is higher than that of the ordinary processor.
However, since advanced decoding is useless in executing instruction words including many jump instructions such as conditional branch instructions, the processing speed of the processor of a pipeline system is reduced in executing such instruction words.
A pipeline processing mode will be described hereinafter.
In the first stage of the pipeline, an instruction word 62A stored in the instruction memory 62 at an instruction address specified by an instruction address 70A provided by the PC 61 is read and is applied to the decoder 63.
In the second stage of the-pipeline, a control signal produced by the decoder 63 by decoding the instruction word 62A is provided on the program bus 64 and a necessary control code is given to the BIR 67 via the program bus 64.

, ~:

In the third stage of the pipeline, the control signal controls operations such as reading data 65A on the data bus 66 from the data memory 65, writing data provided on the data bus 66 in the data memory 65, and processing the data by the EU 68.
The EU 68 provides a flag 68B indicating the status of the result 68A of operation after processing the data.
Generally, the flag 68B is a sign flag, a zero flag, an overflow flag or a carry flag.
The sign flag is a logical value "0" when the result 68A of operation is positive, and is a logical value "1"
when the result 68A of operation is negative.
The zero flag is a logical value "0" when the result 68A of operation is zero, and is a logical value "1" when the result 68A of operation is not zero.
The overflow flag is a logical value "1" when overflow occurs in the result 68A of operation, and is a logical value "0" when overflow does not occur in the result 68A of operation.
The carry flag is a logical value "1" when carry or digit borrow occurs in the result 68A, and is a logical value "0" in cases other than carry and digit borrow, The flag 68B is applied to and held by the flag register 69 until a new flag 68B is applied to the flag register 69 after the EU 68 has executed the next operation.

_ 34 -~.288169 Ordinarily, an instruction word following an instruction word which has been executed is stored in an address greater by "1" than the instruction address 70A
in which the executed instruction word was stored, when the executed instruction word does not specify a branch operation.
Accordingly, in the first stage of the pipeline, the instruction address 70A provided by the PC 61 is incremented by "1" by the adder 70 to make an address 71A
greater than the instruction address 70A by "1". If the instruction decoded by the decoder63 does not specify a branch operation, a control signal is applied to the switching circuit 71 to select the address 71A which is greater than the instruction address 70A by "1", and the logical value of a branch completion signal 72A becomes "0", and the address 71A obtained by adding "1" to the instruction address 70A is given to the PC 61.
The operation when the instruction word decoded in the second stage of the pipeline is a conditional branch instruction will be described hereinafter.
A conditional branch instruction is an instruction to specify executing an instruction word in a branched address specified by the instruction when the specified branch condition is met or to specify executing an instruction word in the next address.
When the conditional branch instruction is decoded, a flag 69A held by the flag register 69 is read and is .

~.~88169 applied to a condition decision unit 72. The condition decision unit 7 2 decides whether or not the branch condition 64A specified by the instruction is met. When the branch condition 64A is met, the logical value of a branch signal 72A becomes "1", the switching circuit 71 selects the branched address 64B specified by an instruction, and then the branched address 64B is given to the PC 61.
When the branch condition 64A is not met, the logical value of the branch signal 72A becomes "0", the switching circuit 71 selects the address 71A greater than the instruction address 70A by "1", and then the address 71A is given to the PC 61.
Operation of the processor in a case where only information indicating whether or not A = B (A and B are input data) is met is required will be described by way of example with reference to Fig. 7.
In the conventional processor, such information can be stored only in the data memory, and hence the following operation is performed.
First data Ao and Bo are compared. When the data Ao is equal to the data Bo~ the value of a predetermined address TS(0) in the data memory is made "1". When the data Ao is not equal to the data Bo~ the value of the 25 address TS(0) is made "0".
Then, data Al and Bl are compared and the result of the comparison is written at an address TS(l). The ~,,~i, 128~1~9 result of comparison of data A2 and B2 is written at an address TS(2).
Fig. 8 shows the sequence of operations of the PC
61, the decoder63 and the EU68 for processes shown in Fig. 7.
As shown in Fig. 8, in a machine cycle (hereinafter abbreviated to "M.C.") T, the PC 61 provided an instruction address N, and an instruction specifying the comparison of the data Ao and Bo is read from the address N in M.C. T+l.
Then, the EU68 calculates the difference between the data Ao and Bo~ A zero flag 802 is provided in a M.C.
T+2, and the zero flag 802 is set at the start of a M.C.
T+3.
That is, when a conditional branch instruction is given, the condition decision unit 12 tests the zero flag and decides a branched address in the M.C. T+3.
Accordingly, to forbid the advanced decoding operation of the decoder63, a NOP (no-operation) instruction is stored at an address N+l. When the logical value of the zero flag is "1", a conditional branch instruction is stored at an address N+2.
That is, when Ao = Bo~ a load instruction stored at an address N+3 (an instruction specifying storing the result of decision in the data memory 65 is executed in a M.C. T+5 as shown in Fig. 8(a), and then the address TS(0) is set for "1".

~.Z88~69 When Ao ~ Bo~ the load instruction at the address N+3 is replaced with a NOP instruction to branch the program to an address M as shown in Fig. 8(b), a load instruction at the address M is executed in a M.C. T+6 to made the value of the address TS(0) "0". After the completion of the operation following the decision Ao ~ Bol an unconditional branch instruction stored at an address M+l is executed.
Accordingly, the PC 61 provides an instruction address N+4 in a M.C. T+7, which is delayed by three machine cycles from the machine cycle where the instruction address N+4 is provided when Ao = Bo~
Thus, to set the result of comparison of the data Ao and Bo in the address TS(0) seven instruction steps, and four or seven machine cycles are necessary.
Twenty-one (21 = 7 x 3) instruction steps and twelve machine cycles at the minimum and twenty-one machine cycles at the maximum are necessary to complete the process shown in Fig. 7.
Since the conventional signal processor of the foregoing signal processing system operates in the foregoing mode and the information can be stored only in the data memory, a comparison instruction or the like must be executed and instruction words for two kinds of processes must be produced according to the status of a flag by using a conditional branch instruction in executing the process as shown in Fig. 7, namely, a ~ X88169 conditional instruction process for a conditional test instruction to obtain information only as to whether or not the result of operation meets a predetermined condition, and hence the number of instruction steps is S increased, execution time varies greatly depending on the result of decision and the processing efficiency is deteriorated.
Another mode of operation of the conventional processor shown in Fig. 6 will be described hereinafter.
This mode of operation corresponds to that of a third embodiment of the present invention. Generally, a signal processor has a pipeline construction to improve the processing speed. This processor has a three-stage pipeline construction.
An ordinary processor decodes and executes an instruction word, and then decodes and executes the next instruction word, while the processor of a pipeline system decodes a succeeding instruction word during the execution of the preceding instruction word.
Accordingly, the processing speed of the processor of a pipeline system is higher than that of the ordinary processor. However, since advanced decoding is useless in executing instruction words including many jump instructions such as conditional branch instructions, the processing speed is reduced.
The pipeline processing mode will be described hereinafter. In the first stage of the pipeline, an ~Z88169 instruction word 62A stored at an address specified by an instruction address 70A provided by the PC 61 is read from the instruction memory 62 and then the instruction word 62A is given to the decoder 63.
In the second stage of the pipeline, a control signal produced by the decoder 63 by decoding the instruction word 62A is provided on the program bus 64 and a necessary control code is given to the BIR67 via the program bus 64.
In the third stage of the pipeline, the control signal controls operations such as reading data 65A on the data bus 66 from the data memory 65, writing data provided on the data bus 66 in the data memory 6 5, and processing the data by the EU68.
The EU68 provides a flag 68B indicating the status of the result 68A of operation after processing the data.
Generally, the flag 68B is a sign flag, a zero flag, an overflow flag or a carry flag.
The sign flag is a logical value "0" when the result 68A of operation is positive, and is a logical value "1"
when the result 68A of operation is negative.
The zero flag is a logical value "0" when the result 68A of operation is zero, and is a logical value "1" when the result 68A of operation is not zero.
The overflow flag is a logical value "1" when overflow occurs in the result 68A of operation, and is a logical value "0" when overflow does not occur in the result 68A of operation.
_ 40 -~.288169 The carry flag is a logical value "1" when carry or digit borrow occurs in the result 68A, and is a logical value "0" in cases other than carry and digit borrow.
The flag 68B is applied to and held by the flag register 69 until a new flag 68B is applied to the flag register 69 after the EU 68 has executed the next operation.
Ordinarily, an instruction word following an instruction word which has been executed is stored in an address greater by "1" than the instruction address 70A
in which the executed instruction word was stored, when the executed instruction word does not specify a branch operation.
Accordingly, in the first stage of the pipeline, lS the instruction address 70A provided by the PC 61 is incremented by "1" by the adder 70 to make an address 71A greater than the instruction address 70A by "1". If the instruction decoded by the decoder63 does not specify a branch operation, a control signal is applied to the switching circuit 71 to select the address 71A which is greater than the instruction address 70A by "1", and the logical value of a branch completion signal 72A becomes "0" and the address 71A obtained by adding "1" to the instruction address 70A is given to the PC 61.
The operation when the instruction word decoded in the second stage of the pipeline is a conditional branch instruction will be described hereinafter. A conditional . -~.X88169 branch instruction is an instruction to branch theprogram to a branched address specified by an instrustion when a branch condition specified by an instruction is met and not to branch the program when the branch condition is not met.
First a flag 69A held in the flag register 69 is read and is given to the condition decision unit 72 when a conditional branch instruction is decoded.
Then, the condition decision unit 72 decides whether or not a branch condition 64A specified by an instruction is met. When the branch condition 64A is met, the logical value of a branch signal 72A becomes "1", the switching circuit 71 selects a branched address 64B specified by an instruction, and then the branched address 64B is given to the PC 61. On the other hand, when the branch condition 64A is not met, the logical value of the branch signal 72A becomes "0". Then, the switching circuit 71 selects an address 71A greater than the instruction address 70A by "1", and then the address 71A is given to the PC 61.
Generally, when a processor having a pipeline construction executes a branch operation the operation is delayed by the pipeline. For example, suppose that a conditional branch instruction ~tored in the instruction memory 62 at an address N in a M.C. T. Then, the PC 61 provides an instruction address N+l to read an instruction stored at an address N+l while a decision is being made in a M.C. T+l.

J

~.288~69 When the branch condition 64A is met, an instruction word stored at the address N+l in the decoder is invalidated and is replaced with a NOP instruction.
When the branch condition 64A is not met, the instruction word stored at the address N+l is decoded and executed.
Suppose that the processor executes conditional branch operations, for example, conditional branch operations according to a program having branch conditions A and B of different priority as shown in Fig. 9, in which a process X is executed when the branch condition A is met, a process Y is executed when the branch condition A is not met and the branch condition B
is met, and a process Z is executed when both the branch conditions A and B are not met.
A conditional branch instruction A specifying branching the program to an address A for the process X
when the branch condition A is met is stored in the address N, a conditional branch instruction B specifying branching the program to an address B for the process Y
when the branch condition B is met is stored in the address N+l, and an unconditional branch instruction C
specifying branching the program to an address C for the process Z is stored in the address N+2. When the address N is provided by the PC 61 in a M.C. T, the conditional branch instruction A is decoded and executed in a M.C.
T+l. When the branch condition A is met, the PC 61 , , ~.Z88169 provides the branched address A in a M.C. T+2, and the instruction at the address N+l in the decoder is replaced with a NOP instruction. When the branch consition A is not met, the PC 61 provides the address N+2 and the conditional branch instruction B is decoded and executed. When the branch condition B is met, the PC 61 provides the branched address B in a M.C. T+3, and the instruction at the address N+2 of the decoder is replaced with a NOP instruction. When the branch condition B is not met, the PC 61 provides the address N+3 and the unconditional branch instruction C is decoded and executed. Such a conditional branch instruction is able to specify merely binary decisions. Therefore, multipoint branch operation requires many machine cycles.
According to the signal processing system of the conventional processor, many conditional branch instructions need to be executed to accomplish a multipoint conditional branch process. Thus, the conventional signal processor of a signal processing system has problems that the number of instruction steps is increased the execution time is extended uselessly and the processing speed is reduced.
Furthermore, since those problems prevent the effective use of the instruction memory, reduction in the processing efficiency is remarkable particularly in the image signal processing field in which a large quantity of data need to be operated at a high speed and , -44 -~.288~69 multipoint conditional branch processes need to be executed on the basis of the operation.
Fig. 11 is a schematic block diagram of a fourth exemplary conventional signal processor employing the digital signal processor (DSSPl) mainly for voice signal processing published in the preprint No. S10-1 for the Denshi Tsushin Gakkai Tsushin Bumon Zenkoku Taikai Symposium, 1985. In this example, the digital signal processor is controlled by a host processor. The fourth exemplary conventional signal processor corresponds to a fourth embodiment of the present invention.
Referring to Fig. 11, there are shown a signal processor 82 mainly for signal processing, a host processor 81 for controlling the signal processor 82, an instruction memory selection signal 83, a reset signal 84 for initializing the signal processor 82, a program counter (PC) 85, an instruction address 86, an internal instruction memory 87, such as a ROM, storing instruction words, an external instruction memory 88 storing instruction words, a switching circuit 89 for selecting one of two instruction words according to the instruction memory selection signal 83, an instruction register (IR) 90 for holding an instruction word, a decoder 91 for decoding instruction words, an arithmetic unit 92 which carries out arithmetical operations, a control signal 93, a data memory 94 storing data to be subjected to signal processing operation, and data 95.

~45 ~.288169 Fig. 12 is a flow chart of assistance in explaining the operation of the signal processor.
The operation of this signal processor will be described with reference to Figs. 11 and 12. Upon the connection of the signal processor to a power supply, first the host processor starts operation and gives a selection signal 83 to the signal processor 82 to specify the internal instruction memory 87 or the external instruction memory 88. The internal instruction memory 87 is selected when the logical value of the selection signal 83 is "0", while the external instruction memory 88 is selected when the logical value of the selection signal 83 is "1". Then, the host processor 81 gives the reset signal 84 to the signal processor 82. Upon the reception of the reset signal 84, the devices including the internal instruction register are initialized and the PC 85 is cleared. Then, the PC 85 gives an instruc-tion address 86 specifying an address 0 to the internal instruction memory 87 of the signal processor 82 and to the external instruction memory 88 to read instruction words stored at the specified address 0 and the instruction words are given to the switching circuit 89.
The switching circuit 89 selects either the instruction word read from the internal instruction memory 87 or the instruction word read from the external instruction memory 88 according to the selection signal 83 given thereto from the host processor 81 and gives the selected instruction word to the IR 90. The instruction word held by the IR 90 is decoded by the decoder 91 to provide control signals to the devices. The internal arithmetic unit 92 of the signal processor 82 is controlled by the control signal 93 provided by the decoder 91 to process the data 95 stored in the data memory 94 through arithmetical operations.
The conventional signal processor needs a comparatively large-scale control program for complex signal processing and the capacity of the internal instruction memory 87 of the signal processor 82 is insufficient to store such a large-scale control program, and hence the external instruction memory 88 is necessary.
When the external instruction memory 88 is employed, an input/output (I/O) device is necessary for transferring the internal signals of the signal processor 82 and the external signals through external terminals to provide the instruction address 86 and to receive instruction words. In such a case, a long time is necessary for reading instruction words from the internal instruction memory 87 because the instruction words are read through an additional device. Accordingly, a clock signal having a long period must be applied to the signal processor 82 when the external instruction memory 88 is employed, and the signal processor 82 must be initialized by the reset signal 84 after switching the instruction memories or the signal processor will malfunction.

-4~ -1288~69 The internal instruction memory 87 of the signal processor 82 is a so-called mask ~OM in which a program is written beforehand in fabricating the signal processor 82, and a special program for special processes 5 i5 stored in the internal instruction memory 87.
The conventional signal processor thus constituted needs to read instruction words from the external instruction memory in executing complex processes requiring additional time for reading instruction words from the external instruction memory to reduce the processing efficiency. Furthermore, since the internal instruction memory is a read-only memory, the change of the program after the completion of the signal processor is impossible and, when errors are found in the program or when the program needs correction, the signal processor needs to be changed for a new one, which deteriorates the efficiency of development and is uneconomical.
Fig. 13 is a schematic block diagram of assistance in explaining a typical interruption process, showing a fifth exemplary conventional signal processor published in "Television Gakkai-shi, DSP, Minor Special Issue"
pp. 219 - 233, 1987/3. The constitution of the signal processor per se is not related directly with the interrupt process. This fifth exemplary conventional signal processor corresponds to a fifth embodiment of the present invention.

~ 48 ~.Z88169 Referring to Fig. 13, there are shown an external interruption request signal (hereinafter abbreviated to "INTR") 101, an interrupt control circuit 102 which starts interruption process upon the reception of INTR
101, an interruption response signal (hereinafter abbreviated to "INTA") 103 given through the interrupt control circuit 102 to an external device, an interrupt mask register 104 which holds the status of interrupt able or interrupt disable, an interruption process start signal 105, an interrupt address register 106 which holds an interruption process start address, an interruption process start address 107, a multiplexer 108, a program counter (hereinafter abbreviated to "PC") 102 which holds instruction execution addresses, a stacker (hereinafter abbreviated to "STK") 110 of a last-in first-out system (LIFO system) which keeps the instruction address immediately before interruption process on standby, an instruction address 111 provided by the PC 109, an address register (AR) 126, a data address 112 provided by the AR 126, an instruction memory 114 storing execution control instructions, a main bus 115 for transferring main data, a data memory 119 storing data, data 116 written in or read from the data memory 119, an instruction 117 read from the instruction memory 114, an instruction register (IR) 120 for decoding the instruction 117, a sequence control circuit 121 for distributing predetermined control .- - 49 ~

1288~69 signals to the component devices according to instructions, a temporary register 122 (TR) which receives data through the main bus 115, an arithmetic circuit (EU) 123 for arithmetical operations, a pipeline register (PR) 124 for temporarily storing the output signals of the EU
123, a working register (WR) 125 for storing the results of operation of the EU 123, an address register (AR) 126 which provides a data address 112, and an address generating circuit (AGU) 127 which calculates the data address 112.
Fig. 14 is a flow chart showing the steps of an interruption process to be executed by the signal processor of Fig. 13.
The operation of this system will be described hereinafter with reference to Fig. 13. When there is not any interruption request, the PC 109 gives the instruction address 111 to the instruction memory 114, and the instruction 117 is given to the IR 120. Then, the sequence control circuit 121 distributes control signals according to the instruction given to the I~ 120 to control the devices for executing predetermined processes. The AGU 127 and the arithmetic circuit 123 processes the data address 112 and the data 116 according to the control signals. The TR 122, the PR
124, the WR 125 and the AR 126 temporarily hold data necessary for the processes to carry out the processes efficiently.

_ 50 When the interruption request signal INTR 101 is given to the interrupt control circuit 102, the PC 109 interrupts the operation temporarily, keeps the instruction address 111 presently being executed on standby in the stack 110, changes the instruction address 111 for the interruption address 106 to start the execution of the interruption process. Since the contents of the registers which are being used at the moment of interruption of the operation of the PC 109 among the registers to be used for interruption process, i.e., the TR 122, the PR 124, the WR 125 and the AR 126, need to be restored at the end of the interruption process, an instruction is provided to keep the contents of those registers on standby in the memory before starting the interruption process. An instruction is provided to return the contents kept on standby from the memory to the corresponding registers immediately before the end of the interruption process. Then, the instruction address kept on standby in the stack 110 at the start of the interruption process is fetched and is stored in the PC 109 to restart the process. The sequence of the interruption process is shown in Fig. 14 Operations to keep the contents of the registers on standby and to restore the standby contents to the corresponding registers for interruption process are carried out in response to instructions. Accordingly, when the arithmetic circuit 123 is, for example, of a ~.288169 pipeline construction, the pipeline register 124 and the like which cannot be kept on standby and restored by instructions cannot be kept on standby.
In such a case, since return from the interruption S process is impossible when an instruction which uses the arithmetic circuit 123 is being executed in an ordinary process, mask data is written in the interrupt mask register 104 to forbid an interrupt input. While interruption is forbidden,- the interrupt control circuit 102 does not provide the INTA 103 in response to the INTR 101; consequently, the external device which generated the interrupt request signal is kept on standby until the INTA 103 is provided.
Since the conventional interruption processing system carries out the interruption process in the foregoing manner, response to an interrupt request is delayed. Particularly, when the conventional interruption processing system is applied to a multiprocessor or a real-time signal processing system, the general processing efficiency of the system is reduced. Since the data is kept on standby by instructions, the interruption process requires an increased time and, when interruption requests are given frequently to the system, in particular, most steps of the process are used for keeping the data on standby and restoring the data,significantly reducing the efficiency of the interruption process.

~ Z88169 Fig. 15 shows the constitution of an address generator of a conventional address control system as a sixth example of the prior art published in "TMS32020 User's Manual", issued by Texas Instruments. The sixth example corresponds to a sixth embodiment of the present invention.
Shown in Fig. 15 are a data bus 131 for data transfer, an auxiliary register pointer standby register (ARB) 133, a data path 132 connecting the ARB 133 to the data bus 131, an auxiliary register pointer (ARP) 136, a data standby path 134 extending from the ARP 136, a data path 135 connecting the ARP 136 to the data bus 131, auxiliary registers (AR0, ARl, AR2, AR3, AR4) 138 having five words, a selection signal 137 provided by the ARP
136 to select one of the ARs 138, an indirect address data 139 provided by the AR 138, an address data 140 provided by the AR 138, an arithmetic unit (ARAU) 142 for the auxiliary registers ARs 138, an updated address data 141 produced by updating the address data 140 by the ARAU 142, a data memory page pointer (DP) 143 for the direct address, a data memory page data 144 provided by the DP 143, a multiplexer 145 which multiplexes direct address data (dma) 146 indicated by an immediate value and the data memory page data 144 to generate a direct address, a direct address 147, a selector 148 which selects either the direct address 147 or the indirect address 139, an address output 149, an address control ~53 ~.288169 code 150, an auxiliary register pointer control signal 152, a decoder 153 for decoding an address control code and providing a control signal 151 to the ARB 133, a control signal 154 for controlling the ARAU 142, and a control signal 155 for selecting either the direct address 147 or the indirect address 139. Fig. 16 shows the contents of the address control code 150 applied to the address generator of Fig. 15.
In Fig. 16, indicated at 157 is an indirect address specifying code and at 158 is a direct address specifying code.

iO Fig. 17 is a table showing address control codes 150 and the corresponding operations.
The operation of the address generator will be described with reference to Fig. 15, in which the devices will be denoted by abbreviations for simplicity. When an lS address control code 150 specifying a direct address is applied to the address generator, the decoder 153 provides direct address data 146 indicated by an immediate value of seven bits in the address control code 150. The multiplexer 145 multiplexes the direct address data 146 and data memory page data 144 of nine bits held in the DP 143 to generate a direct address 147.
Finally, the selector 148 selects the direct address 147 according to a selection control signal 155 to provide an address 149.
When the address control code 150 applied to the address generator specifies an indirect address, the decoder 153 provides an ARP control signal 152 indicating ~.2~81~9 one of the AR0 to AR4 as an indirect address 139. The selector 148 selects the indirect address 139 according to a selection control signal 155 to provide an address 149. Then, the ARAU 142 executes a predetermined updating process to update the selected AR 138 among the ARO to AR4 in order to calculate an indirect address data to be used by the next instruction. There are five indirect modes as follows.
1. The AR 138 indicated by the ARP 136 is used as a data memory address.
2. The data memory is accessed for the contents of the AR 138 indicated by the ARP 136, and then the contents are decremented by one.
3. The data memory is accessed for the contents of the AR 138 indicated by the ARP 136, and then the contents are decremented by one.
4. The data memory is accessed for the contents of the AR 138 indicated by the ARP 136, and then the contents of the AR0 138 are subtracted from the contents of the AR 138 indicated by the ARP 136.
5. The data memory is accessed for the contents of the AR 138 indicated by the ARP 136, and then the contents of the AR0 138 are added to the contents of the AR 138 indicated by the ARP 136.
That is, in this example, the indirect addressing modes using the AR0 to AR4 are classified roughly into two operating modes in which the ARAU 142 operates.

.,~

~.2sal6s 1. Ordinary addressing by incrementing or decrementing the AR0 to AR4 by one.
2. Indirect addressing with index modification on the basis of the contents of the AR0.
These addressing modes are considered to be suitable mainly for simplified one-dimensional data addresses for aural signal processing. ~owever, these addressing modes are unable to deal with complex one-dimensional data addresses such as a bit reverse address used for fast Fourier transformation (FFT) stated in C.S. Burrus, T.W. Parks, "DFT/FFT and Convolution Algorithms - Theory and Implementation", John Wily and Sons, 1985. To deal with such an addressing mode, the address must be converted into an address capable of dealing with such an addressing mode by using the ARAU 142 by calculating a desired address by a data operating unit. However, this procedure requires additional data processing time.
Similarly, these addressing modes are unable to deal with two-dimensional address for addressing data of a matrix of n-rows x m-columns. In this case, the data processing time is increased remarkably in many cases because the data operating unit is used for calculating every address. Furthermore, the control code description is complex and the production of a program employing complex control codes is difficult. These problems are disadvantages in application to the image signal - 56 _ . .-, ~.~88169 processing field in which a large quantity of data needs to be processed at a high data processing speed.
The conventional address control system thus constituted needs to perform the data operating unit for address calculation in many cases when applied to a two-dimensional process such as image signal process and requires complex program softwares for a signal processing algorithm.

Fig. 18 is a block diagram showing the constitution of a multiport memory circuit for a digital signal processor, employing ordinary single-port memories, as a seventh example of the prior art. The seventh example corresponds to a seventh embodiment of the present invention.
Referring to Fig. 18, there are shown a random access memory (RAM) 171, a ~AM access unit 190 including an address selector 177, a read/write (R/W) timing control circuit 178 and a bilateral data selector 179, an address signal (AD signal) 172 given from the address selector 177 to the RAM 171, a timing signal 173 for 2~ controlling the address selector 177, a timing signal 174 for controlling the data selector 179, a R/W control signal 175 applied to the RAM 171, a data signal (D
signal) 176 provided by the RAM 171, an input/output (I/O) unit 189 including address registers (ARl to AR3) 180 and data registers (DRl to DR3) 181 respectively connected to ports, a data signal (DPl) 182 at the access ~ 57 ~

~I Z~38169 port 1, a data signal (DP2) at the access port 2, a data signal (DP3) 184 at the access port 3, a clock signal (CLX) lE5, an address signal (APl)186 at the access port 1, an address signal (AP2) 187 at the access port 2, and an address signal (AP3) 188 at the access port 3.
Fig. 19 is a time chart showing the timing of operation of the multiport memory circuit of Fig. 18.
The operation of the multiport memory circuit of Fig. 18 will be described hereinafter. This multiport memory circuit has three ports. The address signals APl, AP2 and AP3 at the ports are applied respectively to the corresponding address registers ARl, AR2 and AR3 at a period one-third the period of the CLK 185. The address selector 177 selects the address registers ARl, AR2 and AR3 in a predetermined sequence in a time sharing mode according to the timing signal 173 from the R/W timing control circuit 178 to provide address signals ADs. The R/W control signal is provided according to a R/W
identification signal superposed on the address signals APl, AP2 and AP3 at the corresponding ports to control the RAM 171 for R/W operation.
Likewise, the data signals DPl, DP2 and DP3 at the corresponding ports are applied respectively to the corresponding data registers DRl, DR2 and DR3 at a period one-third the period of the CLK 185 in synchronism with the address signals APl, AP2 and AP3. Then, the data selector 179 selects the data registers DRl, DR2 ~2881~9 and DR3 in a predetermined sequence in a time sharing mode according to the timing signal 174 provided by the R/W timing control circuit 178 to provide a data signal D.
In read operation, the direction of output of data is reversed while the rest of the operations are the same as those for write operation.
The RAM 171 reads the data signal D or writes the data signal D in an address specified by the address signal AD according to the R/W control signal R/W.
Thus, the conventional multiport memory circuit comprises the RAM 171, the RAM access unit 190 and the I/O unit 189 so that the respective ports of the ordinary single-port memories can be accessed in a time sharing mode. The cycle time tp of each port is given by Tp = n x tcy (sec) where tcy is the cycle time of the RAM 171, and n (an integer not less than one) is the number of access ports.
That is, in view of the cycle time tp of each port, the RAM 171 functions as a multiport memory circuit capable of pseudosimultaneous R/W operation. When the same address is specified by the two different ports for read operation, no problem arises. However, when either port or both the ports are for write operation, in many cases, a known control method sets each port for priority and applies a BUSY signal to the port of lower priority to temporarily forbid access to the same port. ~ig. 19 _ 59 _ ~.288~69 is a time chart of assistance in explaining such a cycle timing operation.
Since the conventional multiport memory circuit is constituted as stated above, the cycle time of each port increases in proportion to the number of access ports and thereby the operating speed of the multiport memory circuit is reduced. Furthermore, the circuit configuration of the conventional multiport memory circuit is complex and the scale of the circuit increases progressively with the increase in the number of access ports.
Fig. 20 shows an eighth prior art and is a block diagram indicating the structure of an address generator based on the address control system of the prior art disclosed, for example, in the "USER's MANUAL TMS32020"
issued by Texas Instruments Inc. This exemplary conventional digital signal processor corresponds to an eighth embodiment of this invention.
In this figure, 701 is data bus for data transfer, 702 is data bus to an auxiliary register pointer save register (ARB) 191 from the data bus 701, 191 is auxiliary register pointer save register (ARB), 704 is data save bus extending from auxiliary register pointer (ARP) 192,705 is data bus between auxiliary register pointer (ARP) 192 and data bus 701, 707 is selection signal to select auxiliary register (AR) 193 from the auxiliary register pointer (ARP) 192, 193 is auxiliary ~.288169 register (AR = AR0 - AR4) providing 5 words, 709 is relative (indirect) address output from auxiliary register (AR) 709, 710 is address data sent from the auxiliary register (AR) 193, 711 is new address data obtained by updating address data 710 in the operation unit only for auxiliary register (ARAU) 194, 195 is data memory page pointer for direct address (DP), 714 is data memory page data output from data memory pointer for direct address (DP) 195, 196 is multiplexer (MUX) which generates direct address 717 by multiplexing the direct address data indicated by immediate value and data memory page data 714, 717 is direct address, 197 is selector which selects direct address 717 and relative address 709, 719 is address output, 720 is address control code, 721 is auxiliary register pointer save register control signal, 722 is auxiliary register pointer control signal, 198 is decoder for decoding address control code 720, 724 is control signal which controls operation unit only for auxiliary register (ARAU) 194, 725 is selection control signal which selects direct address 717 and relative address 709, 726 is data input/output bus between auxiliary register (AR) 193 and data bus 701, 727 is data input/output bus between data memory page pointer for direct address (DP) 195 and data bus 701.
Fig. 21 is a table for explaining operation of address generator of Fig. 20 by the address control code.

Next, operations of address generator of the prior art are explained. In case, the input address control code 720 is designated by direct address, the decoder 198 outputs the direct address data 716 indicated by the immediate value of 7 bits in the instruction code, This direct address data 716 and data memory page data 714 of 8 bits held by the data memory page pointer for direct address (DP) l9S are multiplexed by the multiplexer (MUX) 196 to generate the direct address 717. Finally, the selector 197 selects the direct address 717 from the selector 197 with the selection control signal 725 and outputs the address output 719.
Next, in case the input address control code 720 is designated by relative address, one of the auxiliary registers (AR) 193 indicated by the auxiliary register pointer control signal 722 output from the decoder 198 is output as the relative address 709. This is selected by the selector 197 with the selection control signal 725 to output the address output 719. Thereafter, the operation unit only for auxiliary register (ARAU) 194 executes the specified update processing for the one of the selected auxiliary registers (AR) 193 to calculate the relative address 709 to be used by the next instruction. The relative address 709 is used in the following five modes.
1. The auxiliary register (AR) 193 indicated by the auxiliary register pointer (ARP) 192 is used as the data memory address.

~ 2&8169 2. Access to data memory is made with content of auxiliary register (AR) 193 indicated by the auxiliary register pointer (ARP) 192 and thereafter "1" is subtracted from such content.
3. Access to the data memory is made with content of auxiliary register (AR) 193 indicated by the auxiliary register pointer (ARP) 192.
4. Access to data memory is made with content of auxiliary register (AR) 193 indicated by the auxiliary register pointer (ARP) 192 and thereafter content of auxiliary register (ARO) 193 is subtracted from such content.
5. Access to data memory is made with content of auxiliary register (AR) 193 indicated by the auxiliary register pointer (ARP) 192 and thereafter content of auxiliary register (ARO) 193 is added to such content.
Namely, the addressing using the auxiliary register (AR) 193 is roughly classified into following two kinds in the prior art and these are equivalent to the kinds of calculation of the operation unit only for auxiliary register (ARA~) 194.
A. Ordinary relative addressing by addition of "l"/subtraction of "1" for the auxiliary register (AR) B. Relative addressing with index modification based on content of auxiliary register (ARO) ~.288169 These address modes can be thought to be suited to the simplified data address among the unidimensional data addresses mainly for voice signal processing.
However, when addressing is carried out for the data on the bidimensional space, the address of leading reference point must be set to the address register and the pipeline of a series of calculations breaks, deteriorating the efficiency.
Fig. 22 shows data series on the bidimensional space and Fig. 23 is a flowchart of addressing operation for the data series of Fig. 22 by the address generator.
In the data series of Fig. 22, it is assumed that the bidimensional data of M data in the horizontal direction and L data in the vertical direction are stored in the data memory with the unidim~nsional address. It is also considered here that the reference points in the bloc~ in such bidimensional data (2m data in the horizontal direction, Q data in the vertical direction) are sampled in the direction of sequential horizontal scanning.
First, the address of the point Pl is initially set to the one auxiliary register ARl (ARP = 1) of the auxiliary registers (AR) 8 as the address register and "2" is set to AR0. For the reference points on the same horizontal line, addressing is carried out depending on the address control mode No. 8 shown in Fig. 23, namely ARl l ARl + AR0, ~.2~8169 However, the address of the leading reference point Pm+l of the next line cannot be generated by updating the value of ARl and must be newly set. Accordingly, a step for calculating the leading address of line using the data calculator and setting it to ARl is required.
The subsequent processings are carried out in the same way as those for the first line. As can be seen in the above processing procedures, it is obvious that the intrinsical calculation processings are intermitted every time the line changes for the secondary data and thereby pipeline efficiency is lowered and processing period increases due to increase of a number of instruction steps.

Since the address control system of the prior art is constituted as explained above, in case it is used for bidimensional signal processing such as processing of video signals, it results in problems that address calculation must be often carried out in the data calculation section and program software of signal 2C processing algorithm is complicated.

The preferred embodiments of the present invention will now be described in detail.
Referring to Fig. 24 showing a digital signal processor, in a first embodiment, according to the present invention, there are shown an external bus 200 connecting the digital signal processor to an external ~.Z88~69 extension microinstruction memory, an internal writable instruction memory (WCS) 201, a sequence control unit 202 which receives a microinstruction read through the external program bus 200 or from the WCS 201 and performs predetermined control operation in an instruction execution pipeline, an address generating unit 203 which generates 2-input l-output addresses in parallel for data memories, three internal data buses 204 each having a width of twenty-four bits, for the parallel transfer of the 2-input l-output data, an external bus 211 connected to an external extension data memory, an external data memory (I/F) 205 for selectively connecting one of the three internal data buses 204 to the external data bus 211, an arithmetic unit 206 which performs predetermined operations, connected to the three internal data buses 204, an internal data memory (M0) 207 having one read port and one read/write port and connected to the internal data buses 204, an internal data memory (Ml) 208 similar to the M0 207, connected to the internal data buses 204, a DMA control unit 209 individually provided with an external data memory address generator and an internal data memory address generator, a DMA bus 210 for DMA transfer between the external data bus 211 and M0 207 and Ml 208, a reset terminal 212 through which an external reset signal is applied to the sequence control unit 202, and an interrupt terminal 213 to which an external interrupt control signal is applied.

~.2~81~9 Referring to Fig. 25 showing the constitution of the arithmetic unit 206 of Fig. 20, there are shown an X-bus 220 for transferring operand data among the three internal data buses 204, a Y-bus 221 for transferring operand data among the three internal data buses 204, a Z-bus 222 for transferring output data among the three internal data buses 204, a barrel shifter (B-SFT) 223 having a word length of twenty-four bits, for shifting.
or rotating input data by a predetermined number of bits in one machine cycle, an arithmetic and logic unit (ALU) 224 having a word length of twenty-four bits which performs a predetermined arithmetic and logical operation or absolute difference calculation in one machine cycle, a multiplier (MPY) 225 which performs multiplication of twenty-four bits and provides the result of forty-seven bits of multiplication in one machine cycle, a data pipeline register (DPR0) 226 which holds the output difference of the ALU 224 temporarily and applies the output difference to the square input port of the MPY 225 to calculate a square difference, a multiplexer 227 which selects either the 24-bit output of the B-SFT 223 or the 24-bit output of the ALU 224, and applies the selected output to a data pipeline register (DPRl) 229 for temporarily holding the output of the multiplexer 227, a data pipeline register (DPR2) 228 for temporarily holding the 47-bit output of the MPY 225, a normalizing barrel shifter (N-SFT) 230 which selectively receives either the 381~i9 24-bit data provided by the DPRl 229 or the 47-bit data provided by the DPR2 228, operates the received data for predetermined digit adjustment in half the machine cycle to provide a 24-bit data, a 24-bit output 231 of the N-SFT 230, a working register (Wr) 235 of 24-bit x 8-word constitution, a 24-bit accumulation output 232 of the Wr 235, an adder (AU) 233 for accumulation and round-off, a 24-bit output 234 of the AU 233, a flag output 236 of the ALU 224, a f'ag check circuit 237 for the conditional test of the flag output 236, a conditional test shift register (tcsr) 238 of 24 x 1 bits for sequentially storing the l-bit outputs of the flag check circuit 237, namely, the results of decisions of the flag check circuit 237, and a l-bit carrier 239 which provides the highest bit shifted out when the N-SFT 230 provides a shift instruction for shifting in the LSB direction, namely, right shift.
Fig. 26 illustrates the relation between the internal data memories and internal data buses of the digital signal processor of Fig. 24. Shown in Fig. 26 are a multiplexer 240 which applies a 24-bit data at the read port of the M0 207 selectively to the X-bus 220 or the Y-bus 221, a multiplexer 241 which applies a 24-bit data at the read port of the Ml 108 selectively to the X-bus 220 or the Y-bus 221, a multiplexer 242 which selects either write data on the DMA bus 210 or write data on the Z-bus 222 and applies the selected data to ~1.2~38169 the read/write port of the M0 207, a multiplexer 243 which selects either write data on the Z-bus 222 or write data on the DMA bus 210 and applies the selected data to the read/write port of the Ml 208, a 2-2 addressing selector 244 which applies a write address D
address 247 and an internal data memory address I
address 248 provided by the sequence control unit 202 selectively to either the read/write port of the M0 207 or the read/write port of the Ml 208, an S0 address 245, i.e., the read port address of the M0 207, an Sl address 246, i.e., the read port address of the Ml 208, a write address 247 for the M0 207 or the Ml 208, and an I
address, i.e., an internal memory address, corresponding to data transferred through the DMA bus 210.
Fig. 27 illustrates the constitution of the address generating unit 203 of Fig. 24. Shown in Fig. 27 displacement data 250 indicated by an immediate value included in a microinstruction given to the sequence control unit 202, a 24-bit x 4-word address register (AR) 251, a 12-bit x 4-word index modify register (IXR) 252, a data I/O bus 253 connecting the AR 251 to the X-bus 220, a data I/O bus 254 connecting the IXR 252 to the X-bus 220, an address adder 255 of 24-bit word length, three individual address generators (AGUs) 256, a write address pipeline register (DAPR3) 257 for delaying a 24-bit write address by one machine cycle, and a write address pipeline register (DAPR4) 258 similar to the DAPR3 257.

~.288~69 Fig. 28 is a diagram of assistance in explaining an instruction execution pipeline of 5-stage construction of the digital signal processor of Fig. 24. In Fig. 28, there are shown a four-phase mzchine cycle 260, a fetch stage 261, a decode stage 262, an address update timing 263 in the latter half of the decode stage, a read stage 264, an execution scage 265, a write/accumulation stage 267, and normalizing timing 266 in the former half of the write/accumulation stage 267.
Fig. 29 shows part of a microinstruction set for the digital signal processor of Fig. 24. Shown in Fig. 29 are a load instruction 270, a branch instruction 271, a l-source operation instruction 272, a 2-source operation instruction 273, a source specifying code 274, a destination specifying code 275, a source 0 specifying code 276, and a source 1 specifying code 277.
The operation of the digital signal processor will be described hereinafter, in which the components are denoted by the abbreviations.
First the general mode of operation of the digital signal processor will be described briefly with reference to Fig. 24. The digital signal processor of the present invention, like the conventional digital signal processor, is provided separately with the program bus 200 and the data bus 204, for the parallel execution, on microinstructions, of application of a microinstruction to the sequence control unit 202, data input and output ~.288169 of the arithmetic unit 206 through the data bus 204, parallel generation of 2-input l-output data addresses by the address generating unit 203, and access of M0 207, Ml 208 and the I/F 205 to the external data memory. The S DMA control unit 209 implements data DMA transfer through the DMA bus 210 between the M0 207, Ml 208 and the I/F
205 independently of the internal operation. Each execution unit, like-that of the conventional digital signal processor, is of register base. In this digital signal processor, the instruction execution pipeline includes data input and output stages because most instructions do not require delayed operation.
Accordingly, in implementing addition, for example, by the arithmetic unit 206, an addition instruction including input and output may be executed by a microinstruction of one step. Consequently, even in a program including various arithmetic operations in combination, one microinstruction can be executed in a time equivalent to one machine cycle.
However, the result of execution of an instruction can be used after three instruction steps corresponding to the difference in the number of stages from the read stage of the next instruction. This digital signal processor executes most operations for providing results which need to be used immediately in combinational operations by one instruction to avoid loss.

~.Z~8169 Accordingly, most programs do not suffer from loss.
The arithmetic unit 206 and the address generating unit 203 are the same in data word length and format, and are perfectly compatible with each other.
Therefore, in processes such as a table loo~-up process and a dictionary reference process, the result of operation can directly be converted into a data memory address.
Functions of the arithmetic unit 206 will be described hereinafter with reference to Fig. 25. The B-SFT 123, the ALU 224 and the MPY 225 are able to operate in one machine cycle and operate in an execution stage among instruction execution pipeline stages. In the next stage, i.e., a write/accumulation stage, the N-SFT 230 is able to perform digit adjustment and applies the result 231 to the Z-bus 222 to write the result in the data memory, or the AU 233 is able to accumulate or round off the contents 232 of the Wr 235 to write the result 234 of accumulation or round-off in the Wr 235.
The DPRl 229 and the DPR2 228 are registers to transfer the results to the next stage. Thus, the combinational operation are performed in the following manner.
Product-sum: MPY 225 ~ DPR 228 ~ N-SF1 230 ~ AU 233 ~ Wr 235 Absolute difference sum: ALU 224 ~ MUX 227 ~ DPRl 229 ~ N-SFT 230 ~ AU 233 ~ Wr 235 ~.2881~i9 Difference square sum: ALU 224 ~ DPR0 226 + MPY
225 ~ DPR2 228 + N-SFT 230 ~ AU 233 ~ Wr 235 The difference square sum is obtained by the delayed operation of the DPR0 226. However, this instruction is used continuously in most cases and hence problems attributable to the instruction are negligible.
The digital signal processor performs rounding by the following procedure.
MSB LSB
(1) 0000 0000 1111 1111 1010 0111 : DPRl 229 Output 24 bits (2) 0000 0000 0000 0000 1111 1111 O N-SFT 230 Output (Right 8-bit shift) 1 : Carry 239 (3) 0000 0000 0000 0001 0000 0000 : AU 233 Output Carry addition Thus, the highest bit of data shifted out by the N-SFT 230 is a carry and the AU performs carry addition to round-off the data, and hence the destination of the result of round-off is limited to the Wr 235.
Then, the flag check circuit 237 checks the flag 236 indicating the result of comparison operation of the ALU
224 with reference to a condition code specified by a microinstruction and provides a flag of one bit ~.2881~;9 indicating that the condition is met or that the condition is not met. Flags provided by the flag check circuit 237 are set sequentially in the tcsr 238. For example, in determining the maximum value and the minimum value among two input data, the process of selection of either data can be stored. The lateral arrangement of the contents of the tcsr 238 from MSB to LSB corresponds to an index code in binary tree search.
The constitution of the internal data memories will be described hereinafter with reference to Fig. 26. The M0 207 and the Ml 208 are 24-bit x 512-word 2-port RAMs.
In applying two input data in parallel to the arithmetic unit 206, the outputs at the respective read ports of the M0 207 and the Ml 208 are provided on the X-bus 220 and the Y-bus 221 respectively through the selectors 240 and 241. At this time, an S0 address 245 and an Sl address 246 are given respectively to the M0 207 and the Ml 208. Furthermore, when both the source and destination are data memories as in vector addition:
~ , ~
A + B ~ C, data is applied from the Z-bus 222 through the MUX 242 or the MUX 243 to the read/write port of the M0 207 or the Ml 208. Therefore bus contention does not occur in the internal operation.
The constitution of the address generating unit 203 will be described hereinafter with reference to Fig. 27.
The address generating unit 203 comprises the three AGUs 256, namely, the S0 address generator (AGU0) 256, the Sl ~.2a~16s address generator (AGUl) 256 and the D address generator (AGU2) 256. Each AGU 256 has the 24-bit x 4-word AR 251 and the 12-bit x 4-word IXR 252. The address adder 255 adds three terms of the displacement 250, the AR251 and the IXR 252 for two-dimensional address generation.
Although the AGU 256 operates in the decode stage, there is a stage difference corresponding to two stages between the decode stage and the write/accumulation stage. Therefore, the D address 247 is provided by the AGU2 after being delayed by two machine cycles by the DAPR3 257 and the DAPR4 258. The ARs 251 and the IXRs 252 are connected to the X-bus 220. The data format of the address generating unit 203 is compatible with that of the arithmetic unit206 Accordingly, in table look-up, for example, data may be transferred directly from the Wr 235 through the X-bus 220 to the AR 251 and may be provided without changing the S0 address 245 or the Sl address 246.
The instruction execution pipeline of the digital signal processor will be described with reference to Fig. 28. The instruction execution pipeline comprises the following five stages for one instruction.
(1) Fetch stage 261 Output of the program counter and reading a microinstruction of one word (48 bits) (2) Decode stage Decoding 262 the microinstruction and-address update 263 ~.2~ ;9 (3) Read stage 264 Reading source data from data memories or registers through the X-bus 220 and the Y-bus (4) Execution stage 265 Operation of the B-SFT 223, the ALU 224 and the (5) ~rite/accumulation stage Normalization 266 by the ~-SFT 230, and round-off/accumulation by the AU 233 or writing data in the data memory In the write/accumulation stage (5), the output of the AU 233 is stored only in the Wr 235, and the Z-bus 222 and the AU 233 are in an exclusive relation in which the AU 233 is not used when the Z-bus is used, and hence the timing 267 of data write through the AU 233 is the same as that of data write through the Z-bus 222.
Since the instructions are executed in the foregoing sequence, consideration of complex delay in producing a program is practically unnecessary, and hence an efficient microprogram can be produced by using a high language compiler.
Fig. 29 shows examples of microinstruction sets used by the digital signal processor of the present invention. All the microinstruction sets are l-word horizontal instruction sets of a word length of 48 bits.
The instruction set is not used for the parallel ~.2~38169 specification of internal resources capable of simultaneous operation. The combination of tne resource operations in each stage is specified by a function code according to the instruction. Thus, microinstruction description is simplified.
The instruction sets are classified roughly into a load 270, a branch 271, a l-source operation 272 and a 2-source operation 273. A source code 274 for controlling source destination, a destination code 275, a source 0 code 276 and a source 1 code 277 are set corresponding to the function code. When the data memories are the objective controlled elements, these codes are addressing codes for specifying the corresponding AGVs 256 of the address generating unit 203. The AGUs are identified by resource codes. The addressing mode can be changed over and the setting of normalization shift value can be changed for every operation instruction by using the instruction set, so that a complex signal processing algorithm can be programmed at the least loss.
For example, in performing binary tree search as shown in Fig. 4, the operation of the digital signal processor for calculating approximation may be programmed as follows.
rep N
{subaa scO, scl, wrX} Repeat N times scO: Input vector address control ~.2~8169 scl: Reference vector address control Wrx: Working register specification This operation needs N+l machine cycles. The approximation of a reference vector of a direction O and a reference vector of a direction 1 can be determined by repeating the program twice. A process for deciding a reference vector having high approximation and obtaining the node number of the next stage can be programmed as follows.
comp~ge WrO, Wrl Compare and store the result in tcsr 138 mvr arO0, arOl Initialize address pointers of scO
mvr arlO, arll and scl adsl 1, tcsr, wr2, Wr2 Calculate reference vector address for the next node (2n+1: wr2 is set previously for 1) nop nop mvr wr2, arl2 Total Seven instructions Thus, 2N+9 machine cycles are necessary for one stage. Obviously, the number of machine cycles practically coinciding with the ideal number of machine cycles, the process is highly efficient and the program is simple.
Although the foregoing example has been described on an assumption that the word length has a 24-bit ~.2881~i9 address space of 16 MW (24 bits), the word length and the data format may be other than .hose described therein.
Although this embodiment has been described with 5 reference to binary search, the same effect can be expected with other signal processing algorithms.
Obviously, the details of the foregoing embodiment are not limitative of t]le substance of the present invention.
As apparent from the foregoing description, the digital signal processor, in the first embodiment, according to the present invention is highly adaptive, flexible and capable of operating at high processing speed.
A digital signal processor, in a second embodiment, according to the present invention will be described hereinafter with reference to relevant drawings.
Referring to Fig. 30 showing the digital signal processor, in a second embodiment, according to the 20 present invention, there are shown a conditional decision unit 313 which decides on instruction whether or not a condition is met, a condition code 328 specified by a conditional test instruction, a result 324 of decision, and a test register 314 which holds the result 324 of 25 decision.
Fig. 31 is a flow chart showing steps of operation of the digital signal processor.

8~i9 The operation of the digital signal processor for executing a conditional test instruction will be described hereinafter with reference to Figs. 30 and 31.
The conditional test instruction is read from an instruction memory 62 a decoder 63 decodes the conditional test instruction, and an EU 68 performs subtraction for two operands specified by the instruction.
These operations are the same as the conventional operations on a comparison instruction.
After the subtraction, the EU 68 gives a flag 331 to a condition decision unit 313, where the flag 331 is compared with a condition code 328.
When the flag 33! meets the condition code 328, the logical value of the result 324 of decision is "1" and, when not, "0".
The result 324 of decision of one bit is stored in a test register 314, i.e., a shift register of n bits.
Then, the present content of the test register 314 is shifted by one bit toward the most significant bit (hereinafter abbreviated to "MSB") and the result 314A of decision is placed at the last significant bit (hereinafter abbreviated to "LSB") and the previous content of the MSB is deleted.
The operation of the digital signal processor in performing the process of Fig. 7 will be described with reference to Fig. 32. In the process of Fig. 7, a logical value "1" is set when two operands are equal to ~2~81~i9 each other. Therefore, the condition code 328 specified by a conditional test instruction is "zero flag = 0".
In the M.C. T+2, the EU 68 performs subtraction to obtain the difference between Ao and Bo~ and provides a flag 331. The flag 331, like the flag mentioned in the foregoing description of the conventional digital signal processor, is a sign flag, a zero flag, an overflow flag or a carry flag.
The conditional decision unit 313 compares the input zero flag 331 and the condition code 328, i.e., "zero flag = 0", specified by the instruction. When the input zero flag is "0", the test condition is met. Then, logical value of the result 324 of decision is "1" and the LSB of the test register 314 is set for "1". When the input zero flag is "1", the test condition is not met. Consequently, the logical value of the result 324 of decision is "0", and then the LSB of the test register 314 is set for "0".
On the other hand, in setting the result of decision in the test register, the content of the test register 314 is shifted by one bit toward the MSB as shown in Fig. 33, and a new result of decision is placed at the LSB.
Thus, the result of decision 324 with Al and Bl, and the result of decision 324 with A2 and B2 are set in the test register 314 respectively in a M.C. T+3 and a M.C.
T+4, and the result of decisions on the three successive ~.X88169 conditional test instructions are set in the test register 314 at the end of the M.C. T+4.
Thus, this embodiment accomplishes the process in three instruction steps, whereas it has been necessary for the conventional digital signal processor to accomplish the same process in twenty-one instruction steps, the process is performed only in three machine cycles, and the results of decisions need not be held in the data memory, which enables the effective use of the data memory.
The operation of the digital signal processor for binary tree search will be described hereinafter.
Binary tree search is a retrieval algorithm to retrieve one output data Yx most analogous to an input data X, among 2n output data of an output data group Y, and to obtain the index code attached to the output data Yx -The operation of the digital signal processor for binary tree search will be described with reference to an output data group Y including 2n output data as shown in Fig. 34, In the first stage, when an input data X is given, the input data X and a data y are compared through subtraction, a branch "0" is selected when X is smaller than y, and a branch "1" is selected when X is greater than y.

~.2~al6s In the second stage, the input data X and a data Y0 are compared, a branch "0" is selected when X is smaller than y0 and a branch "1" is selected when X is greater than y0, when the branch "0" is selected in the first stage. The input data X and a data Yl are compared and the like selection is made when the branch "1" is selected in the first stage.
Accordingly, a data Yx most approximate to the input data X can be selected from 2n pieces of data through n times of comparison by comparing data and selecting data along the branches from the first stage to the nth stage. An index code is represented by the history, namely, branch numbers, of selection to obtain the data Yx.
Operation for binary tree search using a binary tree having 2 pieces of data will be described by way of example.
First stage: When an input data X is given, X and y are compared and a branch "0" is selected when X is smaller than y.
Second stage: The data X and Y0 are compared and a branch "1" is selected when X is greater than Y0.
Third stage: The data X and Yol are compared and a branch "0" is selected when X is smaller than Yol to select Yolo.
Thus, a data most approximate to the input data X
is Yolo and the index code is "010".

~.2~8169 Thus, the digital signal processor executes conditional test instructions specifying the difference between the input data X and the data Yi at each node as a test condition. When a condition code "sign flag = "1"
is specified as a condition code, "0" is stored in the test register 314 when a branch "0" is selected, and "1"
is stored in the test register 314 when a branch "1" is selected, in accordance with the foregoing rule.
Thus, in this embodiment, the content of the test register 314 is an index code, which can easily be generated through the foregoing procedure.
As apparent from the foregoing description, the digital signal processor in the second embodiment of the present invention has a special register for holding the result of decision as to whether or not a condition code specified by an instruction is met. Therefore, a process to be performed on the basis of a plurality of results of conditional decision can be accomplished at a high processing speed by using a comparatively small number of instruction steps, which improves the processing efficiency of the digital signal processor.
A digital signal processor, in a third embodiment, according to the present invention will be described hereinafter. This digital signal processor is intended for three branch processes through the simultaneous comparison of an input data with two branch conditions.
Fig. 35 shows this digital signal processor having two ~.2~38169 sets of conditional decision units 362a and 362b each corresponding to the conditional decision unit 72 of the conventional digital signal processor shown in Fig. 6.
The digital signal processor is similar to the conventional digital signal processor of Fig. 6, and hence parts previously described with reference to the digital signal processor of Fig. 6 will be omitted.
Referring to Fig. 35, there are shown a conditional decision unit A 362a, a conditional decision unit B 362b being the same in constitution as the conditional decision unit A 362a, a branch condition A 374a specified by an instruction, a branch condition B 374b having a priority lower than that of the branch condition A 374a, a decision signal A 373a provided by the conditional decision unit A 362a, a decision signal B
373b provided by the conditional decision unit B 362b, a selection circuit 363 which selects a condition satisfaction signal having a higher priority among the decision signal A 373a and the decision signal B 373b, a switching circuit 361, a switching control signal 377 applied to the switching circuit 361, branched addresses 376a and 376b to be selected when the branch conditions A 374a and B 374b are met, respectively, and branched addresses 64B to be selected when both the branch conditions A 374a and B 374b are not met.
The operation of the digital signal processor for a conditional multipoint branch process will be described ~ ~8169 hereinafter with reference to Fig. 35. The operation of the digital signal processor for executing instructions other than those (conditional multipoint branch instructions) for conditional multipoint branch process with priority is the same as that of the conventional digital signal processor, and hence the description thereof will be omitted.
First, a conditional multipoint branch instruction is read from an instruction memory 62, and the condi-tional multipoint branch instruction is decoded by a decoder 63. Then, a flag held by a flag register 69 is read and is applied to the conditional decision units A
362a and B 362b.
Then, the conditional decision unit A 362a decides whether or not the branch condition 374a specified by the instruction is met. The logical value of the decision signal A 373a is "1" when the branch condition A 374a is met, and is "0" when the branch condition A
374a is not met.
Simultaneously with the operation of the conditional decision unit A 362a, the conditional decision unit B
362b decides whether or not the branch condition B 374b specified by the instruction is met. The logical value of the decision signal B 373b is "1" when the branch condition B 374b is met, and is "0" when not.
The selection circuit 363 executes a control program shown in Fig. 36. When the decoded instruction ~.2~81~;9 is not a conditional multipoint branch instruction, a switching circuit control signal 377 instructing the switching circuit 361 to make the selecting circuit 363 select an instruction address 71A generated by incrementing an instruction address 70A by one is provided. When the decoded instruction is a conditional multipoint branch instruction, the logical value of the decision signal A 373a is tested. When the logical value of the decision signal A 373a is "1", a switching circuit control signal 377 instructing the switching circuit 361 to make the selecting circuit 363 select the branched address A 376a is provided. When the logical value of the decision signal A 373a is "0", the decision signal B 373b is tested. The switching circuit control signal 373 is provided so that the branched address 376b is selected when the logical value of the decision signal B 373b is "1" or the branched address 376c is selected when the logical value of the decision signal B
373b is "0". The switching circuit control signal 377 can easily be generated, for example, by using a priority encoder in the selecting circuit 363.
Thus the digital signal processor is able to accomplish a conditional multipoint branch process on a single conditional multipoint branch instruction as shown in Fig. 36, which enables performing a conditional multipoint branch process at a high processing speed and reduces the number of instruction steps necessary for the operation.

~ Zf~8169 Although this embodiment has been described with reference to operation for three branch processes on two branch conditions, branch processes more than three can be accomplished on a single instruction by providing more conditional decision units in addition to the conditional decision units 362a and 362b, which enables performing a conditional multipoint branch process at a high processing speed and reduces the number of instruc-tion steps necessary for the operation remarkably.
Furthermore, in this embodiment, branch conditions with priority and branched addresses corresponding to the branch conditions are specified by instruction words.
However, programming flexibility can be enhanced by providing a special register for holding the branch conditions and the branched addresses and performing the conditional multipoint branch process according to the contents of the special register.
As apparent from the foregoing description, according to the present invention, a conditional multipoint branch process can be performed on a single instruction at a high processing speed and the number of instruction steps can be reduced, which enhances the processing efficiency of the digital signal processor.
A digital signal processor, in a fourth embodiment, according to the present invention will be described hereinafter.

a~ 3 Referring to Fig. 38 showing the internal verify of the digital signal processor for verifying the contents of the internal instruction memory thereof, there are shown a host processor 403, a signal processor 404, a hold request signal 405 requesting the temporary stop of instruction execution of the signal processor 404, a hold authorizing signal 406 for informing an external unit of the temporary stop of the signal processor 404, a program counter (PC) 407, an instruction memory control unit 408, a reloadable writable instruction memory 409, an instruction address 410, a switching circuit 411, a selection signal 412, an external instruction memory 413, instruction words 414 and 415, a comparing circuit 416, a result 417 of decision, and write end signal 418. The signal processor 404 has an arithmetic unit the same as that of the conventional signal processor, and hence the arithmetic unit is not shown in Fig. 38. Fig. 39 is a flow chart of assistance in explaining the operation of the signal processor.
The operation of the signal processor 404 will be described hereinafter with reference to Figs. 38 and 39.
When the content of a process to be executed by the signal processor 404 needs to be changed, the host processor 403 gives the signal processor 404 the hold request signal 405 requesting the temporary stop of instruction word execution. Upon the end of an ~.2a8~i9 instruction presently being executed after the reception of the hold request signal 405, the signal processor 404 provides the hold authorizing signal 406 to stop updating the PC 407 and to interrupt the execution of the instruction word temporarily.
Then, the instruction memory control unit 408 provides the instruction address 410 specifying an address to be reloaded in the writable instruction memory 409, and the selection signal 412 to control the switching circuit 411 so that the instruction address 410 is selected. At the same time, the instruction address 410 is given also to the external instruction memory 413. Then, the external instruction memory 413 provides an instruction word 414, which is written in lS the writable instruction memory 409. The instruction word 414 written in the writable instruction memory 409 is read from the writable instruction memory 409. The instruction word 415 read from the rewritable instruction memory 409 and the instruction word 414 written in the same are compared by the comparison circuit 416 to decide whether or not the instruction words 414 and 415 coincide with each other. When the instruction word 414 is not written correctly in the rewritable instruction memory 409, the two instruction words do not coincide with each other. Then, a write error flag is set according to the result 417 of decision in the instruction memory control unit 408.

~ 21~8~69 This write error signal is not reset until all the write operations are completed.
Thus, operation for writing one instruction word is completed. This operation is repeated until all the instruction words are rewritten. After all the instruction words have been rewritter., the status of the write error flag is examined. When the write error flag is set, the instruction word write operation is restarted after resetting the write error flag. When any write error flag is not set and the rewrite has been ended normally, a write end signal 418 is given to the host processor 403. Then, the host processor cancels the hold request signal 405 to cancel the temporary stop mode. Upon the cancellation of the hold request signal 405, the instruction memory control unit 408 of the signal processor 404 provides a selection signal 412 to make the switching circuit 411 select the instruction address of the PC 407, the instruction address of the PC 407 is updated, and then an instruction at an instruction address succeeding the instruction address of the last instruction word executed before the execution of instructions was stopped temporarily is executed. Thus the contents of the signal processing process can readily be changed by providing the signal processor with an internal rewritable instruction memory.
The malfunction of the signal processor attributable to erroneous rewrite can be prevented by providing a verify circuit in the signal processor.

~.zt~8~ 9 Fig. 40 shows a signal processor in a modification of the signal processor of Fig. 38. This modified signal processor is provided externally with a decision circuit for deciding whether or not the contents of the writable instruction memory is correct. Fig. 41 is a flow chart of assistance in explaining the operation of the modified signal processor.
The operation of the modified signal processor will be described hereinafter with reference to Figs. 40 and 41. When the contents of the process to be executed by the signal processor 422 needs to be changed, a host processor 421 provides a hold request signal 405 to stop updating a PC 407 so that the execution of instruction words is interrupted temporarily. Upon the reception of a hold authorizing signal 406, the host processor 421 gives an instruction address 410 to an external instruction memory 413 and the signal processor 422.
An instruction word 414 read from the external instruc-tion memory 413 is applied to a switching circuit 423, and then the instruction word 414 is applied to the signal processor 422 when a selection signal 424 is provided by the host processor 421. Then, the host processor 421 provides a write control signal 425 to instruct an instruction memory control unit 426 to give a selection signal 428 to the switching circuit 427, so that the instruction word 414 is written in a writable instruction memory 409. Then, the host processor 421 al~9 provides a read control signal 429 to read an instruction word 415, i.e., the written instruction word, from the writable instruction memory 409, and the instruction memory control unit 426 gives a selection signal 428 to the switching circuit 427 to apply the instruction word 415 to the switching circuit 423. The host processor 421 provides the selection signal 424 to apply the instruction word 415 to a comparing circuit 430. The comparing circuit 430 compares the instruction word 414 read from the external instruction memory 413 and the instruction word 415 read from the writable instruction memory 409, and then gives the result 431 of comparison to the host processor 421. When the two instruction words coincides with each other, the host processor executes operation for writing the next instruction word.
When the two instruction word do not coincide with each other, the host processor performs the same instruction write operation again. After all the instruction words have been written, the host processor 421 cancels the hold request signal 405 to enable the signal processor 422 to restart the operation.
In this embodiment, in reading an instruction word having a m x n (m is an integer not less than one and n is an integer not less than two) bit width from the external instruction memory and giving the instruction word to the signal processor, m x n pieces of external terminals are necessary. However, only m pieces of _ 93 -~ '~88169 external terminals are necessary when the bits of the instruction word is divided into bit widths each of m bits and the instruction word is written in the internal writable instruction memory by repeating the write operation n times, For example, although thirty-two external terminals are necessary for writing an instruction word of thirty-two bits in the internal writable instruction memory in one writing operation, only eight external terminals are necessary for writing the instruction word in the internal writable instruction memory when the instruction word is divided into 8-bit widths and written by four writing cycles. Although this writing mode requires a write time four times the write time necessary for writing an instruction word in the internal instruction memory by a single writing operation, this writing mode is very effective when a limited number of external terminals are available.
As apparent from the foregoing description, since the signal processor in the fourth embodiment according to the present invention.incorporates an internal writable instruction memory, and the operation of the signal processor is stopped temporarily by an instruction provided by the host processor to reload the internal instruction memory of the signal processor, the program stored in the signal processor can optionally be changed after the signal processor has been fabricated, which enhances the efficiency of development activities and is highly economical. Furthermore, the possibility of temporarily stopping the execution of an instruction during the signal processing operation to rewrite the program, and restarting the execution of the instruction after rewriting the program enable the signal processor to perform more complicated signal processing operations and diversifies the signal processing functions of the signal processor for flexible signal processing.
A digital signal processor, in a fifth embodiment, according to the present invention will be described hereinafter. Referring to Fig. 42, there are shown an interruption request signal INTR 451, an interrupt control circuit 452, an interrupt response signal INTA
453 provided by the interrupt control circuit 452, an interrupt mask register 454 for interrupt disable/enable, an interruption process start signal 455, an interrupt address register 456, an interruption start address 457, a multiplexer 458, a program counter (PC) 459, a stack (STK) 460, an instruction address 461, a data address 462, an instruction memory 464, a main bus 465 for transferring main data, a data memory 469, data 466 to be read from and to be written in the data memory 469, an instruction 467 read from the instruction memory 464, an instruction register (IR) 470, a sequence control circuit 471, a~ arithmetic circuit (EU) 473, a register standby instruction signal (EXCH) 480 provided by the interrupt control circuit 452 upon the start of an ~.28~3169 interruption process, address registers (ARs) 481 at least having a duplex construction capable of being switched ~y the EXCH 480, temporary registers (TRs) 482 having the same construction as the AR 481, pipeline registers (PR) 483 having the same construction as the AR 481, working registers (WRs) 484 having the same construction as the AR 481, and an address generating unit (AGU) 477.
Fig. 43 is a flow chart of assistance in explaining the steps of an interruption process to be performed by the signal processor of Fig. 42.
The operation of the signal processor for the interruption process will be described hereinafter with reference to Fig. 42 The rest of the operations of the signal processor are the same as those described with reference to Fig. 13, and hence the descriptior thereof will be omitted.
Upon the start of the interruption process in response to the INTR 451, the interrupt control circuit 452 provides the interrupt start signal 455 and the register standby instruction signal 480 simultaneously.
Then, upon the reception of the register standby instruction signal 480, the TRs 482, the PRs 483, the WRs 484 and the ARs 481 are switched to keep data on standby and prepare empty registers for interruption process. At the same time, the interrupt start signal 455 is applied to the PC 459, and thereby the PC 459 ~ 288~69 interrupts the ordinary operation to store the instruction address 461 in the STK 460 and then gives the interruption process address 457 to the instruction memory 464 to start the interruption process.
At the end of the interruption process, the ordinary process is restarted by reversing the foregoing steps to accomplish the interruption process.
Thus, all the working registers capable of operation and incapable of operation are kept on standby by an instruction. Therefore, an interruption process can be executed, for example, even during a pipeline operation provided that timing matching is possible, and hence interruption need not be disabled. The registers at least having duplex construction can automatically and simultaneously be put on standby simply by switching the registers by the register standby instruction signal.
Although this embodiment employs the registers at least having a duplex construction and switches the registers to put data on standby, the registers, like the STK 460, may be substituted by LIFO (last in first out) memories.
Furthermore, although the register standby system has been explained with reference to an interruption process, the same register standby system is applicable also to calling a subroutine.
Still further, when the contents of the registers do not change or when the contents of the registers do '~ X881~;9 not affect the process after return from the interruption process even if the contents of the registers change during the interruption process or during the subroutine, an additional selective control means for forbidding the standby and return of the registers may be provided. This selective control means achieves the purpose very easily by forbidding the register standby instruction signal.
As apparent from the foregoing description, the fifth embodiment according to the present invention is capable of automatically and simultaneously performing the standby and return of all the registers, and hence the signal processor is able to respond to the interrupt request at a high response speed and is able to implement an interruption process efficiently.
An address generator, in a sixth embodiment, according to the present invention will be described hereinafter. Referring to Fig. 44 showing an address generator, in a sixth embodiment, according to the present invention, there are shown a data bus 501 for transferring data, address registers (ARx) (x = 0, 1, 2 and 3 in this embodiment) 508 for indirect address generation, a data bus 525 for transferring data including initial values from the data bus 501 to the ARx 508, a decoder 523 for decoding a control code 520, index modify registers (IXRx) (x = 0, 1, 2 and 3 in this embodiment) 530, a data bus 531 for transferring data ~.2881~;9 including initial values from the data bus 501 to the IXRx 530, an optional data output 532 of the ARx 508 specified by a control code 520, an optional data output 533 of the IXRx 530, an adder 534 for adding the data outputs 532 and 533, an output 535 of the adder 534, a selector (1) 536 which operates according to an IRX on/
off signal 546 to select the output 535 of the adder 534 when the IXR is ON and to select the data output 532 when the IRX is OFF, an adder 537 for adding the selec-tive output of the selector (1) 536 and displacement data 542 provided by the decoder 523, the output 538 of the adder 537, a selector (2) 518 which selects the output 538 of the adder 537 and direct address data 543 provided by the decoder 523, a selective output 539 of the selector (2) 518, a latch 540 for providing the selective output 539 in synchronism with a cycle timing, an address output 541 to be provided in synchronism witn the cycle timing, a displacement data 542 specified in an immediate value by the control code 520, a direct address data 543 specified in an immediate value by the control code 520, an address register selection signal 544 for selecting one of the plurality of ARx 508, an index modify register selection signal 545 for selecting one of the plurality of IXRx 530, an index modify on/off signal 546 provided by the decoder 523, and a direct address on/off signal 547 provided by the decoder 523.

_ 99 _ ~ ~81~>9 Fig. 45 shows an example of the control code 520, in which indicated at 548 is an indirect address specifying code, and at 549 is a direct address specifying code.
Fig. 46 shows operations to be controlled by the control code 520.
Fig. 47 shows the constitution of a signal processor employing the address control system of the sixth embodiment. Shown in Fig. 47 are a program memory 550, an instruction address 551, an instruction code 552 read from an address of the program memory 550 specified by the instruction address 551, an instruction register (IR) 553 which holds and decodes the instruction code 552, a program counter (PC) 554 which provides the instruction address 551, a program control circuit 555 for controlling the PC 554 according to the instruction code 552, a program bus (P-BUS) 556 for distributing instructions provided by the IR 553 to the relevant units, data memories 557 storing data, i.e., operands, a bus interface register (BIR) 558 for transferring data between the P-BUS 556 and a data bus (D-BUS) 501, multiplexers (MUXs) 559 for selecting paths in the D-BUS 501, address generators (AGUs) 560 of Fig. 44, input/output data 561 exchanged between the data memories 557 and the D-BUS 501, an execution unit 563, an input data 562 given from the D-BUS 501 to the execution unit 563, working registers (WRs) 564 for use 881fi9 in operating data565, and input/output data exchanged between the WRs 564 and the D-BUS 501.
Fig. 48 shows an example of the instruction code 552 used in the signal processor of Fig. 47, in which indicated at 570 is an operation code specifying an operation and at 520 is a control code for controlling the address of the data memories 557.
An address generating operation will be described hereinafter with reference to Fig. 44, in which the components will be denoted by abbreviations used in the foregoing description, for simplicity.
When the input address control code 520 specifies a direct address, the decoder provides a direct address data 543 represented by an immediate value. Then, a direct address ON signal 547 is provided to make the selector (2~ 518 select the direct address data 543 as the output data 539. The output data 539 is held by the latch 540 to provide the address output 541 in synchronism with a machine cycle.
When the input address control code 520 specifies an indirect address, one of the ARx 508 specified by the address register selection signal 544 provided by the decoder 523 is selected. Likewise, one of the IXRx 530 is selected for index modify. The data output 532and 533 namely, the contents of the two registers are added by the adder 534 to obtain an index modified data output S35. The selector (1) 536 selects the data output 535 according to the index modify on/off signal 546 to apply the data output 535 to one of the inputs of the adder 537, while the displacement data 542 is applied to the other input of the adder 537. The adder 537 adds the data output 535 and the displacement data 542 to provide an indirect address data output 538.
The content of one of the ARx 508 is updated by using the indirect address data output 538 and, at the same time, the selector (2) 518 selects the indirect address data output 538 to provide the address 539. The latch 540 latches the address 539 to provide the address output 541 in synchronism with a machine cycle.
When index modify is not implemented, the selector (1) 536 applies the selected data output 532 of the ARx 508 to one of the input termina~ of the adder 534.
Accordingly, none of the IXRx 530 is selected. On the other hand, when the displacement data 542 is not added, the displacement data 542 of "0" specified by an immediate value in the address control code 520 is applied to the other input terminal of the adder 537.
There are four kinds of indirect address modes as follows, which can be used in an optional combination for each control cycle.
1. The data memory is accessed on the basis of the content of optional one of the ARx 508.
2. The content of optional one of the ARx 508 and the displacement data 542 represented by an immediate ~ ~8169 value are added, and the data memory is accessed on the basis of the result of addition.
3. The content of optional one of the ARx 508 and the content of optional one of the IXRx 530 are added, and then the data memory is accessed on the basis of the result of addition and, at the same time, the content of this ARx 508 is updated.
4. The content of optional one of the ARx 508 and the content of optional one of the IXRx 530 are added, the result of addition and the displacement data represented by an immediate value are added, and then the data memory is accessed on the basis of the result of the latter addition and, at the same time, the content of this ARx 508 is updated.
Fig. 45 shows an example of the control code 520 for address control. Fig. 46 shows operations corresponding to the contents of the control code520 .
Suppose that the horizontal size of two-dimensional data is n when the two-dimensional data is arranged horizontally, for example, in an ascending order of address of the data memory in the indirect address mode.
Then, the indirect address modes are used in the following combinations for flexible address control.
Data memory access with an address placed in a horizontal direction:
In an ARX 508 + displacement 542 mode, +a or -a is assigned to displacement.

~ Z~8169 Data memory access with an address placed in a vertical direction:
a x n Or -a x n is set in the IXRx 530, and an ARx 508 + IXRx 530 mode is used.
Oblique (for example, diagonal) data memory access:
n Or -n is set in the IXRx 530, and an ARx 508 +
IXRx 530 + displacement 542 mode is used.
Thus, this address control system achieves complex address generation simply by specifying a control code, and hence the frequency of address computation of the execution unit is reduced remarkably.
The operation of the signal processor of this address control system will be described hereinafter with reference to Fig. 47. This signal processor is of so-called Harvard architecture. An instruction read operation for reading the instruction code 552 specified by the instruction address 551 provided by the PC 554 and writing the instruction code 552 in the IR 553, and the execution of the instruction are performed by the pipeline of machine cycle unit, so that one instruction is executed in a time equivalent to one machine cycle, The execution unit 563 is connected to input paths 562 for parallel reception of two input data from the data bus 501, and the working registers 564 are connected to the data bus 501 by paths 565 for parallel data input and output to carry out operand input and output ~.288169 operation at a high speed. The three data memories 557 capable of independent data input and output are connected to the data bus for parallel data input and output with the execution unit 563. The address generator shown in Fig. 44 is connected as the address generator 560 to each data memory 557.
Fig. 4B shows an example of a horizontal instruction code 552 used in the signal processor. The horizontal instruction code 552 has an operation code 570 for identifying an operation, and address control codes respectively for the address generators 560 in a horizontal arrangement.
Description of instructions in an assembler notation for the signal processor is shown below by way of example.
An example of the matricial addition of the row k and column Q of a two-dimensional data of horizontal size n:
a: Data memory (1), b: Data memory (2), c = a + b: Data memory (3) add MO(ARo+l), Ml(ARo+l), M2(ARo+l) }k times add MO(ARo + IXRo), Ml(ARo + IXRo), M2(ARo + IXRo) l Q-l add MO(ARo+l), Ml(ARo+l), M2(AR ))k-l J times end The IXRo is set for "n - k".

~.2~8169 As apparent from the foregoing description, the signal processor in the sixth embodiment according to the present invention is able to specify advanced address control simply by each instruction, and hence a complicated address control program can simply be described and the signal processor operates at a high processing speed.
A digital slgnal processor, in a seventh embodiment, according to the present invention will be described hereinafter. Referring to Fig. 49 showing a multiport memory circuit incorporated into the digital signal processor, there are shown a two-port random access memory (2P-RAMl) 600 having two ports A and B, a 2P-RAM2 601 similar to the 2P-RAM1 600, an address data bus 602 connected to the port A of the 2P-RAM1 600, an address bus 603 connected to the port B of the 2P-RAM1 600, an address bus 604 connected to the port A of the 2P-RAM2 601, an address data bus 605 connected to the port B of the 2P-RAM2 601, a bilateral selector 606 for selectively connecting the address data bus 602 to either a bus 608 connected to a 2-1 selector 617 or a bus 610 connected to a 4-2 selector 618, a select control circuit 612, a select control signal 613 for the 2-1 selector 617, a select control signal 615 for the bilateral selector 606, a select control signal 616 for the 4-2 selector 618, the 2-1 selector 617 for selectively connecting either the bus 608 or the bus ~.~881~i9 609 to the primary port, the 4-2 selector 618 which selects optional two buses among the address data bus 603, the address data bus 605, the bus 610 connected to the 4-2 selector, and the bus 611 connected to the 4-2 selector, and connects the selected buses to ports 0 and 1, an address signal (APP) 619 at the primary port, data signal (DDP) 620 at the primary port, an address signal (APO) 621 at the port 0, a data signal (DP0) 622 at the port 0, an address signal (Apl)623 at the port 1, and a data signal (DPl) 624 at h~ port 1.
Fig. 50 is a table of assistance in explaining operation of the multiport memory circuit of Fig. 49 for address assignment.
The operation of the multiport memory circuit of Fig. 49 embodying the present invention will be described hereinafter. First the APP 619 is applied to the primary port of the 2-1 selector 617. Then, the select control circuit 612 provides the select control signal 613 according to the address signal 619 to select either the bus 608 or the bus 609 to connect the 2-1 selector 617 to either the 2P-RAM1 600 or the 2P-RAM 601.
When the bus 608 (609) is selected the bilateral selector 606 (607) connected to the bus 608 (609) connects the bus 608 (609) to the address data bus 602 (604) according to the select control signal 615 (614~ to connect the primary port to the port A of the 2P-RAMl 600 (2P-RAM2 601). Then, a data signal is provided from 8~69 the 2P-RAM when the DPP 620 applied to the primary port is a read signal or a data signal is applied to the 2P-RAM when the DPP 620 is a write signal, to complete one unit of memory access.
Similarly, the 4-2 selector 618 and the bilateral selector 606 (607) are switched according to the AP0 621 (APl 623) applied to the port 0 (1) to read the DP0 622 (DPl 624) from the 2P-RAM1 600 (2P-RAM 601) through the port 0 (1), or to write the DP0 622 (DPl 624) applied to the port 0 (1) in the 2P-RAM1 600 (2P-RAM2 601). The 2P-RAM1 600 and the 2P-RAM2 601 are known random access memories each having two access ports A and B and capable of simultaneous read/write of two data signals.
Therefore, the primary port and the port 0, for example, are able to access the 2P-RAM1 600 simultaneously, while the port 1 is able to access the port A or B of the 2P-RAM2 601. Thus, the three ports can simultaneously be accessed.
In this multiport memory circuit, the simultaneous access of the three ports to one of the 2P-RAMs is forbidden. Such simultaneous access can easily be avoided by previously deciding the order of priority of the ports or by controlling the memory access operation of each port according to a predetermined rule, and hence the forbiddance of the simultaneous access of the three ports to one of the 2P-RAMs rarely entails practical problems.

~Z~`~316~

The memory cycle time t of the multiport memory circuit according to the present invention is approximately equal to the cycle time t'cy of the 2P-RAMs, and is a fixed value regardless of the number of access ports. As obvious from the foregoing description, the multiport memory circuit has a comparatively simple circuit configuration and the asynchronous operation of each port is possible.
Furthermore, the address of each port can optionally be accessed in the entire address space of the multiport memory circuit under the foregoing restriction, which practically is an insignificant restriction.
Although this embodiment has been described as provided with three ports, the constitution of the memory address bus selectors may be changed and the multiport memory circuit may be provided with four ports.
Furthermore, although this embodiment is provided with the two 2P-RAMs, the multiport memory circuit of the present invention may be provided additionally with further 2P-RAMs to increase the number of the access ports.
As apparent from the foregoing description of the seventh embodiment of the present invention, the present invention provides a multiport memory circuit having three or more ports employing a plurality of 2P-RAMs, and the ports are selected-by address signals. Accordingly, the multiport memory circuit has a comparatively simple ~.288169 circuit configuration and is able to operate in a short cycle time of each port.
Fig. 51 is a block diagram of the structure of address generator adapted to the address generating system for signal processing as an eighth embodiment of the present invention. In this figure, 701 is data bus used for data transfer, 728 is address register (ARx) used for generation of relative address, 726 is data bus for input and output of initial value from data bus 701 to address register (ARx) 728, 730 is index modification register (IXRx),731 is data bus for input and output of initial value from data bus 701 to index modification register (IXRx) 730, 732 is one desired data output among address registers (ARx) indicated by address control code 720, 733 is one desired data output among index modification registers (IXRx) 730, 734 is adder [ADD (1)]
which adds data output 732 and data output 733, 735 is data output of addition result of adder 734, 736 is selector (1) which selects data output 735 of the addition result when IXR is ON or data output 732 when IXR is OFF depending on the index modification (IXR) ON/OFF signal 746, 737 is adder [ADD (2)] which adds selected output of selector (1) 736 and displacement data 742 output from decoder 723, 738 is data output of addition result of adder [ADD (2)], 718 is selector (2) which selects data output 738 of addition result and direct address data 743 output from the decoder 723, 739 ~.2~38163 is selected data output of selector (2) 718, 740 is latch which outputs data output 739 in synchronization with cycle timing, 741 is address output synchronized with cycle timing, 720 is address control code, 723 is decoder which decodes address control code 720, 742 is displacement data indicated by immediate value from the address control code 720, 743 is direct address data indicated by immediate value from the address control code 720, 744 is address register selection signal for selecting the one of a plurality of address registers (ARx) 728, 745 is index modification register selection signal which selects the one of a plurality of index modification register (IXRx) 730, 746 is index modification ON/OFF signal output from the decoder 723, and 747 is direct address ON/OFF signal output from the decoder 723.
Fig. 52 is a flowchart indicating addressing operation for data series of Fig. 22 by the address generator of Fig. 51. Fig. 53 shows an example of address control code in the address generator of Fig. 51.
In these figures, 748 is relative address designation code and 749 is direct address designation code.
Fig. 54 shows a table for explaining operations of address control code of Fig. 53. Fig. 55 is a block diagram indicating the structure of signal processing processor adapting the address generating system for signal processing of Fig. Sl. In these figures, 750 is , . - 111 -, ~I Z~38169 instruction memory consisting of program memory, 751 is instruction address, 752 is instruction code read from address of instruction memory 750 corresponding to instruction address 751, 753 is instruction register (IR) which holds the instruction code 752 and decodes it, 754 is program counter (PC) which outputs the instruction address 751, 755 is program control circuit (program controller) which controls the program counter (PC) 754 depending on the instruction code 752, 756 is program bus (P-BUS) which distributes instructions to respective section from instruction register (IR) 753, 757 is data memory for storing calculation data, 758 is bus interface register (BIR) for data transfer between the program bus (P-BUS) 756 and the data bus (D-BUS) 701, 759 is multiplexer (MUX) which selects line of data bus (D-BUS) 701, 760 is address generator (AGU) indicated in Fig. 55,761 is input/output data between data memory 757 and data bus (D-BUS) 701, 762 is input data to data calculation part 763 from data bus (D-BUS) 701, 763 is data calculation part which executes calculations, 764 is working register (WR) used for data calculation processing, 765 is input/output data between the working register (WR) 764 and the data bus (D-BUS) 701, and 770 is operation code for indicating instruction operations.
Fig. 56 is an example of instruction code in the signal processor of Fig. 55. In this figure, 770 is operation code which specifies instruction operations ~.2~8~69 and 720 is address control code which controls address of data memory 757.
Next, the address generating operations of address generating system for signal processing as an embodiment of the present invention explained above are then explained hereunder. First, in case the input address control code 720 is provided for direct address designation, the decoder 723 outputs the direct address data 743 indicated by the immediate value. Next, the direct address ON/OFF signal 747 is turned ON and thereby the data output 739 can be obtained by selecting the direct address data 743 from the selector (2) 718.
Finally, the data output 739 is held in the latch 740 for synchronization with the machine cycle and the address output 741 is provided.
Next, in case the input address control code 720 is provided for relative address designation, only one of the address registers (ARx) 728 indicated by the address register selection signal 744 output from the decoder 723 is selected. In the same way, in the case of index modification, only one of the index modification registers (IXRx) 730 is selected. The data output 732 and data output 733 which are contents of these two registers are added in the adder [ADD (1)~ 734 and the data output 735 completed index modification can be obtained.
The data output 735 is input to the one ~put of adder [ADD (2)]
737 by selecting the selector ~1) 736 in accordance with ~.2~al6s the index modification ON/OFF signal 746 and it is then added with the displacement data 742 input to the other input of adder 737 to obtain the relative address data output 738.

With this data output 738, the one content of address registers (ARx) 728 is updated and simultaneously data output 738 is selected in the selector (2) 718 to output the data output 739 of address. It is then synchronized with the machine cycle by the latch 740 to obtain the address output 741.
In case the index modification is not carried out, the selector (1) 736 inputs, during above operations, the data output 732 of address register (ARx) 728 to the one input of the adder [ADD (2)] 737. Therefore, the one of index modification registers (IXRx) 730 is not selected. Meanwhile, in case the addition of displace-ment data 742 is not carried out, the displacement data 742 indicated by immediate value in the address control code 720 is set to "0" and it is input to the other input of adder (ADD) 737. The relative address mode includes the following four kinds of modes any combination can be selected for each control cycle.
1. Access to data memory 757 is made with content of the one address register (ARx) 728.
2. After the displacement data 742 indicated by immediate value is added to the one content in the desired address register (ARx) 728, the access is made to the data memory 757 with the result of such addition ~.2~38169 and simultaneously content of address register (ARx) 728 is reviewed.
3. After the one content in the desired address register (ARx) 728 is added to the one content in the desired index modification register (IXRx) 730, access is made to the data memory 757 with the result of addition and simultaneously content of address register (ARx) 728 is updated.
4. After the one content in the desired address register (ARx) 728 is added to the one content in the desired index modification register (IXRx) 730, the displacement data 742 indicated by immediate value is added to the result of addition. Access is made to the data memory 757 with the result of addition and simultaneously content of address register (ARx) 728 is updated.
Fig. 53 shows an example of address control code 720 for address control and Fig. 54 is a table for explaining operations depending on content of address control code 720.
For example, when the bidimensional data are arranged in the horizontal direction in the sequence of address of data memory 757 by the relative address mode, if the horizontal size of bidimensional data is M, flexible address control can be realized by combining the relative address modes as indicated hereunder.

A. In case access is made to data memory 757 in every a-address in the horizontal direction:
+a or -a is designated to the displacement data 742 in the mode of address register (ARx) 728 + displacement data 742.
B. In case access is made to data memory 757 in every a-address in the vertical direction:
a x M or -a x M is set to the index modification register (IXRx) 730 and the mode of address register (ARx) 728 + index modification register (IXRx) 730 is used.
C. In case access is made to data memory 757 in the oblique direction (for example, diagonal direction):
M or -M is set to the index modification register (IXRx) 730 and the mode of address register (ARx) 728 +
index modification register (IXRx) 730 + displacement data 742 is used.
Here, Fig. 52 shows a flowchart of addressing operations for the data series shown in Fig. 22. First, a value of (M - 2m) is initially set to the one IXRO in the index dification registers (IXRx) 730 and the address of point Pl is initially set to the one AR0 in the address registers (ARx) 728. Operations heretofore are the same as those in the prior art. For the leading reference point Pl of the first line, the addressing is made in the address control mode No. 1, namely in the mode of ARO ~ ARO shown in Fig. 54 and for the next ~.2~38169 reference point on the same line, addressing is carried out in the address control mode No. 2, namely in the mode of AR0 + disp (= 2) ~ AR0.
Next, when the line is changed, the addressing can also be made in the address control mode No. 4, AR0 + IXR0 ~ disp ~ AR0. Accordingly, in an example of Fig. 22, addressing can be made continuously to the (m x 1) data.
As explained previously, it is no longer necessary to carry out the address calculation by intermitting calculation in every change of line in the bidimensional data, the pipeline processing can be realized effectively and the program itself can also be simplified in the address generating system for signal processing of the present invention.
In case a series calculation process is carried out continuously for a plurality of data series, the address value of leading reference point of each data series is previously calculated, it is then stored in the particular region of data memory, the leading address value of data series corresponding to the start of calculation process is read from the data memory 757 and it is then initially set to the particular address register in the address generators through the data bus 701.
As explained previously, the present invention employs the structure which is capable of designating 38~69 address register, index register and displacement for each microinstruction in the address generating system for signal processing and realizing relative addressing through combination of additions of three items and therefore provides such excellent effect as simplifying description of complicated address control for bidimensional data and realizing high speed signal processing.

Claims (40)

1. A digital signal processor comprising:
an instruction fetch unit for reading a microinstruction every machine cycle through a program bus from an instruction memory previously storing microinstructions specifying various internal operations;
a sequence control unit for controlling the execution of the microinstruction in every machine cycle by separating the steps of microinstruction execution procedure in a 5-stage pipeline including an instruction fetch stage, an instruction decode stage, a data read stage, execution stage and a write/accumulation stage, to execute one word of the microinstruction in one machine cycle;
a plurality of data input buses for the parallel transfer of two input data for binomial operation in the data read stage of the 5-stage pipeline;
an execution unit for processing the two input data transferred by the data input buses through a single operation or combinational operations both in the execution stage and data write/accumulation stage of the 5-stage pipeline;
a plurality of working registers capable of storing the results of operation of the execution unit and reading data through the data input buses;
a single or a plurality of data output buses for transferring the output data of the execution unit in the data write/accumulation stage of the 5-stage pipeline;
an output control unit for selecting one of the data output buses or one of the working registers to provide the output of the execution unit;
a plurality of 2-port memories for individually storing the two data or for storing the two data block by block for the binomial operation and the results of the binomial operation, each having a read port and a read/write port and capable of concurrently reading data from or writing data through both the ports;
a read control unit for selecting one or the plurality of read ports of the plurality of 2-port memories to read the input data from the 2-port memories and to provide the input data on the data input buses;
an external data memory interface unit for selecting one or the plurality of data input buses to read data from an external data memory and for writing data provided on one or the plurality of data output buses in the external data memory;
a direct memory access bus separated from the data input buses and the data output buses for selectively connecting one or the plurality of the read/write ports of the plurality of 2-port memories to the external data memory interface unit;
a direct memory transfer control unit for transferring the block by block data through the direct memory transfer bus between the external data memory interface and the 2-port memories independently of the internal operation of the sequence control unit;
an external data memory arbitration unit which controls contention in connecting the data input buses, the data buses and the direct memory transfer bus to the external memory interface unit;
an address generating unit comprising a plurality of address generators each having a plurality of address registers and a plurality of index registers connected to the data input buses for data transfer therebetween, and capable of parallel generation of read and write addresses for the 2-port memory or the external memory at least of the two input data and one output data of the execution unit in the decode stage of the 5-stage pipeline;
an address selecting unit for selecting the
2-port memory or the external memory interface unit corresponding to the read and write addresses provided by the address generating unit each synchronized with the read and write stages of the 5-stage pipeline; and a direct memory access address generating unit comprising a plurality of transfer address control registers for pre-setting data through the data input buses to control data transfer range, and for simultaneously generating the 2-port memory address for direct memory access and an address for the external memory interface unit.

2. A digital signal processor according to Claim 1, wherein said execution unit and said address generating unit are capable of integrating the data input output word length and data format of the execution unit according to use the result of the execution unit for the address, or use the address for the input of the execution unit with interact.
3. A digital signal processor according to Claim 1, wherein said execution unit comprises:
a barrel shifter capable of receiving data from said data input buses, and capable of shifting or rotating the input data by an arbitrary number of bits within one machine cycle, and capable of combinational operation of the shifted or rotated data and another input data through a logical operation;
an arithmetic logic unit capable of processing the input data at least through addition, subtraction and absolute differential operation within one machine cycle;
a multiplier capable of multiplying the two input data or squaring one input data within one machine cycle;
a temporarily register which selects and holds temporarily one of the output of the arithmetic logic unit the multiplier and the barrel shifter;
a normalizing barrel shifter which shifts the output data provided by the temporarily register by a predetermined number of bits in half the machine cycle at the longest for the adjustment of the data range;
an adder which accumulates the output of the normalizing barrel shifter and the content of selected one of the working registers in half the machine cycle at the longest; and a data output unit which transfers the output of the normalizing barrel shifter to the data output buses in half the machine cycle at the longest when the adder is not used;
characterized in that the barrel shifter, the arithmetic logic unit or the multiplier is operated in the execution stage of the 5-stage pipeline for arithmetic logic operations or absolute differential operation, the difference obtained by the arithmetic logic unit in the execution stage is held temporarily by a temporarily register, the difference is squared by the multiplier to obtain the square of the difference in one machine cycle, the adder is used for accumulation when accumulation is performed after the range-adjustment of the result of the execution stage has been performed by the normalizing barrel shifter in the data write/
accumulation stage of the 5-stage pipeline or the square of the difference is provided directly on the data output buses when range adjustment is not performed by the normalizing barrel shifter to accomplish various arithmetic and logic operations or combined operations including those for obtaining the product-sum, the sum of absolute differences, the square sum of the differences in a time equivalent to one machine cycle by pipeline technique.
4. A digital signal processor according to Claim 1, wherein each of the address generators of said address generating unit stores an initial address through said data input bus in said address register, stores an index value through the data input bus in said index register, adds the index modify value, a displacement specified by a microinstruction and the content of the address register, simultaneously updates the content of said address register by using the result of addition and treats the result of addition as a data memory address, and performs two-dimensional or other addressing by a combination of the microinstructions by sequentially assigning each address generator to the address generating mode of every microinstruction.
5. A digital signal processor according to Claim 1, wherein said direct memory access control unit and said direct memory transfer address generating unit sequentially assign the rectangular portion of row k x column ? (k and ? are positive integers) of a two-dimensional data address space of m rows and n columns (m and n are positive integers) for addressing said external data memory interface unit, assign addresses to said plurality of 2-port memories in an ascending order from an optional start address and select one of said plurality of 2-port memories by the highest bit of the address or a plurality of bits of the address for two-dimensional data transfer between said 2-port memories and the external data memory, and a transfer direction and the number of data to be transferred are specified by a microinstruction in starting direct memory transfer and said direct memory access control unit informs said sequence control unit of the end of data transfer in ending direct memory transfer to concurrently implement transferring data in a rectangular block of row k x column ? between the 2-port memory and the external data memory, and internal arithmetic process.
6. A digital signal processor according to Claim 1, wherein said sequence control unit implements conditional branch operation dealing with a plurality of branch conditions on one microinstruction by previously storing a plurality of conditions in a special register, previously storing instruction memory addresses to which the program is branched when the branch conditions are met in registers corresponding to the branch conditions, testing the plurality of branch conditions in parallel on a microinstruction, branching the program to one of instruction memory addresses stored in the special registers corresponding to the branch conditions of the highest priority among those which are met, and branching the program to the instruction memory address stored in the special register corresponding to which all the branch conditions are not met.
7. A digital signal processor according to Claim 1, wherein said sequence control unit has a loop counter and a repeat counter which are capable of receiving initial values from said data input buses and providing the contents thereof, the content of the repeat counter is decremented by one for each execution of microinstruction and the same microinstruction is executed repeatedly until the content of the repeat counter is reduced to zero when repeat is assigned by the first microinstruction of repeat operation, the content of the loop counter is decremented by one when loop is assigned by a microinstruction, the program is branched to an instruction memory address specified by the microinstruction when the content of the loop counter is not zero after decrement, and the branch is not completed in order to finish the loop operation when the content of the loop counter is zero after decrement to repeat a single microinstruction or a plurality of microinstructions by a predetermined cycles.
8. A digital signal processor according to Claim 1, wherein said external data memory interface unit divides the external data memory into two parts by using an address previously specified by a microinstruction as a boundary, treats the external data memory as a high-speed memory which accomplishes read/write operation within one machine cycle in addressing one of the two parts of the external data memory, and treats the external data memory as a low-speed memory which stays on standby until an external read/write termination signal is detected in addressing the other part of the external data memory.
9. A digital signal processor according to Claim 1, wherein said instruction memory is partly or totally reloadable, microprograms corresponding functional processes are written in the reloadable instruction memory by an external device to enable the digital signal processing to implement complex and diversified processes, and microprograms are provided automatically by an external memory when the microprograms are not written in the instruction memory.
10. A digital signal processor according to Claim 1, wherein said microinstruction is a microinstruction set consisting of a function code uniquely specifying an operation in each stage of said 5-stage pipeline according to the kind of operation, an input assignment code and an output assignment code individually assigning the address generating mode of the address generator of said address generating unit for every microinstruction at least corresponding to a 2-input 1-output or 1-input 1-output data memory, a resource specifying code specifying the objective data memory or the register of data input/output, the number of shift bits of the normalizing barrel shifter of said execution unit, a test condition code specifying the kind of operation, an immediate data, and a hold condition code.
11. A digital signal processor according to Claim 1, wherein said external data memory address arbitrary assigns an address for communications between processors, the address is corresponding to an external first in first out memory or an external 2-port memory for communications to connect the same processors or other processors to enable a plurality of processors to implement complex processes at a high processing speed.
12. A digital signal processor according to Claim 1 or 3, wherein the most significant bit of a data of bits from the least significant bit to be truncated by shift in adjusting the number of bits by shifting toward the least significant bit by said normalizing barrel shifter is used as a carry bit or a borrow bit, said adder has an operating mode in which data round-off operation or data round-off accumulation is executed by performing addition with carry or borrow using the contents of said working registers or zero data, and the operating mode assigned by directly controlling said adder by mode setting or a microinstruction.
13. A digital signal processor according to Claim 1 or 3, wherein the arithmetic logic unit of said execution unit decides whether or not a test condition (for example, a condition that two input data are equal to each other) for testing the result of comparison, specified by a microinstruction is met in comparing the sizes of two input data or in testing a special bit in an input data, and sequentially stores the results of decision in one vertical direction of the special shift register for every comparing microinstruction bit by bit, reads the horizontal content of the shift register from the data input bus, and uses the plurality of results of decision obtained by repeating the comparing microinstructions a plurality of times as a search history code in tree search or for combinational branch operation based on a plurality of conditions.
14. A digital signal processor capable of implementing a pipeline signal processing method comprising:

an instruction word storing process for storing a plurality of instruction words specifying various internal operations;
an instruction decode process for fetching and decoding the instruction words stored in the instruction word storing process one at a time in an arbitrary order; and an instruction execution process for implementing operation according to the instructions decoded in the instruction decode process;
characterized in that the instruction execution process comprises:
an operation process in which operation is performed according to the decoded instruction and result of the operation is provided;
a decision process in which a decision is made on a conditional test instruction as to whether or not the result of the operation meets a specified condition, and then a test result is provided; and a test result holding process in which a plurality of test results are held sequentially in a special register.
15. A digital signal processor according to Claim 14, wherein the plurality of test results obtained by executing said conditional test instruction a plurality of times and held in the special register in said test result holding process as a search history code in tree search.
16. A digital signal processor according to Claim 14, wherein the plurality of test results obtained by executing said conditional test instruction a plurality of times and held in the special register in said test result holding process are used for combinational branch operation.
17. A digital signal processor comprising:
an instruction memory previously storing instruction words specifying various internal operations;
an instruction execution control unit connected to the instruction memory by a program bus and capable of controlling the operations specified by the instruction words;
a data memory for storing operands;
an execution unit connected to a data bus separate from the program bus, for executing an operation specified by the instruction word to process the operands given thereto through the data bus and providing the result of operation and the status of the result of operation;
a conditional decision unit for deciding whether or not the status of the result of the execution unit meets a predetermined condition code and providing the result of decision; and a shift register for sequentially holding the results of decision provided by the conditional decision unit;
characterized in that the conditional decision unit decides whether or not the condition code is met in executing the conditional test instruction and applies the results of decision sequentially to the shift register to hold the result of decision in the shift register.
18. A digital signal processor according to Claim 17, wherein said shift register is connected to said data bus, and a plurality of test results obtained through a plurality of repetitions of said conditional test instruction and stored in said shift register are used as search history code for tree search.
19. A digital signal processor according to Claim 17, wherein said shift register is connected to said program bus, and the plurality of test results obtained through a plurality of times of repetitions of said conditional test instruction and stored in said shift register are used for combinational branch operation.
20. Digital signal processor comprising:
an instruction memory previously storing a plurality of instruction words specifying various internal operations;

a decoder for sequentially reading and decoding the instruction words stored in the instruction memory one at a time;
an instruction execution control unit which controls operations respectively according to the decoded instruction word;
a data memory for storing operands;
an arithmetic unit which operates the operands according to the decoded instruction word, and provides the result of operation and the status of the result of operation;
a flag register for holding the status of result provided by the arithmetic unit;
a plurality of conditional decision units which decide whether or not the content of the flag register meets branch conditions having priorities, and provide the results of decision;
a priority check circuit which checks the results of decisions provided by the plurality of decision units sequentially in the order of priority of branch conditions on which the decisions are based; and a switching circuit for switching the instruction address to predetermined branched address respectively corresponding to the output of the priority check circuit.
21. A digital signal processor according to Claim 20, wherein the predetermined branch conditions for said multipoint conditional branch, and the predetermined branched addresses respectively corresponding to the selected branch conditions are specified by codes included in instruction words.
22. A digital signal processor according to Claim 20, wherein the predetermined branch conditions for the conditional multipoint branch, and the predetermined branched addresses respectively corresponding to the selected branch conditions are stored previously in a special register, and the branch conditions for multipoint branch and the branched addresses respectively corresponding to the branch conditions are specified by the contents of the special register.
23. A digital signal processor according to Claim 20, wherein said arithmetic units provides designation bits respectively representing a positive or negative sign, zero or nonzero, overflow, and carry or borrow, and multipoint branch is implemented on the basis of branch conditions including positive, negative, zero and nonzero produced by logically combining the states of the designation bits.
24. A digital signal processor comprising:
a processor mainly for signal processing, having an internal writable instruction memory for storing instruction words specifying various internal operations;
means for temporarily stopping and restarting the operation of the processor;
an instruction memory storing instruction words to be written in the writable instruction memory; and a host processor connected to the processor, the means, and the instruction memory to control the same;
characterized in that the digital signal processor further comprises means for temporarily stopping the operation of the processor in response to a command provided by the host processor, reading an instruction word from the instruction memory and writing the instruction word in the writable instruction memory, and the operation of the processor is changed over by restarting the operation of the processor in response to a command provided by the host processor after the instruction word has been written in the writable instruction memory.
25. A digital signal processor according to Claim 24, wherein an instruction address automatically generated by the processor is applied to said instruction memory in reading an instruction word from said instruction memory and writing the read instruction word in said writable instruction memory, the processor is provided with a comparing circuit which compares an instruction word read from said instruction memory after the former instruction word read from said instruction memory has been written in said writable instruction memory, and the former instruction word read from said writable instruction memory to decide whether or not the former instruction word and the latter instruction word coincide with each other, and an output means for providing the result of decision of the comparing circuit, and the host processor performs a control operation to write an instruction word again in said writable instruction memory when the former and latter instruction words do not coincide with each other.
26. A digital signal processor according to Claim 24, wherein an instruction word is read from said instruction memory according to an instruction address provided by said host processor in reading the instruction word from said instruction memory and writing the instruction word in said writable instruction memory, the instruction word written in said writable instruction memory according to an instruction address and a write control signal provided by said host processor is read from said writable instruction memory in response to a read control signal provided by said host processor, said host processor decides whether or not the instruction word read from said instruction memory and the instruction word written in said writable instruction memory coincide with each other, and said host processor performs a control operation to write an instruction word again in said writable instruction memory when the decision made by said host processor is negative.
27. A digital signal processor according to Claim 24, wherein an instruction word having an m x n bit width (m is an integer not less than one, n is an integer not less than two) is divided in m-bit widths and is read and written in n cycles of read and write operations in reading the instruction word from said instruction memory and writing the instruction word in said writable instruction memory.
28. A digital signal processor comprising an instruction memory storing instruction execution control data, and a data memory for storing operands, and controlled by microinstructions, for predetermined operations, so as to read instruction execution control data from the instruction memory according to instruction addresses provided by instruction execution control means, characterized in that a stack memory for holding the instruction address of a presently executed process on standby when the presently executed process is interrupted from an external device, a predetermined interruption process is executed and then the interrupted process is restarted after the completion of the interruption process, and all the working registers of the processor for instruction execution process are of at least dual construction, and that the digital signal processor further comprises control means for automatically holding the contents of all the working registers on standby without requiring any instruction by simultaneously switching all the working registers, and control means for automatically restoring the contexts of all the working registers after the completion of the interruption process without requiring any instruction by fetching the instruction address held on standby and simultaneously switching all the working registers again.
29. A digital signal processor according to Claim 28, wherein all said working registers including a data address register, an address index register, a data register, a temporary register and a pipeline register each are provided with stack memories for switching the contexts of the working registers on standby and for restoring the contexts held on standby.
30. A digital signal processor according to Claim 28, wherein said control means has a selective control means for holding the instruction address of the process and the contents of the working registers on standby and restoring the instruction address and the contents of the working registers when the process is interrupted, and for forbidding holding the contents of the working registers on standby and restoring the same when the contents of all the registers need not be held on standby.
31. A digital signal processor having a signal processing address control system comprising:
an instruction memory storing microinstructions;
a data operating unit which processes signal processing two blocks of input signal data through a predetermined signal processing operation according to an instruction fetch from the instruction memory to obtain one block of output signal data;
data memories each for individually storing at least one signal processing block corresponding to at least three signal data systems for the two input signal data systems and the one output signal data systems;
at least three address generators each for sequentially reading the individual component signal data corresponding to the at least three signal data systems stored in the data memories in a predetermined signal processing procedure and for generating data memory addresses for writing data in the data memories individually for the signal data systems;
data transfer means for simultaneously reading the two input signal data systems from the data memories according to addresses provided by the two address generators among the at least three address generators and simultaneously transferring the two input signal data systems through data buses to the execution unit;
and data transfer means for simultaneously transferring the one output signal data system from the execution unit and to the data memory through the data bus according to an address generated by another one of the at least three address generators;
characterized in that an address control code for controlling each of the at least three address generators for generating addresses for the signal data systems according to the predetermined signal processing procedure for processing the at least three signal data systems is placed horizontally in the field of the microinstruction, and at least three address control codes corresponding to predetermined signal processing operations are assigned concurrently to every microinstruction.
32. A digital signal processor according to Claim 31, wherein each of said address generators has at least one address register capable of storing initial values from the data bus and giving the initial values to the data bus, and at least one index register capable of storing an address modifier and other data from the data bus and giving the address modifier and other data to the data bus, one of the address registers and one of the index registers are selected according to an address control code, an address data is calculated through the combination of addition and subtraction of three terms at the maximum of the content of the selected address register, the content of the selected index register and a relative address data indicated by an immediate value in the address control code, the result of the calculation is used as a read/write address in the data memory, and the content of the selected address register is updated to generate as an indirect address.
33 A digital signal processor according to Claim 31, wherein said data memory has at least one read/write system in addition to the read/write system associated with said data operating unit, the data memory is capable of data read/write with an external device through a data bus separate from the former data bus and capable of parallel transfer of at least one data independently of and in parallel with internal operations, and control means for automatically controlling data transfer between the data memory and the external device except the transfer of an initialization microinstruction.
34. A digital signal processor having a multiport memory circuit comprising: .
a memory circuit capable of simultaneous read and write operations and comprising:
n sets (n is an integer not less than one) of memory means each having two address data input/output ports capable of simultaneous read/write operation;
m sets (m is an integer not more than 2n) of selective address data input/output means for selecting 2n address data input/output ports of the n memory means according to address signals; and control means for controlling the assignment of a plurality of data input/output to a single address in the predetermined order of priority to forbid the simultaneous access to the 2n address data input/output ports when a plurality of data input/output are assigned to a single address.
35. A digital signal processor according to Claim 34, wherein n = 2 and m = 3, and, when one of the memory means is connected to one of the selective address data input/output means, the control means connect the other two selective address data input/output means only to the other memory means.
36. In a digital signal processor comprising an instruction memory which stores microinstructions indicating calculation contents and data address control contents, a data memory which stores data, an execution unit which performs calculation depending on the microinstruction for one or more data read simultaneously from data memory, a plurality of address generators which generate, independently corresponding to input/output data in accordance with microinstruction, the read addresses for reading the input data to the calculator from the data memory and the write address for writing calculator output data to data memory and a data bus for transferring data among the data memory, calculator and address generators, an address generating system for signal processing characterized in that said address generator comprises one or more address registers which are capable of inputting or outputting initial values from the data bus and one or more index registers which are capable of inputting or outputting address modification values from the data bus, thereby providing the structure for respectively selecting one address register and index register among such address registers and index registers in accordance with the microinstruction, calculating an address data by combination of additions of three items in maximum of content of selected address register, content of selected index register as the index relative value and displacement as relative modifi-cation value indicated by immediate value in the code of microinstruction and updating content of address register selected by such address data, wherein an initial value to the address register and one or more index registers through the data bus being preset;
address for the first reference point of the object data series using content of particular address register being designated;
for the subsequent reference points, in every microinstruction, a kind of combination in addition of three items in maximum of the content of particular address register namely address value of the current reference point, content of such index register and such displacement being designated; the address value of the next reference point by designating the index register and displacement being calculated; and continuous addresses for data systems of irregular arrangement by sequentially repeating the processing for updating content of particular address register using such new address value being designated.
37. An address generating system for signal processing according to Claim 36, wherein in case data on the two-dimensional space extending for M data in the horizontal direction and for L data in the vertical direction (M, L are positive integers) are stored in said data memory with the scaler address by the sequential scanning, address designation is carried out for the first reference point of data series having the two-dimensional arrangement using initialization value of the particular address register in the address generator; for the subsequent reference points, in case the current reference point is separated by m data (m is displacement indicated by an integer within the settable range) in the horizontal direction and by 1 data in the vertical direction for the preceding reference point, when 1 is "0", namely the current reference point exists on the same horizontal line, a value of m is set to the displacement with the current instruct-on code and address designation is carried out using an adding value of the content of particular address register and displacement to which the value of m is set, when 1 is not "0", an index register to which a value of (1 x M + a) (a is an integer) is preset is designated by the current instruction code and the processing for address designation is instructed with the instruction code in every reference point by the adding value of three items of content of particular address register, content of designated index register and displacement to which a value of (m - a) is set by the current instruction code.
38. An address generating system for signal processing according to Claim 36, wherein the address generator is capable of setting the data previously stored in the designated address of data memory or output data of calculator to the particular address register or index register through the data bus and transferring content of particular address register or index register to the data memory through data bus or to this calculator as the input data of calculator.
39. An address generating system according to Claim 36 or 37, wherein in case the relative addressing is to be carried out to the data series consisting of a plurality of data, an address data value previously calculated and stored to the particular address of data memory or output data of calculator is initially set to the particular address register through the data bus as the address of leading reference point of such data series.
40. An address generating system according to Claim 38, wherein in case the relative addressing is to be carried out to the data series consisting of a plurality of data, an address data value previously calculated and stored to the particular address of data memory or output data of calculator is initially set to the particular address register through the data bus as the address of leading reference point of such data series.
CA000568527A 1987-06-05 1988-06-03 Digital signal processor Expired - Fee Related CA1288169C (en)

Applications Claiming Priority (16)

Application Number Priority Date Filing Date Title
JP14087287A JPS63304344A (en) 1987-06-05 1987-06-05 Multi-port memory circuit
JP140872/87 1987-06-05
JP18685887A JPS6429932A (en) 1987-07-27 1987-07-27 Address control system for signal processing
JP186858/87 1987-07-27
JP197009/87 1987-08-06
JP19700987A JPS6441028A (en) 1987-08-06 1987-08-06 Interruption processing system
JP273763/87 1987-10-29
JP62273763A JPH0630056B2 (en) 1987-10-29 1987-10-29 Signal processor
JP274810/87 1987-10-30
JP27481087A JPH01116730A (en) 1987-10-30 1987-10-30 Digital signal processor
JP296612/87 1987-11-25
JP296611/87 1987-11-25
JP62296612A JPH0766328B2 (en) 1987-11-25 1987-11-25 Signal processing method of processor
JP62296611A JPH0766327B2 (en) 1987-11-25 1987-11-25 Signal processing method and apparatus
JP316553/87 1987-12-15
JP31655387A JPH01156825A (en) 1987-12-15 1987-12-15 Generating system for signal processing address

Publications (1)

Publication Number Publication Date
CA1288169C true CA1288169C (en) 1991-08-27

Family

ID=27573171

Family Applications (1)

Application Number Title Priority Date Filing Date
CA000568527A Expired - Fee Related CA1288169C (en) 1987-06-05 1988-06-03 Digital signal processor

Country Status (4)

Country Link
US (1) US5045993A (en)
EP (6) EP0293851B1 (en)
CA (1) CA1288169C (en)
DE (4) DE3851858T2 (en)

Families Citing this family (55)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1311063C (en) * 1988-12-16 1992-12-01 Tokumichi Murakami Digital signal processor
JPH0769791B2 (en) * 1988-12-21 1995-07-31 三菱電機株式会社 Microprocessor
JPH0740241B2 (en) * 1989-01-17 1995-05-01 富士通株式会社 Request cancellation method
US5237670A (en) * 1989-01-30 1993-08-17 Alantec, Inc. Method and apparatus for data transfer between source and destination modules
US5150471A (en) * 1989-04-20 1992-09-22 Ncr Corporation Method and apparatus for offset register address accessing
US5175863A (en) * 1989-10-23 1992-12-29 International Business Machines Corporation Signal data processing system having independently, simultaneously operable alu and macu
EP0843254A3 (en) * 1990-01-18 1999-08-18 National Semiconductor Corporation Integrated digital signal processor/general purpose CPU with shared internal memory
JPH0444151A (en) * 1990-06-11 1992-02-13 Omron Corp Processor
JPH0470946A (en) * 1990-07-04 1992-03-05 Mitsubishi Electric Corp Processor containing dma controller
JP3194193B2 (en) * 1990-10-31 2001-07-30 カシオ計算機株式会社 Signal processing device
RU1804645C (en) * 1991-03-27 1993-03-23 Институт Точной Механики И Вычислительной Техники Им.С.А.Лебедева Central processor
US7197623B1 (en) 1991-06-27 2007-03-27 Texas Instruments Incorporated Multiple processor cellular radio
FR2678400B1 (en) * 1991-06-27 1995-08-04 Texas Instruments France PROTOCOL PROCESSOR FOR EXECUTING A SET OF INSTRUCTIONS IN A REDUCED NUMBER OF OPERATIONS.
JP3201786B2 (en) * 1991-07-18 2001-08-27 アジレント・テクノロジー株式会社 Control method of digital signal processing system
JP3172214B2 (en) * 1991-09-30 2001-06-04 富士通株式会社 Status mode setting method
JP2906792B2 (en) * 1991-11-15 1999-06-21 日本電気株式会社 Digital processor and control method thereof
DE69228980T2 (en) * 1991-12-06 1999-12-02 Nat Semiconductor Corp Integrated data processing system with CPU core and independent parallel, digital signal processor module
US6000026A (en) * 1992-06-22 1999-12-07 Texas Instrument Incorporated Multiple processor apparatus having a protocol processor intended for the execution of a collection of instructions in a reduced number of operations
EP0580109B1 (en) * 1992-07-23 1997-12-10 Rockwell International Corporation Data acces in a RISC digital signal processor
WO1994006075A1 (en) * 1992-08-31 1994-03-17 Fujitsu Limited Method and apparatus for non-numeric character discrimination
US5717908A (en) * 1993-02-25 1998-02-10 Intel Corporation Pattern recognition system using a four address arithmetic logic unit
US5825921A (en) * 1993-03-19 1998-10-20 Intel Corporation Memory transfer apparatus and method useful within a pattern recognition system
FR2708359A1 (en) * 1993-06-30 1995-02-03 Philips Electronics Nv Method for operating a digital signal processor and device implementing the method
EP0638859B1 (en) * 1993-08-09 1999-09-29 Siemens Aktiengesellschaft Signal processing device
JP3452655B2 (en) * 1993-09-27 2003-09-29 株式会社日立製作所 Digital signal processor and method of executing instructions using the same
US5778416A (en) * 1993-12-20 1998-07-07 Motorola, Inc. Parallel process address generator and method
US5590356A (en) * 1994-08-23 1996-12-31 Massachusetts Institute Of Technology Mesh parallel computer architecture apparatus and associated methods
US5835730A (en) * 1996-07-31 1998-11-10 General Instrument Corporation Of Delaware MPEG packet header compression for television modems
WO1998006042A1 (en) * 1996-08-07 1998-02-12 Sun Microsystems, Inc. Wide instruction unpack method and apparatus
WO1998006041A1 (en) * 1996-08-07 1998-02-12 Sun Microsystems, Inc. Array prefetch apparatus and method
WO1998006038A1 (en) * 1996-08-07 1998-02-12 Sun Microsystems, Inc. Architectural support for software pipelining of loops
WO1998006039A1 (en) * 1996-08-07 1998-02-12 Sun Microsystems, Inc. Disambiguation memory circuit and operating method
US5958048A (en) * 1996-08-07 1999-09-28 Elbrus International Ltd. Architectural support for software pipelining of nested loops
WO1998006040A1 (en) * 1996-08-07 1998-02-12 Sun Microsystems, Inc. Architectural support for software pipelining of nested loops
US5880981A (en) * 1996-08-12 1999-03-09 Hitachi America, Ltd. Method and apparatus for reducing the power consumption in a programmable digital signal processor
US6332152B1 (en) * 1997-12-02 2001-12-18 Matsushita Electric Industrial Co., Ltd. Arithmetic unit and data processing unit
TW380245B (en) * 1998-05-18 2000-01-21 Winbond Elelctronics Corp Speech synthesizer and speech synthesis method
US7234100B1 (en) * 2000-09-28 2007-06-19 Intel Corporation Decoder for trellis-based channel encoding
US6662296B1 (en) * 2000-10-02 2003-12-09 International Business Machines Corporation Method and system for testing millicode branch points
JP2002215606A (en) * 2001-01-24 2002-08-02 Mitsubishi Electric Corp Data processor
US20020184566A1 (en) 2001-06-01 2002-12-05 Michael Catherwood Register pointer trap
US20030061464A1 (en) * 2001-06-01 2003-03-27 Catherwood Michael I. Digital signal controller instruction set and architecture
US7167973B2 (en) * 2001-11-15 2007-01-23 Broadcom Corporation Method and system for performing multi-tests in processors using results to set a register and indexing based on the register
JP2005149297A (en) * 2003-11-18 2005-06-09 Renesas Technology Corp Processor and assembler thereof
JP4908017B2 (en) * 2006-02-28 2012-04-04 富士通株式会社 DMA data transfer apparatus and DMA data transfer method
US7953958B2 (en) * 2006-09-29 2011-05-31 Mediatek Inc. Architecture for joint detection hardware accelerator
US20090129486A1 (en) * 2007-11-15 2009-05-21 Sequel Technologies, Llc. Systems and methods for providing security communication procesess in a security system
GB2500707B (en) * 2012-03-30 2014-09-17 Cognovo Ltd Multiprocessor system, apparatus and methods
US20150268962A1 (en) * 2014-03-24 2015-09-24 GoofyFoot Labs Asynchronous Circuit Design
US11847427B2 (en) 2015-04-04 2023-12-19 Texas Instruments Incorporated Load store circuit with dedicated single or dual bit shift circuit and opcodes for low power accelerator processor
US9817791B2 (en) * 2015-04-04 2017-11-14 Texas Instruments Incorporated Low energy accelerator processor architecture with short parallel instruction word
US10401412B2 (en) 2016-12-16 2019-09-03 Texas Instruments Incorporated Line fault signature analysis
US11010953B2 (en) * 2017-04-21 2021-05-18 Intel Corporation Dedicated fixed point blending for energy efficiency
CN109714056B (en) * 2019-01-17 2022-10-28 上海双微导航技术有限公司 Method for compatible multi-model AD acquisition
CN110737618B (en) * 2019-10-23 2021-03-16 盛科网络(苏州)有限公司 Method, device and storage medium for embedded processor to carry out rapid data communication

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3570006A (en) * 1968-01-02 1971-03-09 Honeywell Inc Multiple branch technique
US3875391A (en) * 1973-11-02 1975-04-01 Raytheon Co Pipeline signal processor
US4025771A (en) * 1974-03-25 1977-05-24 Hughes Aircraft Company Pipe line high speed signal processor
US4090250A (en) * 1976-09-30 1978-05-16 Raytheon Company Digital signal processor
DE2710671A1 (en) * 1977-03-11 1978-09-14 Standard Elektrik Lorenz Ag CIRCUIT ARRANGEMENT FOR A MICROPROCESSOR TO CONTROL THE DATA STORAGE ACCESS
US4240139A (en) * 1977-09-22 1980-12-16 Tokyo Shibaura Denki Kabushiki Kaisha Address generating system
GB2007889B (en) * 1977-10-25 1982-04-21 Digital Equipment Corp Central processor unit for executing instructions with a special operand specifier
US4159519A (en) * 1977-11-21 1979-06-26 Burroughs Corporation Template family interfacing structure for providing a sequence of microinstructions to a pipelined microprogrammable data processing system
US4236206A (en) * 1978-10-25 1980-11-25 Digital Equipment Corporation Central processor unit for executing instructions of variable length
US4428046A (en) * 1980-05-05 1984-01-24 Ncr Corporation Data processing system having a star coupler with contention circuitry
US4493019A (en) * 1980-05-06 1985-01-08 Burroughs Corporation Pipelined microprogrammed digital data processor employing microinstruction tasking
JPS5750052A (en) * 1980-09-09 1982-03-24 Toshiba Corp Address extension system
US4439839A (en) * 1981-08-24 1984-03-27 International Telephone And Telegraph Corporation Dynamically programmable processing element
US4654783A (en) * 1982-07-26 1987-03-31 Data General Corporation Unique process for loading a microcode control store in a data processing system
JPS5979349A (en) * 1982-10-29 1984-05-08 Toshiba Corp Arithmetic device
US4613935A (en) * 1983-02-02 1986-09-23 Couleur John F Method and apparatus for pipe line processing with a single arithmetic logic unit
JPS59174948A (en) * 1983-03-25 1984-10-03 Toshiba Corp Information processing device
US4578750A (en) * 1983-08-24 1986-03-25 Amdahl Corporation Code determination using half-adder based operand comparator
US4785393A (en) * 1984-07-09 1988-11-15 Advanced Micro Devices, Inc. 32-Bit extended function arithmetic-logic unit on a single chip

Also Published As

Publication number Publication date
EP0551931B1 (en) 1998-07-15
EP0554917A2 (en) 1993-08-11
EP0551933A2 (en) 1993-07-21
EP0551932A2 (en) 1993-07-21
EP0551932B1 (en) 1998-07-15
EP0551931A3 (en) 1993-12-15
DE3856175T2 (en) 1998-12-17
EP0551933A3 (en) 1993-12-15
EP0554917A3 (en) 1994-04-13
EP0551934A2 (en) 1993-07-21
DE3856175D1 (en) 1998-06-10
EP0293851A3 (en) 1990-05-09
DE3851858D1 (en) 1994-11-24
DE3856219T2 (en) 1998-11-19
EP0293851B1 (en) 1994-10-19
EP0551932A3 (en) 1993-12-15
EP0293851A2 (en) 1988-12-07
EP0551934A3 (en) 1994-04-13
DE3856220T2 (en) 1999-01-07
DE3856220D1 (en) 1998-08-20
EP0551931A2 (en) 1993-07-21
DE3851858T2 (en) 1995-05-24
US5045993A (en) 1991-09-03
DE3856219D1 (en) 1998-08-20
EP0554917B1 (en) 1998-05-06

Similar Documents

Publication Publication Date Title
CA1288169C (en) Digital signal processor
US5206940A (en) Address control and generating system for digital signal-processor
US5247627A (en) Digital signal processor with conditional branch decision unit and storage of conditional branch decision results
US5682545A (en) Microcomputer having 16 bit fixed length instruction format
US6810475B1 (en) Processor with pipeline conflict resolution using distributed arbitration and shadow registers
US5099417A (en) Data processing device with improved direct memory access
US4984151A (en) Flexible, next-address generation microprogram sequencer
US4740893A (en) Method for reducing the time for switching between programs
US4912636A (en) Data processing device with multiple on chip memory buses
US5179689A (en) Dataprocessing device with instruction cache
US5237667A (en) Digital signal processor system having host processor for writing instructions into internal processor memory
US5032986A (en) Data processing device with parallel circular addressing hardware
US5710914A (en) Digital signal processing method and system implementing pipelined read and write operations
US5222241A (en) Digital signal processor having duplex working registers for switching to standby state during interrupt processing
US5983328A (en) Data processing device with time-multiplexed memory bus
EP0163740A1 (en) Pipeline control system
US5907864A (en) Data processing device with time-multiplexed memory bus
US4631672A (en) Arithmetic control apparatus for a pipeline processing system
KR100254915B1 (en) Two-bit booth multiplier with reduced data path width
US4896264A (en) Microprocess with selective cache memory
US20080215859A1 (en) Computer with high-speed context switching
KR19980018071A (en) Single instruction multiple data processing in multimedia signal processor
KR100188374B1 (en) Central processing unit and an arithmetic operation processing unit
EP0448127B1 (en) Microprogram sequence controller
US5649229A (en) Pipeline data processor with arithmetic/logic unit capable of performing different kinds of calculations in a pipeline stage

Legal Events

Date Code Title Description
MKLA Lapsed