Codec

Information

  • Patent Application
  • 20030088407
  • Publication Number
    20030088407
  • Date Filed
    April 02, 2001
    23 years ago
  • Date Published
    May 08, 2003
    21 years ago
Abstract
A codec comprising a programmed digital signal processor and an accelerator core in which computation of a coding algorithm is divided between the digital signal processor and the accelerator core, computationally relatively intensive parts of a coding algorithm being performed by the accelerator core. In the preferred embodiment, the instruction set is optimised to perform CELP coding of speech signals.
Description


[0001] This invention relates to codecs. It has particular, but not exclusive application to a codec for speech encoding using code-excited linear prediction (CELP) coding.


[0002] CELP coding is a coding system that is specifically designed to encode human speech to enable it to be transmitted over a low-bandwidth link. CELP coding is based on the principles of linear prediction analysis-by-synthesis (AbS) coding in which an algorithm finds a code vector by attempting to minimise a perceptually weighted error signal. The analysis-by-synthesis of speech includes speech feature extraction, vector quantisation (VQ) and speech reconstruction. Standards for implementing CELP coding have been established internationally, for example, in ITU-T standards ITU G723.1 and G729.


[0003] As a computational task, CELP encoding involves generating a spectral analysis of a speech signal and generating coded data through a process including codebook searching and error minimisation. It requires a large codebook storage if high speech-quality is to be obtained, which leads to intensive computation in the coding process. ITU standard G723.1, for example, defines a 10K×16-bit words table to support 5.3 or 6.3 kbits/sec compression rates. When encoding, this requires computing power of about 26 MIPS to complete speech data in real time. Clearly, if such coding is to be performed in real-time, a software implementation in a general-purpose computer is possible only if substantial computing resources are available. It is therefore common to implement CELP coding in dedicated hardware for example, in a digital signal processor (DSP) chip core.


[0004] For single channel application, the CELP algorithm can implemented using a programmable DSP chip. At present, a modern DSP chip can handle about 4 duplex channels. If an application relies on multiple channels, (for example 32 or 64 channels), it needs multiple (e.g. 8 or 16) DSP chips to work together. Each DSP chip has its own large store for the data table. This results in a very complicated multiple DSP chip system, which is difficult to design and expensive to build. At present, there is a demand for a codec capable of performing CELP and other encoding functions substantially more quickly and at greatly reduced cost than is possible using systems that have hitherto been available. An aim of this invention is to provide such a codec.


SUMMARY OF THE INVENTION

[0005] Based on the study of CELP algorithm, it has been found that the CELP algorithm can be partitioned into two parts: part I includes speech feature extraction and part II includes VQ and speech reconstruction. It has been found that computation in part I is relatively less intensive, and is irregular. The computation in part I accounts for only about 8% of the total amount of computation required to perform the entire CELP algorithm. The major functions in the part II are variance and covariance computation, and codebook searching. These are regular operations that require a large amount of computation and storage capacity.


[0006] In the light of the divergent nature of these two parts of the algorithm, the inventors have realised that it may be appropriate to implement a codec as a hybrid structure.


[0007] According to the invention there is provided a codec comprising a programmed digital signal processor and an accelerator core in which computation of a coding algorithm is divided between the digital signal processor and the accelerator core, computationally relatively intensive parts of a coding algorithm being performed by the accelerator core.


[0008] By means of this arrangement, optimal use of the hardware can be made without the creation of bottlenecks or of under-utilisation of hardware. Typically, part I, as identified above, is performed by a DSP, and part II is assigned to the accelerator core.


[0009] In typical embodiments, the accelerator core includes a processor structure that is capable of processing multiple items of data simultaneously. It has been found that many algorithms that a codec can be programmed to execute are susceptible to efficient implementation using parallel processing techniques. In such embodiment, the processor may, for example, be a vector processor. A vector processor may be implemented with a single-instruction multiple-data architecture.


[0010] Advantageously, the processor structure has an instruction set that is optimised to perform encoding to a predetermined standard. This can help to enhance the efficiency of the codec by tailoring it to the function that it is to perform. For example, the instruction set may be optimised to perform CELP coding of speech signals.


[0011] In a preferred arrangement, the accelerator core has includes a plurality of similar operational units capable of carrying out simultaneous data processing operations. In such embodiments, an operation can be assigned for performance by one or more of the operational units on a plurality of data elements. It should be noted that an instruction might be performed by one operational unit, by a group of such operational units, or by all of the operational units. Most advantageously, the accelerator core is configured such that the number of operational units that perform a given operation can be determined under programmatical control.


[0012] The accelerator core of embodiments of the invention might typically include a register bank, the operational units performing operations on data stored in the register bank. This provides a store of data to which the operational units can gain rapid read and write access.


[0013] Each operational unit can, in preferred embodiments, perform operations on data from several sources. For example, each operational unit may perform operations upon the content of the register bank or upon the output of one or more of the operational units.


[0014] Moreover, it is further preferred that each operational unit can store the result of an operation in various locations including, for example, the register bank. An operation might additionally be performed on the outputs of a plurality of the operational units to derive a further output value. Specifically, in many embodiments, a plurality of the operational units can be summed.


[0015] Advantageously, each operational unit can access a common memory unit being a component of a codec embodying the invention. The common memory unit may include a ROM and/or a RAM.


[0016] In embodiments of the invention, each operational unit is a MAC (multiplier/accumulator) unit.


[0017] In preferred embodiments, the accelerator core may be operative to execute program instructions as a vector processor. In order to provide a versatile construction, the program instructions may advantageously be executed as microcode. Such embodiments typically include a decoder by means of which instructions can be decoded for execution by one or more operational units. In some embodiments, the decoder may include a finite state machine. Alternatively or additionally, the decoder may include a programmed memory device.


[0018] The invention further provides a computer program comprising program instructions arranged to generate, in whole or in part, a codec according to the invention. The codec may therefore be implemented as a set of suitable such computer programs. Typically, the computer program takes the form of a hardware description, or definition, language (HDL) which, when synthesized on a hardware synthesis tool, generates semiconductor chip data, such as mask definitions or other chip design information, for generating a semiconductor chip. The invention also provides said computer program stored on a computer useable medium. The invention further provides semiconductor chip data, stored on a computer usable medium, arranged to generate, in whole or in part, a codec according to the invention.







[0019] An embodiment of the invention will now be described in detail, by way of example and with reference to the accompanying drawings, in which:


[0020]
FIG. 1 is a block diagram of a codec for performing CELP encoding being an embodiment of the invention;


[0021]
FIG. 2 is a block diagram of an accelerator core being a component of the embodiment of FIG. 1;


[0022]
FIG. 3 is a block diagram of a vector processor being a component of the core of FIG. 2;


[0023]
FIG. 4 is a more detailed diagram of the core of FIG. 2;


[0024]
FIG. 5 is a block diagram of a MAC function unit being a component of the processor of FIGS. 3 and 4;


[0025]
FIG. 6 shows the structure of the accumulator and compare unit of the MAC of FIG. 5;


[0026]
FIG. 7 shows the structure of the register bank of the MAC unit of FIG. 7;


[0027]
FIG. 8 illustrates the interconnection of the ten MAC function units and the ACU block in the processor of FIGS. 3 and 4; and


[0028]
FIG. 9 shows the interconnection between the processor of FIGS. 3 and 4, the operation unit and the register bank.






[0029] An embodiment of the invention provides the functionality of a CELP codec.


[0030] As shown in FIG. 1, the codec 110 comprises a digital signal processor (DSP) 112, which has read and write access to a system memory device 114. The DSP 112 is in communication with an accelerator core 116. Speech signals for coding are received by the DSP 112 on an input line 118, and fed to the accelerator core 116 which generates an encoded output on an output line 120.


[0031] The basic structure of the accelerator core 116 is shown in FIG. 2.


[0032] The accelerator core comprises six function blocks, namely a microcode instruction PROM (PROM), data flow control (DataCtrl), data address generation (AdrGen), 10- sub-look-up-table (LUT), a processor core referred to as a super vector processor (SVP) and RAM blocks (SPRAM).


[0033] The accelerator core has six input lines identified as CLK, RST, ENABLE, START, RATESELECTION and Dataln, the latter being 16 bits wide. It also has three output lines labeled DataOut, READY and DONE. The ENABLE signal controls the operational status of the accelerator core. When the START signal is asserted, the FSM function starts to work which load the data to the single port RAM then carry out all operation for encode or decode. When the process is finished, the DONE is set to high, the processed data can be read out through the output port, DataOut. The READY signal is set to high when the data output is complete.


[0034] The RATESELECTION input is provided to specify which encoding rate of the encoding standard is to be applied to the input data. This will specify the number of input data bits generated in the output for a given input.


[0035]
FIGS. 3 and 4 show the architecture of the SVP component. The SVP includes 10 MAC units (MAC_0 . . . MAC_9 ), an accumulator (ACU), a data address generator 410, loop control counters 412, MAC operation code decoder 414, micro code decoder 416, a control block 418, a program counter P_CNT, a compare unit, and a 10×32×16 bits register bank 422, as shown in FIG. 4. There are 5 input ports, identified as MACOPCTL, RGBCTL, 10LutInp, 10RGFInp and RAMInp. The SVP includes two single-port RAM blocks 430,432 for received data, and processed data storage. The data bus is 16 bits wide and the micro control word has 64 bits.


[0036] The MACOPCTL input is decoded at the MAC operation code decoder 414 block, and drives the SVP in various arithmetic operations. The MACOPCTL input includes a 31-bit control word. It indicates which operation the MACs will carry out or accumulation over 10 MAC function units. The RGBCTL input includes an 8-bit control word. It represents the position of data in RGB to be read and written.


[0037] At any operation cycle, each of the MACs accept the same operation instruction and carries out the same operation. The 10Lutlnp (10×16-bits) is related to the 10 sub-table files. The 10RGFInp (10×16-bits) is connected to the 10 registers, which deal with the individual data. The RAMInp (16-bits) is for the SPRAM data to be read and written.


[0038] There are 8 output ports, namely 10MacRs, Sum10R, 10T1CmpR, AcCmpR, RgbRawldx, RgbColldx, Rgb2Ram and DONE. The 10MacRs represents 10×32-bit output data from 10 MACS. The Sum10R is a 32-bit output, which sums over 10 outputs of MAC function unit. The 10T1CmpR presents a maximum value among the 10MacRs. The AcCmpR presents a maximum value over a period of operation. The RgbRawldx and RgbColIdx are data position indicators, which are related to the comparison results stored in the RGB. When the DONE output is high, the output results of SVP are available. The SVP has 10 MAC operation units and its local storage, which provides the CELP accelerator core with the ability to handle a computationally-intensive DSP algorithm efficiently.


[0039] When the START input is high, the P_CNT counter is set into operation. The Rata_selection signal will select an start point and end point from data definition block to set the P_CNT counter.


[0040] The P_CNT counter produces an executive signal “EXEC” whenever a complete micro word has been read. The EXEC signal will drive all of the function blocks to carry out the task specified by the micro word. The P_CNT counter then moves to the next address, until the end point is reached.


[0041] The structure of each MAC unit is shown in FIG. 5. The MAC unit has one 16×16-bit multipler 510, one 32-bit accumulator 512, one rounding function 514, and three multiplexers 516,518,520. A control word, CTRL, indicates the input data and function operation the MAC function unit.


[0042] The control word, CTRL, has 24 bits, which is partitioned into six parts. The definition of control word for MAC function unit is shown in Table 1, below.
1TABLE 1 b24b23-b21b20-b18b17-b15b14-b10b9-b0ReservedRWERISISEIDSMACOPReg 0-3Reg 0-3Initial dataInput dataMACwrite Enainputsetselectionoperationselectionword


[0043] The input data selection (IDS) represent two input data items (B and C) selected from six possible input data sources, namely LUTInp, RGBInp, RamInp, Reg0, Reg1 and Reg2. Table 2 shows the possible combination of IDS instruction definitions.
2TABLE 2IndexInput1(B), input 2(C)description00000NULL, NULLNo inputs are selected00001Reg_0, Reg_0,Reg_0*Reg_000010Reg_0, Reg_1Reg_0*Reg_100011Reg_0, Reg_2Reg_0*Reg_200100Reg_0, LUTInpReg_0*LUTInp00101Reg_0, RGBInpReg_0*RGBInp00110Reg_0, RamInpReg_0*RamInp00111Reg_1, Reg_1Reg_1*Reg_101000Reg_1, Reg_2Reg_1*Reg_201001Reg_1, LUTInpReg_1*LUTInp01010Reg_1, RGBInpReg_1*RGBInp01011Reg_1, RamInpReg_1*RamInp01100Reg_2, Reg_2Reg_2*Reg_201101Reg_2, LUTInpReg_2*LUTInp01110Reg_2, RGBInpReg_2*RGBInp01111Reg_2, RamInpReg_2*RamInp10000RGBInp, RGBInpRGBInp * RGBInp10001RGBInp, RamInpRGBInp * RamInp10010RGBInp, LUTInpRGBInp * LUTInp10011RamInp, RamInpRamInp* RamInp10100RamInp, , LUTInpRamInp* LUTInp10101reserved10110reserved10111reserved11000reserved11001reserved11010reserved11011reserved11100reserved11101reserved11110reserved11111reserved


[0044] The initial value set (ISE) specifies an initial data selection when the accumulator is in operation. The initial value may be set to zero or other value provided by the RGBInp, Reg0, Reg1 or Reg2. Table 3 shows the combinations of the ISE.
3TABLE 3IndexInitial DataDescription0000Set the initial value to zero001Reg_1, Reg_0Set the initial value as a (Reg_1&Reg_0)010Reg_2, RGBInpSet the initial value as a (Reg_2& RGBInp)011MAC_outputSet the initial value as MAC output10032 bit registerA 32 bit buffer101reserved110reserved111reserved


[0045] The register input signal selection (RIS) is a control signal to select an input signal for the three registers. Table 4 shows the combination of the input signals to the registers.
4TABLE 4IndexInput valueDescription0000Reset the registers001RAMInpInput RAMInp value to registers010RGBInpInput RGBInp value to registers011Output_L, Output_HInput (Output_L, Output_H) to registers100Reg0_N−1Register0_N =Register0_N−1 (N=0; 9)101Reg1_N−1Register1_N =Register1_N−1 (N=0; 9)110Reg2_N−1Register2_N =Register2_N−1 (N=0; 9)111ACU outputAccumulator/compare unit output


[0046] The register input write enable (RWE) is a control signal to enable an input signal write to the registers, and a 1-bit control one register. Table 5 shows the combination of the register write enable signal.
5TABLE 5IndexRegister EnableDescription000NULLRegisters can not be written001Reg_0 EnableReg_0 write enable010Reg_1 EnableReg_1 write enable011Reg_0, Reg_1 EnableReg_0 and Reg_1 write enable100Reg_2 EnableReg_2 write enable101Reg_0, Reg_2 EnableReg_0 and Reg_2 write enable110Reg_1, Reg_2 EnableReg_1 and Reg_2 write enable111All enableReg_0, Reg_1 and Reg_2 write enable


[0047] The MAC operation word (MACOP) is to control the MAC unit operation. It is 10 bits wide. Tables 6 and 7 describes the function of each bit. The combination of 10 bits can carry out most arithmetic operations used in CELP algorithm. For example, Table 6 lists some MAC operation code.
6TABLE 6Index of bitdescription00: signed, 1: unsigned1Indicates the first input of an input sequence, also resets theoverflow and carry flag, active HIGH,2Indicates the last input of an input sequence, active HIGH3, 400: no shift01: left shift by 1 bit,10: right shift by 15 bits11: right shift by 15 bits with rounding5controls the accumulator's operation:0: add the product to the previous accumulated result,1: subtract the product from the previous accumulated result6controls the number of bits upon which the accumulationis based:0: 32 bits based operation1: 16 bits based operation7controls the loading of output register:0: disable loading1: enable loading8Output with rounding, active HIGH9reserved


[0048]

7







TABLE 7









Combination



code
of 10 bits
description







MAC_NUL
1000000000
No action


MAC_MULT
1010010110
Y[15:0]=(A[15:0]*B[15:0]>>16)+INIT


MAC_MULT_R
1010011110
A*B with rounding and right shift 15 bits


MAC_L_MULT
1010001110
Y[31:0]=A[15:0]*B[15:0]


MAC_L_MLS0
1010010011
32bits and 16 bits multiplier, first part


MAC_L_MLS1
1010001100
32bits and 16 bits multiplier, second part


MAC_L_MAC0
1010001010
first data of accumulation of two 16-bit multiply with right shift




by 1,


MAC_L_MAC
1010001000
Accumulation of two 16-bit multiply with right shift 1


MAC_L_MAC1
1010001100
Last data of accumulation of two 16-bit multiply with right shift




by 1


MAC_L_MACR0
1010011010
First data of accumulation of two 16-bit multiply with right shift




by 15


MAC_L_MACR
1010011000
Accumulation of two 16-bit multiply with right shift by 15


MAC_L_MACR1
1010011100
Last data of accumulation of two 16-bit multiply with right shift




by 15


MAC_L_MRA0
1010000010
First data of accumulation of two 16-bit multiply


MAC_L_MRA
1010000000
Accumulation of two 16-bit multiply


MAC_L_MRA1
1010000100
Last data of accumulation of two 16-bit multiply


MAC_L_MSU0
1010101010
First data of accumulation with substrata of two 16-bit multiply




with left shift by 1


MAC_L_MSU
1010101000
Accumulation with substrata of two 16-bit multiply with left




shift by 1


MAC_L_MSU1
1010101100
Last data of accumulation with substrata of two 16-bit multiply




with left shift by 1


MAC_L_MSUR0
1010111010
First data of accumulation with substrata of two 16-bit multiply




with right shift by 15


MAC_L_MSUR
1010111000
Accumulation with substrata of two 16-bit multiply with right




shift by 15


MAC_L_MSUR1
1010111100
Last data of accumulation with substrata of two 16-bit multiply




with right shift by 15


MAC_I_MAC0
1011000010
first data of accumulation of two 16-bit integer multiply


MAC_I_MAC
1011010000
Accumulation of two 16-bit integer multiply with right shift 1


MAC_I_MAC1
1011010100
Last data of accumulation of two 16-bit integer multiply with




right shift by 1


MAC_I_MULT
1011011110
two 16-bit integer multiply


MAC_I_ADD
1011000110
two 16-bit adder


MAC_I_SUB
1011100110
two 16-bit substrate










[0049] One bit, MACOP [24], is reserved for the MACOP extension.


[0050] In operation of the SVP, many operations are applied to a sequence of data. That is, the SVP operates in a single-instruction-multiple-data mode. The accumulator and compare unit is used for this purpose.


[0051] In each output of the MAC function unit, an index (4 bits) of the MAC unit is combined to the output value to provide a 36-bit wide value. This index helps to identity the position of maximum value when the compare function selects a maximum value from the 10 MAC outputs or from a sequence of data. FIG. 6 shows the structure and the principle of operation the accumulator and compare unit, which includes a plurality of adders 610, shift registers 612, registers 614, a multiplexer 616 and a rounding unit 618. The adder and compare unit are each 32 bits wide.


[0052] A control word, ACUCTRL, of 6 bits indicates which operation is carried out in the accumulator and compare unit. Table 8 shows the combination of the control word. The control word has three parts, namely function selection (FS), register reset selection (RRS) and rounding selection (RS).
8TABLE 8b5-b4b3-b2b1-b0RSRRSFSRounding selectionRegister resetFunction selection


[0053] Table 9 shows the combination of FS, which contains four options.
9TABLE 9Indexfunctiondescription00No functionACU not selected01adder1Sum10R=32bitsReg+n=09M_(n)10Subtract2Sum10R=32bitsReg-n=09M_(n)11CompareSelect a maximum value over 10 inputs


[0054] Table 10 shows a combination of register reset state (RRS), which indicates the 32 bits Reg's states.
10TABLE 10Indexstatesdescription00NULLRegister value does not change0132bitsRegA= 0Set register to zero1032bitsRegC= 0Set register to zero11reserved


[0055] Table 11 shows a combination of rounding selection (RS), where one bit is used to select rounding input, and the another bit is reserved.
11TABLE 11Indexcodedescription0032bitsRegAThe add' value to be rounded0132bitsRegCThe compare' value to be rounded


[0056] The register bank, as shown in FIG. 7, has 10 blocks 710, and each block has 32×16-bit cells, one 16-bit data input port and, and one 16-bit data output port. The register bank has two address ports 712, 714, one is for the input data address, and the other is for the output data address. An 8-bit control word identified as RGBCW determines the input and output of register bank.


[0057] The 8-bit control word consists of two parts, RGBWS and RGBWE. The REBWE, bit0 -bit2, is a write-enable code, which indicates which register block is to be written. The RGBWS, bit3-bit6, is the register bank input data selection signal, which indicates which data will be written. One bit is reserved. Table 12 shows the decoded write-enable control signal.
12TABLE 12IndexWrite enable signal (10 bits)Description0000000000000Write not available001111111111110 blocks can be written01000000111115 blocks (A0˜A4) can be written01111111000005 blocks (B0˜B4) can be written100reservedFor some data write to specified101reservedBlocks110reserved111reserved


[0058] Table 13 shows a combination of register bank input data.
13TABLE 13indexInput dataDescription0000ZeroReset the specified register to zero0001RAMInpLoad the data from RAM block inseris format through block A∅0010RAMInp shift right by 1 bitLoad the data from RAM block inseris format through block A∅0011MacOutput[15:0]Load the low part of MAC output0100MacOutput[31:16]Load the high part of MAC output0101SUMRLoad the SUMR of ACU011010 Reg_1 Load 10 Reg_1 of ACU011110 buffer RegistersLoad 10 buffer register's data1000RGB(N)to RGB(M)Copy data from two row data1001RGB(N)(i)to RGB(N)(i+1)Shift right by 11010RGB(N)(i)to RGB(N)(i−1)Shift left by 11011reserved1100reserved1101reserved1110reserved1111reserved


[0059]
FIG. 8 illustrates the interconnection of the ten MAC function units MAC_0 . . . MAC_9 and the ACU block. Each MAC function unit MAC_0 . . . MAC_9 has three inputs, which are fed from outside the operation unit, being RAM data input (RamInp), register bank data input (RGBInp) and look-up table data input (LUTInp).


[0060] The SVP operation unit can handle ten 16-by-16-bit multipliers at the same time and the results of each MAC function unit MAC_0 . . . MAC_9 can be summed or compared in the ACU block. The SVP operation unit can calculate all of general operations related to multiplication, addition or subtraction for 16-bit input data.


[0061]
FIG. 9 shows the interconnection between the SVP operation unit, shown generally at 910, and the register bank RGB shown generally at 912. The input, LUTInp0, is from the 10-sub-table function block, and the Ramlnp is from SPRAM block. The operation of the SVP is controlled by a control word.


[0062] The accelerator has two storage banks. One bank is ROM, and the other is single-port RAM. Each cell of ROM and the RAM is 16 bits wide. The size of RAM and the


[0063] ROM is dependent on which algorithm will be operated in the processor. In this embodiment, the maximum address number for the RAM is 4096, which means the RAM has a capacity of 4K-by-16-bit.


[0064] In embodiments that operate as an ITU g723.1 speech codec, the ROM required is 10K-by-16-bit ROM, which is divided into 10 portions, each has 1K by 16-bit. The RAM size is 3K-by-16-bit, which is for all of the processing data.


[0065] The address generation (AdrGen) block consists of seven counters, namely Loop-1 counter (range 0-15), RGB address generator (range 0-31), Loop-2 counter (range 0-127), an Up-down counter (range 0-255), Look-up-table read address generator (range 0-1023), RAM read address generator (range 0-2047 or up to 4095), and RAM write address generator (range 0-2047 or up to 4095). The initial values are fed by the data control block (DatCtrl). These addresses indicate locations of the data in the RAM, ROM, look-up-table and register bank to be read or written.


[0066] In general, an address generator has a start value, counter length, enable control, counter step length, etc. For example, Table 14 shows a set of address counter initial value, where the Offset is for the counter start point, and the length is for the stop point.
14TABLE 14StateStep LengthLengthOffset


[0067] The bit size of the Offset and Length differ between different address generators. It has 5 bits for the RGB address generator, and it is 12 bits wide for the RAM address generator.


[0068] The Step Length specifies the counter increment per clock cycle when an enable signal is asserted. Two bits are used to define the step length. Table 15 shows the combination of the step length.
15TABLE 15IndexStep lengthdescription000Null011Increment by 1102Increment by 211reserved


[0069] The State (3 bits) is defined for the address generator operation. Tables 16 shows a set of the operation states.
16TABLE 16IndexstatesDescription000upUp-counter001downDown-counter010Up_2Up-counter with two continuous addresses forevery enable signal011Up_modifierAdd modifier to the counter value100Up_JmpUp counter with jump option101Up_2_JmpUp-counter with two continuous addressesfor every enable signal with jump option110reserved111reserved


[0070] Table 17 shows an initial value bit allocation of Loop-1 counter, which has 8 bits to set the initial value. Both parameters of the state and the step length are fixed. The range of the output is from 0 to 15.
17TABLE 17State (Fixed)Step length (Fixed)Length[3:0]Offset[3:0]


[0071] Table 18 shows an initial value bit allocation of the RGB address generator, which has 10 bits to set the initial values. Both parameters of the state and the step length are fixed. The range of the output is from 0 to 31.
18TABLE 18State (Fixed)Step length (Fixed)Length[4:0]Offset[4:0]


[0072] Table 19 shows an initial value bits allocation of Loop-2 counter, which has 17 bits to set the initial value. The state has 1 bit and the step length has 2 bits.
19TABLE 19State [0]Step length [1:0]Length[6:0]Offset[6:0]


[0073] Table 20 shows an initial value bits allocation of Up-down counter, which has 21 bits to set the initial value. The state has 3 bit and the step length has 2 bits.
20TABLE 20State [2:0]Step length [1:0]Length[7:0]Offset[7:0]


[0074] Table 21 shows initial value bit allocation of Look-up table read address generator, which has 31 bits to set the initial value. The state has a 3-bit and the step length has 2-bit length.
21TABLE 21State [2:0]Step length [1:0]Length[9:0]Offset[9:0]Modifier[6:0]


[0075] Table 22 shows initial value bits allocation of the RAM read address generator, which has 70 bits to set the initial value. The state has 3 bits with one extra bit for Mod operation selection, and the step length has 2 bits.


[0076] The RAM read address generation has both jump and mod functions. In the Jump function, when the counter value is equal to the jump value, then the counter output will jump to a value which is equal to the counter value plus the jump size. Then the counter is continually incremented based on the jump value. In the case of mod operation, when the counter is equal to the MOD value, the counter is set zero, then counts again.
22TABLE 22State [2:0]Step length [1:0]Length[11:0]Offset[11:0]MODselection[0]Modifier[11:0]Jump Value[11:0]Jumpsize[7:0]MOD [7:0]


[0077] Table 23 shows initial value bits allocation of the RAM write address generator, which has 42 bits. The state has 3 bits with one extra bit for by-pass selection, and the step length has 2 bits. This generator has a bypass function. When the bypass option is true, the output will be equal to the ByAddr value.
23TABLE 23State[2:0]Step length[1:0]Length[11:0]Offset[11:0]Bypass election[0]ByAddr[11:0]


[0078] The data control block is a management block. Its function is to decode micro-code from the FSM block, and send the decoded code to AdrGen and SVP blocks. The accelerator is driven under control of the decoded code.


[0079] When a micro-code is received at the DatCtrl block, this code is decoded into two parts, one is for address generation, and the other is SVP operation code. For address generator code, it resets the seven counter initial valves, and create the corresponding addresses for the data read and write. These addresses will be sent to the SPRAM, 10-sub-table and SVP to read and write the data.


[0080] For the SVP operation code, the block contains all of the information discussed above. The SVP will carry out an operation based on the operation code and the selected data presented to it. The result is then sent back to a selected address.


[0081] The programmable ROM, as shown in FIG. 10, contains a list of micro-codes. Each micro-code has 64 bits. A program address generator controls it. A DONE signal from SVP and a READY signal from AdrGen are combined into an enable signal for the generator.


[0082] A list of micro-code implements a specified DSP algorithm in the accelerator. For different DSP algorithm implementations, the list of micro-code will be changed. In FIG. 2, the START signal sets the generator in operation, and the DATADEF provides the start point and end point of the micro-words. The INSTRL presents the instruction type, e.g. short, medium or long medium instructions (see instruction design notes). The JUMPC and JMPADR is related the address jumping option.


[0083] As discussed above, there are four types of instruction, referred to as “short”, “medium”, “long-medium”, and “long” used by SVP accelerator.


[0084] The short instruction contains 64 bits, and it works on the operation between RGB and registers or set one loop counter only. The execution signal, EXEC, is asserted when the short instruction is read.


[0085] The medium instruction has 128 bits, and it works on the operation between RGB and either of RAM or LUT storage, and one or two loop counter settings.


[0086] The long-medium instruction has 192 bits. It works on the operation among the RGB, RAM, LUT and registers, and jump operation of the micro-code.


[0087] The long instruction has 256 bits, which have not yet been defined.


[0088] Short Instruction


[0089] The short instruction has one micro control word with 64 bits. Table 24 shows the definition of the short instruction.


[0090] The short instruction specifies operation among the RGB and register data, or one loop counter setting. The 64 bits are defined below.
24TABLE 24LCSWDBSADGMWL0RL0WADR0RADR1ISERDBSOPPCTRL[60:57][56:54][53:50][49:46][45:42][41:33][32:38][18:15][14:10][9:2]=0


[0091] PCTRL [1:0]: This is the index of the instruction. The PCTRL will control the program ROM address generator and execution signal generation. If PCTRL has value 00, the program ROM address generator will increase by one until next the Enable signal arrives. Otherwise, the program ROM address generator will increase by one until the PCTRL is 00. The execution signal will be created when PCTRL is 00.


[0092] OP[9:2]: the index of operation control words.


[0093] In each instruction, there is one OP. There are 256 defined operations in the SVP accelerator.


[0094] RDBS[114:10]: Read Data bus selection (5 bits).


[0095] It selects two 16 bits input data from RAM, LUT, RGB, RGF, MLRG0-2 for the operation, where RGF is for address register, and MLRG0-2 are local storage for the MAC operation unit.


[0096] ISE[18:15]: MAC unit initial value selection (4 bits).


[0097] The initial value may be some constant value, or the result (optionally shifted) from a MAC unit.


[0098] RADRO[27:19]: Offsets of RGB read address or loop counter start point (9 bits).


[0099] If RADRO is not 1FF, it specifies the direct initial address of RGB. Otherwise the offset address will be read from the register files, RGF1.


[0100] RADR1 [32;28]: Offset of RGB read address or start point for loop counter_0.


[0101] The range is from 0 to 32. If RADR1 is not 1 F, it specifies the direct initial address of RGB. Otherwise the offset address will be read from the register files, RGF2.


[0102] WADR0[41:33]: Offset of RGB write address or loop counter start or stop point (9 bits).


[0103] If WADR0 is not 1FF, it is for direct initial address. Otherwise the offset address will be read from the register files, RGF0.


[0104] RLO[45:42]: Data length setting (4 bits) from 1-16.


[0105] It provides an end address for the RGB read address generators. If RL0 is not 0, the end address is RL0+RADR0 and RL0+RADR1, otherwise the end address is RGF2+RADR0 and RGF2+RADR1.


[0106] WLO[49:46]: Data length setting (4 bits) from 1-16.


[0107] It provides an end address for the RGB write address generators. If WL0 is not 0, the end address is WL0+WADR0, otherwise the end address is read from RGF3+WADR0.


[0108] ADGM[53:50]: operation mode of address generators (4 bits).


[0109] It may specify that addresses are to be increased by 1, increased by 2, decreased by 1, decreased by 2, mod operation, and so forth.


[0110] WDBS[56:54]: Write Data bus selection (3 bits).


[0111] It selects one 16/32 bits output of SVP for RAM, RGB, RGF, MLRG0˜2 after operation, where RGF is for address register, and MLRG0˜2 are local storage for the MAC operation unit.


[0112] LCS[60:57]: Loop counter selection (4 bits), one bit for each loop counter.


[0113] When RDBS is zero and LCS is not zero, the RADR0, RADR1, WADR0, WL0 and RL0 are used for the start and end point for the specified loop counters.


[0114] [163:61]: to be defined.


[0115] Medium Instruction


[0116] Two micro control words (CW_1, CW_0) consist of one medium instruction, see following Table 25, where the CW_0 is a short instruction, and CW_l provides more options for the offset selections. The medium instruction is for operation among the RAM or LUT with RGB or registers.
25TABLE 25JMPCSLOPDECLOPWL1RL1WADR1RADR2PCTRL[63:61][60][59;48][47:37][36:26][25:14][13:2]=1LCSWDBSADGMWL0RL0WADR0RADR1RADR0ISERDBSOPPCTRL[60:57][56:54][53:50][49:46][45:42][41:33][32:28][27:19][18:15][14:10][9:2]=0


[0117] In operation, when the CW_0 is read, the medium instruction will be decoded. The RAM/LUT address offset and data length are assigned from WL1, RL1, WADR 1 and RADR2. The selected loop counters use LOP0, RADR1, WADR0 and WL0 as the start and end points. Up to two loop_counters can be set when RDBS is not zero, otherwise more loop_counters can be set.


[0118] RADR2[13:2]: Offset for the RAM or LUT read address generators (12 bits).


[0119] If RADR2 is not 3FF, it specifies direct initial address offset. Otherwise the offset address will be read from the register files, RGF2.


[0120] WADR1[25:14]: Offset for the RAM/RGB write address generator (12 bits).


[0121] If WADR1 is not 3FF, it specifies direct initial address offset. Otherwise the offset address will be read from the register files, RGF0.


[0122] RL1[36:26]: Read Data length setting (11 bits).


[0123] It provides an end address for the RAM/LUT read address generators. If RL1 is not 0, the end address is RL1 plus RADR2, otherwise the end address is read from RGF2 plus RADR2.


[0124] WL1[47:37]: Writing Data length setting (11 bits. It provides an end address for the RAM write address generators.


[0125] If WL1 is not 0, the end address is WL1 plus WADR1, otherwise the end address is read from RGF3+WADR1.


[0126] LOP [59:48]: Start or end point for the selected loop counters.


[0127] It is combined with the WADR0 for the loop counter 1, 2, and 3.


[0128] LOPDEC[60]Loop counter 3 is a bi-directional counter.


[0129] The LOPDEC is for the control of up or down operation. When LPPDEC is 1, the counter is in the down operation, otherwise it is up.


[0130] JMPCS[63:61]: Instruction address jump condition indicator.


[0131] The jump address can be derived from LOP0 if the loop counter 1, 2 and 3 are not selected or get the jump address can be derived from REG4.


[0132] Long-Medium Instruction


[0133] Three micro control words (CW_2, CW_1, CW_0) constitute a long-medium instruction, see following Table 3, where CW_0 is a short instruction.


[0134] When the short instruction (PCTRL=0) is read, the long-medium instruction will be decoded. In the Long-medium instruction, the CW_2 has options to set more loop counters, and directly instruction jumping address with or without conditions.


[0135] When both RAM and LUT data are used, the RAM address setting are assigned from CW_1, and LUT address setting are assigned from CW_3.
26TABLE 26RJMPADRAJMPADRLOP2LOP1LOP0RL2RADR3PCTRL[65:53][52:45][44:37][36:31][30:25][24:14][13:2]=2JMPCSLOPDECLOPWL1RL1WADR1RADR2PCTRL[63:61][60][59:48][47:37][36:26][25:14][13:2]=1LCSWDBSADGMWL0RL0WADR0RADR1RADR0ISERDBSOPPCTRL[60:57][56:54][53:50][49:46][45:42][41:33][32:28][27:19][18:15][14:10][9:2]=0


[0136] RADR3[13:2]: The offset for the LUT address generator (12 bits).


[0137] RL[24:14] The data length for the LUT address generator (11 bits).


[0138] LOP0[30:25]: The end point of loop counter 1 (6 bits).


[0139] LOP1[36:31]: The start point of loop counter 1 (6 bits).


[0140] LOP2[44:37]: The end point of loop counter 2 (8 bits).


[0141] AJMPADR[52:45]: The absolute program jump address (8 bits).


[0142] RJMPADR[63:53]: The relative program jumping address (11 bits). The RJMPADR[63] is a sign, which indicates the relative address to be added or subtracted from the current program address.


[0143] Sub-Micro-Word Description


[0144] In the instruction definition, there are up to 28 sub-control-words. Some of them are for the data flow control, and some are for the address setting.


[0145] Program Word Address Control (PCTRL)


[0146] The PCTRL is an indictor, which shows the status of the instruction. The program word address generator will produce a continuously address for a specified instructions with an enable signal. For example, the address will be N, N+1 and N+2 within three clock cycles for a long-medium instruction. Table 27 shows the definition of the sub-control-word, PCTRL.
27TABLE 27PCTRLSymbolDescription00STR0control word length = 6401STR1control word length = 12810STR2control word length = 19211STR3Not defined


[0147] Operation Control (OP)


[0148] The operation control signal has 8 bits, which represents 256 operations. The 256 operations are partitioned into four groups, the first 64 (0-63) operations are for data transfer and logic operations, the second 64 (64-127) operations are for arithmetical operations, including multiplication, addition, subtraction and the their combinations. The third 64 (128-191) are for some special operations. For example, they include division, Pow2, Log2, Inv_sqrt, Rank (put the data in order, eg, 3, 4, 1 and 2, after Rank, it is 1, 2, 3, 4), Norm_L, Convolution, correlation, cross correlation, and etc. The fourth 64 (192-256) are reserved. The correlation between the value of OP and these operations is shown in Table 28.
28TABLE 28OPSymbolDescription 0OPNULLNo operation 1LOD RAMRead the input data to RAM block 2LODRGBRead the specified RAM data to specified RGB cells 3DMPRGBLoad the data from specified RGB data to RAM block 4DMPRAMSend the specified RAM data to output pin 5CPYRGB2RG0Copy specified RGB data to specified RG0 6CPYRGB2RG1Copy specified RGB data to specified RG1 7CPYRGB2RG2Copy specified RGB data to specified RG2 8Reset RG0Set the REG0 to specified value 9Reset RG1Set the REG1 to specified value10Reset RG2Set the REG2 to specified value11Reset RG0 andSet the REG0 and REG1 to specified value112Reset RGBSet the specified RGB cell to a specified value64 + 0MACNUNo operation on MAC unit64 + 1MULTY = [INIT−(A*B)]&0x0000FFFF64 + 2MULTRY = round(INIT+A*B)64 + 3LMULTY INIT+A*B64 + 4LMLSY = INIT+(A[15:0]*B>>15) + A[31:16]*B. (LMLS0 and LMLS1)64 + 5LMAC3Y=INIT+n=0N(A*B)<<1,N>10,(LMAC0,LMACandLMAC1)64 + 6LMACF4Y=INIT+n=0NA*B,N<=10,64 + 7LMACR5Y=INIT+n=0NRound[(A*B)>>15],N>10,(LMACSR0,LMACSRandLMACSR1).(Rightshift15bitswithrounding)&AutoRightMatch;64 + 8LMACRF6Y=INIT+n=0NRound[(A*B)>>15],N<=10,(Rightshift15bitswithrounding)&AutoRightMatch;64 + 9LMRA7Y=INIT+n=0NRoundA*B,N>10,(LMACSR0,LMRAandLMRA1)64 + 10LMRAF8Y=INIT+n=0NA*B,N<=1064 + 11LMSU9Y=INIT-n=0N(A*B)<<1,N>10,(LMSU0,LMSUandLMSU1)64 + 12LMSUF10Y=INIT-n=0N(A*B)<<1,N<=10,64 + 13LMSUR11Y=INIT-n=0NRound[(A*B)>>15],N>10,(LMSUSR0,LMSUSRandLMSUSR1).(Rightshift15bitswithrounding)&AutoRightMatch;64 + 14LMSURF12Y=INIT-n=0NRound[(A*B)>>15],N<=10,(Rightshift15bitswithrounding)&AutoRightMatch;64 + 15IMAC13Y=INIT+A*B+n=1N(A*B)>>15,N>10,(IMAC0,IMACandIMAC1)&AutoRightMatch;64 + 16IMULTY = INIT+A*B64 + 17MACRY = Round(INIT + A * B) N > 1064 + 18MACRFY = Round(INJT + A * B) N <= 1064 + 19MSURY = INIT − A * B N > 1064 + 20MSURFY = INIT − A * B N <= 1064 + 21ADDY = A + B * 164 + 22SUBY = A + B * 164 + 23LADDY = [A1, A0] + [B1, B0]64 + 24LSUBY = [A1, A0] − [B1, B0]64 + 25MPY32Y0 = (A1 * B1) << 1Y1 = Sature((A1 * B0) >> 15)Y2 = Sature(A0 * B1) >> 15)Y = Y0 + Y1 + Y264 + 26MPY16Y = (A1 * B0) << 1Y1 =Sature(A0 * B0) >> 15)Y = Y0 + Y164 + 27L_Extract(Y[31:16], Y[15; 0]) = (A1, A0]>>1) − A1 <<1464 + 28L_CompY[31:0] = (A1 << 16) + (A0<<1)Compose from two 16-bit DPF a 32-bit integer.128 + 0DIV_LY = A[31:0]/B[15:0] (B>>16 is less than A128 + 1POW2Y = POW2(A, B), A = exponent, B = fraction128 + 2LOG2Y[EXP, FRAC] = LOG2(A, B)128 + 3INVSQRTY = 1/sgrt(L), L = [A0, B0]128 + 4RANKPut the data in order based on their values128 + 5NORM_LProduces the number of left shift needed to normalise the 32 bit variable1_var1 for positive values128 + 6CONVConvolution, to be defined128 + 7CORRCorrelation, to be defined128 + 8XCORRcross correlation, to be defined


[0149] Read Data Bus Selection (RDBS, 4 bits)


[0150] The RDBS value provides read address generator enable signals, and select the read address flags for data read. The enable signal, RENA, has 3 bits. Each bit enables one address generator. It is defined as below.


[0151] RENA[0] for RAM read address enable signal


[0152] RENA[1] for LUT read address enable signal


[0153] RENA[2] for RGB read address enable signal


[0154] When RDBS is 0, then the constant values can be assigned for the loop counter setting, as shown in Table 29.
29TABLE 29DBSSymbolDescription of Input1(B), input 2(C)0NULLNo inputs are selected, ENAR = 0001Reg00Reg_0, Reg_0, ENAR = 0002Reg01Reg_0, Reg_1, ENAR = 0003Reg02Reg_0, Reg_2, ENAR = 0004Reg0LUTReg_0, LUTInp, ENAR = 0105Reg0RGBReg_0, RGBInp, ENAR = 1006Reg0RAMReg_0, RamInp, ENAR = 0017Reg0RGFReg_0, RGF, ENAR = 0008Reg11Reg_1, Reg_1, ENAR = 0009Reg12Reg_1, Reg_2, ENAR = 00010Reg1LUTReg_1, LUTInp, ENAR = 01011Reg1RGBReg_1, RGBInp, ENAR = 10012Reg1RAMReg_1, RamInp,, ENAR = 00113Reg1RGFReg_1, RGF, ENAR = 00014Reg22Reg_2, Reg_2, ENAR = 00015Reg2LUTReg_2, LUTInp, ENAR = 01016Reg2RGBReg_2, RGBInp, ENAR = 10017Reg2RAMReg_2, RamInp, ENAR = 00118Reg2RGFReg_2, RGF, ENAR = 00019RGB2RGBInp, RGBInp, ENAR = 10020RGBLUTRGBInp, LUTInp, ENAR = 11021RGBRAMRGBInp, RamInp, ENAR = 10122RGBRGFRGBInp, RGF, ENAR = 10023RAM2RamInp, RamInp, ENAR = 00124RAMLUTRamInp, LUTInp, ENAR = 01125RAMRGFRamInp, RGF, ENAR = 00126reserved27reserved28reserved29reserved30reserved31reserved


[0155] Initialization of MAC Unit (ISE)


[0156] The ISE is an option for the initial value selection of MAC unit, as follows:
30TABLE 30INITSymbolDescription0000CNS00Set the value to zero0001CNS04Set the value to 04000010CNS07Set the value to 0700 on MAC0, others to zero0011CNS0ESet the value to 0E00 on MAC0, others to zero0100CNSE0Set the value to E000 on MAC0, others to zero0101VDRGBSet the value with RGB0110VDMACDSet the value with MACD0111VDACCDSet the value with ACCD1000VDNACCDSet the value with negative ACCD1001VDACCDL1Set the value with ACCD <<11010VDACCDL2Set the value with ACCD <<21011VDACCDL3Set the value with ACCD <<31100INPTDSet the value from the instruction decoded (TBD)It may use a medium instruction or long instruction1101reserved1110reserved1111reserved


[0157] Offset of Read Address 0 (RADR0)


[0158] A 9-bit value will be used for the RGB address generator when the RGB data path is selected by the RDBS or it may use-for the loop counter setting when RDBS is 0. If RADR0 is 1FF, the offset value is got from RGF1. The 9 bits are partitioned into two parts, RADR0 [3:0] is for row offset and RADR0 [8:4] for column offset.


[0159] Offset of Read Address 1 (RADR1)


[0160] A 5-bit value used as RGB address offset. It is assumed that the read data are stored in the same columns for read data A and read data B, but in different rows when both data are read from the RGB. If RADR1 is 1F, the offset value is got from RGF2.


[0161] Offset of Write (WADR0)


[0162] A 9-bit value used as an indirect/direct write address offset. If WADR0 is 1FF, the offset value is got from RGF0. The 9 bits are partitioned into two parts, WADR0 [3:0] is for row offset and WADR0 [8:4] for column offset.


[0163] Data Length for Data Reading (RL0)


[0164] A 4-bit value used as the end point of the read address of RGB. If RADR0 [3:0] is less than 11, the data read is in serial; otherwise it is in parallel. When in the serial format, the data length will be extended to RADR0 [3:0]* RL0. For example, if the RADR0[3:0] is 10, and RL0 is 6, it will take 60 clock cycles to read 60 data from the RGB.


[0165] Data Length for Data Writing (WL0)


[0166] A 4-bit value will be used as the end point of the read address of RGB. If WADR0[3:0] is less than 11, the data write is in serial, otherwise it is in parallel. When in the serial format, the data length will be extended to WADR0[3:0]* WL0. For example, if the WADR0[3:0] is 10, and WL0 is 6, it will take 60 operations to write 60 data items to the RGB.


[0167] Operation Mode of Address Generators (ADGM)


[0168] ADGM is address generator operation mode. It has 4 bits and each bit controls one operation function of the address generator.


[0169] ADGM[0] : increasing/decreasing control, 0:increasing (I: increasing), 1:decreasing (D: decreasing)


[0170] ADGM[1]: step length control, 0: increasing/decreasing by 1(O: one), 1: by 2(T: two)


[0171] ADGM[2]: mod operation, 0: no (N), 1: yes(Y)


[0172] ADGM[3]: step length control for RAM write address only, 0: increasing/decreasing by 1(S:short-16 bits), 1: by 2 (L:long-32 bits)


[0173] ADGM[0]: I(0)/D(1)


[0174] ADGM[1]: O(0)/T(1)


[0175] ADGM[2]: N(0)/Y(1)


[0176] ADGM[3]: S(0)/L(1)
31TABLE 30ADGMSymbolDescription0SNOIBoth read and write Increase by 11SNODread decrease by 1 and writer increase by 12SNTIBoth read and write Increase by 13SNTDread decrease by 2 and writer increase by 14SYOIMod with increase by 1 (read), write increase by 15SYODMod with decrease by 1 (read), write increase by 16SYTIMod with increase by 2 (read), writer increase by 17SYTDMod with decrease by 2 (read), writer increase by 18LNOIBoth read and write Increase by 29LNODread decrease by 1 and writer increase by 210LNTIBoth read and write Increase by 211LNTDread decrease by 2 and writer increase by 212LYOIMod with increase by 1 (read), write increase by 213LYODMod with decrease by 1 (read), write increase by 214LYTIMod with increase by 2 (read), writer increase by 215LYTDMod with decrease by 2 (read), writer increase by 2


[0177] Write Data Bus Selection (WDBS, 3 bits)


[0178] The WDBS selects the writing data bus. It is defined below. The WDBS will provide a write address generator enable signal (WENA) or register input data selection (RIS). The WENA has 2 bits, and RIS has three bits, where WENA[0] is for RAM write address generator and WENA[1] is for RGB write address generator.
32TABLE 31WDBSSymbolDescription000WRGBRegister bank, ENAW = 10001WRGFRegister file (for address), ENAW = 00010WRAMRAM block, ENAW = 01011WREG0Local buffer Reg0 of MAC unit (RIS)100WREG1Local buffer Reg1 of MAC unit (RIS)101WREG2Local buffer Reg2 of MAC unit (RIS)110WRGBRAMRegister bank and RAM, , ENAW = 11111reserved


[0179] 4 Loop Counters Selection


[0180] The LCS is a control signal with 4 bits, it selects the loop count in action. It is defined as below:


[0181] LCS[3:0]


[0182] LCS[0] is for Loop counter 0, 1: selected, 0: no


[0183] LCS[1] is for Loop counter 1, 1: selected, 0: no


[0184] LCS[2] is for Loop counter 2, 1: selected, 0: no


[0185] LCS[3] is for Loop counter 3, 1: selected, 0: no


[0186] When LCS[3:0]=0000, no loop counter is selected.


[0187] Offset of RAM/LUT Read Address (RADR2)


[0188] A 12-bit value used for RAM or look up table read address generators. In medium instructions, the RADR2 is used for either RAM or LUT according the RDBS. In long-medium instructions, it is used for RAM only.


[0189] Offset of RAM/LUT Write Address (WADR1)


[0190] A 12-bit value used for RAM or RGB write address generators. The WADR0 is only used in short instructions; otherwise WADR1 is used for either RAM or RGB according the RDBS. The WADR0 is used for the loop counter setting in the medium or long-medium instruction.


[0191] Data Length for Data Reading (RL1)


[0192] An 11-bit value used as the end point of the read address of RAM or LUT.


[0193] Data Length for Data Writing (WL1)


[0194] An 11-bit value used as the end point of the write address of RGB or RAM.


[0195] Loop Length (LOP)


[0196] A 9-bit value that defines the start or end point of the specified loop counter. If RDBS is 0, there two loop counter are set up.


[0197] In a short instruction:


[0198] Counter 0 (Start, Stop)=(RADR1, WL0)


[0199] Counter 1/2/3 (Start, Stop)=(RADR0, WADR0)


[0200] LOPDEC can be get from ADGM[0]


[0201] In a medium instruction:


[0202] If RDBS=0, there are up to four loop counters to be set.


[0203] Counter 0(Start, Stop)=(RADR1, WL0)


[0204] Counter 1(Start, Stop)=(RADR0, WADR0)


[0205] Counter 2(Start, Stop)=(RADR2, RL1)


[0206] Counter 3(Start, Stop)=(WADR1, WL1)


[0207] If RDBS/=0, there are up to two loop counters can be set.


[0208] Counter 0(Start, Stop)=(RADR1, WL0)


[0209] Counter 1/2/3(Start, Stop)=(LOP, WADR0)


[0210] In a long_medium instruction:


[0211] Counter 0(Start, Stop)=(RADR1, WL0)


[0212] Counter 1(Start, Stop)=(LOP1, LOP0)


[0213] Counter 2(Start, Stop)=(RADR0, LOP2)


[0214] Counter 3(Start, Stop)=(LOP, WADR0)


[0215] Loop Counter 2 Operation Mode (LOPDEC)


[0216] A 1-bit control signal is used to control loop counter 2, which can count up or down. LOPDEC is the control signal. When in short instruction, it can be decoded from ADGM[0], otherwise, it is defined as in the medium instruction.


[0217] Program Address Jump Option (JMPCS)


[0218] The program address can be changed with or without condition while the program is in the operation. The JMPCS (3 bits) is the control signal to control the jump function. The jump condition is not cleared until the jump has occurred. In the unconditional mode, the jump will be happened after the current operation is finished. In the condition mode, the condition is checked. The following table shows the definition of the JMPCS.
33TABLE 32JMPCSSymbolDescription000JMPNONo jump condition is set001JMPNCDAJump without condition. Jump to apredefined sub-function (the address is fixed),and return to the current address when the sub-function is completed010JMPNCDRsJump without condition with the currentaddress +/− the jump address.011JMPL2Jump under loop counter 2 Flag conditionwith the current address +/− the jump address.100JMPL3Jump under loop counter 3 Flag condition withthe current address +/− the jump address.101JMPCMPDJump under condition of the compared resultswith the current address +/− the jump address.110JMPRGJumps under loop counter 2 flag with the currentaddress +/− the jump register value.111reserved


[0219] In medium instructions, the jump address is read from the RADR2 or WADR1 according to the RDBS value. In the long-medium instruction, the jump address is got from the RJMPADR or AJMPADR or both RJMPADR and AJMPADR.


[0220] Offset of LUT Address (RADR3)


[0221] In long-medium instructions, the RADR3 is for the offset of LUT address.


[0222] LUT Data Length (RL2)


[0223] RL2 is for the data length of LUT address.


[0224] Loop Counter Settings


[0225] LOP0, LOP1 and LOP2 are the start or end point of loop counters. It has been defined in the LOP.


[0226] Program Absolute Jump Address (AJMPADR)


[0227] The program address can be change to a fixed address for some specified operation. After that, the address will be jump back. The AJMPADR has 8 bits, which is from 0˜255.


[0228] Program Relative Jump Address (RJMPADR)


[0229] With RJMPADR, the program address is the sum of the current address +/−RJMPADR.


[0230] Programming Format


[0231] To implement any algorithm in the SVP accelerator, a general programming format of instructions is defined as below:


[0232] OP:XXX RADR0:XXXX RADR1:XXXX RL:XXXX WADR:XXXX ISE:XX WL:XXXX ADGM:XX LP0:XXX LP1:XXX LP2:XXX LP3:XXX JMPCS:XX AJMPADR:XXXX RJMPADR:XXXX


[0233] Key Word Definition


[0234] The OP, RADR0, RADR1, RL, WADR, ISE, WL, ADGM, LP0, LP1, LP2, LP3, JMPCS, AJMPADR and RJMPADR are indicators of SVP instruction key words. Each key word has two parts, which is separated by a colon “:”. The first part is an indicator, and the second part is the operate instruction. In compiling an instruction, the key word indicates which parameters are used. These parameters specify an instruction (short, medium or long_medium) to be converted.


[0235] OP is for operation, which can be mapped from Table 28.


[0236] RADR0 is for read data address for the data B, see MAC unit.


[0237] RADR1 is for read data address for the data C, see MAC unit.


[0238] RL is for the read data length.


[0239] WADR is for write data address.


[0240] ISE is for initial data selection of MAC unit for the data A, see MAC unit.


[0241] WL is for writing data length.


[0242] ADGM is for data address operation format; it could be increased by 1, by 2 or decrease by 1, by 2 or mod operation


[0243] LP0 is for the first loop counter


[0244] LP1 is for the second loop counter


[0245] LP2 is for the third loop counter


[0246] LP3 is for the fourth loop counter


[0247] JMPCS is for the program address jump operation


[0248] AJMPADR is for absolute jumping address.


[0249] RJMPADR is for a relative jumping address.


[0250] Data Source to be Read


[0251] There are seven sources to provide read data, namely Reg0, Reg1, Reg2, LUT, RGB, RAM and RGF.
34TABLE 33IndexSymboldescription0REG016 bit buffer in MAC unit1REG116 bit buffer in MAC unit2REG216 bit buffer in MAC unit3LUT16 bit look up table4RGB16 bit register bank5RAM16 bit RAM6RGF16 bit register file which are shared with data and address


[0252] The read address is represented as the following structure:


[0253] RADR0:SS_VVVV, RADR1:SS_VVVV.


[0254] Where the RADR0/RADR1 are the indicator of read addresses, and SS is an indicator of data source (listed in the Table 11), and the VVVV is an offset of the address.


[0255] Data Length


[0256] The data length is represented as RL:XXXX or WL:XXXX, where the XXXX can be any constant value for the number of data items to be read or written.


[0257] Data Source to be Written


[0258] There are six sources for the data to be written. The write address is represented as WADR:SS_VVVV, where the SS is the index of the data source (listed in Table2), and VVVV is an offset of the writing address.
35TABLE 34IndexSymboldescription0REG016 bit buffer in MAC unit1REG116 bit buffer in MAC unit2REG216 bit buffer in MAC unit3RGB16 bit register bank4RAM16 bit RAM5RGF16 bit register file which are shared with data and address


[0259] Initial Value Selection


[0260] The initial value of MAC unit is represented as ISE:XX, where the value, XX, is coded in the Table 35.


[0261] Operation Format of Address Generators


[0262] The operation of address generators is controlled by the ADGM, which is presented as ADGM:XXXX, where the value, XXXX, is coded in the Table 8.


[0263] Loop Counter Setting


[0264] The loop counter settings are represented as LP0:(SS, EE), LP1:(SS, EE), LP2:(SS, EE, F) and LP3:(SS, EE). The SS is for the start point, and EE is for the end point of the loop counters. The loop counter 2 has bio-direction function, so The F is for the up/down control in LP2.


[0265] The codec constructed in accordance with the above description can be programmed to perform coding and decoding according to a wide range of coding schemes, including, in particular, CELP coding in accordance with accepted standards. As will be recognised by those skilled in the technical field, the codec represents a programmable processor with a specialised instruction set. It is therefore possible to write a program that instructs the codec to perform the encoding or decoding required for a particular application. By taking advantage of the parallel processing capabilities of the accelerator, and assigning computationally less-intensive tasks to the DSP 112, a high-performance and cost effective implementation of a codec can be achieved.


[0266] Implementation on a Semiconductor Chip


[0267] Most typically, the invention will be embodied as a core in a semiconductor chip, e.g. a silicon chip or digital signal processor. Listing 1 below is a hardware description, or definition, language (HDL) description of the layout of an accelerator core suitable for use in the embodiment of the invention as described above. The HDL code may be used in conventional manner to produce a semiconductor chip design using conventional hardware synthesis tools.
36Listing 1//------------------------------------------------------------------------------//// Copyright (C) 2000 Integrated Silicon Systems Ltd// All rights reserved. This text contains proprietary, confidential// information of Integrated Silicon Systems Ltd and may be used,// copied and/or disclosed only pursuant to the terms of a valid// license agreement with Integrated Silicon Systems Ltd This// copyright notice must be retained as part of this text at all// times.//// This code is provided “as is” Integrated Silicon Systems Ltd makes, and// the end user receives, no warranties or conditions, express, implied,// statutory or otherwise, and Integrated Silicon Systems Ltd specifically// disclaims any implied warranties of merchantability, non-infringement, or// fitness for a particular purpose////------------------------------------------------------------------------------//// Accelerator////// date23/10/2000// designerZ P Sun// module definition// RATEfor Celp 723.1, 1·6.3, 0·5.3// CHNChannel number. 8 bits// DMdata from channel memory 16 bits// CHNADRchannel memory address 10 bits + 8 bits (CHN)// Sprocessed speech data 16 bits// SENAinput data available signal 1 bit// IDprocessed encoded data 16 bits// EDCencoding or decoding indictor 1 bit// STARTdata loading and process start signal 1 bit// READYthe module can loading the data// DONEencode or decode complete‘include “execwddef.v”‘timescale 1ns/10psmodule SvpAcle (CLK, RST, RATE, START, DATAIN, DATAOUT, DONE, READY),inputCLK, RST, START,input [1:0]RATE,input [‘DATA_RANGE]DATAIN;output [‘DATA_RANGE]DATAOUT,outputDONE, READY,wire [‘DATA_RANGE]RAMWD,wireSVPDone,wireJumpC = 1′b0,wire  [‘PROM_RANGE]JumpAddr = {‘PROM_BITS{1′b0}},wire  [‘PROM_RANGE]PAddr;wireExec, FstAve, SndAve, TrdAve, FthAve:wire  [‘DATA_RANGE]DataR,wire  [‘RGB_YX_BITS−1.0]RGBRADR, RGBWADR;wire  [‘FLAGS_BITS−1.0]RFLAGS, WFLAGS, WRFLAGS, WBFLAGS, PFlags, LdpFlag,wire RPARITY;wire  [‘PROM_BITS−1·0]LdpAdr:wireFstChn.// PROM Enable signalwireInstrAdrEna;wireDones.reg FirstChnDone0, FirstChnDone1;wire RST0 = RST|FirstChnDone0.always @(posedge CLK or posedge RST)if (RST) {FirstChnDone1, FirstChnDone0} <= {1 ‘b0, 1 ‘b0},else   {FirstChnDone1, FirstChnDone0} <= {FirstChnDone0, FstChn&LdpFlag[3]},//wire DONE = Dones&˜FstChn|FirstChnDone1.wire Enable = InstrAdrEna&˜DONE://LUT TESTwire  [‘DATA_RANGE]LUT0D, LUT1D, LUT2D, LUT3D, LUT4D, LUT5D, LUT6D, LUT7D, LUT8D, LUT9D,//RGF registersreg  [‘DATA_RANGE] RGF0D, RGF1D, RGF2D, RGF3D, RGF4D, RGF5D, RGF6D, RGF7D, RGF8D, RGF9D,always @(posedge CLK or posedge RST0)if  (RST0)  {RGF0D, RGF1D, RGF2D, RGF3D, RGF4D, RGF5D, RGF6D, RGF7D, RGF8D, RGF9D} <={10*‘DATA_BITS{1′b0}},else // to be dubeg if() {RGF0D, RGF1D, RGF2D, RGF3D, RGF4D, RGF5D, RGF6D, RGF7D, RGF8D, RGF9D} <= {10* ‘DATA_BITS{1 ‘b0}};//------------CONTROL SIGNALSwireStart3, Start2, Start1,wire [‘INSTR_RANGE]Instr,wire [1:0]InstL = Instr[1.0];wire [‘RAM_OFS_BITS−1·0]RADR, WADR;wireDUMP = 1 ‘b0, //to be debugged with the SVP decoderwireRamSW,SvpCtrl CTRLBLK ( CLK(CLK), RST(RST), .RST0(RST0), START(START), .RATE(RATE), DATAIN(DATAIN),.PENA(Enable),INSTL(InstL), DUMP(DUMP), JUMPC(JumpC), JUMPADDR(JumpAddr), START3(Start3),START2(Start2), START1(Start1), EXEC(Exec), FSTAVE(FstAve), SNDAVE(SndAve),TRDAVE(TrdAve), .FTHAVE(FthAve), PADDR(PAddr), PFLAGS(PFlags), LDPADR(LdpAdr),.LDPFLAGS(LdpFlag), DATAI(DataR), RAMSW(RamSW), FSTCHN(FstChn)  ),//-----------Program ROM-------InstrLut INSRBLK ( CLK(CLK), ADDR(PAddr), LV(Instr));//-----------swapping control and RAM blockswire [‘DATA_RANGE] DATAOUT,wire [‘DATA_RANGE] DAT2SVP, SVPDAT.SvpRamSpmod RAMBLK(.CLK(CLK), .RST(RST0), RAMSW(RamSW), .CEN0(LdpFlag[1]), .CEN1(1 ‘b1),WEN0(LdpFlag[1]), .WEN1(WRFLAGS[1]), RADR0(LdpAdr), .RADR1(RADR),.WADR0(LdpAdr), WADR1(WADR), .INPDAT(DataR), SVPDAT(SVPDAT), DAT20(DATAOUT),DAT2SVP(DAT2SVP));//--------------------decoder block---------wire [4 0]ADRENA: //0 RAM, 1:LUT 2 RGB 3 Write RAM 4 Write RGBwire [‘RAM_OFS_BITS−1 0]RMOFSET,wire [‘LUT_OFS_BITS−1.0]LUTYOFSET,wire [3 0]LUTXOFSET;wire [‘RGB_X_BITS−1·0]RGBRXOFSET, RGBRXLENG,wire [‘RGB_Y_BITS−1.0]RGBRYOFSET, RGBRYLENG,wire [‘LUT_LNG_BITS−1:0]LUTYL;wire [3:0]LUTXL,wire [‘RAM_LNG_BITS−1 0]RMLENG,wire [‘RAM_OFS_BITS−1 0]WMOFSET,wire [‘RGB_X_BITS−1:0]RGBWXOFSET, RGBWXLENG,wire [‘RGB_Y_BITS−1 0]RGBWYOFSET, RGBWYLENG;wire [‘RAM_LNG_BITS−1:0]WMLENG;wire [3:0]RGSENA;wire [‘L0_BITS−1 0]L0START, L0STOP,wire [‘L1_BITS−1·0]L1START, L1STOP;wire [‘L2_BITS−1 0]L2START, L2STOP;wire [‘L3_BITS−1.0]L3START, L3STOP,wire [3 0]LOPENA,wire LOPDEC,wire [‘OP_BITS−1:0]OP;wire [‘IDS_BITS−1:0]RDBS;wire [‘ISE_BITS−1 0]ISE,wire [‘WDBS_BITS−1:0]WDBS,wire [‘I_ADGM_RANGE]ADGM,wire [‘I_LCS_RANGE]LCS,mwdecod DECBLK( CLK(CLK), RST(RST0), .EXEC(Exec), INSTR(Instr), STRENA(Enable), START(Start1),.MW0ENA(FstAve), MW1ENA(SndAve), .MW2ENA(TrdAve), .MW3ENA(FthAve), .ADRENA(ADRENA),RMOFSET(RMOFSET), RMLENG(RMLENG), LUTXOFSET(LUTXOFSET), LUTYOFSET(LUTYOFSET),.LUTXL(LUTXL), .LUTYL(LUTYL), RGBRXOFSET(RGBRXOFSET),.RGBRXLENG(RGBRXLENG), .RGBRYOFSET(RGBRYOFSET), .RGBRYLENG(RGBRYLENG), .WMOFSET(WMOFSET),.RGBWXOFSET(RGBWXOFSET),RGBWXLENG(RGBWXLENG), RGBWYOFSET(RGBWYOFSET) RGBWYLENG(RGBWYLENG), WMLENG(WMLENG),.RGSENA(RGSENA)L0START(L0START), L0STOP(L0STOP), .L1START(L1START), .L1STOP(L1STOP), .L2START(L2START),L2STOP(L2STOP), L3START(L3START), L3STOP(L3STOP), LOPENA(LOPENA), LOPDEC(LOPDEC),OP(OP), RDBS(RDBS), ISE(ISE), WDBS(WDBS), .ADGM(ADGM), LCS(LCS)  );//---------------Address Generators and control signals//to be decoded the MODS from ADGM, it is defined that the MOD will be get from RGF0//the LOPENA should be decoded again to get the right enabe signal for each loop counters.wire [7 0]MOD = RGF0D[7 0],wire [‘LUT_OFS_BITS−1:0]LUTYADR;wire [3.0]LUTXADR,//loopwire [‘FLAGS_BITS−1 0] L0FLAGS, L1FLAGS, L2FLAGS, L3FLAGS;wire [‘L0_BITS−1 0]COUNT0,wire [‘L1_BITS−1 0]COUNT1;wire [‘L2_BITS−1 0]COUNT2;wire [‘L3_BITS−1 0]COUNT3,wire [‘MAC_OP_BITS−1 0] MOP;wire [‘ISE_BITS−2:0]ISE0C, ISE1C,wire [‘ISE_BITS−1.0]ISEC,wire [‘DT_OP_BITS−1 0]DTOP,wire [‘OP_BITS−1·0]OpR;wire [‘IDS_BITS−1 0]RdbsR,wire [‘WDBS_BITS−1.0]WdbsR,wire RAM2RGBSC,wire [3 0] ACUOP;wire [‘I_ADGM_RANGE]AdgmR;wire [5 0]IDENT;wire W32ACT, // = AdgmR[3],wire WRamAdrEna, WRgbAdrEna,// wire [4 0]  AdrEnaS = {ADRENA[4]&WRgbAdrEna, ADRENA[3]&WRamAdrEna, ADRENA[2], ADRENA[1],ADRENA[0]},//0 RAM, 1.LUT 2 RGB 3 Write RAM 4 Write RGBExecmod EXECBLK ( CLK(CLK), .RST(RST0), EXEC(Exec), RDBS(RDBS), WDBS(WDBS),OP(OP), .ISE(ISE), .ADGM(ADGM), MOD(MOD), RMOFSET(RMOFSET),WMOFSET(WMOFSET), LUTXOFSET(LUTXOFSET), LUTYOFSET(LUTYOFSET) RGBRXOFSET(RGBRXOFSET),.RGBRYOFSET(RGBRYOFSET), RGBWXOFSET(RGBWXOFSET),.RGBWYOFSET(RGBWYOFSET), .RMLENG(RMLENG), WMLENG(WMLENG), LUTXL(LUTXL), LUTYL(LUTYL),.RGBRXLENG(RGBRXLENG),RGBRYLENG(RGBRYLENG), RGBWXLENG(RGBWXLENG), RGBWYLENG(RGBWYLENG), ADRENA(ADRENA),.LCS(LCS),LOPDEC(LOPDEC), WRAMASRENA(WRamAdrEna), .WRGBADRENA(WRgbAdrEna),L0START(L0START), L1START(L1START), .L2START(L2START), L3START(L3START),.L0STOP(L0STOP),L1STOP(L1STOP), L2STOP(L2STOP), L3STOP(L3STOP), .L0ENA(LOPENA[0]), L1ENA(LOPENA[1]),L2ENA(LOPENA[2]), L3ENA(LOPENA[3]), RFLAGS(RFLAGS), WFLAGS(WFLAGS), WRFLAGS(WRFLAGS),.WBFLAGS(WBFLAGS), RPARITY(RPARITY), .IDENT(IDENT),RADR(RADR), .WADR(WADR), .LUTYADR(LUTYADR), LUTXADR(LUTXADR), RGBRADR(RGBRADR),.RGBWADR(RGBWADR),L0FLAGS(L0FLAGS), L1FLAGS(L1FLAGS), L2FLAGS(L2FLAGS), L3FLAGS(L3FLAGS),.COUNT0(COUNT0),COUNT1(COUNT1), .COUNT2(COUNT2), COUNT3(COUNT3), MOP(MOP), ISEC(ISEC), ISE0C(ISE0C),.ISE1C(ISE1C), .DTOP(DTOP), OPR(OpR), .RDBSR(RdbsR), .WDBSR(WdbsR),.RAM2RGBSC(RAM2RGBSC), ACUOP(ACUOP), ADGMR(AdgmR), W32ACT(W32ACT)  );wire [2 0]RWE,wire [2 0]RIS,wire [2.0]WDSC,wire [2·0]WDSCS = ˜WDSC[2]&WDSC[1]&W32ACT? {WDSC[2 1], W32ACT} WDSC,wire [‘IDS_BITS-1·0]IDS;wire [‘MAC_IC_BITS−1 0]M0IC = {RWE, RIS, ISE0C, IDS},wire ]‘MAC_IC_BITS−1 0]M1IC = {RWE, RIS, ISE1C, IDS},wire [‘BIT32S_RANGE]ACUSUM,wireACUDONE, MACDONE;wire [‘BIT32S_RANGE]CMPD;wire [3 0]CMPI,wire [4 0]CMPYV;wire [8 0]TREELENC,// wire [5 0] IDENT = 5′b00001; //TBD//LUT Start ================G729aLuTab LUTBLK ( CLK(CLK), RST(RST0), IDENT(IDENT), ADDR(LUTYADR[8.0]), L0V(LUT0D),   .L1V(LUT1D), .L2V(LUT2D), L3V(LUT3D), .L4V(LUT4D), L5V(LUT5D),   .L6V(LUT6D), L7V(LUT7D), L8V(LUT8D), L9V(LUT9D), TREELENC(TREELENC))reg [3 0] LutXAdrD,always @(posedge CLK or posedge RST)if (RST) {LutXAdrD} <= {4{1′b0}},else {LutXAdrD} <= LUTXADR,reg [‘DATA_BITS-1:0] Lut0S,always @(LutXAdrD or LUT0D or LUT1D or LUT2D or LUT3D or LUT4D  or LUT5D or LUT6D or LUT7D or LUT8D or LUT9D)case (LutXAdrD)4′b0001Lut0S = LUT1D,4′b0010 :Lut0S = LUT2D,4′b0011Lut0S = LUT3D;4′b0100 :Lut0S = LUT4D;4′b0101 :Lut0S = LUT5D,4′b0110Lut0S = LUT6D,4′b0111 :Lut0S = LUT7D,4′b1000Lut0S = LUT8D,4′b1001 :Lut0S = LUT9D,defaultLut0S = LUT0D;endcase//LUT End ===================//SVP Blockwire  RBWIDT: //write data selection 1 MAC_0 result 0 RGB_0Svpmod SVPBLK (.CLK(CLK), RST(RST0), MOP(MOP), .ACUOP(ACUOP), RAMRD(DAT2SVP),.RGBENA(WBFLAGS[1]), .RGBRADR(RGBRADR), RGBWADR(RGBWADR), ISEC(ISEC), RBWIDT(RBWIDT),M0IC(M0IC), .M1IC(M1IC), M2IC(M1IC), M3IC(M1TC), M4IC(M1IC),M5IC(M1IC), M6IC(M1IC), .M7IC(M1IC), M8IC(M1IC), M9IC(M1IC), .WDSC(WDSC),.RGF0D(RGF0D), .RGF1D(RGF1D), RGF2D(RGF2D), RGF3D(RGF3D), .RGF4D(RGF4D),RGF5D(RGF5D), RGF6D(RGF6D), .RGF7D(RGF7D), RGF8D(RGF8D), RGF9D(RGF9D),LUT0D(Lut0S), .LUT1D(LUT1D), LUT2D(LUT2D), LUT3D(LUT3D), LUT4D(LUT4D),LUT5D(LUT5D), LUT6D(LUT6D), LUT7D(LUT7D), LUT8D(LUT8D), .LUT9D(LUT9D),RAMWD(RAMWD), .DONE(SVPDone), .ACUSUM(ACUSUM), ACUDONE(ACUDONE), MACDONE(MACDONE),CMPD(CMPD, .CMPI(CMPI), CMPYV(CMPYV)  ),//creat instruction address enable signalwire WFEna = WFLAGS[3],wire PEnd = PFlags[3];PromAdrEna  PENABLK (.CLK(CLK), .RST(RST0), START(START), .PEND(PEnd), .OP(OpR),.WDBS(WdbsR), .RDBS(RdbsR), MACDONE(MACDONE), WFEAN(WFEna), .RWE(RWE),.ACUDONE(ACUDONE),RIS(RIS), .IDS(IDS), .PROMENA(InstrAdrEna), .RBWIDT(RBWIDT), WRAMADRENA(WRamAdrEna),WRGBADRENA(WRgbAdrEna), DONE(Dones), WDSC(WDSC) ),endmoule // SvpMacs/* end of file */

Claims
  • 1. A codec comprising a programmed digital signal processor and an accelerator core in which computation of a coding algorithm is divided between the digital signal processor and the accelerator core, computationally relatively intensive parts of a coding algorithm being performed by the accelerator core.
  • 2. A codec according to claim 1 in which the accelerator core includes a processor structure that is capable of processing multiple items of data simultaneously.
  • 3. A codec according to claim 2 in which the processor is a vector processor.
  • 4. A codec according to claim 2 in which the processor structure has a single-instruction multiple-data architecture.
  • 5. A codec according to claim 2 in which the processor structure has an instruction set that is optimised to perform encoding to a predetermined standard.
  • 6. A codec according to claim 5 in which the instruction set is optimised to perform CELP coding of speech signals.
  • 7. A codec according to claim 1 in which the accelerator core has includes a plurality of similar operational units capable of carrying out simultaneous data processing operations.
  • 8. A codec according to claim 7 in which an operation can be assigned for performance by one or more of the operational units on a plurality of data elements.
  • 9. A codec according to claim 8 in which the number of operational units that perform a given operation can be determined under programmatical control.
  • 10. A codec according to claim 7 including a register bank, the operational units performing operations on data stored in the register bank.
  • 11. A codec according to claim 7 in which each operational unit can perform operations upon the output of one or more of the operational units.
  • 12. A codec according to claim 7 in which each operational unit can store the result of an operation in the register bank.
  • 13. A codec according to claim 7 in which an operation can be performed on the outputs of a plurality of the operational units to derive a further output value.
  • 14. A codec according to claim 13 in which the outputs of a plurality of the operational units can be summed.
  • 15. A codec according to claim 7 in which each operational unit can access a common memory unit.
  • 16. A codec according to claim 15 in which the common memory unit includes a ROM.
  • 17. A codec according to claim 15 in which the common memory unit includes a RAM.
  • 18. A codec according to claim 7 in which each operational unit is a MAC unit.
  • 19. A codec according to claim 1 in which the accelerator core is operative to execute program instructions as a vector processor.
  • 20. A codec according to claim 19 in which the program instructions are executed as microcode.
  • 21. A codec according to claim 19 including a decoder by means of which the program instructions are decoded for execution by one or more operational units.
  • 22. A codec according to claim 21 in which the decoder includes a finite state machine.
  • 23. A codec according to claim 21 in which the decoder includes a programmed memory device.
  • 24. A computer program product for defining a codec, the codec comprising a programmed digital signal processor and an accelerator core in which computation of a coding algorithm is divided between the digital signal processor and the accelerator core, computationally relatively intensive parts of a coding algorithm being performed by the accelerator core.
  • 25. A computer program product according to claim 24 expressed in a hardware definition language.